From e842504a6323096540dc3defdc7cb357d8749893 Mon Sep 17 00:00:00 2001 From: Jason Del Ponte Date: Thu, 9 Jan 2020 17:11:54 -0800 Subject: [PATCH] private/mode/api: Add codegen typed Errors for RESTJSON and JSONRPC APIs (#3062) Adds code generated error types for APIs using RESTJSON and JSONRPC protocol, and modeled errors. This adds generated error types that can be typed asserted to in order to read error values in addition to Code and Message. --- CHANGELOG_PENDING.md | 2 + .../dynamodb/transactWriteItems/README.md | 66 - .../transactWriteItems/error_handler.go | 121 - .../transactWriteItems/error_handler_test.go | 171 - private/model/api/api.go | 105 +- .../awsendpointdiscoverytest/errors.go | 6 + .../service/restjsonservice/api.go | 83 +- .../service/restjsonservice/errors.go | 9 + .../restjsonservice/eventstream_test.go | 8 +- .../service/restjsonservice/service.go | 5 +- .../codegentest/service/restxmlservice/api.go | 79 +- .../restxmlservice/eventstream_test.go | 8 +- .../api/codegentest/service/rpcservice/api.go | 113 +- .../codegentest/service/rpcservice/errors.go | 9 + .../service/rpcservice/eventstream_test.go | 8 +- .../codegentest/service/rpcservice/service.go | 5 +- private/model/api/eventstream_tmpl.go | 60 +- private/model/api/eventstream_tmpl_reader.go | 8 +- .../model/api/eventstream_tmpl_readertests.go | 7 +- private/model/api/eventstream_tmpl_tests.go | 6 + private/model/api/load.go | 5 + private/model/api/operation.go | 22 +- private/model/api/passes.go | 18 +- private/model/api/shape.go | 92 +- .../eventstream/eventstreamtest/testing.go | 2 +- private/protocol/jsonrpc/jsonrpc.go | 58 +- .../protocol/jsonrpc/unmarshal_err_test.go | 79 - private/protocol/jsonrpc/unmarshal_error.go | 107 + .../protocol/jsonrpc/unmarshal_error_test.go | 228 + private/protocol/rest/unmarshal.go | 67 +- private/protocol/restjson/restjson.go | 65 +- private/protocol/restjson/unmarshal_error.go | 134 + .../protocol/restjson/unmarshal_error_test.go | 196 + private/protocol/unmarshal.go | 6 + private/protocol/unmarshal_error.go | 65 + service/accessanalyzer/api.go | 654 +- service/accessanalyzer/errors.go | 14 + service/accessanalyzer/service.go | 5 +- service/acm/api.go | 798 +- service/acm/errors.go | 19 + service/acm/service.go | 5 +- service/acmpca/api.go | 1242 +- service/acmpca/errors.go | 25 + service/acmpca/service.go | 5 +- service/alexaforbusiness/api.go | 1287 +- service/alexaforbusiness/errors.go | 22 + service/alexaforbusiness/service.go | 5 +- service/amplify/api.go | 799 +- service/amplify/errors.go | 14 + service/amplify/service.go | 5 +- service/apigateway/api.go | 1683 +- service/apigateway/errors.go | 14 + service/apigateway/service.go | 5 +- service/apigatewaymanagementapi/api.go | 237 +- service/apigatewaymanagementapi/errors.go | 11 + service/apigatewaymanagementapi/service.go | 5 +- service/apigatewayv2/api.go | 806 +- service/apigatewayv2/errors.go | 12 + service/apigatewayv2/service.go | 5 +- service/appconfig/api.go | 459 +- service/appconfig/errors.go | 11 + service/appconfig/service.go | 5 +- service/applicationautoscaling/api.go | 512 +- service/applicationautoscaling/errors.go | 14 + service/applicationautoscaling/service.go | 5 +- service/applicationdiscoveryservice/api.go | 842 +- service/applicationdiscoveryservice/errors.go | 16 + .../applicationdiscoveryservice/service.go | 5 +- service/applicationinsights/api.go | 614 +- service/applicationinsights/errors.go | 14 + service/applicationinsights/service.go | 5 +- service/appmesh/api.go | 1010 +- service/appmesh/errors.go | 17 + service/appmesh/service.go | 5 +- service/appstream/api.go | 1000 +- service/appstream/errors.go | 18 + service/appstream/service.go | 5 +- service/appsync/api.go | 1092 +- service/appsync/errors.go | 18 + service/appsync/service.go | 5 +- service/athena/api.go | 358 +- service/athena/errors.go | 11 + service/athena/service.go | 5 +- service/augmentedairuntime/api.go | 330 +- service/augmentedairuntime/errors.go | 12 + service/augmentedairuntime/service.go | 5 +- service/autoscalingplans/api.go | 394 +- service/autoscalingplans/errors.go | 13 + service/autoscalingplans/service.go | 5 +- service/backup/api.go | 944 +- service/backup/errors.go | 15 + service/backup/service.go | 5 +- service/batch/api.go | 210 +- service/batch/errors.go | 9 + service/batch/service.go | 5 +- service/budgets/api.go | 628 +- service/budgets/errors.go | 15 + service/budgets/service.go | 5 +- service/chime/api.go | 2085 +- service/chime/errors.go | 18 + service/chime/service.go | 5 +- service/cloud9/api.go | 518 +- service/cloud9/errors.go | 14 + service/cloud9/service.go | 5 +- service/clouddirectory/api.go | 3552 ++- service/clouddirectory/errors.go | 42 + service/clouddirectory/service.go | 5 +- service/cloudhsm/api.go | 319 +- service/cloudhsm/errors.go | 10 + service/cloudhsm/service.go | 5 +- service/cloudhsmv2/api.go | 436 +- service/cloudhsmv2/errors.go | 12 + service/cloudhsmv2/service.go | 5 +- service/cloudsearchdomain/api.go | 131 +- service/cloudsearchdomain/errors.go | 9 + service/cloudsearchdomain/service.go | 5 +- service/cloudtrail/api.go | 2830 +- service/cloudtrail/errors.go | 49 + service/cloudtrail/service.go | 5 +- service/cloudwatchevents/api.go | 695 +- service/cloudwatchevents/errors.go | 16 + service/cloudwatchevents/service.go | 5 +- service/cloudwatchlogs/api.go | 921 +- service/cloudwatchlogs/errors.go | 18 + service/cloudwatchlogs/service.go | 5 +- service/codebuild/api.go | 434 +- service/codebuild/errors.go | 12 + service/codebuild/service.go | 5 +- service/codecommit/api.go | 21892 +++++++++++----- service/codecommit/errors.go | 188 + service/codecommit/service.go | 5 +- service/codedeploy/api.go | 9305 +++++-- service/codedeploy/errors.go | 115 + service/codedeploy/service.go | 5 +- service/codeguruprofiler/api.go | 427 +- service/codeguruprofiler/errors.go | 13 + service/codeguruprofiler/service.go | 5 +- service/codegurureviewer/api.go | 386 +- service/codegurureviewer/errors.go | 13 + service/codegurureviewer/service.go | 5 +- service/codepipeline/api.go | 2302 +- service/codepipeline/errors.go | 39 + service/codepipeline/service.go | 5 +- service/codestar/api.go | 832 +- service/codestar/errors.go | 20 + service/codestar/service.go | 5 +- service/codestarconnections/api.go | 126 +- service/codestarconnections/errors.go | 9 + service/codestarconnections/service.go | 5 +- service/codestarnotifications/api.go | 543 +- service/codestarnotifications/errors.go | 15 + service/codestarnotifications/service.go | 5 +- service/cognitoidentity/api.go | 924 +- service/cognitoidentity/errors.go | 18 + service/cognitoidentity/service.go | 5 +- service/cognitoidentityprovider/api.go | 4025 ++- service/cognitoidentityprovider/errors.go | 44 + service/cognitoidentityprovider/service.go | 5 +- service/cognitosync/api.go | 959 +- service/cognitosync/errors.go | 20 + service/cognitosync/service.go | 5 +- service/comprehend/api.go | 1466 +- service/comprehend/errors.go | 23 + service/comprehend/service.go | 5 +- service/comprehendmedical/api.go | 604 +- service/comprehendmedical/errors.go | 15 + service/comprehendmedical/service.go | 5 +- service/computeoptimizer/api.go | 550 +- service/computeoptimizer/errors.go | 15 + service/computeoptimizer/service.go | 5 +- service/configservice/api.go | 3871 ++- service/configservice/errors.go | 58 + service/configservice/service.go | 5 +- service/connect/api.go | 977 +- service/connect/errors.go | 18 + service/connect/service.go | 5 +- service/connectparticipant/api.go | 277 +- service/connectparticipant/errors.go | 11 + service/connectparticipant/service.go | 5 +- service/costandusagereportservice/api.go | 259 +- service/costandusagereportservice/errors.go | 11 + service/costandusagereportservice/service.go | 5 +- service/costexplorer/api.go | 602 +- service/costexplorer/errors.go | 15 + service/costexplorer/service.go | 5 +- service/databasemigrationservice/api.go | 1818 +- service/databasemigrationservice/errors.go | 27 + service/databasemigrationservice/service.go | 5 +- service/dataexchange/api.go | 640 +- service/dataexchange/errors.go | 14 + service/dataexchange/service.go | 5 +- service/datapipeline/api.go | 468 +- service/datapipeline/errors.go | 12 + service/datapipeline/service.go | 5 +- service/datasync/api.go | 278 +- service/datasync/errors.go | 9 + service/datasync/service.go | 5 +- service/dax/api.go | 1924 +- service/dax/errors.go | 33 + service/dax/service.go | 5 +- service/detective/api.go | 374 +- service/detective/errors.go | 12 + service/detective/service.go | 5 +- service/devicefarm/api.go | 1441 +- service/devicefarm/errors.go | 19 + service/devicefarm/service.go | 5 +- service/directconnect/api.go | 576 +- service/directconnect/errors.go | 11 + service/directconnect/service.go | 5 +- service/directoryservice/api.go | 2624 +- service/directoryservice/errors.go | 38 + service/directoryservice/service.go | 5 +- service/dlm/api.go | 315 +- service/dlm/errors.go | 11 + service/dlm/service.go | 5 +- service/dynamodb/api.go | 2249 +- service/dynamodb/cust_example_test.go | 23 + service/dynamodb/errors.go | 32 + service/dynamodb/service.go | 5 +- service/dynamodbstreams/api.go | 337 +- service/dynamodbstreams/errors.go | 12 + service/dynamodbstreams/service.go | 5 +- service/ebs/api.go | 135 +- service/ebs/errors.go | 9 + service/ebs/service.go | 5 +- service/ec2instanceconnect/api.go | 301 +- service/ec2instanceconnect/errors.go | 12 + service/ec2instanceconnect/service.go | 5 +- service/ecr/api.go | 1688 +- service/ecr/errors.go | 31 + service/ecr/service.go | 5 +- service/ecs/api.go | 1786 +- service/ecs/errors.go | 30 + service/ecs/service.go | 5 +- service/efs/api.go | 1527 +- service/efs/errors.go | 28 + service/efs/service.go | 5 +- service/eks/api.go | 926 +- service/eks/errors.go | 18 + service/eks/service.go | 5 +- service/elasticinference/api.go | 194 +- service/elasticinference/errors.go | 10 + service/elasticinference/service.go | 5 +- service/elasticsearchservice/api.go | 670 +- service/elasticsearchservice/errors.go | 15 + service/elasticsearchservice/service.go | 5 +- service/elastictranscoder/api.go | 575 +- service/elastictranscoder/errors.go | 14 + service/elastictranscoder/service.go | 5 +- service/emr/api.go | 321 +- service/emr/errors.go | 10 + service/emr/service.go | 5 +- service/eventbridge/api.go | 695 +- service/eventbridge/errors.go | 16 + service/eventbridge/service.go | 5 +- service/firehose/api.go | 507 +- service/firehose/errors.go | 14 + service/firehose/service.go | 5 +- service/fms/api.go | 492 +- service/fms/errors.go | 13 + service/fms/service.go | 5 +- service/forecastqueryservice/api.go | 296 +- service/forecastqueryservice/errors.go | 12 + service/forecastqueryservice/service.go | 5 +- service/forecastservice/api.go | 538 +- service/forecastservice/errors.go | 13 + service/forecastservice/service.go | 5 +- service/frauddetector/api.go | 500 +- service/frauddetector/errors.go | 11 + service/frauddetector/service.go | 5 +- service/fsx/api.go | 1420 +- service/fsx/errors.go | 27 + service/fsx/service.go | 5 +- service/gamelift/api.go | 1640 +- service/gamelift/errors.go | 21 + service/gamelift/service.go | 5 +- service/glacier/api.go | 842 +- service/glacier/errors.go | 15 + service/glacier/service.go | 5 +- service/globalaccelerator/api.go | 902 +- service/globalaccelerator/errors.go | 20 + service/globalaccelerator/service.go | 5 +- service/glue/api.go | 2556 +- service/glue/errors.go | 29 + service/glue/service.go | 5 +- service/greengrass/api.go | 470 +- service/greengrass/errors.go | 9 + service/greengrass/service.go | 5 +- service/groundstation/api.go | 372 +- service/groundstation/errors.go | 10 + service/groundstation/service.go | 5 +- service/guardduty/api.go | 420 +- service/guardduty/errors.go | 9 + service/guardduty/service.go | 5 +- service/health/api.go | 224 +- service/health/errors.go | 10 + service/health/service.go | 5 +- service/imagebuilder/api.go | 1589 +- service/imagebuilder/errors.go | 23 + service/imagebuilder/service.go | 5 +- service/inspector/api.go | 1120 +- service/inspector/errors.go | 18 + service/inspector/service.go | 5 +- service/iot/api.go | 4160 ++- service/iot/errors.go | 36 + service/iot/service.go | 5 +- service/iot1clickdevicesservice/api.go | 530 +- service/iot1clickdevicesservice/errors.go | 14 + service/iot1clickdevicesservice/service.go | 5 +- service/iot1clickprojects/api.go | 426 +- service/iot1clickprojects/errors.go | 12 + service/iot1clickprojects/service.go | 5 +- service/iotanalytics/api.go | 812 +- service/iotanalytics/errors.go | 14 + service/iotanalytics/service.go | 5 +- service/iotdataplane/api.go | 638 +- service/iotdataplane/errors.go | 17 + service/iotdataplane/service.go | 5 +- service/iotevents/api.go | 725 +- service/iotevents/errors.go | 16 + service/iotevents/service.go | 5 +- service/ioteventsdata/api.go | 330 +- service/ioteventsdata/errors.go | 12 + service/ioteventsdata/service.go | 5 +- service/iotjobsdataplane/api.go | 462 +- service/iotjobsdataplane/errors.go | 14 + service/iotjobsdataplane/service.go | 5 +- service/iotsecuretunneling/api.go | 136 +- service/iotsecuretunneling/errors.go | 9 + service/iotsecuretunneling/service.go | 5 +- service/iotthingsgraph/api.go | 727 +- service/iotthingsgraph/errors.go | 14 + service/iotthingsgraph/service.go | 5 +- service/kafka/api.go | 700 +- service/kafka/errors.go | 15 + service/kafka/service.go | 5 +- service/kendra/api.go | 824 +- service/kendra/errors.go | 17 + service/kendra/service.go | 5 +- service/kinesis/api.go | 851 +- service/kinesis/errors.go | 21 + service/kinesis/eventstream_test.go | 8 +- service/kinesis/service.go | 5 +- service/kinesisanalytics/api.go | 904 +- service/kinesisanalytics/errors.go | 19 + service/kinesisanalytics/service.go | 5 +- service/kinesisanalyticsv2/api.go | 1045 +- service/kinesisanalyticsv2/errors.go | 20 + service/kinesisanalyticsv2/service.go | 5 +- service/kinesisvideo/api.go | 955 +- service/kinesisvideo/errors.go | 20 + service/kinesisvideo/service.go | 5 +- service/kinesisvideoarchivedmedia/api.go | 521 +- service/kinesisvideoarchivedmedia/errors.go | 15 + service/kinesisvideoarchivedmedia/service.go | 5 +- service/kinesisvideomedia/api.go | 358 +- service/kinesisvideomedia/errors.go | 13 + service/kinesisvideomedia/service.go | 5 +- service/kinesisvideosignalingchannels/api.go | 366 +- .../kinesisvideosignalingchannels/errors.go | 13 + .../kinesisvideosignalingchannels/service.go | 5 +- service/kms/api.go | 2921 ++- service/kms/errors.go | 40 + service/kms/service.go | 5 +- service/lakeformation/api.go | 450 +- service/lakeformation/errors.go | 13 + service/lakeformation/service.go | 5 +- service/lambda/api.go | 2711 +- service/lambda/errors.go | 34 + service/lambda/service.go | 5 +- service/lexmodelbuildingservice/api.go | 807 +- service/lexmodelbuildingservice/errors.go | 14 + service/lexmodelbuildingservice/service.go | 5 +- service/lexruntimeservice/api.go | 713 +- service/lexruntimeservice/errors.go | 18 + service/lexruntimeservice/service.go | 5 +- service/licensemanager/api.go | 770 +- service/licensemanager/errors.go | 17 + service/licensemanager/service.go | 5 +- service/lightsail/api.go | 2114 +- service/lightsail/errors.go | 14 + service/lightsail/service.go | 5 +- service/machinelearning/api.go | 687 +- service/machinelearning/errors.go | 15 + service/machinelearning/service.go | 5 +- service/macie/api.go | 298 +- service/macie/errors.go | 11 + service/macie/service.go | 5 +- service/managedblockchain/api.go | 731 +- service/managedblockchain/errors.go | 16 + service/managedblockchain/service.go | 5 +- service/marketplacecatalog/api.go | 527 +- service/marketplacecatalog/errors.go | 15 + service/marketplacecatalog/service.go | 5 +- service/marketplacecommerceanalytics/api.go | 67 +- .../marketplacecommerceanalytics/errors.go | 8 + .../marketplacecommerceanalytics/service.go | 5 +- service/marketplaceentitlementservice/api.go | 179 +- .../marketplaceentitlementservice/errors.go | 10 + .../marketplaceentitlementservice/service.go | 5 +- service/marketplacemetering/api.go | 920 +- service/marketplacemetering/errors.go | 22 + service/marketplacemetering/service.go | 5 +- service/mediaconnect/api.go | 738 +- service/mediaconnect/errors.go | 16 + service/mediaconnect/service.go | 5 +- service/mediaconvert/api.go | 680 +- service/mediaconvert/errors.go | 13 + service/mediaconvert/service.go | 5 +- service/medialive/api.go | 1189 +- service/medialive/errors.go | 16 + service/medialive/service.go | 5 +- service/mediapackage/api.go | 540 +- service/mediapackage/errors.go | 13 + service/mediapackage/service.go | 5 +- service/mediapackagevod/api.go | 500 +- service/mediapackagevod/errors.go | 13 + service/mediapackagevod/service.go | 5 +- service/mediastore/api.go | 487 +- service/mediastore/errors.go | 13 + service/mediastore/service.go | 5 +- service/mediastoredata/api.go | 263 +- service/mediastoredata/errors.go | 11 + service/mediastoredata/service.go | 5 +- service/mediatailor/api.go | 71 +- service/mediatailor/errors.go | 8 + service/mediatailor/service.go | 5 +- service/migrationhub/api.go | 794 +- service/migrationhub/errors.go | 16 + service/migrationhub/service.go | 5 +- service/migrationhubconfig/api.go | 318 +- service/migrationhubconfig/errors.go | 12 + service/migrationhubconfig/service.go | 5 +- service/mobile/api.go | 600 +- service/mobile/errors.go | 15 + service/mobile/service.go | 5 +- service/mobileanalytics/api.go | 61 +- service/mobileanalytics/errors.go | 8 + service/mobileanalytics/service.go | 5 +- service/mq/api.go | 571 +- service/mq/errors.go | 13 + service/mq/service.go | 5 +- service/mturk/api.go | 351 +- service/mturk/errors.go | 9 + service/mturk/service.go | 5 +- service/networkmanager/api.go | 835 +- service/networkmanager/errors.go | 14 + service/networkmanager/service.go | 5 +- service/opsworks/api.go | 538 +- service/opsworks/errors.go | 9 + service/opsworks/service.go | 5 +- service/opsworkscm/api.go | 493 +- service/opsworkscm/errors.go | 13 + service/opsworkscm/service.go | 5 +- service/organizations/api.go | 3951 ++- service/organizations/errors.go | 49 + service/organizations/service.go | 5 +- service/outposts/api.go | 331 +- service/outposts/errors.go | 12 + service/outposts/service.go | 5 +- service/personalize/api.go | 624 +- service/personalize/errors.go | 13 + service/personalize/service.go | 5 +- service/personalizeevents/api.go | 60 +- service/personalizeevents/errors.go | 8 + service/personalizeevents/service.go | 5 +- service/personalizeruntime/api.go | 127 +- service/personalizeruntime/errors.go | 9 + service/personalizeruntime/service.go | 5 +- service/pi/api.go | 185 +- service/pi/errors.go | 10 + service/pi/service.go | 5 +- service/pinpoint/api.go | 1794 +- service/pinpoint/errors.go | 13 + service/pinpoint/service.go | 5 +- service/pinpointemail/api.go | 888 +- service/pinpointemail/errors.go | 17 + service/pinpointemail/service.go | 5 +- service/pinpointsmsvoice/api.go | 422 +- service/pinpointsmsvoice/errors.go | 13 + service/pinpointsmsvoice/service.go | 5 +- service/polly/api.go | 1307 +- service/polly/errors.go | 28 + service/polly/service.go | 5 +- service/pricing/api.go | 318 +- service/pricing/errors.go | 12 + service/pricing/service.go | 5 +- service/qldb/api.go | 451 +- service/qldb/errors.go | 13 + service/qldb/service.go | 5 +- service/qldbsession/api.go | 299 +- service/qldbsession/errors.go | 12 + service/qldbsession/service.go | 5 +- service/quicksight/api.go | 2014 +- service/quicksight/errors.go | 24 + service/quicksight/service.go | 5 +- service/ram/api.go | 1669 +- service/ram/errors.go | 28 + service/ram/service.go | 5 +- service/rdsdataservice/api.go | 410 +- service/rdsdataservice/errors.go | 13 + service/rdsdataservice/service.go | 5 +- service/rekognition/api.go | 1585 +- service/rekognition/errors.go | 24 + service/rekognition/service.go | 5 +- service/resourcegroups/api.go | 561 +- service/resourcegroups/errors.go | 14 + service/resourcegroups/service.go | 5 +- service/resourcegroupstaggingapi/api.go | 444 +- service/resourcegroupstaggingapi/errors.go | 13 + service/resourcegroupstaggingapi/service.go | 5 +- service/robomaker/api.go | 895 +- service/robomaker/errors.go | 16 + service/robomaker/service.go | 5 +- service/route53domains/api.go | 548 +- service/route53domains/errors.go | 13 + service/route53domains/service.go | 5 +- service/route53resolver/api.go | 1028 +- service/route53resolver/errors.go | 20 + service/route53resolver/service.go | 5 +- service/s3/api.go | 15 +- service/sagemaker/api.go | 578 +- service/sagemaker/errors.go | 11 + service/sagemaker/service.go | 5 +- service/sagemakerruntime/api.go | 247 +- service/sagemakerruntime/errors.go | 11 + service/sagemakerruntime/service.go | 5 +- service/savingsplans/api.go | 286 +- service/savingsplans/errors.go | 11 + service/savingsplans/service.go | 5 +- service/schemas/api.go | 890 +- service/schemas/errors.go | 16 + service/schemas/service.go | 5 +- service/secretsmanager/api.go | 829 +- service/secretsmanager/errors.go | 18 + service/secretsmanager/service.go | 5 +- service/securityhub/api.go | 822 +- service/securityhub/errors.go | 14 + service/securityhub/service.go | 5 +- .../serverlessapplicationrepository/api.go | 522 +- .../serverlessapplicationrepository/errors.go | 13 + .../service.go | 5 +- service/servicecatalog/api.go | 957 +- service/servicecatalog/errors.go | 15 + service/servicecatalog/service.go | 5 +- service/servicediscovery/api.go | 798 +- service/servicediscovery/errors.go | 18 + service/servicediscovery/service.go | 5 +- service/servicequotas/api.go | 1107 +- service/servicequotas/errors.go | 22 + service/servicequotas/service.go | 5 +- service/sesv2/api.go | 993 +- service/sesv2/errors.go | 18 + service/sesv2/service.go | 5 +- service/sfn/api.go | 1653 +- service/sfn/errors.go | 30 + service/sfn/service.go | 5 +- service/shield/api.go | 916 +- service/shield/errors.go | 20 + service/shield/service.go | 5 +- service/signer/api.go | 506 +- service/signer/errors.go | 14 + service/signer/service.go | 5 +- service/sms/api.go | 936 +- service/sms/errors.go | 18 + service/sms/service.go | 5 +- service/snowball/api.go | 646 +- service/snowball/errors.go | 16 + service/snowball/service.go | 5 +- service/ssm/api.go | 8151 +++++- service/ssm/errors.go | 120 + service/ssm/service.go | 5 +- service/sso/api.go | 267 +- service/sso/errors.go | 11 + service/sso/service.go | 5 +- service/ssooidc/api.go | 719 +- service/ssooidc/errors.go | 19 + service/ssooidc/service.go | 5 +- service/storagegateway/api.go | 640 +- service/storagegateway/errors.go | 10 + service/storagegateway/service.go | 5 +- service/support/api.go | 611 +- service/support/errors.go | 16 + service/support/service.go | 5 +- service/swf/api.go | 852 +- service/swf/errors.go | 17 + service/swf/service.go | 5 +- service/textract/api.go | 807 +- service/textract/errors.go | 20 + service/textract/service.go | 5 +- service/transcribeservice/api.go | 426 +- service/transcribeservice/errors.go | 12 + service/transcribeservice/service.go | 5 +- service/transcribestreamingservice/api.go | 129 +- service/transcribestreamingservice/errors.go | 11 + .../eventstream_test.go | 8 +- service/transcribestreamingservice/service.go | 5 +- service/transfer/api.go | 605 +- service/transfer/errors.go | 14 + service/transfer/service.go | 5 +- service/translate/api.go | 731 +- service/translate/errors.go | 18 + service/translate/service.go | 5 +- service/waf/api.go | 2463 +- service/waf/errors.go | 25 + service/waf/service.go | 5 +- service/wafregional/api.go | 2100 +- service/wafregional/errors.go | 26 + service/wafregional/service.go | 5 +- service/wafv2/api.go | 1109 +- service/wafv2/errors.go | 19 + service/wafv2/service.go | 5 +- service/workdocs/api.go | 1994 +- service/workdocs/errors.go | 32 + service/workdocs/service.go | 5 +- service/worklink/api.go | 701 +- service/worklink/errors.go | 13 + service/worklink/service.go | 5 +- service/workmail/api.go | 1353 +- service/workmail/errors.go | 23 + service/workmail/service.go | 5 +- service/workmailmessageflow/api.go | 62 +- service/workmailmessageflow/errors.go | 8 + service/workmailmessageflow/service.go | 5 +- service/workspaces/api.go | 1107 +- service/workspaces/errors.go | 21 + service/workspaces/service.go | 5 +- service/xray/api.go | 290 +- service/xray/errors.go | 10 + service/xray/service.go | 5 +- 630 files changed, 176142 insertions(+), 40630 deletions(-) delete mode 100644 example/service/dynamodb/transactWriteItems/README.md delete mode 100644 example/service/dynamodb/transactWriteItems/error_handler.go delete mode 100644 example/service/dynamodb/transactWriteItems/error_handler_test.go delete mode 100644 private/protocol/jsonrpc/unmarshal_err_test.go create mode 100644 private/protocol/jsonrpc/unmarshal_error.go create mode 100644 private/protocol/jsonrpc/unmarshal_error_test.go create mode 100644 private/protocol/restjson/unmarshal_error.go create mode 100644 private/protocol/unmarshal_error.go create mode 100644 service/dynamodb/cust_example_test.go diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 04ce9691579..89132187b7c 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -1,4 +1,6 @@ ### SDK Features +* Add generated error types for JSONRPC and RESTJSON APIs + * Adds generated error types for APIs using JSONRPC and RESTJSON protocols. This allows you to retrieve additional error metadata within an error message that was previously unavailable. For example, Amazon DynamoDB's TransactWriteItems operation can return a `TransactionCanceledException` continuing detailed `CancellationReasons` member. This data is now available by type asserting the error returned from the operation call to `TransactionCanceledException` type. * `service/dynamodb/dynamodbattribute`: Go 1.9+, Add caching of struct serialization ([#3070](https://github.com/aws/aws-sdk-go/pull/3070)) * For Go 1.9 and above, adds struct field caching to the SDK's DynamoDB AttributeValue marshalers and unmarshalers. This significantly reduces time, and overall allocations of the (un)marshalers by caching the reflected structure's fields. This should improve the performance of applications using DynamoDB AttributeValue (un)marshalers. diff --git a/example/service/dynamodb/transactWriteItems/README.md b/example/service/dynamodb/transactWriteItems/README.md deleted file mode 100644 index 23ac92593ab..00000000000 --- a/example/service/dynamodb/transactWriteItems/README.md +++ /dev/null @@ -1,66 +0,0 @@ -# AWS DynamoDB Transaction Error Aware Client for Go -The client provides a workaround for [this bug](https://github.com/aws/aws-sdk-go/issues/2318) - -## How to use -This example shows how to use the client to read transaction error cancellation reasons. -```go - sess := session.Must(session.NewSession()) - svc := NewTxErrorAwareDynamoDBClient(sess) - - input := &dynamodb.TransactWriteItemsInput{ - //... - } - - if _, err := svc.TransactWriteItems(input); err != nil { - txErr := err.(TxRequestFailure) - fmt.Println(txErr.CancellationReasons()) - } -``` - -Sample response of the Println statement -``` -{com.amazonaws.dynamodb.v20120810#TransactionCanceledException Transaction cancelled, please refer cancellation reasons for specific reasons [ConditionalCheckFailed, None, None] [{ - Code: "ConditionalCheckFailed", - Item: { - AlbumTitle: { - S: "========== 43" - }, - Artist: { - S: "Acme Band 14" - }, - Year: { - N: "2017" - }, - SongTitle: { - S: "Happy Day 12" - } - }, - Message: "The conditional request failed" -} { - Code: "None" -} { - Code: "None" -}]} -[{ - Code: "ConditionalCheckFailed", - Item: { - AlbumTitle: { - S: "========== 43" - }, - Artist: { - S: "Acme Band 14" - }, - Year: { - N: "2017" - }, - SongTitle: { - S: "Happy Day 12" - } - }, - Message: "The conditional request failed" -} { - Code: "None" -} { - Code: "None" -}] -``` diff --git a/example/service/dynamodb/transactWriteItems/error_handler.go b/example/service/dynamodb/transactWriteItems/error_handler.go deleted file mode 100644 index 1ac48fd3a01..00000000000 --- a/example/service/dynamodb/transactWriteItems/error_handler.go +++ /dev/null @@ -1,121 +0,0 @@ -// +build example - -package transaction - -import ( - "encoding/json" - "fmt" - "io" - "strings" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/client" - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" - "github.com/aws/aws-sdk-go/service/dynamodb" -) - -const TxAwareErrorUnmarshallerName = "awssdk.jsonrpc.TxAwareErrorUnmarshaller" - -// New creates a new instance of the DynamoDB client with a session. -// The client's behaviour is same as what is returned by dynamodb.New(), except for richer error reasons. -func NewTxErrorAwareDynamoDBClient(p client.ConfigProvider, cfgs ...*aws.Config) *dynamodb.DynamoDB { - c := dynamodb.New(p, cfgs...) - // NOTE: Ignore if swap failed. Returning nil might fail app startup which is worse than inadequate error details. - c.Handlers.UnmarshalError.Swap(jsonrpc.UnmarshalErrorHandler.Name, request.NamedHandler{ - Name: TxAwareErrorUnmarshallerName, - Fn: TxAwareUnmarshalError, - }) - return c -} - -// A RequestFailure is an interface to extract request failure information from an Error. -type TxRequestFailure interface { - awserr.RequestFailure - CancellationReasons() []dynamodb.CancellationReason -} - -// TxAwareUnmarshalError unmarshals an error response for a JSON RPC service. -// This is exactly same as jsonrpc.UnmarshalError, except for attempt to parse CancellationReasons -func TxAwareUnmarshalError(req *request.Request) { - defer req.HTTPResponse.Body.Close() - - var jsonErr jsonTxErrorResponse - err := json.NewDecoder(req.HTTPResponse.Body).Decode(&jsonErr) - if err == io.EOF { - req.Error = awserr.NewRequestFailure( - awserr.New(request.ErrCodeSerialization, req.HTTPResponse.Status, nil), - req.HTTPResponse.StatusCode, - req.RequestID, - ) - return - } else if err != nil { - req.Error = awserr.NewRequestFailure( - awserr.New(request.ErrCodeSerialization, - "failed decoding JSON RPC error response", err), - req.HTTPResponse.StatusCode, - req.RequestID, - ) - return - } - - codes := strings.SplitN(jsonErr.Code, "#", 2) - req.Error = newTxRequestError( - awserr.New(codes[len(codes)-1], jsonErr.Message, nil), - req.HTTPResponse.StatusCode, - req.RequestID, - jsonErr.CancellationReasons, - ) -} - -type jsonTxErrorResponse struct { - Code string `json:"__type"` - Message string `json:"message"` - CancellationReasons []dynamodb.CancellationReason `json:"CancellationReasons"` -} - -// So that the Error interface type can be included as an anonymous field -// in the requestError struct and not conflict with the error.Error() method. -type awsError awserr.Error - -// A TxRequestError wraps a request or service error. -// TxRequestError is awserr.requestError with additional cancellationReasons field -type txRequestError struct { - awsError - statusCode int - requestID string - cancellationReasons []dynamodb.CancellationReason -} - -func newTxRequestError(err awserr.Error, statusCode int, requestID string, cancellationReasons []dynamodb.CancellationReason) TxRequestFailure { - return &txRequestError{ - awsError: err, - statusCode: statusCode, - requestID: requestID, - cancellationReasons: cancellationReasons, - } -} - -func (r txRequestError) Error() string { - extra := fmt.Sprintf("status code: %d, request id: %s", - r.statusCode, r.requestID) - return awserr.SprintError(r.Code(), r.Message(), extra, r.OrigErr()) -} - -func (r txRequestError) String() string { - return r.Error() -} - -func (r txRequestError) StatusCode() int { - return r.statusCode -} - -func (r txRequestError) RequestID() string { - return r.requestID -} - -func (r txRequestError) CancellationReasons() []dynamodb.CancellationReason { - return r.cancellationReasons -} - diff --git a/example/service/dynamodb/transactWriteItems/error_handler_test.go b/example/service/dynamodb/transactWriteItems/error_handler_test.go deleted file mode 100644 index df393cf7814..00000000000 --- a/example/service/dynamodb/transactWriteItems/error_handler_test.go +++ /dev/null @@ -1,171 +0,0 @@ -// +build example - -package transaction - -import ( - "bytes" - "encoding/json" - "fmt" - "net/http" - "reflect" - "testing" - - "github.com/aws/aws-sdk-go/aws" - "github.com/aws/aws-sdk-go/service/dynamodb" - - "github.com/aws/aws-sdk-go/aws/awserr" - - "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/awstesting/unit" -) - -const errStatusCode = 400 -const requestId = "requestId1" - -func TestNewTxErrorAwareDynamoDBClient(t *testing.T) { - sess := unit.Session - svc := NewTxErrorAwareDynamoDBClient(sess) - - if svc.Handlers.UnmarshalError.Len() != 1 { - t.Errorf("expected 1 UnmarshallErrorHandler, got %v", svc.Handlers.UnmarshalError.Len()) - } - if svc.Handlers.UnmarshalError.Swap(TxAwareErrorUnmarshallerName, request.NamedHandler{}) == false { - t.Errorf("expected to contain %s, got none", TxAwareErrorUnmarshallerName) - } -} - -func TestTxAwareUnmarshalError(t *testing.T) { - input := map[string]struct { - enc interface{} - err TxRequestFailure - }{ - "Error response without CancellationReasons": { - jsonErrorResponse{ - Code: "com.amazonaws.dynamodb.v20120810#ResourceNotFoundException", - Message: "Requested resource not found", - }, - txRequestError{ - awsError: awserr.New("ResourceNotFoundException", "Requested resource not found", nil), - statusCode: errStatusCode, - requestID: requestId, - cancellationReasons: nil, - }, - }, - "Error response with empty CancellationReasons": { - jsonTxErrorResponse{ - Code: "com.amazonaws.dynamodb.v20120810#TransactionCanceledException", - Message: "Transaction cancelled, please refer cancellation reasons for specific reasons [ConditionalCheckFailed, None, None]", - CancellationReasons: []dynamodb.CancellationReason{}, - }, - txRequestError{ - awsError: awserr.New("TransactionCanceledException", "Transaction cancelled, please refer cancellation reasons for specific reasons [ConditionalCheckFailed, None, None]", nil), - statusCode: errStatusCode, - requestID: requestId, - cancellationReasons: []dynamodb.CancellationReason{}, - }, - }, - "Error response with non-empty CancellationReasons": { - jsonTxErrorResponse{ - Code: "com.amazonaws.dynamodb.v20120810#TransactionCanceledException", - Message: "Transaction cancelled, please refer cancellation reasons for specific reasons [ConditionalCheckFailed, None, None]", - CancellationReasons: []dynamodb.CancellationReason{ - { - Code: aws.String("ConditionalCheckFailed"), - Item: map[string]*dynamodb.AttributeValue{ - "hk": {S: aws.String("hkVal1")}, - "attr": {S: aws.String("attrVal1")}, - }, - Message: aws.String("The conditional request failed"), - }, - }, - }, - txRequestError{ - awsError: awserr.New("TransactionCanceledException", "Transaction cancelled, please refer cancellation reasons for specific reasons [ConditionalCheckFailed, None, None]", nil), - statusCode: errStatusCode, - requestID: requestId, - cancellationReasons: []dynamodb.CancellationReason{ - { - Code: aws.String("ConditionalCheckFailed"), - Item: map[string]*dynamodb.AttributeValue{ - "hk": {S: aws.String("hkVal1")}, - "attr": {S: aws.String("attrVal1")}, - }, - Message: aws.String("The conditional request failed"), - }, - }, - }, - }, - } - - for name, in := range input { - t.Run(name, func(t *testing.T) { - if err := validateUnmarshallError(in.enc, in.err); err != nil { - t.Errorf("%s: expected nil, got %v", name, err) - } - }) - } -} - -func validateUnmarshallError(enc interface{}, err TxRequestFailure) error { - req := &request.Request{ - HTTPResponse: &http.Response{ - StatusCode: errStatusCode, - Body: newBufferCloser(encode(enc)), - }, - RequestID: requestId, - } - TxAwareUnmarshalError(req) - - if aerr, ok := req.Error.(TxRequestFailure); ok { - if err.RequestID() != aerr.RequestID() { - return fmt.Errorf("expected %v, got %v", err.RequestID(), aerr.RequestID()) - } - if err.StatusCode() != aerr.StatusCode() { - return fmt.Errorf("expected %v, got %v", err.StatusCode(), aerr.StatusCode()) - } - if err.Message() != aerr.Message() { - return fmt.Errorf("expected %v, got %v", err.Message(), aerr.Message()) - } - if err.Code() != aerr.Code() { - return fmt.Errorf("expected %v, got %v", err.Code(), aerr.Code()) - } - if err.OrigErr() != aerr.OrigErr() { - return fmt.Errorf("expected %v, got %v", err.OrigErr(), aerr.OrigErr()) - } - if !reflect.DeepEqual(err.Error(), aerr.Error()) { - return fmt.Errorf("expected %v, got %v", err.Error(), aerr.Error()) - } - if !reflect.DeepEqual(err.CancellationReasons(), aerr.CancellationReasons()) { - return fmt.Errorf("expected %v, got %v", err.CancellationReasons(), aerr.CancellationReasons()) - } - } else { - return fmt.Errorf("expected type 'TxRequestFailure', got %T", req.Error) - } - return nil -} - -func encode(v interface{}) []byte { - var buf bytes.Buffer - json.NewEncoder(&buf).Encode(&v) - return buf.Bytes() -} - -// Implementation of io.ReadCloser backed by bytes.Buffer -type bufferCloser struct { - bytes.Buffer -} - -func newBufferCloser(data []byte) *bufferCloser { - return &bufferCloser{*bytes.NewBuffer(data)} -} - -func (b *bufferCloser) Close() error { - b.Reset() - return nil -} - -// Define error response without the cancellation reason -type jsonErrorResponse struct { - Code string `json:"__type"` - Message string `json:"message"` -} diff --git a/private/model/api/api.go b/private/model/api/api.go index 77f1366eea0..0a56067ce75 100644 --- a/private/model/api/api.go +++ b/private/model/api/api.go @@ -64,6 +64,8 @@ type API struct { EndpointDiscoveryOp *Operation HasEndpointARN bool `json:"-"` + + WithGeneratedTypedErrors bool } // A Metadata is the metadata about an API's definition. @@ -282,20 +284,27 @@ func (a *API) importsGoCode() string { // A tplAPI is the top level template for the API var tplAPI = template.Must(template.New("api").Parse(` -{{ range $_, $o := .OperationList }} -{{ $o.GoCode }} +{{- range $_, $o := .OperationList }} -{{ end }} + {{ $o.GoCode }} +{{- end }} -{{ range $_, $s := .ShapeList }} -{{ if and $s.IsInternal (eq $s.Type "structure") }}{{ $s.GoCode }}{{ end }} +{{- range $_, $s := $.Shapes }} + {{- if and $s.IsInternal (eq $s.Type "structure") (not $s.Exception) }} -{{ end }} + {{ $s.GoCode }} + {{- else if and $s.Exception (or $.WithGeneratedTypedErrors $s.EventFor) }} -{{ range $_, $s := .ShapeList }} -{{ if $s.IsEnum }}{{ $s.GoCode }}{{ end }} + {{ $s.GoCode }} + {{- end }} +{{- end }} -{{ end }} +{{- range $_, $s := $.Shapes }} + {{- if $s.IsEnum }} + + {{ $s.GoCode }} + {{- end }} +{{- end }} `)) // AddImport adds the import path to the generated file's import. @@ -598,17 +607,29 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed({{ .ProtocolPackage }}.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed({{ .ProtocolPackage }}.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed({{ .ProtocolPackage }}.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed({{ .ProtocolPackage }}.UnmarshalErrorHandler) - {{ if .HasEventStream }} - svc.Handlers.BuildStream.PushBackNamed({{ .ProtocolPackage }}.BuildHandler) - svc.Handlers.UnmarshalStream.PushBackNamed({{ .ProtocolPackage }}.UnmarshalHandler) - {{ end }} - {{ if .UseInitMethods }}// Run custom client initialization if present - if initClient != nil { - initClient(svc.Client) - } - {{ end }} + {{- if and $.WithGeneratedTypedErrors (gt (len $.ShapeListErrors) 0) }} + {{- $_ := $.AddSDKImport "private/protocol" }} + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler({{ .ProtocolPackage }}.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) + {{- else }} + svc.Handlers.UnmarshalError.PushBackNamed({{ .ProtocolPackage }}.UnmarshalErrorHandler) + {{- end }} + + {{- if .HasEventStream }} + + svc.Handlers.BuildStream.PushBackNamed({{ .ProtocolPackage }}.BuildHandler) + svc.Handlers.UnmarshalStream.PushBackNamed({{ .ProtocolPackage }}.UnmarshalHandler) + {{- end }} + + {{- if .UseInitMethods }} + + // Run custom client initialization if present + if initClient != nil { + initClient(svc.Client) + } + {{- end }} return svc } @@ -618,11 +639,13 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, func (c *{{ .StructName }}) newRequest(op *request.Operation, params, data interface{}) *request.Request { req := c.NewRequest(op, params, data) - {{ if .UseInitMethods }}// Run custom request initialization if present - if initRequest != nil { - initRequest(req) - } - {{ end }} + {{- if .UseInitMethods }} + + // Run custom request initialization if present + if initRequest != nil { + initRequest(req) + } + {{- end }} return req } @@ -862,19 +885,33 @@ func resolveShapeValidations(s *Shape, ancestry ...*Shape) { // A tplAPIErrors is the top level template for the API var tplAPIErrors = template.Must(template.New("api").Parse(` const ( -{{ range $_, $s := $.ShapeListErrors }} - // {{ $s.ErrorCodeName }} for service response error code - // {{ printf "%q" $s.ErrorName }}. - {{ if $s.Docstring -}} - // - {{ $s.Docstring }} - {{ end -}} - {{ $s.ErrorCodeName }} = {{ printf "%q" $s.ErrorName }} -{{ end }} + {{- range $_, $s := $.ShapeListErrors }} + + // {{ $s.ErrorCodeName }} for service response error code + // {{ printf "%q" $s.ErrorName }}. + {{ if $s.Docstring -}} + // + {{ $s.Docstring }} + {{ end -}} + {{ $s.ErrorCodeName }} = {{ printf "%q" $s.ErrorName }} + {{- end }} ) + +{{- if $.WithGeneratedTypedErrors }} + {{- $_ := $.AddSDKImport "private/protocol" }} + + var exceptionFromCode = map[string]func(protocol.ResponseMetadata)error { + {{- range $_, $s := $.ShapeListErrors }} + "{{ $s.ErrorName }}": newError{{ $s.ShapeName }}, + {{- end }} + } +{{- end }} `)) +// APIErrorsGoCode returns the Go code for the errors.go file. func (a *API) APIErrorsGoCode() string { + a.resetImports() + var buf bytes.Buffer err := tplAPIErrors.Execute(&buf, a) @@ -882,7 +919,7 @@ func (a *API) APIErrorsGoCode() string { panic(err) } - return strings.TrimSpace(buf.String()) + return a.importsGoCode() + strings.TrimSpace(buf.String()) } // removeOperation removes an operation, its input/output shapes, as well as diff --git a/private/model/api/codegentest/service/awsendpointdiscoverytest/errors.go b/private/model/api/codegentest/service/awsendpointdiscoverytest/errors.go index af95e6ed069..03d8a7dd7c0 100644 --- a/private/model/api/codegentest/service/awsendpointdiscoverytest/errors.go +++ b/private/model/api/codegentest/service/awsendpointdiscoverytest/errors.go @@ -1,3 +1,9 @@ // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package awsendpointdiscoverytest + +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{} diff --git a/private/model/api/codegentest/service/restjsonservice/api.go b/private/model/api/codegentest/service/restjsonservice/api.go index a7fd8d1590a..a1dcefb2729 100644 --- a/private/model/api/codegentest/service/restjsonservice/api.go +++ b/private/model/api/codegentest/service/restjsonservice/api.go @@ -171,12 +171,19 @@ func (es *EmptyStreamEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForEmptyEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - unmarshalerForEmptyEventStreamEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -376,12 +383,19 @@ func (es *GetEventStreamEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - unmarshalerForEventStreamEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -476,8 +490,8 @@ func (c *RESTJSONService) OtherOperationRequest(input *OtherOperationInput) (req // See the AWS API reference guide for REST JSON Service's // API operation OtherOperation for usage and error information. // -// Returned Error Codes: -// * ErrCodeExceptionEvent2 "ExceptionEvent2" +// Returned Error Types: +// * ExceptionEvent2 // // See also, https://docs.aws.amazon.com/goto/WebAPI/RESTJSONService-0000-00-00/OtherOperation func (c *RESTJSONService) OtherOperation(input *OtherOperationInput) (*OtherOperationOutput, error) { @@ -636,7 +650,11 @@ func (r *readEmptyEventStream) readEventStream() { } } -func unmarshalerForEmptyEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForEmptyEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForEmptyEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { default: return nil, awserr.New( @@ -800,7 +818,11 @@ func (r *readEventStream) readEventStream() { } } -func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { case "Empty": return &EmptyEvent{}, nil @@ -817,9 +839,9 @@ func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshale case "PayloadOnlyString": return &PayloadOnlyStringEvent{}, nil case "Exception": - return &ExceptionEvent{}, nil + return newErrorExceptionEvent(u.metadata).(eventstreamapi.Unmarshaler), nil case "Exception2": - return &ExceptionEvent2{}, nil + return newErrorExceptionEvent2(u.metadata).(eventstreamapi.Unmarshaler), nil default: return nil, awserr.New( request.ErrCodeSerialization, @@ -830,7 +852,8 @@ func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshale } type ExceptionEvent struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata IntVal *int64 `type:"integer"` @@ -874,6 +897,12 @@ func (s *ExceptionEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventst return msg, err } +func newErrorExceptionEvent(v protocol.ResponseMetadata) error { + return &ExceptionEvent{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ExceptionEvent) Code() string { return "ExceptionEvent" @@ -881,7 +910,10 @@ func (s ExceptionEvent) Code() string { // Message returns the exception's message. func (s ExceptionEvent) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -890,11 +922,22 @@ func (s ExceptionEvent) OrigErr() error { } func (s ExceptionEvent) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExceptionEvent) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExceptionEvent) RequestID() string { + return s.respMetadata.RequestID } type ExceptionEvent2 struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation @@ -924,6 +967,12 @@ func (s *ExceptionEvent2) MarshalEvent(pm protocol.PayloadMarshaler) (msg events return msg, err } +func newErrorExceptionEvent2(v protocol.ResponseMetadata) error { + return &ExceptionEvent2{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ExceptionEvent2) Code() string { return "ExceptionEvent2" @@ -943,6 +992,16 @@ func (s ExceptionEvent2) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s ExceptionEvent2) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExceptionEvent2) RequestID() string { + return s.respMetadata.RequestID +} + type ExplicitPayloadEvent struct { _ struct{} `type:"structure" payload:"NestedVal"` diff --git a/private/model/api/codegentest/service/restjsonservice/errors.go b/private/model/api/codegentest/service/restjsonservice/errors.go index 5d608338612..039ab72fcb4 100644 --- a/private/model/api/codegentest/service/restjsonservice/errors.go +++ b/private/model/api/codegentest/service/restjsonservice/errors.go @@ -2,6 +2,10 @@ package restjsonservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeExceptionEvent for service response error code @@ -12,3 +16,8 @@ const ( // "ExceptionEvent2". ErrCodeExceptionEvent2 = "ExceptionEvent2" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ExceptionEvent": newErrorExceptionEvent, + "ExceptionEvent2": newErrorExceptionEvent2, +} diff --git a/private/model/api/codegentest/service/restjsonservice/eventstream_test.go b/private/model/api/codegentest/service/restjsonservice/eventstream_test.go index efa624a09ce..2f3df11c7e5 100644 --- a/private/model/api/codegentest/service/restjsonservice/eventstream_test.go +++ b/private/model/api/codegentest/service/restjsonservice/eventstream_test.go @@ -455,6 +455,9 @@ func mockGetEventStreamReadEvents() ( func TestGetEventStream_ReadException(t *testing.T) { expectEvents := []EventStreamEvent{ &ExceptionEvent{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, IntVal: aws.Int64(123), Message_: aws.String("string value goes here"), }, @@ -507,6 +510,9 @@ func TestGetEventStream_ReadException(t *testing.T) { } expectErr := &ExceptionEvent{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, IntVal: aws.Int64(123), Message_: aws.String("string value goes here"), } @@ -522,7 +528,7 @@ func TestGetEventStream_ReadException(t *testing.T) { } if e, a := expectErr, aerr; !reflect.DeepEqual(e, a) { - t.Errorf("expect %#v, got %#v", e, a) + t.Errorf("expect error %+#v, got %+#v", e, a) } } diff --git a/private/model/api/codegentest/service/restjsonservice/service.go b/private/model/api/codegentest/service/restjsonservice/service.go index f6a6ae15ddb..400512d1fdd 100644 --- a/private/model/api/codegentest/service/restjsonservice/service.go +++ b/private/model/api/codegentest/service/restjsonservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) svc.Handlers.BuildStream.PushBackNamed(restjson.BuildHandler) svc.Handlers.UnmarshalStream.PushBackNamed(restjson.UnmarshalHandler) diff --git a/private/model/api/codegentest/service/restxmlservice/api.go b/private/model/api/codegentest/service/restxmlservice/api.go index 81c2a20aa6d..ce72f87d21c 100644 --- a/private/model/api/codegentest/service/restxmlservice/api.go +++ b/private/model/api/codegentest/service/restxmlservice/api.go @@ -171,12 +171,19 @@ func (es *EmptyStreamEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForEmptyEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - unmarshalerForEmptyEventStreamEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -376,12 +383,19 @@ func (es *GetEventStreamEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - unmarshalerForEventStreamEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -636,7 +650,11 @@ func (r *readEmptyEventStream) readEventStream() { } } -func unmarshalerForEmptyEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForEmptyEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForEmptyEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { default: return nil, awserr.New( @@ -800,7 +818,11 @@ func (r *readEventStream) readEventStream() { } } -func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { case "Empty": return &EmptyEvent{}, nil @@ -817,9 +839,9 @@ func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshale case "PayloadOnlyString": return &PayloadOnlyStringEvent{}, nil case "Exception": - return &ExceptionEvent{}, nil + return newErrorExceptionEvent(u.metadata).(eventstreamapi.Unmarshaler), nil case "Exception2": - return &ExceptionEvent2{}, nil + return newErrorExceptionEvent2(u.metadata).(eventstreamapi.Unmarshaler), nil default: return nil, awserr.New( request.ErrCodeSerialization, @@ -830,7 +852,8 @@ func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshale } type ExceptionEvent struct { - _ struct{} `locationName:"ExceptionEvent" type:"structure"` + _ struct{} `locationName:"ExceptionEvent" type:"structure"` + respMetadata protocol.ResponseMetadata IntVal *int64 `type:"integer"` @@ -874,6 +897,12 @@ func (s *ExceptionEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventst return msg, err } +func newErrorExceptionEvent(v protocol.ResponseMetadata) error { + return &ExceptionEvent{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ExceptionEvent) Code() string { return "ExceptionEvent" @@ -881,7 +910,10 @@ func (s ExceptionEvent) Code() string { // Message returns the exception's message. func (s ExceptionEvent) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -890,11 +922,22 @@ func (s ExceptionEvent) OrigErr() error { } func (s ExceptionEvent) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExceptionEvent) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExceptionEvent) RequestID() string { + return s.respMetadata.RequestID } type ExceptionEvent2 struct { - _ struct{} `locationName:"ExceptionEvent2" type:"structure"` + _ struct{} `locationName:"ExceptionEvent2" type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation @@ -924,6 +967,12 @@ func (s *ExceptionEvent2) MarshalEvent(pm protocol.PayloadMarshaler) (msg events return msg, err } +func newErrorExceptionEvent2(v protocol.ResponseMetadata) error { + return &ExceptionEvent2{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ExceptionEvent2) Code() string { return "ExceptionEvent2" @@ -943,6 +992,16 @@ func (s ExceptionEvent2) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s ExceptionEvent2) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExceptionEvent2) RequestID() string { + return s.respMetadata.RequestID +} + type ExplicitPayloadEvent struct { _ struct{} `locationName:"ExplicitPayloadEvent" type:"structure" payload:"NestedVal"` diff --git a/private/model/api/codegentest/service/restxmlservice/eventstream_test.go b/private/model/api/codegentest/service/restxmlservice/eventstream_test.go index c8902f652f9..fa272e76c87 100644 --- a/private/model/api/codegentest/service/restxmlservice/eventstream_test.go +++ b/private/model/api/codegentest/service/restxmlservice/eventstream_test.go @@ -455,6 +455,9 @@ func mockGetEventStreamReadEvents() ( func TestGetEventStream_ReadException(t *testing.T) { expectEvents := []EventStreamEvent{ &ExceptionEvent{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, IntVal: aws.Int64(123), Message_: aws.String("string value goes here"), }, @@ -507,6 +510,9 @@ func TestGetEventStream_ReadException(t *testing.T) { } expectErr := &ExceptionEvent{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, IntVal: aws.Int64(123), Message_: aws.String("string value goes here"), } @@ -522,7 +528,7 @@ func TestGetEventStream_ReadException(t *testing.T) { } if e, a := expectErr, aerr; !reflect.DeepEqual(e, a) { - t.Errorf("expect %#v, got %#v", e, a) + t.Errorf("expect error %+#v, got %+#v", e, a) } } diff --git a/private/model/api/codegentest/service/rpcservice/api.go b/private/model/api/codegentest/service/rpcservice/api.go index 23ed705b736..76e9be80d88 100644 --- a/private/model/api/codegentest/service/rpcservice/api.go +++ b/private/model/api/codegentest/service/rpcservice/api.go @@ -160,11 +160,16 @@ func (es *EmptyStreamEventStream) waitStreamPartClose() { } } -func (es *EmptyStreamEventStream) eventTypeForEmptyStreamEventStreamOutputEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type eventTypeForEmptyStreamEventStreamOutputEvent struct { + unmarshalerForEvent func(string) (eventstreamapi.Unmarshaler, error) + output *EmptyStreamOutput +} + +func (e eventTypeForEmptyStreamEventStreamOutputEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { if eventType == "initial-response" { - return es.output, nil + return e.output, nil } - return unmarshalerForEmptyEventStreamEvent(eventType) + return e.unmarshalerForEvent(eventType) } // Events returns a channel to read events from. @@ -181,12 +186,23 @@ func (es *EmptyStreamEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForEmptyEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + unmarshalerForEvent = eventTypeForEmptyStreamEventStreamOutputEvent{ + unmarshalerForEvent: unmarshalerForEvent, + output: es.output, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - es.eventTypeForEmptyStreamEventStreamOutputEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -392,11 +408,16 @@ func (es *GetEventStreamEventStream) waitStreamPartClose() { } } -func (es *GetEventStreamEventStream) eventTypeForGetEventStreamEventStreamOutputEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type eventTypeForGetEventStreamEventStreamOutputEvent struct { + unmarshalerForEvent func(string) (eventstreamapi.Unmarshaler, error) + output *GetEventStreamOutput +} + +func (e eventTypeForGetEventStreamEventStreamOutputEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { if eventType == "initial-response" { - return es.output, nil + return e.output, nil } - return unmarshalerForEventStreamEvent(eventType) + return e.unmarshalerForEvent(eventType) } // Events returns a channel to read events from. @@ -420,12 +441,23 @@ func (es *GetEventStreamEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + unmarshalerForEvent = eventTypeForGetEventStreamEventStreamOutputEvent{ + unmarshalerForEvent: unmarshalerForEvent, + output: es.output, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - es.eventTypeForGetEventStreamEventStreamOutputEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -544,8 +576,8 @@ func (c *RPCService) OtherOperationRequest(input *OtherOperationInput) (req *req // See the AWS API reference guide for RPC Service's // API operation OtherOperation for usage and error information. // -// Returned Error Codes: -// * ErrCodeExceptionEvent2 "ExceptionEvent2" +// Returned Error Types: +// * ExceptionEvent2 // // See also, https://docs.aws.amazon.com/goto/WebAPI/RPCService-0000-00-00/OtherOperation func (c *RPCService) OtherOperation(input *OtherOperationInput) (*OtherOperationOutput, error) { @@ -704,7 +736,11 @@ func (r *readEmptyEventStream) readEventStream() { } } -func unmarshalerForEmptyEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForEmptyEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForEmptyEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { default: return nil, awserr.New( @@ -895,7 +931,11 @@ func (r *readEventStream) readEventStream() { } } -func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { case "Empty": return &EmptyEvent{}, nil @@ -912,9 +952,9 @@ func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshale case "PayloadOnlyString": return &PayloadOnlyStringEvent{}, nil case "Exception": - return &ExceptionEvent{}, nil + return newErrorExceptionEvent(u.metadata).(eventstreamapi.Unmarshaler), nil case "Exception2": - return &ExceptionEvent2{}, nil + return newErrorExceptionEvent2(u.metadata).(eventstreamapi.Unmarshaler), nil default: return nil, awserr.New( request.ErrCodeSerialization, @@ -925,7 +965,8 @@ func unmarshalerForEventStreamEvent(eventType string) (eventstreamapi.Unmarshale } type ExceptionEvent struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata IntVal *int64 `type:"integer"` @@ -969,6 +1010,12 @@ func (s *ExceptionEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventst return msg, err } +func newErrorExceptionEvent(v protocol.ResponseMetadata) error { + return &ExceptionEvent{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ExceptionEvent) Code() string { return "ExceptionEvent" @@ -976,7 +1023,10 @@ func (s ExceptionEvent) Code() string { // Message returns the exception's message. func (s ExceptionEvent) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -985,11 +1035,22 @@ func (s ExceptionEvent) OrigErr() error { } func (s ExceptionEvent) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExceptionEvent) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExceptionEvent) RequestID() string { + return s.respMetadata.RequestID } type ExceptionEvent2 struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation @@ -1019,6 +1080,12 @@ func (s *ExceptionEvent2) MarshalEvent(pm protocol.PayloadMarshaler) (msg events return msg, err } +func newErrorExceptionEvent2(v protocol.ResponseMetadata) error { + return &ExceptionEvent2{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ExceptionEvent2) Code() string { return "ExceptionEvent2" @@ -1038,6 +1105,16 @@ func (s ExceptionEvent2) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s ExceptionEvent2) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExceptionEvent2) RequestID() string { + return s.respMetadata.RequestID +} + type ExplicitPayloadEvent struct { _ struct{} `type:"structure" payload:"NestedVal"` diff --git a/private/model/api/codegentest/service/rpcservice/errors.go b/private/model/api/codegentest/service/rpcservice/errors.go index b27f37134e7..96d5bdf7b57 100644 --- a/private/model/api/codegentest/service/rpcservice/errors.go +++ b/private/model/api/codegentest/service/rpcservice/errors.go @@ -2,6 +2,10 @@ package rpcservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeExceptionEvent for service response error code @@ -12,3 +16,8 @@ const ( // "ExceptionEvent2". ErrCodeExceptionEvent2 = "ExceptionEvent2" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ExceptionEvent": newErrorExceptionEvent, + "ExceptionEvent2": newErrorExceptionEvent2, +} diff --git a/private/model/api/codegentest/service/rpcservice/eventstream_test.go b/private/model/api/codegentest/service/rpcservice/eventstream_test.go index 1cb44195e40..a666deeac74 100644 --- a/private/model/api/codegentest/service/rpcservice/eventstream_test.go +++ b/private/model/api/codegentest/service/rpcservice/eventstream_test.go @@ -497,6 +497,9 @@ func TestGetEventStream_ReadException(t *testing.T) { StrVal: aws.String("string value goes here"), }, &ExceptionEvent{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, IntVal: aws.Int64(123), Message_: aws.String("string value goes here"), }, @@ -559,6 +562,9 @@ func TestGetEventStream_ReadException(t *testing.T) { } expectErr := &ExceptionEvent{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, IntVal: aws.Int64(123), Message_: aws.String("string value goes here"), } @@ -574,7 +580,7 @@ func TestGetEventStream_ReadException(t *testing.T) { } if e, a := expectErr, aerr; !reflect.DeepEqual(e, a) { - t.Errorf("expect %#v, got %#v", e, a) + t.Errorf("expect error %+#v, got %+#v", e, a) } } diff --git a/private/model/api/codegentest/service/rpcservice/service.go b/private/model/api/codegentest/service/rpcservice/service.go index 2fb9ef9262c..a66b89df3db 100644 --- a/private/model/api/codegentest/service/rpcservice/service.go +++ b/private/model/api/codegentest/service/rpcservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) svc.Handlers.BuildStream.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.UnmarshalStream.PushBackNamed(jsonrpc.UnmarshalHandler) diff --git a/private/model/api/eventstream_tmpl.go b/private/model/api/eventstream_tmpl.go index 63c7a188fd7..bc111b3ee06 100644 --- a/private/model/api/eventstream_tmpl.go +++ b/private/model/api/eventstream_tmpl.go @@ -234,14 +234,17 @@ func (es *{{ $esapi.Name }}) waitStreamPartClose() { {{- end }} {{- if $outputStream }} - {{- if eq .API.Metadata.Protocol "json" }} - func (es *{{ $esapi.Name}}) {{ $esapi.StreamOutputUnmarshalerForEventName }}(eventType string) (eventstreamapi.Unmarshaler, error) { + type {{ $esapi.StreamOutputUnmarshalerForEventName }} struct { + unmarshalerForEvent func(string) (eventstreamapi.Unmarshaler, error) + output {{ $.OutputRef.GoType }} + } + func (e {{ $esapi.StreamOutputUnmarshalerForEventName }}) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { if eventType == "initial-response" { - return es.output, nil + return e.output, nil } - return {{ $outputStream.StreamUnmarshalerForEventName }}(eventType) + return e.unmarshalerForEvent(eventType) } {{- end }} @@ -261,16 +264,25 @@ func (es *{{ $esapi.Name }}) waitStreamPartClose() { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := {{ $outputStream.StreamUnmarshalerForEventName }}{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + {{- if eq .API.Metadata.Protocol "json" }} + unmarshalerForEvent = {{ $esapi.StreamOutputUnmarshalerForEventName }}{ + unmarshalerForEvent: unmarshalerForEvent, + output: es.output, + }.UnmarshalerForEventName + {{- end }} + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - {{- if eq .API.Metadata.Protocol "json" }} - es.{{ $esapi.StreamOutputUnmarshalerForEventName }}, - {{- else }} - {{ $outputStream.StreamUnmarshalerForEventName }}, - {{- end }} + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -597,33 +609,3 @@ func (s *{{ $.ShapeName}}) MarshalEvent(pm protocol.PayloadMarshaler) (msg event return msg, err } `)) - -var eventStreamExceptionEventShapeTmpl = template.Must( - template.New("eventStreamExceptionEventShapeTmpl").Parse(` -// Code returns the exception type name. -func (s {{ $.ShapeName }}) Code() string { - {{- if $.ErrorInfo.Code }} - return "{{ $.ErrorInfo.Code }}" - {{- else }} - return "{{ $.ShapeName }}" - {{ end -}} -} - -// Message returns the exception's message. -func (s {{ $.ShapeName }}) Message() string { - {{- if index $.MemberRefs "Message_" }} - return *s.Message_ - {{- else }} - return "" - {{ end -}} -} - -// OrigErr always returns nil, satisfies awserr.Error interface. -func (s {{ $.ShapeName }}) OrigErr() error { - return nil -} - -func (s {{ $.ShapeName }}) Error() string { - return fmt.Sprintf("%s: %s", s.Code(), s.Message()) -} -`)) diff --git a/private/model/api/eventstream_tmpl_reader.go b/private/model/api/eventstream_tmpl_reader.go index c520b427a85..24f60cdc2b2 100644 --- a/private/model/api/eventstream_tmpl_reader.go +++ b/private/model/api/eventstream_tmpl_reader.go @@ -104,7 +104,11 @@ func (r *{{ $es.StreamReaderImplName }}) readEventStream() { } } -func {{ $es.StreamUnmarshalerForEventName }}(eventType string) (eventstreamapi.Unmarshaler, error) { +type {{ $es.StreamUnmarshalerForEventName }} struct { + metadata protocol.ResponseMetadata +} + +func (u {{ $es.StreamUnmarshalerForEventName }}) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { {{- range $_, $event := $es.Events }} case {{ printf "%q" $event.Name }}: @@ -112,7 +116,7 @@ func {{ $es.StreamUnmarshalerForEventName }}(eventType string) (eventstreamapi.U {{- end }} {{- range $_, $event := $es.Exceptions }} case {{ printf "%q" $event.Name }}: - return &{{ $event.Shape.ShapeName }}{}, nil + return newError{{ $event.Shape.ShapeName }}(u.metadata).(eventstreamapi.Unmarshaler), nil {{- end }} default: return nil, awserr.New( diff --git a/private/model/api/eventstream_tmpl_readertests.go b/private/model/api/eventstream_tmpl_readertests.go index 1eb05b7b9e9..a6842719000 100644 --- a/private/model/api/eventstream_tmpl_readertests.go +++ b/private/model/api/eventstream_tmpl_readertests.go @@ -287,7 +287,7 @@ func (c *loopReader) Read(p []byte) (int, error) { } if e, a := expectErr, aerr; !reflect.DeepEqual(e, a) { - t.Errorf("expect %#v, got %#v", e, a) + t.Errorf("expect error %+#v, got %+#v", e, a) } } @@ -301,6 +301,11 @@ func (c *loopReader) Read(p []byte) (int, error) { {{/* Params: *Shape */}} {{ define "set event type" }} &{{ $.ShapeName }}{ + {{- if $.Exception }} + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, + {{- end }} {{- range $memName, $memRef := $.MemberRefs }} {{- if not $memRef.Shape.IsEventStream }} {{ $memName }}: {{ ValueForType $memRef.Shape nil }}, diff --git a/private/model/api/eventstream_tmpl_tests.go b/private/model/api/eventstream_tmpl_tests.go index 21c10587045..c96675bac40 100644 --- a/private/model/api/eventstream_tmpl_tests.go +++ b/private/model/api/eventstream_tmpl_tests.go @@ -102,6 +102,12 @@ func valueForType(s *Shape, visited []string) string { case "structure": w := bytes.NewBuffer(nil) fmt.Fprintf(w, "&%s{\n", s.ShapeName) + if s.Exception { + fmt.Fprintf(w, `respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, +}, +`) + } for _, refName := range s.MemberNames() { fmt.Fprintf(w, "%s: %s,\n", refName, valueForType(s.MemberRefs[refName].Shape, visited)) } diff --git a/private/model/api/load.go b/private/model/api/load.go index 2ad72367123..c9ecbbb8d63 100644 --- a/private/model/api/load.go +++ b/private/model/api/load.go @@ -221,6 +221,11 @@ func (a *API) Setup() error { a.findEndpointDiscoveryOp() a.injectUnboundedOutputStreaming() + + // Enables generated types for APIs using REST-JSON and JSONRPC protocols. + // Other protocols will be added as supported. + a.enableGeneratedTypedErrors() + if err := a.customizationPasses(); err != nil { return err } diff --git a/private/model/api/operation.go b/private/model/api/operation.go index fbf1f55ebf7..88c33759ee3 100644 --- a/private/model/api/operation.go +++ b/private/model/api/operation.go @@ -310,10 +310,10 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + } // {{ .ExportedName }} API operation for {{ .API.Metadata.ServiceFullName }}. -{{ if .Documentation -}} +{{- if .Documentation }} // {{ .Documentation }} -{{ end -}} +{{- end }} // // Returns awserr.Error for service API and SDK errors. Use runtime type assertions // with awserr.Error's Code and Message methods to get detailed information about @@ -321,17 +321,21 @@ func (c *{{ .API.StructName }}) {{ .ExportedName }}Request(` + // // See the AWS API reference guide for {{ .API.Metadata.ServiceFullName }}'s // API operation {{ .ExportedName }} for usage and error information. -{{ if .ErrorRefs -}} +{{- if .ErrorRefs }} // -// Returned Error Codes: -{{ range $_, $err := .ErrorRefs -}} +// Returned Error {{ if $.API.WithGeneratedTypedErrors }}Types{{ else }}Codes{{ end }}: +{{- range $_, $err := .ErrorRefs -}} +{{- if $.API.WithGeneratedTypedErrors }} +// * {{ $err.ShapeName }} +{{- else }} // * {{ $err.Shape.ErrorCodeName }} "{{ $err.Shape.ErrorName}}" -{{ if $err.Docstring -}} +{{- end }} +{{- if $err.Docstring }} {{ $err.IndentedDocstring }} -{{ end -}} +{{- end }} // -{{ end -}} -{{ end -}} +{{- end }} +{{- end }} {{ $crosslinkURL := $.API.GetCrosslinkURL $.ExportedName -}} {{ if ne $crosslinkURL "" -}} // See also, {{ $crosslinkURL }} diff --git a/private/model/api/passes.go b/private/model/api/passes.go index f326b104ed4..1ac9cc94a84 100644 --- a/private/model/api/passes.go +++ b/private/model/api/passes.go @@ -7,6 +7,17 @@ import ( "strings" ) +func (a *API) enableGeneratedTypedErrors() { + switch a.Metadata.Protocol { + case "json": + case "rest-json": + default: + return + } + + a.WithGeneratedTypedErrors = true +} + // updateTopLevelShapeReferences moves resultWrapper, locationName, and // xmlNamespace traits from toplevel shape references to the toplevel // shapes for easier code generation @@ -290,7 +301,12 @@ func exceptionCollides(name string) bool { switch name { case "Code", "Message", - "OrigErr": + "OrigErr", + "Error", + "String", + "GoString", + "RequestID", + "StatusCode": return true } return false diff --git a/private/model/api/shape.go b/private/model/api/shape.go index 5ea31f13848..3791eb7f02c 100644 --- a/private/model/api/shape.go +++ b/private/model/api/shape.go @@ -134,7 +134,7 @@ type Shape struct { // CanBeEmpty returns if the shape value can sent request as an empty value. // String, blob, list, and map are types must not be empty when the member is -// serialized to the uri path, or decorated with HostLabel. +// serialized to the URI path, or decorated with HostLabel. func (ref *ShapeRef) CanBeEmpty() bool { switch ref.Shape.Type { case "string": @@ -658,8 +658,8 @@ var structShapeTmpl = func() *template.Template { ) template.Must( shapeTmpl.AddParseTree( - "eventStreamExceptionEventShapeTmpl", - eventStreamExceptionEventShapeTmpl.Tree), + "exceptionShapeMethodTmpl", + exceptionShapeMethodTmpl.Tree), ) shapeTmpl.Funcs(eventStreamEventShapeTmplFuncs) @@ -689,6 +689,11 @@ const structShapeTmplDef = ` type {{ $.ShapeName }} struct { _ struct{} {{ $.GoTags true false }} + {{- if $.Exception }} + {{- $_ := $.API.AddSDKImport "private/protocol" }} + respMetadata protocol.ResponseMetadata + {{- end }} + {{- if $.OutputEventStreamAPI }} {{ $.OutputEventStreamAPI.OutputMemberName }} *{{ $.OutputEventStreamAPI.Name }} @@ -722,14 +727,16 @@ type {{ $.ShapeName }} struct { {{ $name }} {{ $.GoStructType $name $elem }} {{ $elem.GoTags false $isRequired }} {{- end }} } -{{ if not $.API.NoStringerMethods }} + +{{- if not $.API.NoStringerMethods }} {{ $.GoCodeStringers }} -{{ end }} -{{ if not (or $.API.NoValidataShapeMethods $.Exception) }} - {{ if $.Validations -}} +{{- end }} + +{{- if not (or $.API.NoValidataShapeMethods $.Exception) }} + {{- if $.Validations }} {{ $.Validations.GoCode $ }} - {{ end }} -{{ end }} + {{- end }} +{{- end }} {{- if not (or $.API.NoGenStructFieldAccessors $.Exception) }} {{- $builderShapeName := print $.ShapeName }} @@ -779,23 +786,72 @@ type {{ $.ShapeName }} struct { } {{- end }} -{{ if $.EventFor }} +{{- if $.EventFor }} {{ template "eventStreamEventShapeTmpl" $ }} +{{- end }} - {{- if $.Exception }} - {{ template "eventStreamExceptionEventShapeTmpl" $ }} - {{ end -}} -{{ end }} +{{- if and $.Exception (or $.API.WithGeneratedTypedErrors $.EventFor) }} + {{ template "exceptionShapeMethodTmpl" $ }} +{{- end }} -{{ if $.HasHostLabelMembers }} +{{- if $.HasHostLabelMembers }} {{ template "hostLabelsShapeTmpl" $ }} -{{ end }} +{{- end }} -{{ if $.HasEndpointARNMember }} +{{- if $.HasEndpointARNMember }} {{ template "endpointARNShapeTmpl" $ }} -{{ end }} +{{- end }} ` +var exceptionShapeMethodTmpl = template.Must( + template.New("exceptionShapeMethodTmpl").Parse(` +{{- $_ := $.API.AddImport "fmt" }} +{{/* TODO allow service custom input to be used */}} +func newError{{ $.ShapeName }}(v protocol.ResponseMetadata) error { + return &{{ $.ShapeName }}{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s {{ $.ShapeName }}) Code() string { + return "{{ $.ErrorName }}" +} + +// Message returns the exception's message. +func (s {{ $.ShapeName }}) Message() string { + {{- if index $.MemberRefs "Message_" }} + if s.Message_ != nil { + return *s.Message_ + } + {{ end -}} + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s {{ $.ShapeName }}) OrigErr() error { + return nil +} + +func (s {{ $.ShapeName }}) Error() string { + {{- if or (and (eq (len $.MemberRefs) 1) (not (index $.MemberRefs "Message_"))) (gt (len $.MemberRefs) 1) }} + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) + {{- else }} + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) + {{- end }} +} + +// Status code returns the HTTP status code for the request's response error. +func (s {{ $.ShapeName }}) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s {{ $.ShapeName }}) RequestID() string { + return s.respMetadata.RequestID +} +`)) + var enumShapeTmpl = template.Must(template.New("EnumShape").Parse(` {{ $.Docstring }} const ( diff --git a/private/protocol/eventstream/eventstreamtest/testing.go b/private/protocol/eventstream/eventstreamtest/testing.go index da6941ee975..1a767890f9b 100644 --- a/private/protocol/eventstream/eventstreamtest/testing.go +++ b/private/protocol/eventstream/eventstreamtest/testing.go @@ -239,7 +239,7 @@ func MarshalEventPayload( var w bytes.Buffer err := payloadMarshaler.MarshalPayload(&w, v) if err != nil { - panic(fmt.Sprintf("failed to marshal event %T, %v", v, v)) + panic(fmt.Sprintf("failed to marshal event %T, %v, %v", v, v, err)) } return w.Bytes() diff --git a/private/protocol/jsonrpc/jsonrpc.go b/private/protocol/jsonrpc/jsonrpc.go index bfedc9fd422..89cfda75f66 100644 --- a/private/protocol/jsonrpc/jsonrpc.go +++ b/private/protocol/jsonrpc/jsonrpc.go @@ -6,8 +6,6 @@ package jsonrpc //go:generate go run -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/json.json unmarshal_test.go import ( - "strings" - "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil" @@ -16,17 +14,26 @@ import ( var emptyJSON = []byte("{}") -// BuildHandler is a named request handler for building jsonrpc protocol requests -var BuildHandler = request.NamedHandler{Name: "awssdk.jsonrpc.Build", Fn: Build} - -// UnmarshalHandler is a named request handler for unmarshaling jsonrpc protocol requests -var UnmarshalHandler = request.NamedHandler{Name: "awssdk.jsonrpc.Unmarshal", Fn: Unmarshal} +// BuildHandler is a named request handler for building jsonrpc protocol +// requests +var BuildHandler = request.NamedHandler{ + Name: "awssdk.jsonrpc.Build", + Fn: Build, +} -// UnmarshalMetaHandler is a named request handler for unmarshaling jsonrpc protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.jsonrpc.UnmarshalMeta", Fn: UnmarshalMeta} +// UnmarshalHandler is a named request handler for unmarshaling jsonrpc +// protocol requests +var UnmarshalHandler = request.NamedHandler{ + Name: "awssdk.jsonrpc.Unmarshal", + Fn: Unmarshal, +} -// UnmarshalErrorHandler is a named request handler for unmarshaling jsonrpc protocol request errors -var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.jsonrpc.UnmarshalError", Fn: UnmarshalError} +// UnmarshalMetaHandler is a named request handler for unmarshaling jsonrpc +// protocol request metadata +var UnmarshalMetaHandler = request.NamedHandler{ + Name: "awssdk.jsonrpc.UnmarshalMeta", + Fn: UnmarshalMeta, +} // Build builds a JSON payload for a JSON RPC request. func Build(req *request.Request) { @@ -79,32 +86,3 @@ func Unmarshal(req *request.Request) { func UnmarshalMeta(req *request.Request) { rest.UnmarshalMeta(req) } - -// UnmarshalError unmarshals an error response for a JSON RPC service. -func UnmarshalError(req *request.Request) { - defer req.HTTPResponse.Body.Close() - - var jsonErr jsonErrorResponse - err := jsonutil.UnmarshalJSONError(&jsonErr, req.HTTPResponse.Body) - if err != nil { - req.Error = awserr.NewRequestFailure( - awserr.New(request.ErrCodeSerialization, - "failed to unmarshal error message", err), - req.HTTPResponse.StatusCode, - req.RequestID, - ) - return - } - - codes := strings.SplitN(jsonErr.Code, "#", 2) - req.Error = awserr.NewRequestFailure( - awserr.New(codes[len(codes)-1], jsonErr.Message, nil), - req.HTTPResponse.StatusCode, - req.RequestID, - ) -} - -type jsonErrorResponse struct { - Code string `json:"__type"` - Message string `json:"message"` -} diff --git a/private/protocol/jsonrpc/unmarshal_err_test.go b/private/protocol/jsonrpc/unmarshal_err_test.go deleted file mode 100644 index a12a4107e08..00000000000 --- a/private/protocol/jsonrpc/unmarshal_err_test.go +++ /dev/null @@ -1,79 +0,0 @@ -// +build go1.8 - -package jsonrpc - -import ( - "bytes" - "encoding/hex" - "io/ioutil" - "net/http" - "strings" - "testing" - - "github.com/aws/aws-sdk-go/aws/awserr" - "github.com/aws/aws-sdk-go/aws/request" -) - -func TestUnmarshalError_SerializationError(t *testing.T) { - cases := map[string]struct { - Request *request.Request - ExpectMsg string - ExpectBytes []byte - }{ - "empty body": { - Request: &request.Request{ - Data: &struct{}{}, - HTTPResponse: &http.Response{ - StatusCode: 400, - Header: http.Header{ - "X-Amzn-Requestid": []string{"abc123"}, - }, - Body: ioutil.NopCloser( - bytes.NewReader([]byte{}), - ), - }, - }, - ExpectMsg: "error message missing", - }, - "HTML body": { - Request: &request.Request{ - Data: &struct{}{}, - HTTPResponse: &http.Response{ - StatusCode: 400, - Header: http.Header{ - "X-Amzn-Requestid": []string{"abc123"}, - }, - Body: ioutil.NopCloser( - bytes.NewReader([]byte(``)), - ), - }, - }, - ExpectBytes: []byte(``), - ExpectMsg: "failed decoding", - }, - } - - for name, c := range cases { - t.Run(name, func(t *testing.T) { - req := c.Request - - UnmarshalError(req) - if req.Error == nil { - t.Fatal("expect error, got none") - } - - aerr := req.Error.(awserr.RequestFailure) - if e, a := request.ErrCodeSerialization, aerr.Code(); e != a { - t.Errorf("expect %v, got %v", e, a) - } - - uerr := aerr.OrigErr().(awserr.UnmarshalError) - if e, a := c.ExpectMsg, uerr.Message(); !strings.Contains(a, e) { - t.Errorf("Expect %q, in %q", e, a) - } - if e, a := c.ExpectBytes, uerr.Bytes(); !bytes.Equal(e, a) { - t.Errorf("expect:\n%v\nactual:\n%v", hex.Dump(e), hex.Dump(a)) - } - }) - } -} diff --git a/private/protocol/jsonrpc/unmarshal_error.go b/private/protocol/jsonrpc/unmarshal_error.go new file mode 100644 index 00000000000..a2416c04485 --- /dev/null +++ b/private/protocol/jsonrpc/unmarshal_error.go @@ -0,0 +1,107 @@ +package jsonrpc + +import ( + "bytes" + "io" + "io/ioutil" + "net/http" + "strings" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil" +) + +// UnmarshalTypedError provides unmarshaling errors API response errors +// for both typed and untyped errors. +type UnmarshalTypedError struct { + exceptions map[string]func(protocol.ResponseMetadata) error +} + +// NewUnmarshalTypedError returns an UnmarshalTypedError initialized for the +// set of exception names to the error unmarshalers +func NewUnmarshalTypedError(exceptions map[string]func(protocol.ResponseMetadata) error) *UnmarshalTypedError { + return &UnmarshalTypedError{ + exceptions: exceptions, + } +} + +// UnmarshalError attempts to unmarshal the HTTP response error as a known +// error type. If unable to unmarshal the error type, the generic SDK error +// type will be used. +func (u *UnmarshalTypedError) UnmarshalError( + resp *http.Response, + respMeta protocol.ResponseMetadata, +) (error, error) { + + var buf bytes.Buffer + var jsonErr jsonErrorResponse + teeReader := io.TeeReader(resp.Body, &buf) + err := jsonutil.UnmarshalJSONError(&jsonErr, teeReader) + if err != nil { + return nil, err + } + body := ioutil.NopCloser(&buf) + + // Code may be separated by hash(#), with the last element being the code + // used by the SDK. + codeParts := strings.SplitN(jsonErr.Code, "#", 2) + code := codeParts[len(codeParts)-1] + msg := jsonErr.Message + + if fn, ok := u.exceptions[code]; ok { + // If exception code is know, use associated constructor to get a value + // for the exception that the JSON body can be unmarshaled into. + v := fn(respMeta) + err := jsonutil.UnmarshalJSON(v, body) + if err != nil { + return nil, err + } + + return v, nil + } + + // fallback to unmodeled generic exceptions + return awserr.NewRequestFailure( + awserr.New(code, msg, nil), + respMeta.StatusCode, + respMeta.RequestID, + ), nil +} + +// UnmarshalErrorHandler is a named request handler for unmarshaling jsonrpc +// protocol request errors +var UnmarshalErrorHandler = request.NamedHandler{ + Name: "awssdk.jsonrpc.UnmarshalError", + Fn: UnmarshalError, +} + +// UnmarshalError unmarshals an error response for a JSON RPC service. +func UnmarshalError(req *request.Request) { + defer req.HTTPResponse.Body.Close() + + var jsonErr jsonErrorResponse + err := jsonutil.UnmarshalJSONError(&jsonErr, req.HTTPResponse.Body) + if err != nil { + req.Error = awserr.NewRequestFailure( + awserr.New(request.ErrCodeSerialization, + "failed to unmarshal error message", err), + req.HTTPResponse.StatusCode, + req.RequestID, + ) + return + } + + codes := strings.SplitN(jsonErr.Code, "#", 2) + req.Error = awserr.NewRequestFailure( + awserr.New(codes[len(codes)-1], jsonErr.Message, nil), + req.HTTPResponse.StatusCode, + req.RequestID, + ) +} + +type jsonErrorResponse struct { + Code string `json:"__type"` + Message string `json:"message"` +} diff --git a/private/protocol/jsonrpc/unmarshal_error_test.go b/private/protocol/jsonrpc/unmarshal_error_test.go new file mode 100644 index 00000000000..c16c2542d7c --- /dev/null +++ b/private/protocol/jsonrpc/unmarshal_error_test.go @@ -0,0 +1,228 @@ +// +build go1.7 + +package jsonrpc + +import ( + "bytes" + "encoding/hex" + "io/ioutil" + "net/http" + "reflect" + "strings" + "testing" + + "github.com/aws/aws-sdk-go/aws" + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" +) + +const unknownErrJSON = `{"__type":"UnknownError", "message":"error message", "something":123}` +const simpleErrJSON = `{"__type":"SimpleError", "message":"some message", "foo":123}` + +type SimpleError struct { + _ struct{} `type:"structure"` + error + + Message2 *string `type:"string" locationName:"message"` + Foo *int64 `type:"integer" locationName:"foo"` +} + +const otherErrJSON = `{"__type":"OtherError", "message":"some message"}` +const complexCodeErrJSON = `{"__type":"foo.bar#OtherError", "message":"some message"}` + +type OtherError struct { + _ struct{} `type:"structure"` + error + + Message2 *string `type:"string" locationName:"message"` +} + +const complexErrJSON = `{"__type":"ComplexError", "message":"some message", "foo": {"bar":"abc123", "baz":123}}` + +type ComplexError struct { + _ struct{} `type:"structure"` + error + + Message2 *string `type:"string" locationName:"message"` + Foo *ErrorNested `type:"structure" locationName:"foo"` +} +type ErrorNested struct { + _ struct{} `type:"structure"` + + Bar *string `type:"string" locationName:"bar"` + Baz *int64 `type:"integer" locationName:"baz"` +} + +func TestUnmarshalTypedError(t *testing.T) { + + respMeta := protocol.ResponseMetadata{ + StatusCode: 400, + RequestID: "abc123", + } + + exceptions := map[string]func(protocol.ResponseMetadata) error{ + "SimpleError": func(meta protocol.ResponseMetadata) error { + return &SimpleError{} + }, + "OtherError": func(meta protocol.ResponseMetadata) error { + return &OtherError{} + }, + "ComplexError": func(meta protocol.ResponseMetadata) error { + return &ComplexError{} + }, + } + + cases := map[string]struct { + Response *http.Response + Expect error + Err string + }{ + "simple error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(simpleErrJSON)), + }, + Expect: &SimpleError{ + Message2: aws.String("some message"), + Foo: aws.Int64(123), + }, + }, + "other error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(otherErrJSON)), + }, + Expect: &OtherError{ + Message2: aws.String("some message"), + }, + }, + "other complex Code error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(complexCodeErrJSON)), + }, + Expect: &OtherError{ + Message2: aws.String("some message"), + }, + }, + "complex error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(complexErrJSON)), + }, + Expect: &ComplexError{ + Message2: aws.String("some message"), + Foo: &ErrorNested{ + Bar: aws.String("abc123"), + Baz: aws.Int64(123), + }, + }, + }, + "unknown error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(unknownErrJSON)), + }, + Expect: awserr.NewRequestFailure( + awserr.New("UnknownError", "error message", nil), + respMeta.StatusCode, + respMeta.RequestID, + ), + }, + "invalid error": { + Response: &http.Response{ + StatusCode: 400, + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(`{`)), + }, + Err: "failed decoding", + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + u := NewUnmarshalTypedError(exceptions) + v, err := u.UnmarshalError(c.Response, respMeta) + + if len(c.Err) != 0 { + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := c.Err, err.Error(); !strings.Contains(a, e) { + t.Fatalf("expect %v in error, got %v", e, a) + } + } else if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if e, a := c.Expect, v; !reflect.DeepEqual(e, a) { + t.Errorf("expect %+#v, got %#+v", e, a) + } + }) + } +} + +func TestUnmarshalError_SerializationError(t *testing.T) { + cases := map[string]struct { + Request *request.Request + ExpectMsg string + ExpectBytes []byte + }{ + "empty body": { + Request: &request.Request{ + Data: &struct{}{}, + HTTPResponse: &http.Response{ + StatusCode: 400, + Header: http.Header{ + "X-Amzn-Requestid": []string{"abc123"}, + }, + Body: ioutil.NopCloser( + bytes.NewReader([]byte{}), + ), + }, + }, + ExpectMsg: "error message missing", + }, + "HTML body": { + Request: &request.Request{ + Data: &struct{}{}, + HTTPResponse: &http.Response{ + StatusCode: 400, + Header: http.Header{ + "X-Amzn-Requestid": []string{"abc123"}, + }, + Body: ioutil.NopCloser( + bytes.NewReader([]byte(``)), + ), + }, + }, + ExpectBytes: []byte(``), + ExpectMsg: "failed decoding", + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + req := c.Request + + UnmarshalError(req) + if req.Error == nil { + t.Fatal("expect error, got none") + } + + aerr := req.Error.(awserr.RequestFailure) + if e, a := request.ErrCodeSerialization, aerr.Code(); e != a { + t.Errorf("expect %v, got %v", e, a) + } + + uerr := aerr.OrigErr().(awserr.UnmarshalError) + if e, a := c.ExpectMsg, uerr.Message(); !strings.Contains(a, e) { + t.Errorf("Expect %q, in %q", e, a) + } + if e, a := c.ExpectBytes, uerr.Bytes(); !bytes.Equal(e, a) { + t.Errorf("expect:\n%v\nactual:\n%v", hex.Dump(e), hex.Dump(a)) + } + }) + } +} diff --git a/private/protocol/rest/unmarshal.go b/private/protocol/rest/unmarshal.go index 777eef0e35c..92f8b4d9a48 100644 --- a/private/protocol/rest/unmarshal.go +++ b/private/protocol/rest/unmarshal.go @@ -29,7 +29,9 @@ var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.rest.UnmarshalMeta func Unmarshal(r *request.Request) { if r.DataFilled() { v := reflect.Indirect(reflect.ValueOf(r.Data)) - unmarshalBody(r, v) + if err := unmarshalBody(r, v); err != nil { + r.Error = err + } } } @@ -41,12 +43,21 @@ func UnmarshalMeta(r *request.Request) { r.RequestID = r.HTTPResponse.Header.Get("X-Amz-Request-Id") } if r.DataFilled() { - v := reflect.Indirect(reflect.ValueOf(r.Data)) - unmarshalLocationElements(r, v) + if err := UnmarshalResponse(r.HTTPResponse, r.Data, aws.BoolValue(r.Config.LowerCaseHeaderMaps)); err != nil { + r.Error = err + } } } -func unmarshalBody(r *request.Request, v reflect.Value) { +// UnmarshalResponse attempts to unmarshal the REST response headers to +// the data type passed in. The type must be a pointer. An error is returned +// with any error unmarshaling the response into the target datatype. +func UnmarshalResponse(resp *http.Response, data interface{}, lowerCaseHeaderMaps bool) error { + v := reflect.Indirect(reflect.ValueOf(data)) + return unmarshalLocationElements(resp, v, lowerCaseHeaderMaps) +} + +func unmarshalBody(r *request.Request, v reflect.Value) error { if field, ok := v.Type().FieldByName("_"); ok { if payloadName := field.Tag.Get("payload"); payloadName != "" { pfield, _ := v.Type().FieldByName(payloadName) @@ -58,35 +69,38 @@ func unmarshalBody(r *request.Request, v reflect.Value) { defer r.HTTPResponse.Body.Close() b, err := ioutil.ReadAll(r.HTTPResponse.Body) if err != nil { - r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) - } else { - payload.Set(reflect.ValueOf(b)) + return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) } + + payload.Set(reflect.ValueOf(b)) + case *string: defer r.HTTPResponse.Body.Close() b, err := ioutil.ReadAll(r.HTTPResponse.Body) if err != nil { - r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) - } else { - str := string(b) - payload.Set(reflect.ValueOf(&str)) + return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) } + + str := string(b) + payload.Set(reflect.ValueOf(&str)) + default: switch payload.Type().String() { case "io.ReadCloser": payload.Set(reflect.ValueOf(r.HTTPResponse.Body)) + case "io.ReadSeeker": b, err := ioutil.ReadAll(r.HTTPResponse.Body) if err != nil { - r.Error = awserr.New(request.ErrCodeSerialization, + return awserr.New(request.ErrCodeSerialization, "failed to read response body", err) - return } payload.Set(reflect.ValueOf(ioutil.NopCloser(bytes.NewReader(b)))) + default: io.Copy(ioutil.Discard, r.HTTPResponse.Body) - defer r.HTTPResponse.Body.Close() - r.Error = awserr.New(request.ErrCodeSerialization, + r.HTTPResponse.Body.Close() + return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", fmt.Errorf("unknown payload type %s", payload.Type())) } @@ -95,9 +109,11 @@ func unmarshalBody(r *request.Request, v reflect.Value) { } } } + + return nil } -func unmarshalLocationElements(r *request.Request, v reflect.Value) { +func unmarshalLocationElements(resp *http.Response, v reflect.Value, lowerCaseHeaderMaps bool) error { for i := 0; i < v.NumField(); i++ { m, field := v.Field(i), v.Type().Field(i) if n := field.Name; n[0:1] == strings.ToLower(n[0:1]) { @@ -112,26 +128,25 @@ func unmarshalLocationElements(r *request.Request, v reflect.Value) { switch field.Tag.Get("location") { case "statusCode": - unmarshalStatusCode(m, r.HTTPResponse.StatusCode) + unmarshalStatusCode(m, resp.StatusCode) + case "header": - err := unmarshalHeader(m, r.HTTPResponse.Header.Get(name), field.Tag) + err := unmarshalHeader(m, resp.Header.Get(name), field.Tag) if err != nil { - r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) - break + return awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) } + case "headers": prefix := field.Tag.Get("locationName") - err := unmarshalHeaderMap(m, r.HTTPResponse.Header, prefix, aws.BoolValue(r.Config.LowerCaseHeaderMaps)) + err := unmarshalHeaderMap(m, resp.Header, prefix, lowerCaseHeaderMaps) if err != nil { - r.Error = awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) - break + awserr.New(request.ErrCodeSerialization, "failed to decode REST response", err) } } } - if r.Error != nil { - return - } } + + return nil } func unmarshalStatusCode(v reflect.Value, statusCode int) { diff --git a/private/protocol/restjson/restjson.go b/private/protocol/restjson/restjson.go index af4f6154d70..dd14ab020e7 100644 --- a/private/protocol/restjson/restjson.go +++ b/private/protocol/restjson/restjson.go @@ -6,26 +6,31 @@ package restjson //go:generate go run -tags codegen ../../../models/protocol_tests/generate.go ../../../models/protocol_tests/output/rest-json.json unmarshal_test.go import ( - "strings" - - "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" - "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" "github.com/aws/aws-sdk-go/private/protocol/rest" ) -// BuildHandler is a named request handler for building restjson protocol requests -var BuildHandler = request.NamedHandler{Name: "awssdk.restjson.Build", Fn: Build} - -// UnmarshalHandler is a named request handler for unmarshaling restjson protocol requests -var UnmarshalHandler = request.NamedHandler{Name: "awssdk.restjson.Unmarshal", Fn: Unmarshal} +// BuildHandler is a named request handler for building restjson protocol +// requests +var BuildHandler = request.NamedHandler{ + Name: "awssdk.restjson.Build", + Fn: Build, +} -// UnmarshalMetaHandler is a named request handler for unmarshaling restjson protocol request metadata -var UnmarshalMetaHandler = request.NamedHandler{Name: "awssdk.restjson.UnmarshalMeta", Fn: UnmarshalMeta} +// UnmarshalHandler is a named request handler for unmarshaling restjson +// protocol requests +var UnmarshalHandler = request.NamedHandler{ + Name: "awssdk.restjson.Unmarshal", + Fn: Unmarshal, +} -// UnmarshalErrorHandler is a named request handler for unmarshaling restjson protocol request errors -var UnmarshalErrorHandler = request.NamedHandler{Name: "awssdk.restjson.UnmarshalError", Fn: UnmarshalError} +// UnmarshalMetaHandler is a named request handler for unmarshaling restjson +// protocol request metadata +var UnmarshalMetaHandler = request.NamedHandler{ + Name: "awssdk.restjson.UnmarshalMeta", + Fn: UnmarshalMeta, +} // Build builds a request for the REST JSON protocol. func Build(r *request.Request) { @@ -52,37 +57,3 @@ func Unmarshal(r *request.Request) { func UnmarshalMeta(r *request.Request) { rest.UnmarshalMeta(r) } - -// UnmarshalError unmarshals a response error for the REST JSON protocol. -func UnmarshalError(r *request.Request) { - defer r.HTTPResponse.Body.Close() - - var jsonErr jsonErrorResponse - err := jsonutil.UnmarshalJSONError(&jsonErr, r.HTTPResponse.Body) - if err != nil { - r.Error = awserr.NewRequestFailure( - awserr.New(request.ErrCodeSerialization, - "failed to unmarshal response error", err), - r.HTTPResponse.StatusCode, - r.RequestID, - ) - return - } - - code := r.HTTPResponse.Header.Get("X-Amzn-Errortype") - if code == "" { - code = jsonErr.Code - } - - code = strings.SplitN(code, ":", 2)[0] - r.Error = awserr.NewRequestFailure( - awserr.New(code, jsonErr.Message, nil), - r.HTTPResponse.StatusCode, - r.RequestID, - ) -} - -type jsonErrorResponse struct { - Code string `json:"code"` - Message string `json:"message"` -} diff --git a/private/protocol/restjson/unmarshal_error.go b/private/protocol/restjson/unmarshal_error.go new file mode 100644 index 00000000000..cf954dccf5e --- /dev/null +++ b/private/protocol/restjson/unmarshal_error.go @@ -0,0 +1,134 @@ +package restjson + +import ( + "bytes" + "io" + "io/ioutil" + "net/http" + "strings" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" + "github.com/aws/aws-sdk-go/private/protocol/json/jsonutil" + "github.com/aws/aws-sdk-go/private/protocol/rest" +) + +const ( + errorTypeHeader = "X-Amzn-Errortype" + errorMessageHeader = "X-Amzn-Errormessage" +) + +// UnmarshalTypedError provides unmarshaling errors API response errors +// for both typed and untyped errors. +type UnmarshalTypedError struct { + exceptions map[string]func(protocol.ResponseMetadata) error +} + +// NewUnmarshalTypedError returns an UnmarshalTypedError initialized for the +// set of exception names to the error unmarshalers +func NewUnmarshalTypedError(exceptions map[string]func(protocol.ResponseMetadata) error) *UnmarshalTypedError { + return &UnmarshalTypedError{ + exceptions: exceptions, + } +} + +// UnmarshalError attempts to unmarshal the HTTP response error as a known +// error type. If unable to unmarshal the error type, the generic SDK error +// type will be used. +func (u *UnmarshalTypedError) UnmarshalError( + resp *http.Response, + respMeta protocol.ResponseMetadata, +) (error, error) { + + code := resp.Header.Get(errorTypeHeader) + msg := resp.Header.Get(errorMessageHeader) + + body := resp.Body + if len(code) == 0 { + // If unable to get code from HTTP headers have to parse JSON message + // to determine what kind of exception this will be. + var buf bytes.Buffer + var jsonErr jsonErrorResponse + teeReader := io.TeeReader(resp.Body, &buf) + err := jsonutil.UnmarshalJSONError(&jsonErr, teeReader) + if err != nil { + return nil, err + } + + body = ioutil.NopCloser(&buf) + code = jsonErr.Code + msg = jsonErr.Message + } + + // If code has colon separators remove them so can compare against modeled + // exception names. + code = strings.SplitN(code, ":", 2)[0] + + if fn, ok := u.exceptions[code]; ok { + // If exception code is know, use associated constructor to get a value + // for the exception that the JSON body can be unmarshaled into. + v := fn(respMeta) + if err := jsonutil.UnmarshalJSON(v, body); err != nil { + return nil, err + } + + if err := rest.UnmarshalResponse(resp, v, true); err != nil { + return nil, err + } + + return v, nil + } + + // fallback to unmodeled generic exceptions + return awserr.NewRequestFailure( + awserr.New(code, msg, nil), + respMeta.StatusCode, + respMeta.RequestID, + ), nil +} + +// UnmarshalErrorHandler is a named request handler for unmarshaling restjson +// protocol request errors +var UnmarshalErrorHandler = request.NamedHandler{ + Name: "awssdk.restjson.UnmarshalError", + Fn: UnmarshalError, +} + +// UnmarshalError unmarshals a response error for the REST JSON protocol. +func UnmarshalError(r *request.Request) { + defer r.HTTPResponse.Body.Close() + + var jsonErr jsonErrorResponse + err := jsonutil.UnmarshalJSONError(&jsonErr, r.HTTPResponse.Body) + if err != nil { + r.Error = awserr.NewRequestFailure( + awserr.New(request.ErrCodeSerialization, + "failed to unmarshal response error", err), + r.HTTPResponse.StatusCode, + r.RequestID, + ) + return + } + + code := r.HTTPResponse.Header.Get(errorTypeHeader) + if code == "" { + code = jsonErr.Code + } + msg := r.HTTPResponse.Header.Get(errorMessageHeader) + if msg == "" { + msg = jsonErr.Message + } + + code = strings.SplitN(code, ":", 2)[0] + r.Error = awserr.NewRequestFailure( + awserr.New(code, jsonErr.Message, nil), + r.HTTPResponse.StatusCode, + r.RequestID, + ) +} + +type jsonErrorResponse struct { + Code string `json:"code"` + Message string `json:"message"` +} diff --git a/private/protocol/restjson/unmarshal_error_test.go b/private/protocol/restjson/unmarshal_error_test.go index d5125707f40..8c1aa97dc2a 100644 --- a/private/protocol/restjson/unmarshal_error_test.go +++ b/private/protocol/restjson/unmarshal_error_test.go @@ -7,13 +7,209 @@ import ( "encoding/hex" "io/ioutil" "net/http" + "reflect" "strings" "testing" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) +const unknownErrJSON = `{"code":"UnknownError", "message":"error message", "something":123}` +const simpleErrJSON = `{"code":"SimpleError", "message":"some message", "foo":123}` +const simpleNoCodeJSON = `{"message":"some message", "foo":123}` + +type SimpleError struct { + _ struct{} `type:"structure"` + error + + Message2 *string `type:"string" locationName:"message"` + Foo *int64 `type:"integer" locationName:"foo"` +} + +const otherErrJSON = `{"code":"OtherError", "message":"some message"}` +const complexCodeErrJSON = `{"code":"OtherError:foo:bar", "message":"some message"}` + +type OtherError struct { + _ struct{} `type:"structure"` + error + + Message2 *string `type:"string" locationName:"message"` +} + +const complexErrJSON = `{"code":"ComplexError", "message":"some message", "foo": {"bar":"abc123", "baz":123}}` + +type ComplexError struct { + _ struct{} `type:"structure"` + error + + Message2 *string `type:"string" locationName:"message"` + Foo *ErrorNested `type:"structure" locationName:"foo"` + HeaderVal *string `type:"string" location:"header" locationName:"some-header"` + Status *int64 `type:"integer" location:"statusCode"` +} +type ErrorNested struct { + _ struct{} `type:"structure"` + + Bar *string `type:"string" locationName:"bar"` + Baz *int64 `type:"integer" locationName:"baz"` +} + +func TestUnmarshalTypedError(t *testing.T) { + + respMeta := protocol.ResponseMetadata{ + StatusCode: 400, + RequestID: "abc123", + } + + exceptions := map[string]func(protocol.ResponseMetadata) error{ + "SimpleError": func(meta protocol.ResponseMetadata) error { + return &SimpleError{} + }, + "OtherError": func(meta protocol.ResponseMetadata) error { + return &OtherError{} + }, + "ComplexError": func(meta protocol.ResponseMetadata) error { + return &ComplexError{} + }, + } + + cases := map[string]struct { + Response *http.Response + Expect error + Err string + }{ + "simple error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(simpleErrJSON)), + }, + Expect: &SimpleError{ + Message2: aws.String("some message"), + Foo: aws.Int64(123), + }, + }, + "other error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(otherErrJSON)), + }, + Expect: &OtherError{ + Message2: aws.String("some message"), + }, + }, + "other complex Code error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(complexCodeErrJSON)), + }, + Expect: &OtherError{ + Message2: aws.String("some message"), + }, + }, + "complex error": { + Response: &http.Response{ + StatusCode: 400, + Header: http.Header{ + "Some-Header": []string{"headval"}, + }, + Body: ioutil.NopCloser(strings.NewReader(complexErrJSON)), + }, + Expect: &ComplexError{ + Message2: aws.String("some message"), + HeaderVal: aws.String("headval"), + Status: aws.Int64(400), + Foo: &ErrorNested{ + Bar: aws.String("abc123"), + Baz: aws.Int64(123), + }, + }, + }, + "unknown error": { + Response: &http.Response{ + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(unknownErrJSON)), + }, + Expect: awserr.NewRequestFailure( + awserr.New("UnknownError", "error message", nil), + respMeta.StatusCode, + respMeta.RequestID, + ), + }, + "invalid error": { + Response: &http.Response{ + StatusCode: 400, + Header: http.Header{}, + Body: ioutil.NopCloser(strings.NewReader(`{`)), + }, + Err: "failed decoding", + }, + "unknown from header": { + Response: &http.Response{ + Header: http.Header{ + errorTypeHeader: []string{"UnknownError"}, + errorMessageHeader: []string{"error message"}, + }, + Body: ioutil.NopCloser(nil), + }, + Expect: awserr.NewRequestFailure( + awserr.New("UnknownError", "error message", nil), + respMeta.StatusCode, + respMeta.RequestID, + ), + }, + "code from header": { + Response: &http.Response{ + Header: http.Header{ + errorTypeHeader: []string{"SimpleError"}, + }, + Body: ioutil.NopCloser(strings.NewReader(simpleNoCodeJSON)), + }, + Expect: &SimpleError{ + Message2: aws.String("some message"), + Foo: aws.Int64(123), + }, + }, + "ignore message header": { + Response: &http.Response{ + Header: http.Header{ + errorTypeHeader: []string{"SimpleError"}, + errorMessageHeader: []string{"error message"}, + }, + Body: ioutil.NopCloser(strings.NewReader(simpleNoCodeJSON)), + }, + Expect: &SimpleError{ + Message2: aws.String("some message"), + Foo: aws.Int64(123), + }, + }, + } + + for name, c := range cases { + t.Run(name, func(t *testing.T) { + u := NewUnmarshalTypedError(exceptions) + v, err := u.UnmarshalError(c.Response, respMeta) + + if len(c.Err) != 0 { + if err == nil { + t.Fatalf("expect error, got none") + } + if e, a := c.Err, err.Error(); !strings.Contains(a, e) { + t.Fatalf("expect %v in error, got %v", e, a) + } + } else if err != nil { + t.Fatalf("expect no error, got %v", err) + } + + if e, a := c.Expect, v; !reflect.DeepEqual(e, a) { + t.Errorf("expect %+#v, got %#+v", e, a) + } + }) + } +} + func TestUnmarshalError_SerializationError(t *testing.T) { cases := map[string]struct { Request *request.Request diff --git a/private/protocol/unmarshal.go b/private/protocol/unmarshal.go index da1a68111db..f614ef898be 100644 --- a/private/protocol/unmarshal.go +++ b/private/protocol/unmarshal.go @@ -19,3 +19,9 @@ func UnmarshalDiscardBody(r *request.Request) { io.Copy(ioutil.Discard, r.HTTPResponse.Body) r.HTTPResponse.Body.Close() } + +// ResponseMetadata provides the SDK response metadata attributes. +type ResponseMetadata struct { + StatusCode int + RequestID string +} diff --git a/private/protocol/unmarshal_error.go b/private/protocol/unmarshal_error.go new file mode 100644 index 00000000000..cc857f136c5 --- /dev/null +++ b/private/protocol/unmarshal_error.go @@ -0,0 +1,65 @@ +package protocol + +import ( + "net/http" + + "github.com/aws/aws-sdk-go/aws/awserr" + "github.com/aws/aws-sdk-go/aws/request" +) + +// UnmarshalErrorHandler provides unmarshaling errors API response errors for +// both typed and untyped errors. +type UnmarshalErrorHandler struct { + unmarshaler ErrorUnmarshaler +} + +// ErrorUnmarshaler is an abstract interface for concrete implementations to +// unmarshal protocol specific response errors. +type ErrorUnmarshaler interface { + UnmarshalError(*http.Response, ResponseMetadata) (error, error) +} + +// NewUnmarshalErrorHandler returns an UnmarshalErrorHandler +// initialized for the set of exception names to the error unmarshalers +func NewUnmarshalErrorHandler(unmarshaler ErrorUnmarshaler) *UnmarshalErrorHandler { + return &UnmarshalErrorHandler{ + unmarshaler: unmarshaler, + } +} + +// UnmarshalErrorHandlerName is the name of the named handler. +const UnmarshalErrorHandlerName = "awssdk.protocol.UnmarshalError" + +// NamedHandler returns a NamedHandler for the unmarshaler using the set of +// errors the unmarshaler was initialized for. +func (u *UnmarshalErrorHandler) NamedHandler() request.NamedHandler { + return request.NamedHandler{ + Name: UnmarshalErrorHandlerName, + Fn: u.UnmarshalError, + } +} + +// UnmarshalError will attempt to unmarshal the API response's error message +// into either a generic SDK error type, or a typed error corresponding to the +// errors exception name. +func (u *UnmarshalErrorHandler) UnmarshalError(r *request.Request) { + defer r.HTTPResponse.Body.Close() + + respMeta := ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + } + + v, err := u.unmarshaler.UnmarshalError(r.HTTPResponse, respMeta) + if err != nil { + r.Error = awserr.NewRequestFailure( + awserr.New(request.ErrCodeSerialization, + "failed to unmarshal response error", err), + respMeta.StatusCode, + respMeta.RequestID, + ) + return + } + + r.Error = v +} diff --git a/service/accessanalyzer/api.go b/service/accessanalyzer/api.go index 8693d9c69d2..8565aeada46 100644 --- a/service/accessanalyzer/api.go +++ b/service/accessanalyzer/api.go @@ -66,23 +66,23 @@ func (c *AccessAnalyzer) CreateAnalyzerRequest(input *CreateAnalyzerInput) (req // See the AWS API reference guide for Access Analyzer's // API operation CreateAnalyzer for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // A conflict exception error. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // Service quote met error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateAnalyzer @@ -162,26 +162,26 @@ func (c *AccessAnalyzer) CreateArchiveRuleRequest(input *CreateArchiveRuleInput) // See the AWS API reference guide for Access Analyzer's // API operation CreateArchiveRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict exception error. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // Service quote met error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/CreateArchiveRule @@ -262,20 +262,20 @@ func (c *AccessAnalyzer) DeleteAnalyzerRequest(input *DeleteAnalyzerInput) (req // See the AWS API reference guide for Access Analyzer's // API operation DeleteAnalyzer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteAnalyzer @@ -354,20 +354,20 @@ func (c *AccessAnalyzer) DeleteArchiveRuleRequest(input *DeleteArchiveRuleInput) // See the AWS API reference guide for Access Analyzer's // API operation DeleteArchiveRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/DeleteArchiveRule @@ -445,20 +445,20 @@ func (c *AccessAnalyzer) GetAnalyzedResourceRequest(input *GetAnalyzedResourceIn // See the AWS API reference guide for Access Analyzer's // API operation GetAnalyzedResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzedResource @@ -536,20 +536,20 @@ func (c *AccessAnalyzer) GetAnalyzerRequest(input *GetAnalyzerInput) (req *reque // See the AWS API reference guide for Access Analyzer's // API operation GetAnalyzer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetAnalyzer @@ -627,20 +627,20 @@ func (c *AccessAnalyzer) GetArchiveRuleRequest(input *GetArchiveRuleInput) (req // See the AWS API reference guide for Access Analyzer's // API operation GetArchiveRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetArchiveRule @@ -718,20 +718,20 @@ func (c *AccessAnalyzer) GetFindingRequest(input *GetFindingInput) (req *request // See the AWS API reference guide for Access Analyzer's // API operation GetFinding for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/GetFinding @@ -816,20 +816,20 @@ func (c *AccessAnalyzer) ListAnalyzedResourcesRequest(input *ListAnalyzedResourc // See the AWS API reference guide for Access Analyzer's // API operation ListAnalyzedResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzedResources @@ -965,17 +965,17 @@ func (c *AccessAnalyzer) ListAnalyzersRequest(input *ListAnalyzersInput) (req *r // See the AWS API reference guide for Access Analyzer's // API operation ListAnalyzers for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListAnalyzers @@ -1111,17 +1111,17 @@ func (c *AccessAnalyzer) ListArchiveRulesRequest(input *ListArchiveRulesInput) ( // See the AWS API reference guide for Access Analyzer's // API operation ListArchiveRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListArchiveRules @@ -1257,20 +1257,20 @@ func (c *AccessAnalyzer) ListFindingsRequest(input *ListFindingsInput) (req *req // See the AWS API reference guide for Access Analyzer's // API operation ListFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListFindings @@ -1400,20 +1400,20 @@ func (c *AccessAnalyzer) ListTagsForResourceRequest(input *ListTagsForResourceIn // See the AWS API reference guide for Access Analyzer's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/ListTagsForResource @@ -1492,20 +1492,20 @@ func (c *AccessAnalyzer) StartResourceScanRequest(input *StartResourceScanInput) // See the AWS API reference guide for Access Analyzer's // API operation StartResourceScan for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/StartResourceScan @@ -1584,20 +1584,20 @@ func (c *AccessAnalyzer) TagResourceRequest(input *TagResourceInput) (req *reque // See the AWS API reference guide for Access Analyzer's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/TagResource @@ -1676,20 +1676,20 @@ func (c *AccessAnalyzer) UntagResourceRequest(input *UntagResourceInput) (req *r // See the AWS API reference guide for Access Analyzer's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UntagResource @@ -1768,20 +1768,20 @@ func (c *AccessAnalyzer) UpdateArchiveRuleRequest(input *UpdateArchiveRuleInput) // See the AWS API reference guide for Access Analyzer's // API operation UpdateArchiveRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateArchiveRule @@ -1860,20 +1860,20 @@ func (c *AccessAnalyzer) UpdateFindingsRequest(input *UpdateFindingsInput) (req // See the AWS API reference guide for Access Analyzer's // API operation UpdateFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Validation exception error. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Throttling limit exceeded error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateFindings @@ -1898,6 +1898,62 @@ func (c *AccessAnalyzer) UpdateFindingsWithContext(ctx aws.Context, input *Updat return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about the analyzed resource. type AnalyzedResource struct { _ struct{} `type:"structure"` @@ -2200,6 +2256,72 @@ func (s *ArchiveRuleSummary) SetUpdatedAt(v time.Time) *ArchiveRuleSummary { return s } +// A conflict exception error. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `locationName:"resourceId" type:"string" required:"true"` + + // The resource type. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" type:"string" required:"true"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Creates an analyzer. type CreateAnalyzerInput struct { _ struct{} `type:"structure"` @@ -3299,6 +3421,65 @@ func (s *InlineArchiveRule) SetRuleName(v string) *InlineArchiveRule { return s } +// Internal server error. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // The seconds to wait to retry. + RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + // Retrieves a list of resources that have been analyzed. type ListAnalyzedResourcesInput struct { _ struct{} `type:"structure"` @@ -3759,6 +3940,138 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +// The specified resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `locationName:"resourceId" type:"string" required:"true"` + + // The type of the resource. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Service quote met error. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // The resource ID. + // + // ResourceId is a required field + ResourceId *string `locationName:"resourceId" type:"string" required:"true"` + + // The resource type. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" type:"string" required:"true"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The criteria used to sort. type SortCriteria struct { _ struct{} `type:"structure"` @@ -3931,6 +4244,65 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Throttling limit exceeded error. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // The seconds to wait to retry. + RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // Removes a tag from the specified resource. type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -4205,6 +4577,70 @@ func (s UpdateFindingsOutput) GoString() string { return s.String() } +// Validation exception error. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A list of fields that didn't validate. + FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list"` + + Message_ *string `locationName:"message" type:"string"` + + // The reason for the exception. + // + // Reason is a required field + Reason *string `locationName:"reason" type:"string" required:"true" enum:"ValidationExceptionReason"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a validation exception. type ValidationExceptionField struct { _ struct{} `type:"structure"` diff --git a/service/accessanalyzer/errors.go b/service/accessanalyzer/errors.go index 0c44ccf27b1..820e7a54e78 100644 --- a/service/accessanalyzer/errors.go +++ b/service/accessanalyzer/errors.go @@ -2,6 +2,10 @@ package accessanalyzer +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -46,3 +50,13 @@ const ( // Validation exception error. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/accessanalyzer/service.go b/service/accessanalyzer/service.go index 3160822b681..05fabf7ec45 100644 --- a/service/accessanalyzer/service.go +++ b/service/accessanalyzer/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/acm/api.go b/service/acm/api.go index 84d0fdcd511..0135a159d3e 100644 --- a/service/acm/api.go +++ b/service/acm/api.go @@ -83,25 +83,25 @@ func (c *ACM) AddTagsToCertificateRequest(input *AddTagsToCertificateInput) (req // See the AWS API reference guide for AWS Certificate Manager's // API operation AddTagsToCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request contains too many tags. Try the request again with fewer tags. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // A specified tag did not comply with an existing tag policy and was rejected. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An input parameter was invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate @@ -188,16 +188,16 @@ func (c *ACM) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // See the AWS API reference guide for AWS Certificate Manager's // API operation DeleteCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The certificate is in use by another AWS service in the caller's account. // Remove the association and try again. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate @@ -275,12 +275,12 @@ func (c *ACM) DescribeCertificateRequest(input *DescribeCertificateInput) (req * // See the AWS API reference guide for AWS Certificate Manager's // API operation DescribeCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate @@ -365,16 +365,16 @@ func (c *ACM) ExportCertificateRequest(input *ExportCertificateInput) (req *requ // See the AWS API reference guide for AWS Certificate Manager's // API operation ExportCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeRequestInProgressException "RequestInProgressException" +// * RequestInProgressException // The certificate request is in process and the certificate in your account // has not yet been issued. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate @@ -457,16 +457,16 @@ func (c *ACM) GetCertificateRequest(input *GetCertificateInput) (req *request.Re // See the AWS API reference guide for AWS Certificate Manager's // API operation GetCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeRequestInProgressException "RequestInProgressException" +// * RequestInProgressException // The certificate request is in process and the certificate in your account // has not yet been issued. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate @@ -598,25 +598,25 @@ func (c *ACM) ImportCertificateRequest(input *ImportCertificateInput) (req *requ // See the AWS API reference guide for AWS Certificate Manager's // API operation ImportCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An ACM limit has been exceeded. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request contains too many tags. Try the request again with fewer tags. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // A specified tag did not comply with an existing tag policy and was rejected. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An input parameter was invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate @@ -703,8 +703,8 @@ func (c *ACM) ListCertificatesRequest(input *ListCertificatesInput) (req *reques // See the AWS API reference guide for AWS Certificate Manager's // API operation ListCertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgsException "InvalidArgsException" +// Returned Error Types: +// * InvalidArgsException // One or more of of request parameters specified is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates @@ -837,12 +837,12 @@ func (c *ACM) ListTagsForCertificateRequest(input *ListTagsForCertificateInput) // See the AWS API reference guide for AWS Certificate Manager's // API operation ListTagsForCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate @@ -928,22 +928,22 @@ func (c *ACM) RemoveTagsFromCertificateRequest(input *RemoveTagsFromCertificateI // See the AWS API reference guide for AWS Certificate Manager's // API operation RemoveTagsFromCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // A specified tag did not comply with an existing tag policy and was rejected. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An input parameter was invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate @@ -1027,12 +1027,12 @@ func (c *ACM) RenewCertificateRequest(input *RenewCertificateInput) (req *reques // See the AWS API reference guide for AWS Certificate Manager's // API operation RenewCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate @@ -1121,27 +1121,27 @@ func (c *ACM) RequestCertificateRequest(input *RequestCertificateInput) (req *re // See the AWS API reference guide for AWS Certificate Manager's // API operation RequestCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // An ACM limit has been exceeded. // -// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException" +// * InvalidDomainValidationOptionsException // One or more values in the DomainValidationOption structure is incorrect. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // One or both of the values that make up the key-value pair is not valid. For // example, you cannot specify a tag value that begins with aws:. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request contains too many tags. Try the request again with fewer tags. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // A specified tag did not comply with an existing tag policy and was rejected. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An input parameter was invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate @@ -1230,18 +1230,18 @@ func (c *ACM) ResendValidationEmailRequest(input *ResendValidationEmailInput) (r // See the AWS API reference guide for AWS Certificate Manager's // API operation ResendValidationEmail for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // Processing has reached an invalid state. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidDomainValidationOptionsException "InvalidDomainValidationOptionsException" +// * InvalidDomainValidationOptionsException // One or more values in the DomainValidationOption structure is incorrect. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail @@ -1323,18 +1323,18 @@ func (c *ACM) UpdateCertificateOptionsRequest(input *UpdateCertificateOptionsInp // See the AWS API reference guide for AWS Certificate Manager's // API operation UpdateCertificateOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified certificate cannot be found in the caller's account or the // caller's account cannot be found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An ACM limit has been exceeded. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // Processing has reached an invalid state. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions @@ -2525,6 +2525,343 @@ func (s *ImportCertificateOutput) SetCertificateArn(v string) *ImportCertificate return s } +// One or more of of request parameters specified is not valid. +type InvalidArgsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgsException) GoString() string { + return s.String() +} + +func newErrorInvalidArgsException(v protocol.ResponseMetadata) error { + return &InvalidArgsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgsException) Code() string { + return "InvalidArgsException" +} + +// Message returns the exception's message. +func (s InvalidArgsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgsException) OrigErr() error { + return nil +} + +func (s InvalidArgsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +type InvalidArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArnException) GoString() string { + return s.String() +} + +func newErrorInvalidArnException(v protocol.ResponseMetadata) error { + return &InvalidArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArnException) Code() string { + return "InvalidArnException" +} + +// Message returns the exception's message. +func (s InvalidArnException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArnException) OrigErr() error { + return nil +} + +func (s InvalidArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more values in the DomainValidationOption structure is incorrect. +type InvalidDomainValidationOptionsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidDomainValidationOptionsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDomainValidationOptionsException) GoString() string { + return s.String() +} + +func newErrorInvalidDomainValidationOptionsException(v protocol.ResponseMetadata) error { + return &InvalidDomainValidationOptionsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDomainValidationOptionsException) Code() string { + return "InvalidDomainValidationOptionsException" +} + +// Message returns the exception's message. +func (s InvalidDomainValidationOptionsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDomainValidationOptionsException) OrigErr() error { + return nil +} + +func (s InvalidDomainValidationOptionsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDomainValidationOptionsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDomainValidationOptionsException) RequestID() string { + return s.respMetadata.RequestID +} + +// An input parameter was invalid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// Processing has reached an invalid state. +type InvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateException) GoString() string { + return s.String() +} + +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateException) Code() string { + return "InvalidStateException" +} + +// Message returns the exception's message. +func (s InvalidStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateException) OrigErr() error { + return nil +} + +func (s InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or both of the values that make up the key-value pair is not valid. For +// example, you cannot specify a tag value that begins with aws:. +type InvalidTagException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidTagException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagException) GoString() string { + return s.String() +} + +func newErrorInvalidTagException(v protocol.ResponseMetadata) error { + return &InvalidTagException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTagException) Code() string { + return "InvalidTagException" +} + +// Message returns the exception's message. +func (s InvalidTagException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagException) OrigErr() error { + return nil +} + +func (s InvalidTagException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagException) RequestID() string { + return s.respMetadata.RequestID +} + // The Key Usage X.509 v3 extension defines the purpose of the public key contained // in the certificate. type KeyUsage struct { @@ -2550,6 +2887,62 @@ func (s *KeyUsage) SetName(v string) *KeyUsage { return s } +// An ACM limit has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListCertificatesInput struct { _ struct{} `type:"structure"` @@ -3151,6 +3544,63 @@ func (s *RequestCertificateOutput) SetCertificateArn(v string) *RequestCertifica return s } +// The certificate request is in process and the certificate in your account +// has not yet been issued. +type RequestInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RequestInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestInProgressException) GoString() string { + return s.String() +} + +func newErrorRequestInProgressException(v protocol.ResponseMetadata) error { + return &RequestInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestInProgressException) Code() string { + return "RequestInProgressException" +} + +// Message returns the exception's message. +func (s RequestInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestInProgressException) OrigErr() error { + return nil +} + +func (s RequestInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + type ResendValidationEmailInput struct { _ struct{} `type:"structure"` @@ -3262,6 +3712,120 @@ func (s ResendValidationEmailOutput) GoString() string { return s.String() } +// The certificate is in use by another AWS service in the caller's account. +// Remove the association and try again. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified certificate cannot be found in the caller's account or the +// caller's account cannot be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains a DNS record value that you can use to can use to validate ownership // or control of a domain. This is used by the DescribeCertificate action. type ResourceRecord struct { @@ -3364,6 +3928,118 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// A specified tag did not comply with an existing tag policy and was rejected. +type TagPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TagPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagPolicyException) GoString() string { + return s.String() +} + +func newErrorTagPolicyException(v protocol.ResponseMetadata) error { + return &TagPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagPolicyException) Code() string { + return "TagPolicyException" +} + +// Message returns the exception's message. +func (s TagPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagPolicyException) OrigErr() error { + return nil +} + +func (s TagPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request contains too many tags. Try the request again with fewer tags. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateCertificateOptionsInput struct { _ struct{} `type:"structure"` diff --git a/service/acm/errors.go b/service/acm/errors.go index 5dfd1e97d46..54de486c39a 100644 --- a/service/acm/errors.go +++ b/service/acm/errors.go @@ -2,6 +2,10 @@ package acm +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidArgsException for service response error code @@ -80,3 +84,18 @@ const ( // The request contains too many tags. Try the request again with fewer tags. ErrCodeTooManyTagsException = "TooManyTagsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidArgsException": newErrorInvalidArgsException, + "InvalidArnException": newErrorInvalidArnException, + "InvalidDomainValidationOptionsException": newErrorInvalidDomainValidationOptionsException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidStateException": newErrorInvalidStateException, + "InvalidTagException": newErrorInvalidTagException, + "LimitExceededException": newErrorLimitExceededException, + "RequestInProgressException": newErrorRequestInProgressException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TagPolicyException": newErrorTagPolicyException, + "TooManyTagsException": newErrorTooManyTagsException, +} diff --git a/service/acm/service.go b/service/acm/service.go index 2e0af8318e0..d5a56d01eab 100644 --- a/service/acm/service.go +++ b/service/acm/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/acmpca/api.go b/service/acmpca/api.go index c600b04c0a5..d339900f2f3 100644 --- a/service/acmpca/api.go +++ b/service/acmpca/api.go @@ -75,19 +75,19 @@ func (c *ACMPCA) CreateCertificateAuthorityRequest(input *CreateCertificateAutho // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation CreateCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgsException "InvalidArgsException" +// Returned Error Types: +// * InvalidArgsException // One or more of the specified arguments was not valid. // -// * ErrCodeInvalidPolicyException "InvalidPolicyException" +// * InvalidPolicyException // The S3 bucket policy is not valid. The policy must give ACM Private CA rights // to read from and write to the bucket and find the bucket location. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The tag associated with the CA is not valid. The invalid argument is contained // in the message field. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An ACM Private CA limit has been exceeded. See the exception message returned // to determine the limit that was exceeded. // @@ -168,24 +168,24 @@ func (c *ACMPCA) CreateCertificateAuthorityAuditReportRequest(input *CreateCerti // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation CreateCertificateAuthorityAuditReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeRequestInProgressException "RequestInProgressException" +// Returned Error Types: +// * RequestInProgressException // Your request is already in progress. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidArgsException "InvalidArgsException" +// * InvalidArgsException // One or more of the specified arguments was not valid. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // @@ -274,26 +274,26 @@ func (c *ACMPCA) CreatePermissionRequest(input *CreatePermissionInput) (req *req // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation CreatePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodePermissionAlreadyExistsException "PermissionAlreadyExistsException" +// * PermissionAlreadyExistsException // The designated permission has already been given to the user. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An ACM Private CA limit has been exceeded. See the exception message returned // to determine the limit that was exceeded. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/CreatePermission @@ -394,18 +394,18 @@ func (c *ACMPCA) DeleteCertificateAuthorityRequest(input *DeleteCertificateAutho // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation DeleteCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // A previous update to your private CA is still ongoing. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // @@ -487,19 +487,19 @@ func (c *ACMPCA) DeletePermissionRequest(input *DeletePermissionInput) (req *req // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation DeletePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DeletePermission @@ -599,12 +599,12 @@ func (c *ACMPCA) DescribeCertificateAuthorityRequest(input *DescribeCertificateA // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation DescribeCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthority @@ -685,15 +685,15 @@ func (c *ACMPCA) DescribeCertificateAuthorityAuditReportRequest(input *DescribeC // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation DescribeCertificateAuthorityAuditReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidArgsException "InvalidArgsException" +// * InvalidArgsException // One or more of the specified arguments was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/DescribeCertificateAuthorityAuditReport @@ -777,21 +777,21 @@ func (c *ACMPCA) GetCertificateRequest(input *GetCertificateInput) (req *request // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation GetCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeRequestInProgressException "RequestInProgressException" +// Returned Error Types: +// * RequestInProgressException // Your request is already in progress. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // @@ -873,16 +873,16 @@ func (c *ACMPCA) GetCertificateAuthorityCertificateRequest(input *GetCertificate // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation GetCertificateAuthorityCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/GetCertificateAuthorityCertificate @@ -965,21 +965,21 @@ func (c *ACMPCA) GetCertificateAuthorityCsrRequest(input *GetCertificateAuthorit // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation GetCertificateAuthorityCsr for usage and error information. // -// Returned Error Codes: -// * ErrCodeRequestInProgressException "RequestInProgressException" +// Returned Error Types: +// * RequestInProgressException // Your request is already in progress. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // @@ -1092,34 +1092,34 @@ func (c *ACMPCA) ImportCertificateAuthorityCertificateRequest(input *ImportCerti // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation ImportCertificateAuthorityCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // A previous update to your private CA is still ongoing. // -// * ErrCodeRequestInProgressException "RequestInProgressException" +// * RequestInProgressException // Your request is already in progress. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request action cannot be performed or is prohibited. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeMalformedCertificateException "MalformedCertificateException" +// * MalformedCertificateException // One or more fields in the certificate are invalid. // -// * ErrCodeCertificateMismatchException "CertificateMismatchException" +// * CertificateMismatchException // The certificate authority certificate you are importing does not comply with // conditions specified in the certificate that signed it. // @@ -1204,26 +1204,26 @@ func (c *ACMPCA) IssueCertificateRequest(input *IssueCertificateInput) (req *req // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation IssueCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // An ACM Private CA limit has been exceeded. See the exception message returned // to determine the limit that was exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidArgsException "InvalidArgsException" +// * InvalidArgsException // One or more of the specified arguments was not valid. // -// * ErrCodeMalformedCSRException "MalformedCSRException" +// * MalformedCSRException // The certificate signing request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/IssueCertificate @@ -1308,8 +1308,8 @@ func (c *ACMPCA) ListCertificateAuthoritiesRequest(input *ListCertificateAuthori // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation ListCertificateAuthorities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token specified in the NextToken argument is not valid. Use the token // returned from your previous call to ListCertificateAuthorities. // @@ -1448,23 +1448,23 @@ func (c *ACMPCA) ListPermissionsRequest(input *ListPermissionsInput) (req *reque // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation ListPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token specified in the NextToken argument is not valid. Use the token // returned from your previous call to ListCertificateAuthorities. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/ListPermissions @@ -1604,15 +1604,15 @@ func (c *ACMPCA) ListTagsRequest(input *ListTagsInput) (req *request.Request, ou // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // @@ -1756,16 +1756,16 @@ func (c *ACMPCA) RestoreCertificateAuthorityRequest(input *RestoreCertificateAut // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation RestoreCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RestoreCertificateAuthority @@ -1852,35 +1852,35 @@ func (c *ACMPCA) RevokeCertificateRequest(input *RevokeCertificateInput) (req *r // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation RevokeCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // A previous update to your private CA is still ongoing. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request action cannot be performed or is prohibited. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An ACM Private CA limit has been exceeded. See the exception message returned // to determine the limit that was exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeRequestAlreadyProcessedException "RequestAlreadyProcessedException" +// * RequestAlreadyProcessedException // Your request has already been completed. // -// * ErrCodeRequestInProgressException "RequestInProgressException" +// * RequestInProgressException // Your request is already in progress. // -// * ErrCodeRequestFailedException "RequestFailedException" +// * RequestFailedException // The request has failed for an unspecified reason. // // See also, https://docs.aws.amazon.com/goto/WebAPI/acm-pca-2017-08-22/RevokeCertificate @@ -1967,23 +1967,23 @@ func (c *ACMPCA) TagCertificateAuthorityRequest(input *TagCertificateAuthorityIn // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation TagCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The tag associated with the CA is not valid. The invalid argument is contained // in the message field. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You can associate up to 50 tags with a private CA. Exception information // is contained in the exception message field. // @@ -2068,19 +2068,19 @@ func (c *ACMPCA) UntagCertificateAuthorityRequest(input *UntagCertificateAuthori // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation UntagCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The tag associated with the CA is not valid. The invalid argument is contained // in the message field. // @@ -2163,25 +2163,25 @@ func (c *ACMPCA) UpdateCertificateAuthorityRequest(input *UpdateCertificateAutho // See the AWS API reference guide for AWS Certificate Manager Private Certificate Authority's // API operation UpdateCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // A previous update to your private CA is still ongoing. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource such as a private CA, S3 bucket, certificate, or audit report // cannot be found. // -// * ErrCodeInvalidArgsException "InvalidArgsException" +// * InvalidArgsException // One or more of the specified arguments was not valid. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The requested Amazon Resource Name (ARN) does not refer to an existing resource. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The private CA is in a state during which a report or certificate cannot // be generated. // -// * ErrCodeInvalidPolicyException "InvalidPolicyException" +// * InvalidPolicyException // The S3 bucket policy is not valid. The policy must give ACM Private CA rights // to read from and write to the bucket and find the bucket location. // @@ -2576,6 +2576,119 @@ func (s *CertificateAuthorityConfiguration) SetSubject(v *ASN1Subject) *Certific return s } +// The certificate authority certificate you are importing does not comply with +// conditions specified in the certificate that signed it. +type CertificateMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CertificateMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateMismatchException) GoString() string { + return s.String() +} + +func newErrorCertificateMismatchException(v protocol.ResponseMetadata) error { + return &CertificateMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateMismatchException) Code() string { + return "CertificateMismatchException" +} + +// Message returns the exception's message. +func (s CertificateMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateMismatchException) OrigErr() error { + return nil +} + +func (s CertificateMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// A previous update to your private CA is still ongoing. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateCertificateAuthorityAuditReportInput struct { _ struct{} `type:"structure"` @@ -3733,6 +3846,402 @@ func (s ImportCertificateAuthorityCertificateOutput) GoString() string { return s.String() } +// One or more of the specified arguments was not valid. +type InvalidArgsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgsException) GoString() string { + return s.String() +} + +func newErrorInvalidArgsException(v protocol.ResponseMetadata) error { + return &InvalidArgsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgsException) Code() string { + return "InvalidArgsException" +} + +// Message returns the exception's message. +func (s InvalidArgsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgsException) OrigErr() error { + return nil +} + +func (s InvalidArgsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested Amazon Resource Name (ARN) does not refer to an existing resource. +type InvalidArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArnException) GoString() string { + return s.String() +} + +func newErrorInvalidArnException(v protocol.ResponseMetadata) error { + return &InvalidArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArnException) Code() string { + return "InvalidArnException" +} + +// Message returns the exception's message. +func (s InvalidArnException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArnException) OrigErr() error { + return nil +} + +func (s InvalidArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// The token specified in the NextToken argument is not valid. Use the token +// returned from your previous call to ListCertificateAuthorities. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The S3 bucket policy is not valid. The policy must give ACM Private CA rights +// to read from and write to the bucket and find the bucket location. +type InvalidPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPolicyException) GoString() string { + return s.String() +} + +func newErrorInvalidPolicyException(v protocol.ResponseMetadata) error { + return &InvalidPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPolicyException) Code() string { + return "InvalidPolicyException" +} + +// Message returns the exception's message. +func (s InvalidPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPolicyException) OrigErr() error { + return nil +} + +func (s InvalidPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request action cannot be performed or is prohibited. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The private CA is in a state during which a report or certificate cannot +// be generated. +type InvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateException) GoString() string { + return s.String() +} + +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateException) Code() string { + return "InvalidStateException" +} + +// Message returns the exception's message. +func (s InvalidStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateException) OrigErr() error { + return nil +} + +func (s InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The tag associated with the CA is not valid. The invalid argument is contained +// in the message field. +type InvalidTagException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidTagException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagException) GoString() string { + return s.String() +} + +func newErrorInvalidTagException(v protocol.ResponseMetadata) error { + return &InvalidTagException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTagException) Code() string { + return "InvalidTagException" +} + +// Message returns the exception's message. +func (s InvalidTagException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagException) OrigErr() error { + return nil +} + +func (s InvalidTagException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagException) RequestID() string { + return s.respMetadata.RequestID +} + type IssueCertificateInput struct { _ struct{} `type:"structure"` @@ -3916,6 +4425,63 @@ func (s *IssueCertificateOutput) SetCertificateArn(v string) *IssueCertificateOu return s } +// An ACM Private CA limit has been exceeded. See the exception message returned +// to determine the limit that was exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListCertificateAuthoritiesInput struct { _ struct{} `type:"structure"` @@ -4216,6 +4782,118 @@ func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { return s } +// The certificate signing request is invalid. +type MalformedCSRException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MalformedCSRException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MalformedCSRException) GoString() string { + return s.String() +} + +func newErrorMalformedCSRException(v protocol.ResponseMetadata) error { + return &MalformedCSRException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MalformedCSRException) Code() string { + return "MalformedCSRException" +} + +// Message returns the exception's message. +func (s MalformedCSRException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedCSRException) OrigErr() error { + return nil +} + +func (s MalformedCSRException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MalformedCSRException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MalformedCSRException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more fields in the certificate are invalid. +type MalformedCertificateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MalformedCertificateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MalformedCertificateException) GoString() string { + return s.String() +} + +func newErrorMalformedCertificateException(v protocol.ResponseMetadata) error { + return &MalformedCertificateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MalformedCertificateException) Code() string { + return "MalformedCertificateException" +} + +// Message returns the exception's message. +func (s MalformedCertificateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedCertificateException) OrigErr() error { + return nil +} + +func (s MalformedCertificateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MalformedCertificateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MalformedCertificateException) RequestID() string { + return s.respMetadata.RequestID +} + // Permissions designate which private CA actions can be performed by an AWS // service or entity. In order for ACM to automatically renew private certificates, // you must give the ACM service principal all available permissions (IssueCertificate, @@ -4292,6 +4970,287 @@ func (s *Permission) SetSourceAccount(v string) *Permission { return s } +// The designated permission has already been given to the user. +type PermissionAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PermissionAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PermissionAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorPermissionAlreadyExistsException(v protocol.ResponseMetadata) error { + return &PermissionAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PermissionAlreadyExistsException) Code() string { + return "PermissionAlreadyExistsException" +} + +// Message returns the exception's message. +func (s PermissionAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PermissionAlreadyExistsException) OrigErr() error { + return nil +} + +func (s PermissionAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PermissionAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PermissionAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Your request has already been completed. +type RequestAlreadyProcessedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RequestAlreadyProcessedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestAlreadyProcessedException) GoString() string { + return s.String() +} + +func newErrorRequestAlreadyProcessedException(v protocol.ResponseMetadata) error { + return &RequestAlreadyProcessedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestAlreadyProcessedException) Code() string { + return "RequestAlreadyProcessedException" +} + +// Message returns the exception's message. +func (s RequestAlreadyProcessedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestAlreadyProcessedException) OrigErr() error { + return nil +} + +func (s RequestAlreadyProcessedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestAlreadyProcessedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestAlreadyProcessedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request has failed for an unspecified reason. +type RequestFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RequestFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestFailedException) GoString() string { + return s.String() +} + +func newErrorRequestFailedException(v protocol.ResponseMetadata) error { + return &RequestFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestFailedException) Code() string { + return "RequestFailedException" +} + +// Message returns the exception's message. +func (s RequestFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestFailedException) OrigErr() error { + return nil +} + +func (s RequestFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestFailedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Your request is already in progress. +type RequestInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RequestInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestInProgressException) GoString() string { + return s.String() +} + +func newErrorRequestInProgressException(v protocol.ResponseMetadata) error { + return &RequestInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestInProgressException) Code() string { + return "RequestInProgressException" +} + +// Message returns the exception's message. +func (s RequestInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestInProgressException) OrigErr() error { + return nil +} + +func (s RequestInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + +// A resource such as a private CA, S3 bucket, certificate, or audit report +// cannot be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type RestoreCertificateAuthorityInput struct { _ struct{} `type:"structure"` @@ -4631,6 +5590,63 @@ func (s TagCertificateAuthorityOutput) GoString() string { return s.String() } +// You can associate up to 50 tags with a private CA. Exception information +// is contained in the exception message field. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagCertificateAuthorityInput struct { _ struct{} `type:"structure"` diff --git a/service/acmpca/errors.go b/service/acmpca/errors.go index c9095bbe2af..62564f2a81c 100644 --- a/service/acmpca/errors.go +++ b/service/acmpca/errors.go @@ -2,6 +2,10 @@ package acmpca +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCertificateMismatchException for service response error code @@ -120,3 +124,24 @@ const ( // is contained in the exception message field. ErrCodeTooManyTagsException = "TooManyTagsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CertificateMismatchException": newErrorCertificateMismatchException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidArgsException": newErrorInvalidArgsException, + "InvalidArnException": newErrorInvalidArnException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidPolicyException": newErrorInvalidPolicyException, + "InvalidRequestException": newErrorInvalidRequestException, + "InvalidStateException": newErrorInvalidStateException, + "InvalidTagException": newErrorInvalidTagException, + "LimitExceededException": newErrorLimitExceededException, + "MalformedCSRException": newErrorMalformedCSRException, + "MalformedCertificateException": newErrorMalformedCertificateException, + "PermissionAlreadyExistsException": newErrorPermissionAlreadyExistsException, + "RequestAlreadyProcessedException": newErrorRequestAlreadyProcessedException, + "RequestFailedException": newErrorRequestFailedException, + "RequestInProgressException": newErrorRequestInProgressException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyTagsException": newErrorTooManyTagsException, +} diff --git a/service/acmpca/service.go b/service/acmpca/service.go index 3a463b38c5a..57c1d570b49 100644 --- a/service/acmpca/service.go +++ b/service/acmpca/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/alexaforbusiness/api.go b/service/alexaforbusiness/api.go index 8e745944075..ec0bdfa99c3 100644 --- a/service/alexaforbusiness/api.go +++ b/service/alexaforbusiness/api.go @@ -69,14 +69,14 @@ func (c *AlexaForBusiness) ApproveSkillRequest(input *ApproveSkillInput) (req *r // See the AWS API reference guide for Alexa For Business's // API operation ApproveSkill for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ApproveSkill @@ -155,8 +155,8 @@ func (c *AlexaForBusiness) AssociateContactWithAddressBookRequest(input *Associa // See the AWS API reference guide for Alexa For Business's // API operation AssociateContactWithAddressBook for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateContactWithAddressBook @@ -235,14 +235,14 @@ func (c *AlexaForBusiness) AssociateDeviceWithNetworkProfileRequest(input *Assoc // See the AWS API reference guide for Alexa For Business's // API operation AssociateDeviceWithNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// * DeviceNotRegisteredException // The request failed because this device is no longer registered and therefore // no longer managed by this account. // @@ -325,14 +325,14 @@ func (c *AlexaForBusiness) AssociateDeviceWithRoomRequest(input *AssociateDevice // See the AWS API reference guide for Alexa For Business's // API operation AssociateDeviceWithRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// * DeviceNotRegisteredException // The request failed because this device is no longer registered and therefore // no longer managed by this account. // @@ -413,8 +413,8 @@ func (c *AlexaForBusiness) AssociateSkillGroupWithRoomRequest(input *AssociateSk // See the AWS API reference guide for Alexa For Business's // API operation AssociateSkillGroupWithRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillGroupWithRoom @@ -493,14 +493,14 @@ func (c *AlexaForBusiness) AssociateSkillWithSkillGroupRequest(input *AssociateS // See the AWS API reference guide for Alexa For Business's // API operation AssociateSkillWithSkillGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource is not found. // -// * ErrCodeSkillNotLinkedException "SkillNotLinkedException" +// * SkillNotLinkedException // The skill must be linked to a third-party account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithSkillGroup @@ -579,11 +579,11 @@ func (c *AlexaForBusiness) AssociateSkillWithUsersRequest(input *AssociateSkillW // See the AWS API reference guide for Alexa For Business's // API operation AssociateSkillWithUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/AssociateSkillWithUsers @@ -661,11 +661,11 @@ func (c *AlexaForBusiness) CreateAddressBookRequest(input *CreateAddressBookInpu // See the AWS API reference guide for Alexa For Business's // API operation CreateAddressBook for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateAddressBook @@ -744,8 +744,8 @@ func (c *AlexaForBusiness) CreateBusinessReportScheduleRequest(input *CreateBusi // See the AWS API reference guide for Alexa For Business's // API operation CreateBusinessReportSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateBusinessReportSchedule @@ -823,8 +823,8 @@ func (c *AlexaForBusiness) CreateConferenceProviderRequest(input *CreateConferen // See the AWS API reference guide for Alexa For Business's // API operation CreateConferenceProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateConferenceProvider @@ -902,11 +902,11 @@ func (c *AlexaForBusiness) CreateContactRequest(input *CreateContactInput) (req // See the AWS API reference guide for Alexa For Business's // API operation CreateContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateContact @@ -984,11 +984,11 @@ func (c *AlexaForBusiness) CreateGatewayGroupRequest(input *CreateGatewayGroupIn // See the AWS API reference guide for Alexa For Business's // API operation CreateGatewayGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateGatewayGroup @@ -1066,20 +1066,20 @@ func (c *AlexaForBusiness) CreateNetworkProfileRequest(input *CreateNetworkProfi // See the AWS API reference guide for Alexa For Business's // API operation CreateNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeInvalidCertificateAuthorityException "InvalidCertificateAuthorityException" +// * InvalidCertificateAuthorityException // The Certificate Authority can't issue or revoke a certificate. // -// * ErrCodeInvalidServiceLinkedRoleStateException "InvalidServiceLinkedRoleStateException" +// * InvalidServiceLinkedRoleStateException // The service linked role is locked for deletion. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateNetworkProfile @@ -1157,14 +1157,14 @@ func (c *AlexaForBusiness) CreateProfileRequest(input *CreateProfileInput) (req // See the AWS API reference guide for Alexa For Business's // API operation CreateProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The resource being created already exists. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateProfile @@ -1242,11 +1242,11 @@ func (c *AlexaForBusiness) CreateRoomRequest(input *CreateRoomInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation CreateRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateRoom @@ -1324,14 +1324,14 @@ func (c *AlexaForBusiness) CreateSkillGroupRequest(input *CreateSkillGroupInput) // See the AWS API reference guide for Alexa For Business's // API operation CreateSkillGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource being created already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateSkillGroup @@ -1409,14 +1409,14 @@ func (c *AlexaForBusiness) CreateUserRequest(input *CreateUserInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation CreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource in the request is already in use. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/CreateUser @@ -1495,11 +1495,11 @@ func (c *AlexaForBusiness) DeleteAddressBookRequest(input *DeleteAddressBookInpu // See the AWS API reference guide for Alexa For Business's // API operation DeleteAddressBook for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteAddressBook @@ -1579,11 +1579,11 @@ func (c *AlexaForBusiness) DeleteBusinessReportScheduleRequest(input *DeleteBusi // See the AWS API reference guide for Alexa For Business's // API operation DeleteBusinessReportSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteBusinessReportSchedule @@ -1662,8 +1662,8 @@ func (c *AlexaForBusiness) DeleteConferenceProviderRequest(input *DeleteConferen // See the AWS API reference guide for Alexa For Business's // API operation DeleteConferenceProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteConferenceProvider @@ -1742,11 +1742,11 @@ func (c *AlexaForBusiness) DeleteContactRequest(input *DeleteContactInput) (req // See the AWS API reference guide for Alexa For Business's // API operation DeleteContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteContact @@ -1825,14 +1825,14 @@ func (c *AlexaForBusiness) DeleteDeviceRequest(input *DeleteDeviceInput) (req *r // See the AWS API reference guide for Alexa For Business's // API operation DeleteDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeInvalidCertificateAuthorityException "InvalidCertificateAuthorityException" +// * InvalidCertificateAuthorityException // The Certificate Authority can't issue or revoke a certificate. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteDevice @@ -1914,15 +1914,15 @@ func (c *AlexaForBusiness) DeleteDeviceUsageDataRequest(input *DeleteDeviceUsage // See the AWS API reference guide for Alexa For Business's // API operation DeleteDeviceUsageData for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// * DeviceNotRegisteredException // The request failed because this device is no longer registered and therefore // no longer managed by this account. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteDeviceUsageData @@ -2001,8 +2001,8 @@ func (c *AlexaForBusiness) DeleteGatewayGroupRequest(input *DeleteGatewayGroupIn // See the AWS API reference guide for Alexa For Business's // API operation DeleteGatewayGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAssociatedException "ResourceAssociatedException" +// Returned Error Types: +// * ResourceAssociatedException // Another resource is associated with the resource in the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteGatewayGroup @@ -2081,14 +2081,14 @@ func (c *AlexaForBusiness) DeleteNetworkProfileRequest(input *DeleteNetworkProfi // See the AWS API reference guide for Alexa For Business's // API operation DeleteNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource in the request is already in use. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteNetworkProfile @@ -2167,11 +2167,11 @@ func (c *AlexaForBusiness) DeleteProfileRequest(input *DeleteProfileInput) (req // See the AWS API reference guide for Alexa For Business's // API operation DeleteProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteProfile @@ -2250,11 +2250,11 @@ func (c *AlexaForBusiness) DeleteRoomRequest(input *DeleteRoomInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation DeleteRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoom @@ -2333,8 +2333,8 @@ func (c *AlexaForBusiness) DeleteRoomSkillParameterRequest(input *DeleteRoomSkil // See the AWS API reference guide for Alexa For Business's // API operation DeleteRoomSkillParameter for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteRoomSkillParameter @@ -2413,11 +2413,11 @@ func (c *AlexaForBusiness) DeleteSkillAuthorizationRequest(input *DeleteSkillAut // See the AWS API reference guide for Alexa For Business's // API operation DeleteSkillAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillAuthorization @@ -2496,11 +2496,11 @@ func (c *AlexaForBusiness) DeleteSkillGroupRequest(input *DeleteSkillGroupInput) // See the AWS API reference guide for Alexa For Business's // API operation DeleteSkillGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteSkillGroup @@ -2579,11 +2579,11 @@ func (c *AlexaForBusiness) DeleteUserRequest(input *DeleteUserInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DeleteUser @@ -2739,11 +2739,11 @@ func (c *AlexaForBusiness) DisassociateDeviceFromRoomRequest(input *Disassociate // See the AWS API reference guide for Alexa For Business's // API operation DisassociateDeviceFromRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// * DeviceNotRegisteredException // The request failed because this device is no longer registered and therefore // no longer managed by this account. // @@ -2823,11 +2823,11 @@ func (c *AlexaForBusiness) DisassociateSkillFromSkillGroupRequest(input *Disasso // See the AWS API reference guide for Alexa For Business's // API operation DisassociateSkillFromSkillGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromSkillGroup @@ -2907,11 +2907,11 @@ func (c *AlexaForBusiness) DisassociateSkillFromUsersRequest(input *Disassociate // See the AWS API reference guide for Alexa For Business's // API operation DisassociateSkillFromUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillFromUsers @@ -2991,8 +2991,8 @@ func (c *AlexaForBusiness) DisassociateSkillGroupFromRoomRequest(input *Disassoc // See the AWS API reference guide for Alexa For Business's // API operation DisassociateSkillGroupFromRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/DisassociateSkillGroupFromRoom @@ -3071,8 +3071,8 @@ func (c *AlexaForBusiness) ForgetSmartHomeAppliancesRequest(input *ForgetSmartHo // See the AWS API reference guide for Alexa For Business's // API operation ForgetSmartHomeAppliances for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ForgetSmartHomeAppliances @@ -3150,8 +3150,8 @@ func (c *AlexaForBusiness) GetAddressBookRequest(input *GetAddressBookInput) (re // See the AWS API reference guide for Alexa For Business's // API operation GetAddressBook for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetAddressBook @@ -3229,8 +3229,8 @@ func (c *AlexaForBusiness) GetConferencePreferenceRequest(input *GetConferencePr // See the AWS API reference guide for Alexa For Business's // API operation GetConferencePreference for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferencePreference @@ -3308,8 +3308,8 @@ func (c *AlexaForBusiness) GetConferenceProviderRequest(input *GetConferenceProv // See the AWS API reference guide for Alexa For Business's // API operation GetConferenceProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetConferenceProvider @@ -3387,8 +3387,8 @@ func (c *AlexaForBusiness) GetContactRequest(input *GetContactInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation GetContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetContact @@ -3466,8 +3466,8 @@ func (c *AlexaForBusiness) GetDeviceRequest(input *GetDeviceInput) (req *request // See the AWS API reference guide for Alexa For Business's // API operation GetDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetDevice @@ -3545,8 +3545,8 @@ func (c *AlexaForBusiness) GetGatewayRequest(input *GetGatewayInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation GetGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetGateway @@ -3624,8 +3624,8 @@ func (c *AlexaForBusiness) GetGatewayGroupRequest(input *GetGatewayGroupInput) ( // See the AWS API reference guide for Alexa For Business's // API operation GetGatewayGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetGatewayGroup @@ -3704,8 +3704,8 @@ func (c *AlexaForBusiness) GetInvitationConfigurationRequest(input *GetInvitatio // See the AWS API reference guide for Alexa For Business's // API operation GetInvitationConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetInvitationConfiguration @@ -3783,11 +3783,11 @@ func (c *AlexaForBusiness) GetNetworkProfileRequest(input *GetNetworkProfileInpu // See the AWS API reference guide for Alexa For Business's // API operation GetNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeInvalidSecretsManagerResourceException "InvalidSecretsManagerResourceException" +// * InvalidSecretsManagerResourceException // A password in SecretsManager is in an invalid state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetNetworkProfile @@ -3865,8 +3865,8 @@ func (c *AlexaForBusiness) GetProfileRequest(input *GetProfileInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation GetProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetProfile @@ -3944,8 +3944,8 @@ func (c *AlexaForBusiness) GetRoomRequest(input *GetRoomInput) (req *request.Req // See the AWS API reference guide for Alexa For Business's // API operation GetRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoom @@ -4023,8 +4023,8 @@ func (c *AlexaForBusiness) GetRoomSkillParameterRequest(input *GetRoomSkillParam // See the AWS API reference guide for Alexa For Business's // API operation GetRoomSkillParameter for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetRoomSkillParameter @@ -4102,8 +4102,8 @@ func (c *AlexaForBusiness) GetSkillGroupRequest(input *GetSkillGroupInput) (req // See the AWS API reference guide for Alexa For Business's // API operation GetSkillGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/GetSkillGroup @@ -4455,8 +4455,8 @@ func (c *AlexaForBusiness) ListDeviceEventsRequest(input *ListDeviceEventsInput) // See the AWS API reference guide for Alexa For Business's // API operation ListDeviceEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListDeviceEvents @@ -5256,8 +5256,8 @@ func (c *AlexaForBusiness) ListSmartHomeAppliancesRequest(input *ListSmartHomeAp // See the AWS API reference guide for Alexa For Business's // API operation ListSmartHomeAppliances for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListSmartHomeAppliances @@ -5393,8 +5393,8 @@ func (c *AlexaForBusiness) ListTagsRequest(input *ListTagsInput) (req *request.R // See the AWS API reference guide for Alexa For Business's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ListTags @@ -5526,8 +5526,8 @@ func (c *AlexaForBusiness) PutConferencePreferenceRequest(input *PutConferencePr // See the AWS API reference guide for Alexa For Business's // API operation PutConferencePreference for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutConferencePreference @@ -5607,11 +5607,11 @@ func (c *AlexaForBusiness) PutInvitationConfigurationRequest(input *PutInvitatio // See the AWS API reference guide for Alexa For Business's // API operation PutInvitationConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutInvitationConfiguration @@ -5691,8 +5691,8 @@ func (c *AlexaForBusiness) PutRoomSkillParameterRequest(input *PutRoomSkillParam // See the AWS API reference guide for Alexa For Business's // API operation PutRoomSkillParameter for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutRoomSkillParameter @@ -5774,12 +5774,12 @@ func (c *AlexaForBusiness) PutSkillAuthorizationRequest(input *PutSkillAuthoriza // See the AWS API reference guide for Alexa For Business's // API operation PutSkillAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The caller has no permissions to operate on the resource involved in the // API call. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/PutSkillAuthorization @@ -5858,14 +5858,14 @@ func (c *AlexaForBusiness) RegisterAVSDeviceRequest(input *RegisterAVSDeviceInpu // See the AWS API reference guide for Alexa For Business's // API operation RegisterAVSDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeInvalidDeviceException "InvalidDeviceException" +// * InvalidDeviceException // The device is in an invalid state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RegisterAVSDevice @@ -5947,11 +5947,11 @@ func (c *AlexaForBusiness) RejectSkillRequest(input *RejectSkillInput) (req *req // See the AWS API reference guide for Alexa For Business's // API operation RejectSkill for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RejectSkill @@ -6030,8 +6030,8 @@ func (c *AlexaForBusiness) ResolveRoomRequest(input *ResolveRoomInput) (req *req // See the AWS API reference guide for Alexa For Business's // API operation ResolveRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/ResolveRoom @@ -6110,11 +6110,11 @@ func (c *AlexaForBusiness) RevokeInvitationRequest(input *RevokeInvitationInput) // See the AWS API reference guide for Alexa For Business's // API operation RevokeInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/RevokeInvitation @@ -7252,11 +7252,11 @@ func (c *AlexaForBusiness) SendAnnouncementRequest(input *SendAnnouncementInput) // See the AWS API reference guide for Alexa For Business's // API operation SendAnnouncement for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You are performing an action that would put you beyond your account's limits. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The resource being created already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendAnnouncement @@ -7336,14 +7336,14 @@ func (c *AlexaForBusiness) SendInvitationRequest(input *SendInvitationInput) (re // See the AWS API reference guide for Alexa For Business's // API operation SendInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeInvalidUserStatusException "InvalidUserStatusException" +// * InvalidUserStatusException // The attempt to update a user is invalid due to the user's current status. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/SendInvitation @@ -7436,8 +7436,8 @@ func (c *AlexaForBusiness) StartDeviceSyncRequest(input *StartDeviceSyncInput) ( // See the AWS API reference guide for Alexa For Business's // API operation StartDeviceSync for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// Returned Error Types: +// * DeviceNotRegisteredException // The request failed because this device is no longer registered and therefore // no longer managed by this account. // @@ -7518,8 +7518,8 @@ func (c *AlexaForBusiness) StartSmartHomeApplianceDiscoveryRequest(input *StartS // See the AWS API reference guide for Alexa For Business's // API operation StartSmartHomeApplianceDiscovery for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/StartSmartHomeApplianceDiscovery @@ -7598,8 +7598,8 @@ func (c *AlexaForBusiness) TagResourceRequest(input *TagResourceInput) (req *req // See the AWS API reference guide for Alexa For Business's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/TagResource @@ -7678,8 +7678,8 @@ func (c *AlexaForBusiness) UntagResourceRequest(input *UntagResourceInput) (req // See the AWS API reference guide for Alexa For Business's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UntagResource @@ -7758,14 +7758,14 @@ func (c *AlexaForBusiness) UpdateAddressBookRequest(input *UpdateAddressBookInpu // See the AWS API reference guide for Alexa For Business's // API operation UpdateAddressBook for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeNameInUseException "NameInUseException" +// * NameInUseException // The name sent in the request is already in use. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateAddressBook @@ -7845,11 +7845,11 @@ func (c *AlexaForBusiness) UpdateBusinessReportScheduleRequest(input *UpdateBusi // See the AWS API reference guide for Alexa For Business's // API operation UpdateBusinessReportSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateBusinessReportSchedule @@ -7928,8 +7928,8 @@ func (c *AlexaForBusiness) UpdateConferenceProviderRequest(input *UpdateConferen // See the AWS API reference guide for Alexa For Business's // API operation UpdateConferenceProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateConferenceProvider @@ -8008,11 +8008,11 @@ func (c *AlexaForBusiness) UpdateContactRequest(input *UpdateContactInput) (req // See the AWS API reference guide for Alexa For Business's // API operation UpdateContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateContact @@ -8091,14 +8091,14 @@ func (c *AlexaForBusiness) UpdateDeviceRequest(input *UpdateDeviceInput) (req *r // See the AWS API reference guide for Alexa For Business's // API operation UpdateDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeDeviceNotRegisteredException "DeviceNotRegisteredException" +// * DeviceNotRegisteredException // The request failed because this device is no longer registered and therefore // no longer managed by this account. // @@ -8179,11 +8179,11 @@ func (c *AlexaForBusiness) UpdateGatewayRequest(input *UpdateGatewayInput) (req // See the AWS API reference guide for Alexa For Business's // API operation UpdateGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeNameInUseException "NameInUseException" +// * NameInUseException // The name sent in the request is already in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateGateway @@ -8263,11 +8263,11 @@ func (c *AlexaForBusiness) UpdateGatewayGroupRequest(input *UpdateGatewayGroupIn // See the AWS API reference guide for Alexa For Business's // API operation UpdateGatewayGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeNameInUseException "NameInUseException" +// * NameInUseException // The name sent in the request is already in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateGatewayGroup @@ -8346,20 +8346,20 @@ func (c *AlexaForBusiness) UpdateNetworkProfileRequest(input *UpdateNetworkProfi // See the AWS API reference guide for Alexa For Business's // API operation UpdateNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeNameInUseException "NameInUseException" +// * NameInUseException // The name sent in the request is already in use. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // -// * ErrCodeInvalidCertificateAuthorityException "InvalidCertificateAuthorityException" +// * InvalidCertificateAuthorityException // The Certificate Authority can't issue or revoke a certificate. // -// * ErrCodeInvalidSecretsManagerResourceException "InvalidSecretsManagerResourceException" +// * InvalidSecretsManagerResourceException // A password in SecretsManager is in an invalid state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateNetworkProfile @@ -8438,14 +8438,14 @@ func (c *AlexaForBusiness) UpdateProfileRequest(input *UpdateProfileInput) (req // See the AWS API reference guide for Alexa For Business's // API operation UpdateProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeNameInUseException "NameInUseException" +// * NameInUseException // The name sent in the request is already in use. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateProfile @@ -8524,11 +8524,11 @@ func (c *AlexaForBusiness) UpdateRoomRequest(input *UpdateRoomInput) (req *reque // See the AWS API reference guide for Alexa For Business's // API operation UpdateRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeNameInUseException "NameInUseException" +// * NameInUseException // The name sent in the request is already in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateRoom @@ -8607,14 +8607,14 @@ func (c *AlexaForBusiness) UpdateSkillGroupRequest(input *UpdateSkillGroupInput) // See the AWS API reference guide for Alexa For Business's // API operation UpdateSkillGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource is not found. // -// * ErrCodeNameInUseException "NameInUseException" +// * NameInUseException // The name sent in the request is already in use. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is a concurrent modification of resources. // // See also, https://docs.aws.amazon.com/goto/WebAPI/alexaforbusiness-2017-11-09/UpdateSkillGroup @@ -8723,6 +8723,62 @@ func (s *AddressBookData) SetName(v string) *AddressBookData { return s } +// The resource being created already exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + type ApproveSkillInput struct { _ struct{} `type:"structure"` @@ -9439,6 +9495,62 @@ func (s *Category) SetCategoryName(v string) *Category { return s } +// There is a concurrent modification of resources. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // The default conference provider that is used if no other scheduled meetings // are detected. type ConferencePreference struct { @@ -12454,6 +12566,63 @@ func (s *DeviceNetworkProfileInfo) SetNetworkProfileArn(v string) *DeviceNetwork return s } +// The request failed because this device is no longer registered and therefore +// no longer managed by this account. +type DeviceNotRegisteredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DeviceNotRegisteredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeviceNotRegisteredException) GoString() string { + return s.String() +} + +func newErrorDeviceNotRegisteredException(v protocol.ResponseMetadata) error { + return &DeviceNotRegisteredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeviceNotRegisteredException) Code() string { + return "DeviceNotRegisteredException" +} + +// Message returns the exception's message. +func (s DeviceNotRegisteredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeviceNotRegisteredException) OrigErr() error { + return nil +} + +func (s DeviceNotRegisteredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeviceNotRegisteredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeviceNotRegisteredException) RequestID() string { + return s.respMetadata.RequestID +} + // Details of a device’s status. type DeviceStatusDetail struct { _ struct{} `type:"structure"` @@ -13965,6 +14134,342 @@ func (s *InstantBooking) SetEnabled(v bool) *InstantBooking { return s } +// The Certificate Authority can't issue or revoke a certificate. +type InvalidCertificateAuthorityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidCertificateAuthorityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCertificateAuthorityException) GoString() string { + return s.String() +} + +func newErrorInvalidCertificateAuthorityException(v protocol.ResponseMetadata) error { + return &InvalidCertificateAuthorityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCertificateAuthorityException) Code() string { + return "InvalidCertificateAuthorityException" +} + +// Message returns the exception's message. +func (s InvalidCertificateAuthorityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCertificateAuthorityException) OrigErr() error { + return nil +} + +func (s InvalidCertificateAuthorityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCertificateAuthorityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCertificateAuthorityException) RequestID() string { + return s.respMetadata.RequestID +} + +// The device is in an invalid state. +type InvalidDeviceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDeviceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeviceException) GoString() string { + return s.String() +} + +func newErrorInvalidDeviceException(v protocol.ResponseMetadata) error { + return &InvalidDeviceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeviceException) Code() string { + return "InvalidDeviceException" +} + +// Message returns the exception's message. +func (s InvalidDeviceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeviceException) OrigErr() error { + return nil +} + +func (s InvalidDeviceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeviceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeviceException) RequestID() string { + return s.respMetadata.RequestID +} + +// A password in SecretsManager is in an invalid state. +type InvalidSecretsManagerResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidSecretsManagerResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSecretsManagerResourceException) GoString() string { + return s.String() +} + +func newErrorInvalidSecretsManagerResourceException(v protocol.ResponseMetadata) error { + return &InvalidSecretsManagerResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSecretsManagerResourceException) Code() string { + return "InvalidSecretsManagerResourceException" +} + +// Message returns the exception's message. +func (s InvalidSecretsManagerResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSecretsManagerResourceException) OrigErr() error { + return nil +} + +func (s InvalidSecretsManagerResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSecretsManagerResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSecretsManagerResourceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service linked role is locked for deletion. +type InvalidServiceLinkedRoleStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidServiceLinkedRoleStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidServiceLinkedRoleStateException) GoString() string { + return s.String() +} + +func newErrorInvalidServiceLinkedRoleStateException(v protocol.ResponseMetadata) error { + return &InvalidServiceLinkedRoleStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidServiceLinkedRoleStateException) Code() string { + return "InvalidServiceLinkedRoleStateException" +} + +// Message returns the exception's message. +func (s InvalidServiceLinkedRoleStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidServiceLinkedRoleStateException) OrigErr() error { + return nil +} + +func (s InvalidServiceLinkedRoleStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidServiceLinkedRoleStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidServiceLinkedRoleStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The attempt to update a user is invalid due to the user's current status. +type InvalidUserStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidUserStatusException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidUserStatusException) GoString() string { + return s.String() +} + +func newErrorInvalidUserStatusException(v protocol.ResponseMetadata) error { + return &InvalidUserStatusException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidUserStatusException) Code() string { + return "InvalidUserStatusException" +} + +// Message returns the exception's message. +func (s InvalidUserStatusException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidUserStatusException) OrigErr() error { + return nil +} + +func (s InvalidUserStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidUserStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidUserStatusException) RequestID() string { + return s.respMetadata.RequestID +} + +// You are performing an action that would put you beyond your account's limits. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListBusinessReportSchedulesInput struct { _ struct{} `type:"structure"` @@ -14990,6 +15495,62 @@ func (s *MeetingSetting) SetRequirePin(v string) *MeetingSetting { return s } +// The name sent in the request is already in use. +type NameInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NameInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NameInUseException) GoString() string { + return s.String() +} + +func newErrorNameInUseException(v protocol.ResponseMetadata) error { + return &NameInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NameInUseException) Code() string { + return "NameInUseException" +} + +// Message returns the exception's message. +func (s NameInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NameInUseException) OrigErr() error { + return nil +} + +func (s NameInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NameInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NameInUseException) RequestID() string { + return s.respMetadata.RequestID +} + // The network profile associated with a device. type NetworkProfile struct { _ struct{} `type:"structure"` @@ -15182,6 +15743,62 @@ func (s *NetworkProfileData) SetSsid(v string) *NetworkProfileData { return s } +// The resource is not found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The information for public switched telephone network (PSTN) conferencing. type PSTNDialIn struct { _ struct{} `type:"structure"` @@ -16158,6 +16775,121 @@ func (s *ResolveRoomOutput) SetRoomSkillParameters(v []*RoomSkillParameter) *Res return s } +// Another resource is associated with the resource in the request. +type ResourceAssociatedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAssociatedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAssociatedException) GoString() string { + return s.String() +} + +func newErrorResourceAssociatedException(v protocol.ResponseMetadata) error { + return &ResourceAssociatedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAssociatedException) Code() string { + return "ResourceAssociatedException" +} + +// Message returns the exception's message. +func (s ResourceAssociatedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAssociatedException) OrigErr() error { + return nil +} + +func (s ResourceAssociatedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAssociatedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAssociatedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource in the request is already in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A unique, user-specified identifier for the request that ensures idempotency. + ClientRequestToken *string `min:"10" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + type RevokeInvitationInput struct { _ struct{} `type:"structure"` @@ -17867,6 +18599,62 @@ func (s *SkillGroupData) SetSkillGroupName(v string) *SkillGroupData { return s } +// The skill must be linked to a third-party account. +type SkillNotLinkedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SkillNotLinkedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SkillNotLinkedException) GoString() string { + return s.String() +} + +func newErrorSkillNotLinkedException(v protocol.ResponseMetadata) error { + return &SkillNotLinkedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SkillNotLinkedException) Code() string { + return "SkillNotLinkedException" +} + +// Message returns the exception's message. +func (s SkillNotLinkedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SkillNotLinkedException) OrigErr() error { + return nil +} + +func (s SkillNotLinkedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SkillNotLinkedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SkillNotLinkedException) RequestID() string { + return s.respMetadata.RequestID +} + // The summary of skills. type SkillSummary struct { _ struct{} `type:"structure"` @@ -18467,6 +19255,63 @@ func (s *Text) SetValue(v string) *Text { return s } +// The caller has no permissions to operate on the resource involved in the +// API call. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/alexaforbusiness/errors.go b/service/alexaforbusiness/errors.go index 2d79fffe4d5..76c8040f536 100644 --- a/service/alexaforbusiness/errors.go +++ b/service/alexaforbusiness/errors.go @@ -2,6 +2,10 @@ package alexaforbusiness +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlreadyExistsException for service response error code @@ -96,3 +100,21 @@ const ( // API call. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlreadyExistsException": newErrorAlreadyExistsException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "DeviceNotRegisteredException": newErrorDeviceNotRegisteredException, + "InvalidCertificateAuthorityException": newErrorInvalidCertificateAuthorityException, + "InvalidDeviceException": newErrorInvalidDeviceException, + "InvalidSecretsManagerResourceException": newErrorInvalidSecretsManagerResourceException, + "InvalidServiceLinkedRoleStateException": newErrorInvalidServiceLinkedRoleStateException, + "InvalidUserStatusException": newErrorInvalidUserStatusException, + "LimitExceededException": newErrorLimitExceededException, + "NameInUseException": newErrorNameInUseException, + "NotFoundException": newErrorNotFoundException, + "ResourceAssociatedException": newErrorResourceAssociatedException, + "ResourceInUseException": newErrorResourceInUseException, + "SkillNotLinkedException": newErrorSkillNotLinkedException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/alexaforbusiness/service.go b/service/alexaforbusiness/service.go index b1e2f9f8bd6..b0a3bcd71b3 100644 --- a/service/alexaforbusiness/service.go +++ b/service/alexaforbusiness/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/amplify/api.go b/service/amplify/api.go index 8637d37ce8b..0eac1f76a1d 100644 --- a/service/amplify/api.go +++ b/service/amplify/api.go @@ -66,22 +66,22 @@ func (c *Amplify) CreateAppRequest(input *CreateAppInput) (req *request.Request, // See the AWS API reference guide for AWS Amplify's // API operation CreateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -160,21 +160,21 @@ func (c *Amplify) CreateBackendEnvironmentRequest(input *CreateBackendEnvironmen // See the AWS API reference guide for AWS Amplify's // API operation CreateBackendEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -253,25 +253,25 @@ func (c *Amplify) CreateBranchRequest(input *CreateBranchInput) (req *request.Re // See the AWS API reference guide for AWS Amplify's // API operation CreateBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -350,18 +350,18 @@ func (c *Amplify) CreateDeploymentRequest(input *CreateDeploymentInput) (req *re // See the AWS API reference guide for AWS Amplify's // API operation CreateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -440,25 +440,25 @@ func (c *Amplify) CreateDomainAssociationRequest(input *CreateDomainAssociationI // See the AWS API reference guide for AWS Amplify's // API operation CreateDomainAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -537,25 +537,25 @@ func (c *Amplify) CreateWebhookRequest(input *CreateWebhookInput) (req *request. // See the AWS API reference guide for AWS Amplify's // API operation CreateWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -634,21 +634,21 @@ func (c *Amplify) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, // See the AWS API reference guide for AWS Amplify's // API operation DeleteApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -727,21 +727,21 @@ func (c *Amplify) DeleteBackendEnvironmentRequest(input *DeleteBackendEnvironmen // See the AWS API reference guide for AWS Amplify's // API operation DeleteBackendEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -820,21 +820,21 @@ func (c *Amplify) DeleteBranchRequest(input *DeleteBranchInput) (req *request.Re // See the AWS API reference guide for AWS Amplify's // API operation DeleteBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -913,21 +913,21 @@ func (c *Amplify) DeleteDomainAssociationRequest(input *DeleteDomainAssociationI // See the AWS API reference guide for AWS Amplify's // API operation DeleteDomainAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -1006,21 +1006,21 @@ func (c *Amplify) DeleteJobRequest(input *DeleteJobInput) (req *request.Request, // See the AWS API reference guide for AWS Amplify's // API operation DeleteJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -1099,21 +1099,21 @@ func (c *Amplify) DeleteWebhookRequest(input *DeleteWebhookInput) (req *request. // See the AWS API reference guide for AWS Amplify's // API operation DeleteWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -1192,17 +1192,17 @@ func (c *Amplify) GenerateAccessLogsRequest(input *GenerateAccessLogsInput) (req // See the AWS API reference guide for AWS Amplify's // API operation GenerateAccessLogs for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -1281,17 +1281,17 @@ func (c *Amplify) GetAppRequest(input *GetAppInput) (req *request.Request, outpu // See the AWS API reference guide for AWS Amplify's // API operation GetApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -1370,21 +1370,21 @@ func (c *Amplify) GetArtifactUrlRequest(input *GetArtifactUrlInput) (req *reques // See the AWS API reference guide for AWS Amplify's // API operation GetArtifactUrl for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -1463,17 +1463,17 @@ func (c *Amplify) GetBackendEnvironmentRequest(input *GetBackendEnvironmentInput // See the AWS API reference guide for AWS Amplify's // API operation GetBackendEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -1552,17 +1552,17 @@ func (c *Amplify) GetBranchRequest(input *GetBranchInput) (req *request.Request, // See the AWS API reference guide for AWS Amplify's // API operation GetBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -1641,17 +1641,17 @@ func (c *Amplify) GetDomainAssociationRequest(input *GetDomainAssociationInput) // See the AWS API reference guide for AWS Amplify's // API operation GetDomainAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -1730,21 +1730,21 @@ func (c *Amplify) GetJobRequest(input *GetJobInput) (req *request.Request, outpu // See the AWS API reference guide for AWS Amplify's // API operation GetJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -1823,21 +1823,21 @@ func (c *Amplify) GetWebhookRequest(input *GetWebhookInput) (req *request.Reques // See the AWS API reference guide for AWS Amplify's // API operation GetWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -1916,14 +1916,14 @@ func (c *Amplify) ListAppsRequest(input *ListAppsInput) (req *request.Request, o // See the AWS API reference guide for AWS Amplify's // API operation ListApps for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -2002,18 +2002,18 @@ func (c *Amplify) ListArtifactsRequest(input *ListArtifactsInput) (req *request. // See the AWS API reference guide for AWS Amplify's // API operation ListArtifacts for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -2092,14 +2092,14 @@ func (c *Amplify) ListBackendEnvironmentsRequest(input *ListBackendEnvironmentsI // See the AWS API reference guide for AWS Amplify's // API operation ListBackendEnvironments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -2178,14 +2178,14 @@ func (c *Amplify) ListBranchesRequest(input *ListBranchesInput) (req *request.Re // See the AWS API reference guide for AWS Amplify's // API operation ListBranches for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -2264,14 +2264,14 @@ func (c *Amplify) ListDomainAssociationsRequest(input *ListDomainAssociationsInp // See the AWS API reference guide for AWS Amplify's // API operation ListDomainAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -2350,18 +2350,18 @@ func (c *Amplify) ListJobsRequest(input *ListJobsInput) (req *request.Request, o // See the AWS API reference guide for AWS Amplify's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -2440,15 +2440,15 @@ func (c *Amplify) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // See the AWS API reference guide for AWS Amplify's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception thrown when an operation fails due to non-existent resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/ListTagsForResource @@ -2526,18 +2526,18 @@ func (c *Amplify) ListWebhooksRequest(input *ListWebhooksInput) (req *request.Re // See the AWS API reference guide for AWS Amplify's // API operation ListWebhooks for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -2616,21 +2616,21 @@ func (c *Amplify) StartDeploymentRequest(input *StartDeploymentInput) (req *requ // See the AWS API reference guide for AWS Amplify's // API operation StartDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -2709,21 +2709,21 @@ func (c *Amplify) StartJobRequest(input *StartJobInput) (req *request.Request, o // See the AWS API reference guide for AWS Amplify's // API operation StartJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -2802,21 +2802,21 @@ func (c *Amplify) StopJobRequest(input *StopJobInput) (req *request.Request, out // See the AWS API reference guide for AWS Amplify's // API operation StopJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exception thrown when a resource could not be created because of service // limits. // @@ -2896,15 +2896,15 @@ func (c *Amplify) TagResourceRequest(input *TagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS Amplify's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception thrown when an operation fails due to non-existent resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/TagResource @@ -2983,15 +2983,15 @@ func (c *Amplify) UntagResourceRequest(input *UntagResourceInput) (req *request. // See the AWS API reference guide for AWS Amplify's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception thrown when an operation fails due to non-existent resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/UntagResource @@ -3069,17 +3069,17 @@ func (c *Amplify) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, // See the AWS API reference guide for AWS Amplify's // API operation UpdateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // @@ -3158,21 +3158,21 @@ func (c *Amplify) UpdateBranchRequest(input *UpdateBranchInput) (req *request.Re // See the AWS API reference guide for AWS Amplify's // API operation UpdateBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -3251,21 +3251,21 @@ func (c *Amplify) UpdateDomainAssociationRequest(input *UpdateDomainAssociationI // See the AWS API reference guide for AWS Amplify's // API operation UpdateDomainAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -3344,21 +3344,21 @@ func (c *Amplify) UpdateWebhookRequest(input *UpdateWebhookInput) (req *request. // See the AWS API reference guide for AWS Amplify's // API operation UpdateWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception thrown when a request contains unexpected data. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Exception thrown when an operation fails due to a lack of access. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception thrown when an entity has not been found during an operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Exception thrown when the service fails to perform an operation due to an // internal issue. // -// * ErrCodeDependentServiceFailureException "DependentServiceFailureException" +// * DependentServiceFailureException // Exception thrown when an operation fails due to a dependent service throwing // an exception. // @@ -3837,6 +3837,62 @@ func (s *BackendEnvironment) SetUpdateTime(v time.Time) *BackendEnvironment { return s } +// Exception thrown when a request contains unexpected data. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Branch for an Amplify App, which maps to a 3rd party repository branch. type Branch struct { _ struct{} `type:"structure"` @@ -5604,6 +5660,63 @@ func (s *DeleteWebhookOutput) SetWebhook(v *Webhook) *DeleteWebhookOutput { return s } +// Exception thrown when an operation fails due to a dependent service throwing +// an exception. +type DependentServiceFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DependentServiceFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DependentServiceFailureException) GoString() string { + return s.String() +} + +func newErrorDependentServiceFailureException(v protocol.ResponseMetadata) error { + return &DependentServiceFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DependentServiceFailureException) Code() string { + return "DependentServiceFailureException" +} + +// Message returns the exception's message. +func (s DependentServiceFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DependentServiceFailureException) OrigErr() error { + return nil +} + +func (s DependentServiceFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DependentServiceFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DependentServiceFailureException) RequestID() string { + return s.respMetadata.RequestID +} + // Structure for Domain Association, which associates a custom domain with an // Amplify App. type DomainAssociation struct { @@ -6363,6 +6476,63 @@ func (s *GetWebhookOutput) SetWebhook(v *Webhook) *GetWebhookOutput { return s } +// Exception thrown when the service fails to perform an operation due to an +// internal issue. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + // Structure for an execution job for an Amplify App. type Job struct { _ struct{} `type:"structure"` @@ -6514,6 +6684,63 @@ func (s *JobSummary) SetStatus(v string) *JobSummary { return s } +// Exception thrown when a resource could not be created because of service +// limits. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Request structure for an Amplify App list request. type ListAppsInput struct { _ struct{} `type:"structure"` @@ -7333,6 +7560,62 @@ func (s *ListWebhooksOutput) SetWebhooks(v []*Webhook) *ListWebhooksOutput { return s } +// Exception thrown when an entity has not been found during an operation. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Structure with Production Branch information. type ProductionBranch struct { _ struct{} `type:"structure"` @@ -7384,6 +7667,64 @@ func (s *ProductionBranch) SetThumbnailUrl(v string) *ProductionBranch { return s } +// Exception thrown when an operation fails due to non-existent resource. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Request structure for start a deployment. type StartDeploymentInput struct { _ struct{} `type:"structure"` @@ -8038,6 +8379,62 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Exception thrown when an operation fails due to a lack of access. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // Request structure used to untag resource. type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/amplify/errors.go b/service/amplify/errors.go index ba7fd5a9acb..4e406d9ce46 100644 --- a/service/amplify/errors.go +++ b/service/amplify/errors.go @@ -2,6 +2,10 @@ package amplify +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -49,3 +53,13 @@ const ( // Exception thrown when an operation fails due to a lack of access. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "DependentServiceFailureException": newErrorDependentServiceFailureException, + "InternalFailureException": newErrorInternalFailureException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/amplify/service.go b/service/amplify/service.go index 425047189dc..340a68be15c 100644 --- a/service/amplify/service.go +++ b/service/amplify/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/apigateway/api.go b/service/apigateway/api.go index 2ac48ac1cbe..e2e1306b9f2 100644 --- a/service/apigateway/api.go +++ b/service/apigateway/api.go @@ -3,6 +3,7 @@ package apigateway import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,25 +66,25 @@ func (c *APIGateway) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request // See the AWS API reference guide for Amazon API Gateway's // API operation CreateApiKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -161,21 +162,21 @@ func (c *APIGateway) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation CreateAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -251,22 +252,22 @@ func (c *APIGateway) CreateBasePathMappingRequest(input *CreateBasePathMappingIn // See the AWS API reference guide for Amazon API Gateway's // API operation CreateBasePathMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -343,29 +344,29 @@ func (c *APIGateway) CreateDeploymentRequest(input *CreateDeploymentInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation CreateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The requested service is not available. For details see the accompanying // error message. Retry after the specified time period. // @@ -439,25 +440,25 @@ func (c *APIGateway) CreateDocumentationPartRequest(input *CreateDocumentationPa // See the AWS API reference guide for Amazon API Gateway's // API operation CreateDocumentationPart for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -531,25 +532,25 @@ func (c *APIGateway) CreateDocumentationVersionRequest(input *CreateDocumentatio // See the AWS API reference guide for Amazon API Gateway's // API operation CreateDocumentationVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -625,19 +626,19 @@ func (c *APIGateway) CreateDomainNameRequest(input *CreateDomainNameInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation CreateDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -713,25 +714,25 @@ func (c *APIGateway) CreateModelRequest(input *CreateModelInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation CreateModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -807,21 +808,21 @@ func (c *APIGateway) CreateRequestValidatorRequest(input *CreateRequestValidator // See the AWS API reference guide for Amazon API Gateway's // API operation CreateRequestValidator for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -897,25 +898,25 @@ func (c *APIGateway) CreateResourceRequest(input *CreateResourceInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation CreateResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -991,18 +992,18 @@ func (c *APIGateway) CreateRestApiRequest(input *CreateRestApiInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation CreateRestApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -1079,25 +1080,25 @@ func (c *APIGateway) CreateStageRequest(input *CreateStageInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation CreateStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -1174,26 +1175,26 @@ func (c *APIGateway) CreateUsagePlanRequest(input *CreateUsagePlanInput) (req *r // See the AWS API reference guide for Amazon API Gateway's // API operation CreateUsagePlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // func (c *APIGateway) CreateUsagePlan(input *CreateUsagePlanInput) (*UsagePlan, error) { @@ -1268,22 +1269,22 @@ func (c *APIGateway) CreateUsagePlanKeyRequest(input *CreateUsagePlanKeyInput) ( // See the AWS API reference guide for Amazon API Gateway's // API operation CreateUsagePlanKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -1362,15 +1363,15 @@ func (c *APIGateway) CreateVpcLinkRequest(input *CreateVpcLinkInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation CreateVpcLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -1447,14 +1448,14 @@ func (c *APIGateway) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteApiKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -1533,22 +1534,22 @@ func (c *APIGateway) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -1625,22 +1626,22 @@ func (c *APIGateway) DeleteBasePathMappingRequest(input *DeleteBasePathMappingIn // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteBasePathMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -1717,19 +1718,19 @@ func (c *APIGateway) DeleteClientCertificateRequest(input *DeleteClientCertifica // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteClientCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // func (c *APIGateway) DeleteClientCertificate(input *DeleteClientCertificateInput) (*DeleteClientCertificateOutput, error) { @@ -1806,18 +1807,18 @@ func (c *APIGateway) DeleteDeploymentRequest(input *DeleteDeploymentInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -1892,22 +1893,22 @@ func (c *APIGateway) DeleteDocumentationPartRequest(input *DeleteDocumentationPa // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteDocumentationPart for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // @@ -1982,22 +1983,22 @@ func (c *APIGateway) DeleteDocumentationVersionRequest(input *DeleteDocumentatio // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteDocumentationVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -2074,18 +2075,18 @@ func (c *APIGateway) DeleteDomainNameRequest(input *DeleteDomainNameInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // @@ -2163,22 +2164,22 @@ func (c *APIGateway) DeleteGatewayResponseRequest(input *DeleteGatewayResponseIn // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteGatewayResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -2255,18 +2256,18 @@ func (c *APIGateway) DeleteIntegrationRequest(input *DeleteIntegrationInput) (re // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -2343,22 +2344,22 @@ func (c *APIGateway) DeleteIntegrationResponseRequest(input *DeleteIntegrationRe // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -2435,18 +2436,18 @@ func (c *APIGateway) DeleteMethodRequest(input *DeleteMethodInput) (req *request // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteMethod for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -2523,22 +2524,22 @@ func (c *APIGateway) DeleteMethodResponseRequest(input *DeleteMethodResponseInpu // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteMethodResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -2615,22 +2616,22 @@ func (c *APIGateway) DeleteModelRequest(input *DeleteModelInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -2707,22 +2708,22 @@ func (c *APIGateway) DeleteRequestValidatorRequest(input *DeleteRequestValidator // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteRequestValidator for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -2799,22 +2800,22 @@ func (c *APIGateway) DeleteResourceRequest(input *DeleteResourceInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -2891,18 +2892,18 @@ func (c *APIGateway) DeleteRestApiRequest(input *DeleteRestApiInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteRestApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // @@ -2979,18 +2980,18 @@ func (c *APIGateway) DeleteStageRequest(input *DeleteStageInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // @@ -3067,19 +3068,19 @@ func (c *APIGateway) DeleteUsagePlanRequest(input *DeleteUsagePlanInput) (req *r // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteUsagePlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // func (c *APIGateway) DeleteUsagePlan(input *DeleteUsagePlanInput) (*DeleteUsagePlanOutput, error) { @@ -3156,22 +3157,22 @@ func (c *APIGateway) DeleteUsagePlanKeyRequest(input *DeleteUsagePlanKeyInput) ( // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteUsagePlanKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -3248,18 +3249,18 @@ func (c *APIGateway) DeleteVpcLinkRequest(input *DeleteVpcLinkInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation DeleteVpcLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // @@ -3336,18 +3337,18 @@ func (c *APIGateway) FlushStageAuthorizersCacheRequest(input *FlushStageAuthoriz // See the AWS API reference guide for Amazon API Gateway's // API operation FlushStageAuthorizersCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -3424,18 +3425,18 @@ func (c *APIGateway) FlushStageCacheRequest(input *FlushStageCacheInput) (req *r // See the AWS API reference guide for Amazon API Gateway's // API operation FlushStageCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -3511,15 +3512,15 @@ func (c *APIGateway) GenerateClientCertificateRequest(input *GenerateClientCerti // See the AWS API reference guide for Amazon API Gateway's // API operation GenerateClientCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // func (c *APIGateway) GenerateClientCertificate(input *GenerateClientCertificateInput) (*ClientCertificate, error) { @@ -3594,14 +3595,14 @@ func (c *APIGateway) GetAccountRequest(input *GetAccountInput) (req *request.Req // See the AWS API reference guide for Amazon API Gateway's // API operation GetAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -3677,14 +3678,14 @@ func (c *APIGateway) GetApiKeyRequest(input *GetApiKeyInput) (req *request.Reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetApiKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -3766,15 +3767,15 @@ func (c *APIGateway) GetApiKeysRequest(input *GetApiKeysInput) (req *request.Req // See the AWS API reference guide for Amazon API Gateway's // API operation GetApiKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -3904,14 +3905,14 @@ func (c *APIGateway) GetAuthorizerRequest(input *GetAuthorizerInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -3989,18 +3990,18 @@ func (c *APIGateway) GetAuthorizersRequest(input *GetAuthorizersInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation GetAuthorizers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -4076,14 +4077,14 @@ func (c *APIGateway) GetBasePathMappingRequest(input *GetBasePathMappingInput) ( // See the AWS API reference guide for Amazon API Gateway's // API operation GetBasePathMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -4165,14 +4166,14 @@ func (c *APIGateway) GetBasePathMappingsRequest(input *GetBasePathMappingsInput) // See the AWS API reference guide for Amazon API Gateway's // API operation GetBasePathMappings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -4300,14 +4301,14 @@ func (c *APIGateway) GetClientCertificateRequest(input *GetClientCertificateInpu // See the AWS API reference guide for Amazon API Gateway's // API operation GetClientCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -4389,15 +4390,15 @@ func (c *APIGateway) GetClientCertificatesRequest(input *GetClientCertificatesIn // See the AWS API reference guide for Amazon API Gateway's // API operation GetClientCertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -4525,18 +4526,18 @@ func (c *APIGateway) GetDeploymentRequest(input *GetDeploymentInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The requested service is not available. For details see the accompanying // error message. Retry after the specified time period. // @@ -4618,19 +4619,19 @@ func (c *APIGateway) GetDeploymentsRequest(input *GetDeploymentsInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation GetDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The requested service is not available. For details see the accompanying // error message. Retry after the specified time period. // @@ -4756,14 +4757,14 @@ func (c *APIGateway) GetDocumentationPartRequest(input *GetDocumentationPartInpu // See the AWS API reference guide for Amazon API Gateway's // API operation GetDocumentationPart for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -4837,18 +4838,18 @@ func (c *APIGateway) GetDocumentationPartsRequest(input *GetDocumentationPartsIn // See the AWS API reference guide for Amazon API Gateway's // API operation GetDocumentationParts for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -4922,14 +4923,14 @@ func (c *APIGateway) GetDocumentationVersionRequest(input *GetDocumentationVersi // See the AWS API reference guide for Amazon API Gateway's // API operation GetDocumentationVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5003,18 +5004,18 @@ func (c *APIGateway) GetDocumentationVersionsRequest(input *GetDocumentationVers // See the AWS API reference guide for Amazon API Gateway's // API operation GetDocumentationVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5091,18 +5092,18 @@ func (c *APIGateway) GetDomainNameRequest(input *GetDomainNameInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The requested service is not available. For details see the accompanying // error message. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5184,15 +5185,15 @@ func (c *APIGateway) GetDomainNamesRequest(input *GetDomainNamesInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation GetDomainNames for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5320,22 +5321,22 @@ func (c *APIGateway) GetExportRequest(input *GetExportInput) (req *request.Reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetExport for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5411,14 +5412,14 @@ func (c *APIGateway) GetGatewayResponseRequest(input *GetGatewayResponseInput) ( // See the AWS API reference guide for Amazon API Gateway's // API operation GetGatewayResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5497,18 +5498,18 @@ func (c *APIGateway) GetGatewayResponsesRequest(input *GetGatewayResponsesInput) // See the AWS API reference guide for Amazon API Gateway's // API operation GetGatewayResponses for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5584,14 +5585,14 @@ func (c *APIGateway) GetIntegrationRequest(input *GetIntegrationInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation GetIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5667,14 +5668,14 @@ func (c *APIGateway) GetIntegrationResponseRequest(input *GetIntegrationResponse // See the AWS API reference guide for Amazon API Gateway's // API operation GetIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5750,14 +5751,14 @@ func (c *APIGateway) GetMethodRequest(input *GetMethodInput) (req *request.Reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetMethod for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5833,14 +5834,14 @@ func (c *APIGateway) GetMethodResponseRequest(input *GetMethodResponseInput) (re // See the AWS API reference guide for Amazon API Gateway's // API operation GetMethodResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -5916,14 +5917,14 @@ func (c *APIGateway) GetModelRequest(input *GetModelInput) (req *request.Request // See the AWS API reference guide for Amazon API Gateway's // API operation GetModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6000,18 +6001,18 @@ func (c *APIGateway) GetModelTemplateRequest(input *GetModelTemplateInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation GetModelTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6093,18 +6094,18 @@ func (c *APIGateway) GetModelsRequest(input *GetModelsInput) (req *request.Reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetModels for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6232,14 +6233,14 @@ func (c *APIGateway) GetRequestValidatorRequest(input *GetRequestValidatorInput) // See the AWS API reference guide for Amazon API Gateway's // API operation GetRequestValidator for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6315,18 +6316,18 @@ func (c *APIGateway) GetRequestValidatorsRequest(input *GetRequestValidatorsInpu // See the AWS API reference guide for Amazon API Gateway's // API operation GetRequestValidators for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6402,14 +6403,14 @@ func (c *APIGateway) GetResourceRequest(input *GetResourceInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation GetResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6491,18 +6492,18 @@ func (c *APIGateway) GetResourcesRequest(input *GetResourcesInput) (req *request // See the AWS API reference guide for Amazon API Gateway's // API operation GetResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6630,14 +6631,14 @@ func (c *APIGateway) GetRestApiRequest(input *GetRestApiInput) (req *request.Req // See the AWS API reference guide for Amazon API Gateway's // API operation GetRestApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6719,15 +6720,15 @@ func (c *APIGateway) GetRestApisRequest(input *GetRestApisInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation GetRestApis for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6855,22 +6856,22 @@ func (c *APIGateway) GetSdkRequest(input *GetSdkInput) (req *request.Request, ou // See the AWS API reference guide for Amazon API Gateway's // API operation GetSdk for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -6944,14 +6945,14 @@ func (c *APIGateway) GetSdkTypeRequest(input *GetSdkTypeInput) (req *request.Req // See the AWS API reference guide for Amazon API Gateway's // API operation GetSdkType for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7025,11 +7026,11 @@ func (c *APIGateway) GetSdkTypesRequest(input *GetSdkTypesInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation GetSdkTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7105,14 +7106,14 @@ func (c *APIGateway) GetStageRequest(input *GetStageInput) (req *request.Request // See the AWS API reference guide for Amazon API Gateway's // API operation GetStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7188,14 +7189,14 @@ func (c *APIGateway) GetStagesRequest(input *GetStagesInput) (req *request.Reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetStages for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7271,22 +7272,22 @@ func (c *APIGateway) GetTagsRequest(input *GetTagsInput) (req *request.Request, // See the AWS API reference guide for Amazon API Gateway's // API operation GetTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // func (c *APIGateway) GetTags(input *GetTagsInput) (*GetTagsOutput, error) { @@ -7367,18 +7368,18 @@ func (c *APIGateway) GetUsageRequest(input *GetUsageInput) (req *request.Request // See the AWS API reference guide for Amazon API Gateway's // API operation GetUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7506,18 +7507,18 @@ func (c *APIGateway) GetUsagePlanRequest(input *GetUsagePlanInput) (req *request // See the AWS API reference guide for Amazon API Gateway's // API operation GetUsagePlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7593,18 +7594,18 @@ func (c *APIGateway) GetUsagePlanKeyRequest(input *GetUsagePlanKeyInput) (req *r // See the AWS API reference guide for Amazon API Gateway's // API operation GetUsagePlanKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7687,18 +7688,18 @@ func (c *APIGateway) GetUsagePlanKeysRequest(input *GetUsagePlanKeysInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation GetUsagePlanKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -7832,23 +7833,23 @@ func (c *APIGateway) GetUsagePlansRequest(input *GetUsagePlansInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation GetUsagePlans for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // func (c *APIGateway) GetUsagePlans(input *GetUsagePlansInput) (*GetUsagePlansOutput, error) { @@ -7975,14 +7976,14 @@ func (c *APIGateway) GetVpcLinkRequest(input *GetVpcLinkInput) (req *request.Req // See the AWS API reference guide for Amazon API Gateway's // API operation GetVpcLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -8064,15 +8065,15 @@ func (c *APIGateway) GetVpcLinksRequest(input *GetVpcLinksInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation GetVpcLinks for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -8200,25 +8201,25 @@ func (c *APIGateway) ImportApiKeysRequest(input *ImportApiKeysInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation ImportApiKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -8292,21 +8293,21 @@ func (c *APIGateway) ImportDocumentationPartsRequest(input *ImportDocumentationP // See the AWS API reference guide for Amazon API Gateway's // API operation ImportDocumentationParts for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -8383,22 +8384,22 @@ func (c *APIGateway) ImportRestApiRequest(input *ImportRestApiInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation ImportRestApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -8475,21 +8476,21 @@ func (c *APIGateway) PutGatewayResponseRequest(input *PutGatewayResponseInput) ( // See the AWS API reference guide for Amazon API Gateway's // API operation PutGatewayResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -8565,22 +8566,22 @@ func (c *APIGateway) PutIntegrationRequest(input *PutIntegrationInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation PutIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -8656,25 +8657,25 @@ func (c *APIGateway) PutIntegrationResponseRequest(input *PutIntegrationResponse // See the AWS API reference guide for Amazon API Gateway's // API operation PutIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -8750,25 +8751,25 @@ func (c *APIGateway) PutMethodRequest(input *PutMethodInput) (req *request.Reque // See the AWS API reference guide for Amazon API Gateway's // API operation PutMethod for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -8844,25 +8845,25 @@ func (c *APIGateway) PutMethodResponseRequest(input *PutMethodResponseInput) (re // See the AWS API reference guide for Amazon API Gateway's // API operation PutMethodResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -8941,25 +8942,25 @@ func (c *APIGateway) PutRestApiRequest(input *PutRestApiInput) (req *request.Req // See the AWS API reference guide for Amazon API Gateway's // API operation PutRestApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -9036,25 +9037,25 @@ func (c *APIGateway) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -9134,18 +9135,18 @@ func (c *APIGateway) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInpu // See the AWS API reference guide for Amazon API Gateway's // API operation TestInvokeAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -9222,18 +9223,18 @@ func (c *APIGateway) TestInvokeMethodRequest(input *TestInvokeMethodInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation TestInvokeMethod for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -9310,22 +9311,22 @@ func (c *APIGateway) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -9401,18 +9402,18 @@ func (c *APIGateway) UpdateAccountRequest(input *UpdateAccountInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -9488,22 +9489,22 @@ func (c *APIGateway) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateApiKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -9581,18 +9582,18 @@ func (c *APIGateway) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -9668,22 +9669,22 @@ func (c *APIGateway) UpdateBasePathMappingRequest(input *UpdateBasePathMappingIn // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateBasePathMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -9759,19 +9760,19 @@ func (c *APIGateway) UpdateClientCertificateRequest(input *UpdateClientCertifica // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateClientCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // func (c *APIGateway) UpdateClientCertificate(input *UpdateClientCertificateInput) (*ClientCertificate, error) { @@ -9846,22 +9847,22 @@ func (c *APIGateway) UpdateDeploymentRequest(input *UpdateDeploymentInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The requested service is not available. For details see the accompanying // error message. Retry after the specified time period. // @@ -9935,25 +9936,25 @@ func (c *APIGateway) UpdateDocumentationPartRequest(input *UpdateDocumentationPa // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateDocumentationPart for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10027,22 +10028,22 @@ func (c *APIGateway) UpdateDocumentationVersionRequest(input *UpdateDocumentatio // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateDocumentationVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10118,22 +10119,22 @@ func (c *APIGateway) UpdateDomainNameRequest(input *UpdateDomainNameInput) (req // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10209,18 +10210,18 @@ func (c *APIGateway) UpdateGatewayResponseRequest(input *UpdateGatewayResponseIn // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateGatewayResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10296,22 +10297,22 @@ func (c *APIGateway) UpdateIntegrationRequest(input *UpdateIntegrationInput) (re // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -10387,22 +10388,22 @@ func (c *APIGateway) UpdateIntegrationResponseRequest(input *UpdateIntegrationRe // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10478,22 +10479,22 @@ func (c *APIGateway) UpdateMethodRequest(input *UpdateMethodInput) (req *request // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateMethod for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10569,25 +10570,25 @@ func (c *APIGateway) UpdateMethodResponseRequest(input *UpdateMethodResponseInpu // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateMethodResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded the rate limit. Retry after the specified time period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10663,22 +10664,22 @@ func (c *APIGateway) UpdateModelRequest(input *UpdateModelInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10754,18 +10755,18 @@ func (c *APIGateway) UpdateRequestValidatorRequest(input *UpdateRequestValidator // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateRequestValidator for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10841,22 +10842,22 @@ func (c *APIGateway) UpdateResourceRequest(input *UpdateResourceInput) (req *req // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -10932,22 +10933,22 @@ func (c *APIGateway) UpdateRestApiRequest(input *UpdateRestApiInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateRestApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -11023,22 +11024,22 @@ func (c *APIGateway) UpdateStageRequest(input *UpdateStageInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -11115,19 +11116,19 @@ func (c *APIGateway) UpdateUsageRequest(input *UpdateUsageInput) (req *request.R // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // func (c *APIGateway) UpdateUsage(input *UpdateUsageInput) (*Usage, error) { @@ -11202,22 +11203,22 @@ func (c *APIGateway) UpdateUsagePlanRequest(input *UpdateUsagePlanInput) (req *r // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateUsagePlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // @@ -11293,22 +11294,22 @@ func (c *APIGateway) UpdateVpcLinkRequest(input *UpdateVpcLinkInput) (req *reque // See the AWS API reference guide for Amazon API Gateway's // API operation UpdateVpcLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request is denied because the caller has insufficient permissions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource is not found. Make sure that the request URI is correct. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The submitted request is not valid, for example, the input is incomplete // or incorrect. See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request configuration has conflicts. For details, see the accompanying // error message. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request has reached its throttling limit. Retry after the specified time // period. // @@ -11763,6 +11764,63 @@ func (s *Authorizer) SetType(v string) *Authorizer { return s } +// The submitted request is not valid, for example, the input is incomplete +// or incorrect. See the accompanying error message for details. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the base path that callers of the API must provide as part of // the URL after the domain name. // @@ -11943,6 +12001,63 @@ func (s *ClientCertificate) SetTags(v map[string]*string) *ClientCertificate { return s } +// The request configuration has conflicts. For details, see the accompanying +// error message. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Request to create an ApiKey resource. type CreateApiKeyInput struct { _ struct{} `type:"structure"` @@ -20166,6 +20281,64 @@ func (s *IntegrationResponse) SetStatusCode(v string) *IntegrationResponse { return s } +// The request exceeded the rate limit. Retry after the specified time period. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a client-facing interface by which the client calls the API to // access back-end resources. A Method resource is integrated with an Integration // resource. Both consist of a request and one or more responses. The method @@ -20755,6 +20928,62 @@ func (s *Model) SetSchema(v string) *Model { return s } +// The requested resource is not found. Make sure that the request URI is correct. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A single patch operation to apply to the specified resource. Please refer // to http://tools.ietf.org/html/rfc6902#section-4 for an explanation of how // each operation is used. @@ -22163,6 +22392,65 @@ func (s *SdkType) SetId(v string) *SdkType { return s } +// The requested service is not available. For details see the accompanying +// error message. Retry after the specified time period. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a unique identifier for a version of a deployed RestApi that is // callable by users. // @@ -22887,6 +23175,121 @@ func (s *ThrottleSettings) SetRateLimit(v float64) *ThrottleSettings { return s } +// The request has reached its throttling limit. Retry after the specified time +// period. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is denied because the caller has insufficient permissions. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // Removes a tag from a given resource. type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/apigateway/errors.go b/service/apigateway/errors.go index 99208e8455f..fffbcf214b3 100644 --- a/service/apigateway/errors.go +++ b/service/apigateway/errors.go @@ -2,6 +2,10 @@ package apigateway +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -50,3 +54,13 @@ const ( // The request is denied because the caller has insufficient permissions. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/apigateway/service.go b/service/apigateway/service.go index a7eff948299..2f7f7f30c8e 100644 --- a/service/apigateway/service.go +++ b/service/apigateway/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/apigatewaymanagementapi/api.go b/service/apigatewaymanagementapi/api.go index 69a9ac9bc14..0db62a9842b 100644 --- a/service/apigatewaymanagementapi/api.go +++ b/service/apigatewaymanagementapi/api.go @@ -3,6 +3,7 @@ package apigatewaymanagementapi import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,15 +67,15 @@ func (c *ApiGatewayManagementApi) DeleteConnectionRequest(input *DeleteConnectio // See the AWS API reference guide for AmazonApiGatewayManagementApi's // API operation DeleteConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeGoneException "GoneException" +// Returned Error Types: +// * GoneException // The connection with the provided id no longer exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The client is sending more than the allowed number of requests per unit of // time or the WebSocket client side buffer is full. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to invoke this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/DeleteConnection @@ -152,15 +153,15 @@ func (c *ApiGatewayManagementApi) GetConnectionRequest(input *GetConnectionInput // See the AWS API reference guide for AmazonApiGatewayManagementApi's // API operation GetConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeGoneException "GoneException" +// Returned Error Types: +// * GoneException // The connection with the provided id no longer exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The client is sending more than the allowed number of requests per unit of // time or the WebSocket client side buffer is full. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to invoke this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/GetConnection @@ -239,18 +240,18 @@ func (c *ApiGatewayManagementApi) PostToConnectionRequest(input *PostToConnectio // See the AWS API reference guide for AmazonApiGatewayManagementApi's // API operation PostToConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeGoneException "GoneException" +// Returned Error Types: +// * GoneException // The connection with the provided id no longer exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The client is sending more than the allowed number of requests per unit of // time or the WebSocket client side buffer is full. // -// * ErrCodePayloadTooLargeException "PayloadTooLargeException" +// * PayloadTooLargeException // The data has exceeded the maximum size allowed. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to invoke this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewaymanagementapi-2018-11-29/PostToConnection @@ -328,6 +329,57 @@ func (s DeleteConnectionOutput) GoString() string { return s.String() } +// The caller is not authorized to invoke this operation. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetConnectionInput struct { _ struct{} `type:"structure"` @@ -405,6 +457,57 @@ func (s *GetConnectionOutput) SetLastActiveAt(v time.Time) *GetConnectionOutput return s } +// The connection with the provided id no longer exists. +type GoneException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s GoneException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GoneException) GoString() string { + return s.String() +} + +func newErrorGoneException(v protocol.ResponseMetadata) error { + return &GoneException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GoneException) Code() string { + return "GoneException" +} + +// Message returns the exception's message. +func (s GoneException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GoneException) OrigErr() error { + return nil +} + +func (s GoneException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GoneException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GoneException) RequestID() string { + return s.respMetadata.RequestID +} + type Identity struct { _ struct{} `type:"structure"` @@ -441,6 +544,114 @@ func (s *Identity) SetUserAgent(v string) *Identity { return s } +// The client is sending more than the allowed number of requests per unit of +// time or the WebSocket client side buffer is full. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The data has exceeded the maximum size allowed. +type PayloadTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PayloadTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PayloadTooLargeException) GoString() string { + return s.String() +} + +func newErrorPayloadTooLargeException(v protocol.ResponseMetadata) error { + return &PayloadTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PayloadTooLargeException) Code() string { + return "PayloadTooLargeException" +} + +// Message returns the exception's message. +func (s PayloadTooLargeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PayloadTooLargeException) OrigErr() error { + return nil +} + +func (s PayloadTooLargeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PayloadTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PayloadTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + type PostToConnectionInput struct { _ struct{} `type:"structure" payload:"Data"` diff --git a/service/apigatewaymanagementapi/errors.go b/service/apigatewaymanagementapi/errors.go index fda5df96781..fd7b522215c 100644 --- a/service/apigatewaymanagementapi/errors.go +++ b/service/apigatewaymanagementapi/errors.go @@ -2,6 +2,10 @@ package apigatewaymanagementapi +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeForbiddenException for service response error code @@ -29,3 +33,10 @@ const ( // The data has exceeded the maximum size allowed. ErrCodePayloadTooLargeException = "PayloadTooLargeException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ForbiddenException": newErrorForbiddenException, + "GoneException": newErrorGoneException, + "LimitExceededException": newErrorLimitExceededException, + "PayloadTooLargeException": newErrorPayloadTooLargeException, +} diff --git a/service/apigatewaymanagementapi/service.go b/service/apigatewaymanagementapi/service.go index a3cc9967aa4..01321514dbe 100644 --- a/service/apigatewaymanagementapi/service.go +++ b/service/apigatewaymanagementapi/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/apigatewayv2/api.go b/service/apigatewayv2/api.go index 1d3dd37a9f0..7f2175abdf5 100644 --- a/service/apigatewayv2/api.go +++ b/service/apigatewayv2/api.go @@ -3,6 +3,7 @@ package apigatewayv2 import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,19 +66,19 @@ func (c *ApiGatewayV2) CreateApiRequest(input *CreateApiInput) (req *request.Req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -157,19 +158,19 @@ func (c *ApiGatewayV2) CreateApiMappingRequest(input *CreateApiMappingInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateApiMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -249,19 +250,19 @@ func (c *ApiGatewayV2) CreateAuthorizerRequest(input *CreateAuthorizerInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -341,19 +342,19 @@ func (c *ApiGatewayV2) CreateDeploymentRequest(input *CreateDeploymentInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -433,24 +434,24 @@ func (c *ApiGatewayV2) CreateDomainNameRequest(input *CreateDomainNameInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/CreateDomainName func (c *ApiGatewayV2) CreateDomainName(input *CreateDomainNameInput) (*CreateDomainNameOutput, error) { @@ -527,19 +528,19 @@ func (c *ApiGatewayV2) CreateIntegrationRequest(input *CreateIntegrationInput) ( // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -619,19 +620,19 @@ func (c *ApiGatewayV2) CreateIntegrationResponseRequest(input *CreateIntegration // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -711,19 +712,19 @@ func (c *ApiGatewayV2) CreateModelRequest(input *CreateModelInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -803,19 +804,19 @@ func (c *ApiGatewayV2) CreateRouteRequest(input *CreateRouteInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -895,19 +896,19 @@ func (c *ApiGatewayV2) CreateRouteResponseRequest(input *CreateRouteResponseInpu // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateRouteResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -987,19 +988,19 @@ func (c *ApiGatewayV2) CreateStageRequest(input *CreateStageInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation CreateStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -1080,12 +1081,12 @@ func (c *ApiGatewayV2) DeleteApiRequest(input *DeleteApiInput) (req *request.Req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteApi @@ -1164,15 +1165,15 @@ func (c *ApiGatewayV2) DeleteApiMappingRequest(input *DeleteApiMappingInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteApiMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -1252,12 +1253,12 @@ func (c *ApiGatewayV2) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteAuthorizer @@ -1336,12 +1337,12 @@ func (c *ApiGatewayV2) DeleteCorsConfigurationRequest(input *DeleteCorsConfigura // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteCorsConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteCorsConfiguration @@ -1420,12 +1421,12 @@ func (c *ApiGatewayV2) DeleteDeploymentRequest(input *DeleteDeploymentInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteDeployment @@ -1504,12 +1505,12 @@ func (c *ApiGatewayV2) DeleteDomainNameRequest(input *DeleteDomainNameInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteDomainName @@ -1588,12 +1589,12 @@ func (c *ApiGatewayV2) DeleteIntegrationRequest(input *DeleteIntegrationInput) ( // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteIntegration @@ -1672,12 +1673,12 @@ func (c *ApiGatewayV2) DeleteIntegrationResponseRequest(input *DeleteIntegration // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteIntegrationResponse @@ -1756,12 +1757,12 @@ func (c *ApiGatewayV2) DeleteModelRequest(input *DeleteModelInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteModel @@ -1840,12 +1841,12 @@ func (c *ApiGatewayV2) DeleteRouteRequest(input *DeleteRouteInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteRoute @@ -1924,12 +1925,12 @@ func (c *ApiGatewayV2) DeleteRouteResponseRequest(input *DeleteRouteResponseInpu // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteRouteResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteRouteResponse @@ -2008,12 +2009,12 @@ func (c *ApiGatewayV2) DeleteRouteSettingsRequest(input *DeleteRouteSettingsInpu // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteRouteSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteRouteSettings @@ -2092,12 +2093,12 @@ func (c *ApiGatewayV2) DeleteStageRequest(input *DeleteStageInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation DeleteStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/DeleteStage @@ -2175,12 +2176,12 @@ func (c *ApiGatewayV2) GetApiRequest(input *GetApiInput) (req *request.Request, // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetApi @@ -2258,15 +2259,15 @@ func (c *ApiGatewayV2) GetApiMappingRequest(input *GetApiMappingInput) (req *req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetApiMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -2345,15 +2346,15 @@ func (c *ApiGatewayV2) GetApiMappingsRequest(input *GetApiMappingsInput) (req *r // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetApiMappings for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -2432,15 +2433,15 @@ func (c *ApiGatewayV2) GetApisRequest(input *GetApisInput) (req *request.Request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetApis for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -2519,12 +2520,12 @@ func (c *ApiGatewayV2) GetAuthorizerRequest(input *GetAuthorizerInput) (req *req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetAuthorizer @@ -2602,15 +2603,15 @@ func (c *ApiGatewayV2) GetAuthorizersRequest(input *GetAuthorizersInput) (req *r // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetAuthorizers for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -2689,12 +2690,12 @@ func (c *ApiGatewayV2) GetDeploymentRequest(input *GetDeploymentInput) (req *req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetDeployment @@ -2772,15 +2773,15 @@ func (c *ApiGatewayV2) GetDeploymentsRequest(input *GetDeploymentsInput) (req *r // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -2859,12 +2860,12 @@ func (c *ApiGatewayV2) GetDomainNameRequest(input *GetDomainNameInput) (req *req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetDomainName @@ -2942,15 +2943,15 @@ func (c *ApiGatewayV2) GetDomainNamesRequest(input *GetDomainNamesInput) (req *r // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetDomainNames for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -3029,12 +3030,12 @@ func (c *ApiGatewayV2) GetIntegrationRequest(input *GetIntegrationInput) (req *r // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetIntegration @@ -3112,12 +3113,12 @@ func (c *ApiGatewayV2) GetIntegrationResponseRequest(input *GetIntegrationRespon // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetIntegrationResponse @@ -3195,15 +3196,15 @@ func (c *ApiGatewayV2) GetIntegrationResponsesRequest(input *GetIntegrationRespo // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetIntegrationResponses for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -3282,15 +3283,15 @@ func (c *ApiGatewayV2) GetIntegrationsRequest(input *GetIntegrationsInput) (req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetIntegrations for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -3369,12 +3370,12 @@ func (c *ApiGatewayV2) GetModelRequest(input *GetModelInput) (req *request.Reque // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetModel @@ -3452,12 +3453,12 @@ func (c *ApiGatewayV2) GetModelTemplateRequest(input *GetModelTemplateInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetModelTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetModelTemplate @@ -3535,15 +3536,15 @@ func (c *ApiGatewayV2) GetModelsRequest(input *GetModelsInput) (req *request.Req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetModels for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -3622,12 +3623,12 @@ func (c *ApiGatewayV2) GetRouteRequest(input *GetRouteInput) (req *request.Reque // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetRoute @@ -3705,12 +3706,12 @@ func (c *ApiGatewayV2) GetRouteResponseRequest(input *GetRouteResponseInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetRouteResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetRouteResponse @@ -3788,15 +3789,15 @@ func (c *ApiGatewayV2) GetRouteResponsesRequest(input *GetRouteResponsesInput) ( // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetRouteResponses for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -3875,15 +3876,15 @@ func (c *ApiGatewayV2) GetRoutesRequest(input *GetRoutesInput) (req *request.Req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetRoutes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -3962,12 +3963,12 @@ func (c *ApiGatewayV2) GetStageRequest(input *GetStageInput) (req *request.Reque // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // // See also, https://docs.aws.amazon.com/goto/WebAPI/apigatewayv2-2018-11-29/GetStage @@ -4045,15 +4046,15 @@ func (c *ApiGatewayV2) GetStagesRequest(input *GetStagesInput) (req *request.Req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetStages for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // @@ -4132,19 +4133,19 @@ func (c *ApiGatewayV2) GetTagsRequest(input *GetTagsInput) (req *request.Request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation GetTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4224,19 +4225,19 @@ func (c *ApiGatewayV2) ImportApiRequest(input *ImportApiInput) (req *request.Req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation ImportApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4316,19 +4317,19 @@ func (c *ApiGatewayV2) ReimportApiRequest(input *ReimportApiInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation ReimportApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4409,19 +4410,19 @@ func (c *ApiGatewayV2) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4502,19 +4503,19 @@ func (c *ApiGatewayV2) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4594,19 +4595,19 @@ func (c *ApiGatewayV2) UpdateApiRequest(input *UpdateApiInput) (req *request.Req // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4686,19 +4687,19 @@ func (c *ApiGatewayV2) UpdateApiMappingRequest(input *UpdateApiMappingInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateApiMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4778,19 +4779,19 @@ func (c *ApiGatewayV2) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4870,19 +4871,19 @@ func (c *ApiGatewayV2) UpdateDeploymentRequest(input *UpdateDeploymentInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -4962,19 +4963,19 @@ func (c *ApiGatewayV2) UpdateDomainNameRequest(input *UpdateDomainNameInput) (re // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateDomainName for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -5054,19 +5055,19 @@ func (c *ApiGatewayV2) UpdateIntegrationRequest(input *UpdateIntegrationInput) ( // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateIntegration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -5146,19 +5147,19 @@ func (c *ApiGatewayV2) UpdateIntegrationResponseRequest(input *UpdateIntegration // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateIntegrationResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -5238,19 +5239,19 @@ func (c *ApiGatewayV2) UpdateModelRequest(input *UpdateModelInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -5330,19 +5331,19 @@ func (c *ApiGatewayV2) UpdateRouteRequest(input *UpdateRouteInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -5422,19 +5423,19 @@ func (c *ApiGatewayV2) UpdateRouteResponseRequest(input *UpdateRouteResponseInpu // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateRouteResponse for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -5514,19 +5515,19 @@ func (c *ApiGatewayV2) UpdateStageRequest(input *UpdateStageInput) (req *request // See the AWS API reference guide for AmazonApiGatewayV2's // API operation UpdateStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. See the message field // for more information. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // A limit has been exceeded. See the accompanying error message for details. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not valid, for example, the input is incomplete or incorrect. // See the accompanying error message for details. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. See the accompanying error message for details. @@ -5553,6 +5554,61 @@ func (c *ApiGatewayV2) UpdateStageWithContext(ctx aws.Context, input *UpdateStag return out, req.Send() } +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Settings for logging access in a stage. type AccessLogSettings struct { _ struct{} `type:"structure"` @@ -5926,6 +5982,123 @@ func (s *Authorizer) SetName(v string) *Authorizer { return s } +// The request is not valid, for example, the input is incomplete or incorrect. +// See the accompanying error message for details. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Describes the error encountered. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. See the accompanying error message for details. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Describes the error encountered. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a CORS configuration. Supported only for HTTP APIs. See Configuring // CORS (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-cors.html) // for more information. @@ -12899,6 +13072,67 @@ func (s *Model) SetSchema(v string) *Model { return s } +// The resource specified in the request was not found. See the message field +// for more information. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Describes the error encountered. + Message_ *string `locationName:"message" type:"string"` + + // The resource type. + ResourceType *string `locationName:"resourceType" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Validation constraints imposed on parameters of a request (path, query string, // headers). type ParameterConstraints struct { @@ -13622,6 +13856,64 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// A limit has been exceeded. See the accompanying error message for details. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + LimitType *string `locationName:"limitType" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/apigatewayv2/errors.go b/service/apigatewayv2/errors.go index f06f8050ead..196b5441c53 100644 --- a/service/apigatewayv2/errors.go +++ b/service/apigatewayv2/errors.go @@ -2,6 +2,10 @@ package apigatewayv2 +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -36,3 +40,11 @@ const ( // A limit has been exceeded. See the accompanying error message for details. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/apigatewayv2/service.go b/service/apigatewayv2/service.go index 5381825cfd3..d248211d266 100644 --- a/service/apigatewayv2/service.go +++ b/service/apigatewayv2/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/appconfig/api.go b/service/appconfig/api.go index f9c355fb0a7..e5f6fc64bd4 100644 --- a/service/appconfig/api.go +++ b/service/appconfig/api.go @@ -70,11 +70,11 @@ func (c *AppConfig) CreateApplicationRequest(input *CreateApplicationInput) (req // See the AWS API reference guide for Amazon AppConfig's // API operation CreateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateApplication @@ -162,14 +162,14 @@ func (c *AppConfig) CreateConfigurationProfileRequest(input *CreateConfiguration // See the AWS API reference guide for Amazon AppConfig's // API operation CreateConfigurationProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateConfigurationProfile @@ -250,11 +250,11 @@ func (c *AppConfig) CreateDeploymentStrategyRequest(input *CreateDeploymentStrat // See the AWS API reference guide for Amazon AppConfig's // API operation CreateDeploymentStrategy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateDeploymentStrategy @@ -338,14 +338,14 @@ func (c *AppConfig) CreateEnvironmentRequest(input *CreateEnvironmentInput) (req // See the AWS API reference guide for Amazon AppConfig's // API operation CreateEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/CreateEnvironment @@ -425,14 +425,14 @@ func (c *AppConfig) DeleteApplicationRequest(input *DeleteApplicationInput) (req // See the AWS API reference guide for Amazon AppConfig's // API operation DeleteApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteApplication @@ -512,18 +512,18 @@ func (c *AppConfig) DeleteConfigurationProfileRequest(input *DeleteConfiguration // See the AWS API reference guide for Amazon AppConfig's // API operation DeleteConfigurationProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteConfigurationProfile @@ -603,14 +603,14 @@ func (c *AppConfig) DeleteDeploymentStrategyRequest(input *DeleteDeploymentStrat // See the AWS API reference guide for Amazon AppConfig's // API operation DeleteDeploymentStrategy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteDeploymentStrategy @@ -690,18 +690,18 @@ func (c *AppConfig) DeleteEnvironmentRequest(input *DeleteEnvironmentInput) (req // See the AWS API reference guide for Amazon AppConfig's // API operation DeleteEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeleteEnvironment @@ -779,14 +779,14 @@ func (c *AppConfig) GetApplicationRequest(input *GetApplicationInput) (req *requ // See the AWS API reference guide for Amazon AppConfig's // API operation GetApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetApplication @@ -864,17 +864,17 @@ func (c *AppConfig) GetConfigurationRequest(input *GetConfigurationInput) (req * // See the AWS API reference guide for Amazon AppConfig's // API operation GetConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetConfiguration @@ -952,14 +952,14 @@ func (c *AppConfig) GetConfigurationProfileRequest(input *GetConfigurationProfil // See the AWS API reference guide for Amazon AppConfig's // API operation GetConfigurationProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetConfigurationProfile @@ -1037,14 +1037,14 @@ func (c *AppConfig) GetDeploymentRequest(input *GetDeploymentInput) (req *reques // See the AWS API reference guide for Amazon AppConfig's // API operation GetDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetDeployment @@ -1126,14 +1126,14 @@ func (c *AppConfig) GetDeploymentStrategyRequest(input *GetDeploymentStrategyInp // See the AWS API reference guide for Amazon AppConfig's // API operation GetDeploymentStrategy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetDeploymentStrategy @@ -1215,14 +1215,14 @@ func (c *AppConfig) GetEnvironmentRequest(input *GetEnvironmentInput) (req *requ // See the AWS API reference guide for Amazon AppConfig's // API operation GetEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/GetEnvironment @@ -1306,11 +1306,11 @@ func (c *AppConfig) ListApplicationsRequest(input *ListApplicationsInput) (req * // See the AWS API reference guide for Amazon AppConfig's // API operation ListApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListApplications @@ -1446,14 +1446,14 @@ func (c *AppConfig) ListConfigurationProfilesRequest(input *ListConfigurationPro // See the AWS API reference guide for Amazon AppConfig's // API operation ListConfigurationProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListConfigurationProfiles @@ -1589,11 +1589,11 @@ func (c *AppConfig) ListDeploymentStrategiesRequest(input *ListDeploymentStrateg // See the AWS API reference guide for Amazon AppConfig's // API operation ListDeploymentStrategies for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListDeploymentStrategies @@ -1729,14 +1729,14 @@ func (c *AppConfig) ListDeploymentsRequest(input *ListDeploymentsInput) (req *re // See the AWS API reference guide for Amazon AppConfig's // API operation ListDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListDeployments @@ -1872,14 +1872,14 @@ func (c *AppConfig) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req * // See the AWS API reference guide for Amazon AppConfig's // API operation ListEnvironments for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListEnvironments @@ -2009,14 +2009,14 @@ func (c *AppConfig) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for Amazon AppConfig's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ListTagsForResource @@ -2094,18 +2094,18 @@ func (c *AppConfig) StartDeploymentRequest(input *StartDeploymentInput) (req *re // See the AWS API reference guide for Amazon AppConfig's // API operation StartDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/StartDeployment @@ -2184,14 +2184,14 @@ func (c *AppConfig) StopDeploymentRequest(input *StopDeploymentInput) (req *requ // See the AWS API reference guide for Amazon AppConfig's // API operation StopDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/StopDeployment @@ -2272,14 +2272,14 @@ func (c *AppConfig) TagResourceRequest(input *TagResourceInput) (req *request.Re // See the AWS API reference guide for Amazon AppConfig's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/TagResource @@ -2358,14 +2358,14 @@ func (c *AppConfig) UntagResourceRequest(input *UntagResourceInput) (req *reques // See the AWS API reference guide for Amazon AppConfig's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UntagResource @@ -2443,14 +2443,14 @@ func (c *AppConfig) UpdateApplicationRequest(input *UpdateApplicationInput) (req // See the AWS API reference guide for Amazon AppConfig's // API operation UpdateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateApplication @@ -2528,14 +2528,14 @@ func (c *AppConfig) UpdateConfigurationProfileRequest(input *UpdateConfiguration // See the AWS API reference guide for Amazon AppConfig's // API operation UpdateConfigurationProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateConfigurationProfile @@ -2613,14 +2613,14 @@ func (c *AppConfig) UpdateDeploymentStrategyRequest(input *UpdateDeploymentStrat // See the AWS API reference guide for Amazon AppConfig's // API operation UpdateDeploymentStrategy for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateDeploymentStrategy @@ -2698,14 +2698,14 @@ func (c *AppConfig) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req // See the AWS API reference guide for Amazon AppConfig's // API operation UpdateEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/UpdateEnvironment @@ -2784,14 +2784,14 @@ func (c *AppConfig) ValidateConfigurationRequest(input *ValidateConfigurationInp // See the AWS API reference guide for Amazon AppConfig's // API operation ValidateConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input fails to satisfy the constraints specified by an AWS service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // There was an internal failure in the AppConfig service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/ValidateConfiguration @@ -2857,6 +2857,62 @@ func (s *Application) SetName(v string) *Application { return s } +// The input fails to satisfy the constraints specified by an AWS service. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // A summary of a configuration profile. type ConfigurationProfileSummary struct { _ struct{} `type:"structure"` @@ -2917,6 +2973,63 @@ func (s *ConfigurationProfileSummary) SetValidatorTypes(v []*string) *Configurat return s } +// The request could not be processed because of conflict in the current state +// of the resource. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -5004,6 +5117,62 @@ func (s *GetEnvironmentOutput) SetState(v string) *GetEnvironmentOutput { return s } +// There was an internal failure in the AppConfig service. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListApplicationsInput struct { _ struct{} `type:"structure"` @@ -5602,6 +5771,64 @@ func (s *Monitor) SetAlarmRoleArn(v string) *Monitor { return s } +// The requested resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + ResourceName *string `type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type StartDeploymentInput struct { _ struct{} `type:"structure"` diff --git a/service/appconfig/errors.go b/service/appconfig/errors.go index 098bbab4099..2a0fbcd2aba 100644 --- a/service/appconfig/errors.go +++ b/service/appconfig/errors.go @@ -2,6 +2,10 @@ package appconfig +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -29,3 +33,10 @@ const ( // The requested resource could not be found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/appconfig/service.go b/service/appconfig/service.go index 7cbf757de70..3cec2167724 100644 --- a/service/appconfig/service.go +++ b/service/appconfig/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/applicationautoscaling/api.go b/service/applicationautoscaling/api.go index 7eb5c356a9c..78ddc344345 100644 --- a/service/applicationautoscaling/api.go +++ b/service/applicationautoscaling/api.go @@ -78,23 +78,23 @@ func (c *ApplicationAutoScaling) DeleteScalingPolicyRequest(input *DeleteScaling // See the AWS API reference guide for Application Auto Scaling's // API operation DeleteScalingPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // The specified object could not be found. For any operation that depends on // the existence of a scalable target, this exception is thrown if the scalable // target with the specified service namespace, resource ID, and scalable dimension // does not exist. For any operation that deletes or deregisters a resource, // this exception is thrown if the resource cannot be found. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy @@ -177,23 +177,23 @@ func (c *ApplicationAutoScaling) DeleteScheduledActionRequest(input *DeleteSched // See the AWS API reference guide for Application Auto Scaling's // API operation DeleteScheduledAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // The specified object could not be found. For any operation that depends on // the existence of a scalable target, this exception is thrown if the scalable // target with the specified service namespace, resource ID, and scalable dimension // does not exist. For any operation that deletes or deregisters a resource, // this exception is thrown if the resource cannot be found. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction @@ -277,23 +277,23 @@ func (c *ApplicationAutoScaling) DeregisterScalableTargetRequest(input *Deregist // See the AWS API reference guide for Application Auto Scaling's // API operation DeregisterScalableTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // The specified object could not be found. For any operation that depends on // the existence of a scalable target, this exception is thrown if the scalable // target with the specified service namespace, resource ID, and scalable dimension // does not exist. For any operation that deletes or deregisters a resource, // this exception is thrown if the resource cannot be found. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget @@ -383,19 +383,19 @@ func (c *ApplicationAutoScaling) DescribeScalableTargetsRequest(input *DescribeS // See the AWS API reference guide for Application Auto Scaling's // API operation DescribeScalableTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token supplied was invalid. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets @@ -539,19 +539,19 @@ func (c *ApplicationAutoScaling) DescribeScalingActivitiesRequest(input *Describ // See the AWS API reference guide for Application Auto Scaling's // API operation DescribeScalingActivities for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token supplied was invalid. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingActivities @@ -693,12 +693,12 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS // See the AWS API reference guide for Application Auto Scaling's // API operation DescribeScalingPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeFailedResourceAccessException "FailedResourceAccessException" +// * FailedResourceAccessException // Failed access to resources caused an exception. This exception is thrown // when Application Auto Scaling is unable to retrieve the alarms associated // with a scaling policy due to a client error, for example, if the role ARN @@ -706,14 +706,14 @@ func (c *ApplicationAutoScaling) DescribeScalingPoliciesRequest(input *DescribeS // DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html) // on your behalf. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token supplied was invalid. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalingPolicies @@ -856,19 +856,19 @@ func (c *ApplicationAutoScaling) DescribeScheduledActionsRequest(input *Describe // See the AWS API reference guide for Application Auto Scaling's // API operation DescribeScheduledActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token supplied was invalid. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScheduledActions @@ -1024,27 +1024,27 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy // See the AWS API reference guide for Application Auto Scaling's // API operation PutScalingPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A per-account resource limit is exceeded. For more information, see Application // Auto Scaling Limits (https://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html). // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // The specified object could not be found. For any operation that depends on // the existence of a scalable target, this exception is thrown if the scalable // target with the specified service namespace, resource ID, and scalable dimension // does not exist. For any operation that deletes or deregisters a resource, // this exception is thrown if the resource cannot be found. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeFailedResourceAccessException "FailedResourceAccessException" +// * FailedResourceAccessException // Failed access to resources caused an exception. This exception is thrown // when Application Auto Scaling is unable to retrieve the alarms associated // with a scaling policy due to a client error, for example, if the role ARN @@ -1052,7 +1052,7 @@ func (c *ApplicationAutoScaling) PutScalingPolicyRequest(input *PutScalingPolicy // DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html) // on your behalf. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy @@ -1148,27 +1148,27 @@ func (c *ApplicationAutoScaling) PutScheduledActionRequest(input *PutScheduledAc // See the AWS API reference guide for Application Auto Scaling's // API operation PutScheduledAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A per-account resource limit is exceeded. For more information, see Application // Auto Scaling Limits (https://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html). // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // The specified object could not be found. For any operation that depends on // the existence of a scalable target, this exception is thrown if the scalable // target with the specified service namespace, resource ID, and scalable dimension // does not exist. For any operation that deletes or deregisters a resource, // this exception is thrown if the resource cannot be found. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScheduledAction @@ -1266,20 +1266,20 @@ func (c *ApplicationAutoScaling) RegisterScalableTargetRequest(input *RegisterSc // See the AWS API reference guide for Application Auto Scaling's // API operation RegisterScalableTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the available parameters // for the API request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A per-account resource limit is exceeded. For more information, see Application // Auto Scaling Limits (https://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html). // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to an Application Auto Scaling resource that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget @@ -1341,6 +1341,63 @@ func (s *Alarm) SetAlarmName(v string) *Alarm { return s } +// Concurrent updates caused an exception, for example, if you request an update +// to an Application Auto Scaling resource that already has a pending update. +type ConcurrentUpdateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentUpdateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentUpdateException) GoString() string { + return s.String() +} + +func newErrorConcurrentUpdateException(v protocol.ResponseMetadata) error { + return &ConcurrentUpdateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentUpdateException) Code() string { + return "ConcurrentUpdateException" +} + +// Message returns the exception's message. +func (s ConcurrentUpdateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentUpdateException) OrigErr() error { + return nil +} + +func (s ConcurrentUpdateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentUpdateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentUpdateException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a CloudWatch metric of your choosing for a target tracking scaling // policy to use with Application Auto Scaling. // @@ -2799,6 +2856,236 @@ func (s *DescribeScheduledActionsOutput) SetScheduledActions(v []*ScheduledActio return s } +// Failed access to resources caused an exception. This exception is thrown +// when Application Auto Scaling is unable to retrieve the alarms associated +// with a scaling policy due to a client error, for example, if the role ARN +// specified for a scalable target does not have permission to call the CloudWatch +// DescribeAlarms (https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarms.html) +// on your behalf. +type FailedResourceAccessException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FailedResourceAccessException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FailedResourceAccessException) GoString() string { + return s.String() +} + +func newErrorFailedResourceAccessException(v protocol.ResponseMetadata) error { + return &FailedResourceAccessException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FailedResourceAccessException) Code() string { + return "FailedResourceAccessException" +} + +// Message returns the exception's message. +func (s FailedResourceAccessException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FailedResourceAccessException) OrigErr() error { + return nil +} + +func (s FailedResourceAccessException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FailedResourceAccessException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FailedResourceAccessException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service encountered an internal error. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The next token supplied was invalid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// A per-account resource limit is exceeded. For more information, see Application +// Auto Scaling Limits (https://docs.aws.amazon.com/ApplicationAutoScaling/latest/userguide/application-auto-scaling-limits.html). +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the dimension names and values associated with a metric. type MetricDimension struct { _ struct{} `type:"structure"` @@ -2852,6 +3139,66 @@ func (s *MetricDimension) SetValue(v string) *MetricDimension { return s } +// The specified object could not be found. For any operation that depends on +// the existence of a scalable target, this exception is thrown if the scalable +// target with the specified service namespace, resource ID, and scalable dimension +// does not exist. For any operation that deletes or deregisters a resource, +// this exception is thrown if the resource cannot be found. +type ObjectNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ObjectNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectNotFoundException) GoString() string { + return s.String() +} + +func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error { + return &ObjectNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ObjectNotFoundException) Code() string { + return "ObjectNotFoundException" +} + +// Message returns the exception's message. +func (s ObjectNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ObjectNotFoundException) OrigErr() error { + return nil +} + +func (s ObjectNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ObjectNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ObjectNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a predefined metric for a target tracking scaling policy to use // with Application Auto Scaling. type PredefinedMetricSpecification struct { @@ -4863,6 +5210,63 @@ func (s *TargetTrackingScalingPolicyConfiguration) SetTargetValue(v float64) *Ta return s } +// An exception was thrown for a validation issue. Review the available parameters +// for the API request. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // AdjustmentTypeChangeInCapacity is a AdjustmentType enum value AdjustmentTypeChangeInCapacity = "ChangeInCapacity" diff --git a/service/applicationautoscaling/errors.go b/service/applicationautoscaling/errors.go index 7d410101382..acb9104661a 100644 --- a/service/applicationautoscaling/errors.go +++ b/service/applicationautoscaling/errors.go @@ -2,6 +2,10 @@ package applicationautoscaling +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentUpdateException for service response error code @@ -58,3 +62,13 @@ const ( // for the API request. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentUpdateException": newErrorConcurrentUpdateException, + "FailedResourceAccessException": newErrorFailedResourceAccessException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "ObjectNotFoundException": newErrorObjectNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/applicationautoscaling/service.go b/service/applicationautoscaling/service.go index 49b49cc1739..68e93cefc5b 100644 --- a/service/applicationautoscaling/service.go +++ b/service/applicationautoscaling/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/applicationdiscoveryservice/api.go b/service/applicationdiscoveryservice/api.go index 150dfba2816..bc47c1831ef 100644 --- a/service/applicationdiscoveryservice/api.go +++ b/service/applicationdiscoveryservice/api.go @@ -67,22 +67,22 @@ func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationRe // See the AWS API reference guide for AWS Application Discovery Service's // API operation AssociateConfigurationItemsToApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication @@ -168,22 +168,22 @@ func (c *ApplicationDiscoveryService) BatchDeleteImportDataRequest(input *BatchD // See the AWS API reference guide for AWS Application Discovery Service's // API operation BatchDeleteImportData for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData @@ -261,22 +261,22 @@ func (c *ApplicationDiscoveryService) CreateApplicationRequest(input *CreateAppl // See the AWS API reference guide for AWS Application Discovery Service's // API operation CreateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication @@ -357,26 +357,26 @@ func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) // See the AWS API reference guide for AWS Application Discovery Service's // API operation CreateTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags @@ -456,22 +456,22 @@ func (c *ApplicationDiscoveryService) DeleteApplicationsRequest(input *DeleteApp // See the AWS API reference guide for AWS Application Discovery Service's // API operation DeleteApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications @@ -551,26 +551,26 @@ func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) // See the AWS API reference guide for AWS Application Discovery Service's // API operation DeleteTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags @@ -650,22 +650,22 @@ func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgent // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeAgents for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents @@ -761,22 +761,22 @@ func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *Descr // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations @@ -862,29 +862,29 @@ func (c *ApplicationDiscoveryService) DescribeContinuousExportsRequest(input *De // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeContinuousExports for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not permitted. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports @@ -1020,26 +1020,26 @@ func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeExportConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations @@ -1122,22 +1122,22 @@ func (c *ApplicationDiscoveryService) DescribeExportTasksRequest(input *Describe // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeExportTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks @@ -1222,22 +1222,22 @@ func (c *ApplicationDiscoveryService) DescribeImportTasksRequest(input *Describe // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeImportTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks @@ -1379,26 +1379,26 @@ func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInp // See the AWS API reference guide for AWS Application Discovery Service's // API operation DescribeTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags @@ -1477,22 +1477,22 @@ func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicat // See the AWS API reference guide for AWS Application Discovery Service's // API operation DisassociateConfigurationItemsFromApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication @@ -1581,25 +1581,25 @@ func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportC // See the AWS API reference guide for AWS Application Discovery Service's // API operation ExportConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not permitted. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations @@ -1684,22 +1684,22 @@ func (c *ApplicationDiscoveryService) GetDiscoverySummaryRequest(input *GetDisco // See the AWS API reference guide for AWS Application Discovery Service's // API operation GetDiscoverySummary for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary @@ -1779,26 +1779,26 @@ func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfi // See the AWS API reference guide for AWS Application Discovery Service's // API operation ListConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations @@ -1877,22 +1877,22 @@ func (c *ApplicationDiscoveryService) ListServerNeighborsRequest(input *ListServ // See the AWS API reference guide for AWS Application Discovery Service's // API operation ListServerNeighbors for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors @@ -1970,34 +1970,34 @@ func (c *ApplicationDiscoveryService) StartContinuousExportRequest(input *StartC // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartContinuousExport for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictErrorException "ConflictErrorException" +// Returned Error Types: +// * ConflictErrorException // -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not permitted. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport @@ -2075,22 +2075,22 @@ func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartDataCollectionByAgentIds for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds @@ -2178,25 +2178,25 @@ func (c *ApplicationDiscoveryService) StartExportTaskRequest(input *StartExportT // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartExportTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not permitted. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask @@ -2302,29 +2302,29 @@ func (c *ApplicationDiscoveryService) StartImportTaskRequest(input *StartImportT // See the AWS API reference guide for AWS Application Discovery Service's // API operation StartImportTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. // -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask @@ -2402,36 +2402,36 @@ func (c *ApplicationDiscoveryService) StopContinuousExportRequest(input *StopCon // See the AWS API reference guide for AWS Application Discovery Service's // API operation StopContinuousExport for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not permitted. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified configuration ID was not located. Verify the configuration // ID and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // This issue occurs when the same clientRequestToken is used with the StartImportTask // action, but with different parameters. For example, you use the same request // token but have two different import URLs, you can encounter this issue. If // the import tasks are meant to be different, use a different clientRequestToken, // and try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport @@ -2509,22 +2509,22 @@ func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input // See the AWS API reference guide for AWS Application Discovery Service's // API operation StopDataCollectionByAgentIds for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds @@ -2603,22 +2603,22 @@ func (c *ApplicationDiscoveryService) UpdateApplicationRequest(input *UpdateAppl // See the AWS API reference guide for AWS Application Discovery Service's // API operation UpdateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthorizationErrorException "AuthorizationErrorException" +// Returned Error Types: +// * AuthorizationErrorException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. Verify the parameters and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of one or more parameters are either invalid or out of range. Verify // the parameter values and try again. // -// * ErrCodeServerInternalErrorException "ServerInternalErrorException" +// * ServerInternalErrorException // The server experienced an internal error. Try again. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication @@ -2897,6 +2897,63 @@ func (s AssociateConfigurationItemsToApplicationOutput) GoString() string { return s.String() } +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +type AuthorizationErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AuthorizationErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthorizationErrorException) GoString() string { + return s.String() +} + +func newErrorAuthorizationErrorException(v protocol.ResponseMetadata) error { + return &AuthorizationErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AuthorizationErrorException) Code() string { + return "AuthorizationErrorException" +} + +// Message returns the exception's message. +func (s AuthorizationErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AuthorizationErrorException) OrigErr() error { + return nil +} + +func (s AuthorizationErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AuthorizationErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AuthorizationErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Error messages returned for each import task that you deleted as a response // for this command. type BatchDeleteImportDataError struct { @@ -3069,6 +3126,61 @@ func (s *ConfigurationTag) SetValue(v string) *ConfigurationTag { return s } +type ConflictErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictErrorException) GoString() string { + return s.String() +} + +func newErrorConflictErrorException(v protocol.ResponseMetadata) error { + return &ConflictErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictErrorException) Code() string { + return "ConflictErrorException" +} + +// Message returns the exception's message. +func (s ConflictErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictErrorException) OrigErr() error { + return nil +} + +func (s ConflictErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // A list of continuous export descriptions. type ContinuousExportDescription struct { _ struct{} `type:"structure"` @@ -4758,6 +4870,62 @@ func (s *GetDiscoverySummaryOutput) SetServersMappedtoTags(v int64) *GetDiscover return s } +// The home region is not set. Set the home region to continue. +type HomeRegionNotSetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s HomeRegionNotSetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HomeRegionNotSetException) GoString() string { + return s.String() +} + +func newErrorHomeRegionNotSetException(v protocol.ResponseMetadata) error { + return &HomeRegionNotSetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HomeRegionNotSetException) Code() string { + return "HomeRegionNotSetException" +} + +// Message returns the exception's message. +func (s HomeRegionNotSetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HomeRegionNotSetException) OrigErr() error { + return nil +} + +func (s HomeRegionNotSetException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HomeRegionNotSetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HomeRegionNotSetException) RequestID() string { + return s.respMetadata.RequestID +} + // An array of information related to the import task request that includes // status information, times, IDs, the Amazon S3 Object URL for the import file, // and more. @@ -4969,6 +5137,119 @@ func (s *ImportTaskFilter) SetValues(v []*string) *ImportTaskFilter { return s } +// One or more parameters are not valid. Verify the parameters and try again. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The value of one or more parameters are either invalid or out of range. Verify +// the parameter values and try again. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + type ListConfigurationsInput struct { _ struct{} `type:"structure"` @@ -5301,6 +5582,62 @@ func (s *NeighborConnectionDetail) SetTransportProtocol(v string) *NeighborConne return s } +// This operation is not permitted. +type OperationNotPermittedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OperationNotPermittedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotPermittedException) GoString() string { + return s.String() +} + +func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error { + return &OperationNotPermittedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotPermittedException) Code() string { + return "OperationNotPermittedException" +} + +// Message returns the exception's message. +func (s OperationNotPermittedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotPermittedException) OrigErr() error { + return nil +} + +func (s OperationNotPermittedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotPermittedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotPermittedException) RequestID() string { + return s.respMetadata.RequestID +} + // A field and direction for ordered output. type OrderByElement struct { _ struct{} `type:"structure"` @@ -5349,6 +5686,179 @@ func (s *OrderByElement) SetSortOrder(v string) *OrderByElement { return s } +// This issue occurs when the same clientRequestToken is used with the StartImportTask +// action, but with different parameters. For example, you use the same request +// token but have two different import URLs, you can encounter this issue. If +// the import tasks are meant to be different, use a different clientRequestToken, +// and try again. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified configuration ID was not located. Verify the configuration +// ID and try again. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The server experienced an internal error. Try again. +type ServerInternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServerInternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerInternalErrorException) GoString() string { + return s.String() +} + +func newErrorServerInternalErrorException(v protocol.ResponseMetadata) error { + return &ServerInternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerInternalErrorException) Code() string { + return "ServerInternalErrorException" +} + +// Message returns the exception's message. +func (s ServerInternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerInternalErrorException) OrigErr() error { + return nil +} + +func (s ServerInternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerInternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerInternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type StartContinuousExportInput struct { _ struct{} `type:"structure"` } diff --git a/service/applicationdiscoveryservice/errors.go b/service/applicationdiscoveryservice/errors.go index 739f76b81a4..2de126e8c6c 100644 --- a/service/applicationdiscoveryservice/errors.go +++ b/service/applicationdiscoveryservice/errors.go @@ -2,6 +2,10 @@ package applicationdiscoveryservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAuthorizationErrorException for service response error code @@ -63,3 +67,15 @@ const ( // The server experienced an internal error. Try again. ErrCodeServerInternalErrorException = "ServerInternalErrorException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AuthorizationErrorException": newErrorAuthorizationErrorException, + "ConflictErrorException": newErrorConflictErrorException, + "HomeRegionNotSetException": newErrorHomeRegionNotSetException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "OperationNotPermittedException": newErrorOperationNotPermittedException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServerInternalErrorException": newErrorServerInternalErrorException, +} diff --git a/service/applicationdiscoveryservice/service.go b/service/applicationdiscoveryservice/service.go index 66aab1a91a9..5de2134eb9b 100644 --- a/service/applicationdiscoveryservice/service.go +++ b/service/applicationdiscoveryservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/applicationinsights/api.go b/service/applicationinsights/api.go index 40131b0ad6c..1a805893538 100644 --- a/service/applicationinsights/api.go +++ b/service/applicationinsights/api.go @@ -66,20 +66,20 @@ func (c *ApplicationInsights) CreateApplicationRequest(input *CreateApplicationI // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation CreateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is already created or in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeTagsAlreadyExistException "TagsAlreadyExistException" +// * TagsAlreadyExistException // Tags are already registered for the specified application ARN. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateApplication @@ -158,17 +158,17 @@ func (c *ApplicationInsights) CreateComponentRequest(input *CreateComponentInput // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation CreateComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is already created or in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateComponent @@ -246,17 +246,17 @@ func (c *ApplicationInsights) CreateLogPatternRequest(input *CreateLogPatternInp // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation CreateLogPattern for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is already created or in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/CreateLogPattern @@ -335,17 +335,17 @@ func (c *ApplicationInsights) DeleteApplicationRequest(input *DeleteApplicationI // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DeleteApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not understood by the server. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteApplication @@ -426,14 +426,14 @@ func (c *ApplicationInsights) DeleteComponentRequest(input *DeleteComponentInput // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DeleteComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteComponent @@ -512,17 +512,17 @@ func (c *ApplicationInsights) DeleteLogPatternRequest(input *DeleteLogPatternInp // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DeleteLogPattern for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not understood by the server. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DeleteLogPattern @@ -600,14 +600,14 @@ func (c *ApplicationInsights) DescribeApplicationRequest(input *DescribeApplicat // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeApplication @@ -686,14 +686,14 @@ func (c *ApplicationInsights) DescribeComponentRequest(input *DescribeComponentI // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponent @@ -771,14 +771,14 @@ func (c *ApplicationInsights) DescribeComponentConfigurationRequest(input *Descr // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeComponentConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfiguration @@ -856,14 +856,14 @@ func (c *ApplicationInsights) DescribeComponentConfigurationRecommendationReques // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeComponentConfigurationRecommendation for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeComponentConfigurationRecommendation @@ -941,14 +941,14 @@ func (c *ApplicationInsights) DescribeLogPatternRequest(input *DescribeLogPatter // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeLogPattern for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeLogPattern @@ -1026,14 +1026,14 @@ func (c *ApplicationInsights) DescribeObservationRequest(input *DescribeObservat // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeObservation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeObservation @@ -1111,14 +1111,14 @@ func (c *ApplicationInsights) DescribeProblemRequest(input *DescribeProblemInput // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeProblem for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblem @@ -1196,14 +1196,14 @@ func (c *ApplicationInsights) DescribeProblemObservationsRequest(input *Describe // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation DescribeProblemObservations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/DescribeProblemObservations @@ -1287,11 +1287,11 @@ func (c *ApplicationInsights) ListApplicationsRequest(input *ListApplicationsInp // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation ListApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListApplications @@ -1427,14 +1427,14 @@ func (c *ApplicationInsights) ListComponentsRequest(input *ListComponentsInput) // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation ListComponents for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListComponents @@ -1570,14 +1570,14 @@ func (c *ApplicationInsights) ListLogPatternSetsRequest(input *ListLogPatternSet // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation ListLogPatternSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatternSets @@ -1713,14 +1713,14 @@ func (c *ApplicationInsights) ListLogPatternsRequest(input *ListLogPatternsInput // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation ListLogPatterns for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListLogPatterns @@ -1856,14 +1856,14 @@ func (c *ApplicationInsights) ListProblemsRequest(input *ListProblemsInput) (req // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation ListProblems for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The parameter is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListProblems @@ -1998,11 +1998,11 @@ func (c *ApplicationInsights) ListTagsForResourceRequest(input *ListTagsForResou // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/ListTagsForResource @@ -2089,15 +2089,15 @@ func (c *ApplicationInsights) TagResourceRequest(input *TagResourceInput) (req * // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The number of the provided tags is beyond the limit, or the number of total // tags you are trying to attach to the specified resource exceeds the limit. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/TagResource @@ -2176,11 +2176,11 @@ func (c *ApplicationInsights) UntagResourceRequest(input *UntagResourceInput) (r // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UntagResource @@ -2258,14 +2258,14 @@ func (c *ApplicationInsights) UpdateApplicationRequest(input *UpdateApplicationI // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation UpdateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateApplication @@ -2345,17 +2345,17 @@ func (c *ApplicationInsights) UpdateComponentRequest(input *UpdateComponentInput // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation UpdateComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is already created or in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponent @@ -2436,14 +2436,14 @@ func (c *ApplicationInsights) UpdateComponentConfigurationRequest(input *UpdateC // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation UpdateComponentConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateComponentConfiguration @@ -2521,17 +2521,17 @@ func (c *ApplicationInsights) UpdateLogPatternRequest(input *UpdateLogPatternInp // See the AWS API reference guide for Amazon CloudWatch Application Insights's // API operation UpdateLogPattern for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is already created or in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource does not exist in the customer account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The parameter is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/application-insights-2018-11-25/UpdateLogPattern @@ -2672,6 +2672,62 @@ func (s *ApplicationInfo) SetResourceGroupName(v string) *ApplicationInfo { return s } +// The request is not understood by the server. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -3859,6 +3915,62 @@ func (s *DescribeProblemOutput) SetProblem(v *Problem) *DescribeProblemOutput { return s } +// The server encountered an internal error and is unable to complete the request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListApplicationsInput struct { _ struct{} `type:"structure"` @@ -4751,6 +4863,118 @@ func (s *RelatedObservations) SetObservationList(v []*Observation) *RelatedObser return s } +// The resource is already created or in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource does not exist in the customer account. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines the tags associated with an application. A tag is // a label that you optionally define and associate with an application. Tags // can help you categorize and manage resources in different ways, such as by @@ -4913,6 +5137,122 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Tags are already registered for the specified application ARN. +type TagsAlreadyExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TagsAlreadyExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagsAlreadyExistException) GoString() string { + return s.String() +} + +func newErrorTagsAlreadyExistException(v protocol.ResponseMetadata) error { + return &TagsAlreadyExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagsAlreadyExistException) Code() string { + return "TagsAlreadyExistException" +} + +// Message returns the exception's message. +func (s TagsAlreadyExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagsAlreadyExistException) OrigErr() error { + return nil +} + +func (s TagsAlreadyExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagsAlreadyExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagsAlreadyExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of the provided tags is beyond the limit, or the number of total +// tags you are trying to attach to the specified resource exceeds the limit. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the resource with too many tags. + ResourceName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -5405,6 +5745,62 @@ func (s *UpdateLogPatternOutput) SetResourceGroupName(v string) *UpdateLogPatter return s } +// The parameter is not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // FeedbackKeyInsightsFeedback is a FeedbackKey enum value FeedbackKeyInsightsFeedback = "INSIGHTS_FEEDBACK" diff --git a/service/applicationinsights/errors.go b/service/applicationinsights/errors.go index aa8c59349d2..e78ba6a6042 100644 --- a/service/applicationinsights/errors.go +++ b/service/applicationinsights/errors.go @@ -2,6 +2,10 @@ package applicationinsights +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -47,3 +51,13 @@ const ( // The parameter is not valid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "InternalServerException": newErrorInternalServerException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TagsAlreadyExistException": newErrorTagsAlreadyExistException, + "TooManyTagsException": newErrorTooManyTagsException, + "ValidationException": newErrorValidationException, +} diff --git a/service/applicationinsights/service.go b/service/applicationinsights/service.go index 9a91549cb48..641d9d10a48 100644 --- a/service/applicationinsights/service.go +++ b/service/applicationinsights/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/appmesh/api.go b/service/appmesh/api.go index 8edd40ee04d..1c6994cd30e 100644 --- a/service/appmesh/api.go +++ b/service/appmesh/api.go @@ -71,34 +71,34 @@ func (c *AppMesh) CreateMeshRequest(input *CreateMeshInput) (req *request.Reques // See the AWS API reference guide for AWS App Mesh's // API operation CreateMesh for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -186,34 +186,34 @@ func (c *AppMesh) CreateRouteRequest(input *CreateRouteInput) (req *request.Requ // See the AWS API reference guide for AWS App Mesh's // API operation CreateRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -312,34 +312,34 @@ func (c *AppMesh) CreateVirtualNodeRequest(input *CreateVirtualNodeInput) (req * // See the AWS API reference guide for AWS App Mesh's // API operation CreateVirtualNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -426,34 +426,34 @@ func (c *AppMesh) CreateVirtualRouterRequest(input *CreateVirtualRouterInput) (r // See the AWS API reference guide for AWS App Mesh's // API operation CreateVirtualRouter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -539,34 +539,34 @@ func (c *AppMesh) CreateVirtualServiceRequest(input *CreateVirtualServiceInput) // See the AWS API reference guide for AWS App Mesh's // API operation CreateVirtualService for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -649,28 +649,28 @@ func (c *AppMesh) DeleteMeshRequest(input *DeleteMeshInput) (req *request.Reques // See the AWS API reference guide for AWS App Mesh's // API operation DeleteMesh for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You can't delete the specified resource because it's in use or required by // another resource. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -750,28 +750,28 @@ func (c *AppMesh) DeleteRouteRequest(input *DeleteRouteInput) (req *request.Requ // See the AWS API reference guide for AWS App Mesh's // API operation DeleteRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You can't delete the specified resource because it's in use or required by // another resource. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -854,28 +854,28 @@ func (c *AppMesh) DeleteVirtualNodeRequest(input *DeleteVirtualNodeInput) (req * // See the AWS API reference guide for AWS App Mesh's // API operation DeleteVirtualNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You can't delete the specified resource because it's in use or required by // another resource. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -958,28 +958,28 @@ func (c *AppMesh) DeleteVirtualRouterRequest(input *DeleteVirtualRouterInput) (r // See the AWS API reference guide for AWS App Mesh's // API operation DeleteVirtualRouter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You can't delete the specified resource because it's in use or required by // another resource. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1059,24 +1059,24 @@ func (c *AppMesh) DeleteVirtualServiceRequest(input *DeleteVirtualServiceInput) // See the AWS API reference guide for AWS App Mesh's // API operation DeleteVirtualService for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1156,24 +1156,24 @@ func (c *AppMesh) DescribeMeshRequest(input *DescribeMeshInput) (req *request.Re // See the AWS API reference guide for AWS App Mesh's // API operation DescribeMesh for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1253,24 +1253,24 @@ func (c *AppMesh) DescribeRouteRequest(input *DescribeRouteInput) (req *request. // See the AWS API reference guide for AWS App Mesh's // API operation DescribeRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1350,24 +1350,24 @@ func (c *AppMesh) DescribeVirtualNodeRequest(input *DescribeVirtualNodeInput) (r // See the AWS API reference guide for AWS App Mesh's // API operation DescribeVirtualNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1447,24 +1447,24 @@ func (c *AppMesh) DescribeVirtualRouterRequest(input *DescribeVirtualRouterInput // See the AWS API reference guide for AWS App Mesh's // API operation DescribeVirtualRouter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1544,24 +1544,24 @@ func (c *AppMesh) DescribeVirtualServiceRequest(input *DescribeVirtualServiceInp // See the AWS API reference guide for AWS App Mesh's // API operation DescribeVirtualService for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1647,24 +1647,24 @@ func (c *AppMesh) ListMeshesRequest(input *ListMeshesInput) (req *request.Reques // See the AWS API reference guide for AWS App Mesh's // API operation ListMeshes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1802,24 +1802,24 @@ func (c *AppMesh) ListRoutesRequest(input *ListRoutesInput) (req *request.Reques // See the AWS API reference guide for AWS App Mesh's // API operation ListRoutes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -1957,24 +1957,24 @@ func (c *AppMesh) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // See the AWS API reference guide for AWS App Mesh's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -2112,24 +2112,24 @@ func (c *AppMesh) ListVirtualNodesRequest(input *ListVirtualNodesInput) (req *re // See the AWS API reference guide for AWS App Mesh's // API operation ListVirtualNodes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -2267,24 +2267,24 @@ func (c *AppMesh) ListVirtualRoutersRequest(input *ListVirtualRoutersInput) (req // See the AWS API reference guide for AWS App Mesh's // API operation ListVirtualRouters for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -2422,24 +2422,24 @@ func (c *AppMesh) ListVirtualServicesRequest(input *ListVirtualServicesInput) (r // See the AWS API reference guide for AWS App Mesh's // API operation ListVirtualServices for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -2575,29 +2575,29 @@ func (c *AppMesh) TagResourceRequest(input *TagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS App Mesh's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request exceeds the maximum allowed number of tags allowed per resource. // The current limit is 50 user tags per resource. You must reduce the number // of tags in the request. None of the tags in this request were applied. @@ -2678,24 +2678,24 @@ func (c *AppMesh) UntagResourceRequest(input *UntagResourceInput) (req *request. // See the AWS API reference guide for AWS App Mesh's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -2775,29 +2775,29 @@ func (c *AppMesh) UpdateMeshRequest(input *UpdateMeshInput) (req *request.Reques // See the AWS API reference guide for AWS App Mesh's // API operation UpdateMesh for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -2877,34 +2877,34 @@ func (c *AppMesh) UpdateRouteRequest(input *UpdateRouteInput) (req *request.Requ // See the AWS API reference guide for AWS App Mesh's // API operation UpdateRoute for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -2984,34 +2984,34 @@ func (c *AppMesh) UpdateVirtualNodeRequest(input *UpdateVirtualNodeInput) (req * // See the AWS API reference guide for AWS App Mesh's // API operation UpdateVirtualNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -3091,34 +3091,34 @@ func (c *AppMesh) UpdateVirtualRouterRequest(input *UpdateVirtualRouterInput) (r // See the AWS API reference guide for AWS App Mesh's // API operation UpdateVirtualRouter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -3198,34 +3198,34 @@ func (c *AppMesh) UpdateVirtualServiceRequest(input *UpdateVirtualServiceInput) // See the AWS API reference guide for AWS App Mesh's // API operation UpdateVirtualService for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request syntax was malformed. Check your request syntax and try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request contains a client token that was used for a previous update resource // call with different specifications. Try the request again with a new client // token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You don't have permissions to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded a service limit for your account. For more information, // see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) // in the AWS App Mesh User Guide. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified resource doesn't exist. Check your request syntax and try again. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the service. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The maximum request rate permitted by the App Mesh APIs has been exceeded // for your account. For best results, use an increasing or variable sleep interval // between requests. @@ -3461,6 +3461,120 @@ func (s *Backend) SetVirtualService(v *VirtualServiceBackend) *Backend { return s } +// The request syntax was malformed. Check your request syntax and try again. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request contains a client token that was used for a previous update resource +// call with different specifications. Try the request again with a new client +// token. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateMeshInput struct { _ struct{} `type:"structure"` @@ -5009,6 +5123,62 @@ func (s *FileAccessLog) SetPath(v string) *FileAccessLog { return s } +// You don't have permissions to perform this action. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that represents a retry policy. Specify at least one value for // at least one of the types of RetryEvents, a value for maxRetries, and a value // for perRetryTimeout. @@ -5983,6 +6153,121 @@ func (s *HttpRouteMatch) SetScheme(v string) *HttpRouteMatch { return s } +// The request processing has failed because of an unknown error, exception, +// or failure. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have exceeded a service limit for your account. For more information, +// see Service Limits (https://docs.aws.amazon.com/app-mesh/latest/userguide/service_limits.html) +// in the AWS App Mesh User Guide. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListMeshesInput struct { _ struct{} `type:"structure"` @@ -6815,6 +7100,62 @@ func (s *MeshStatus) SetStatus(v string) *MeshStatus { return s } +// The specified resource doesn't exist. Check your request syntax and try again. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that represents a port mapping. type PortMapping struct { _ struct{} `type:"structure"` @@ -6867,6 +7208,63 @@ func (s *PortMapping) SetProtocol(v string) *PortMapping { return s } +// You can't delete the specified resource because it's in use or required by +// another resource. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that represents metadata for a resource. type ResourceMetadata struct { _ struct{} `type:"structure"` @@ -7222,6 +7620,62 @@ func (s *ServiceDiscovery) SetDns(v *DnsServiceDiscovery) *ServiceDiscovery { return s } +// The request has failed due to a temporary failure of the service. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Optional metadata that you apply to a resource to assist with categorization // and organization. Each tag consists of a key and an optional value, both // of which you define. Tag keys can have a maximum character length of 128 @@ -7439,6 +7893,122 @@ func (s *TcpRouteAction) SetWeightedTargets(v []*WeightedTarget) *TcpRouteAction return s } +// The maximum request rate permitted by the App Mesh APIs has been exceeded +// for your account. For best results, use an increasing or variable sleep interval +// between requests. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request exceeds the maximum allowed number of tags allowed per resource. +// The current limit is 50 user tags per resource. You must reduce the number +// of tags in the request. None of the tags in this request were applied. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/appmesh/errors.go b/service/appmesh/errors.go index 28009c07502..9e60da8d1d0 100644 --- a/service/appmesh/errors.go +++ b/service/appmesh/errors.go @@ -2,6 +2,10 @@ package appmesh +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -74,3 +78,16 @@ const ( // of tags in the request. None of the tags in this request were applied. ErrCodeTooManyTagsException = "TooManyTagsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "ResourceInUseException": newErrorResourceInUseException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "TooManyTagsException": newErrorTooManyTagsException, +} diff --git a/service/appmesh/service.go b/service/appmesh/service.go index 82ac58a4d57..2116834b9d0 100644 --- a/service/appmesh/service.go +++ b/service/appmesh/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/appstream/api.go b/service/appstream/api.go index 933088a1b45..18f4e0a360e 100644 --- a/service/appstream/api.go +++ b/service/appstream/api.go @@ -67,24 +67,24 @@ func (c *AppStream) AssociateFleetRequest(input *AssociateFleetInput) (req *requ // See the AWS API reference guide for Amazon AppStream's // API operation AssociateFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // -// * ErrCodeIncompatibleImageException "IncompatibleImageException" +// * IncompatibleImageException // The image does not support storage connectors. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/AssociateFleet @@ -164,8 +164,8 @@ func (c *AppStream) BatchAssociateUserStackRequest(input *BatchAssociateUserStac // See the AWS API reference guide for Amazon AppStream's // API operation BatchAssociateUserStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// Returned Error Types: +// * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack @@ -318,24 +318,24 @@ func (c *AppStream) CopyImageRequest(input *CopyImageInput) (req *request.Reques // See the AWS API reference guide for Amazon AppStream's // API operation CopyImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeIncompatibleImageException "IncompatibleImageException" +// * IncompatibleImageException // The image does not support storage connectors. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CopyImage @@ -415,14 +415,14 @@ func (c *AppStream) CreateDirectoryConfigRequest(input *CreateDirectoryConfigInp // See the AWS API reference guide for Amazon AppStream's // API operation CreateDirectoryConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // @@ -502,36 +502,36 @@ func (c *AppStream) CreateFleetRequest(input *CreateFleetInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation CreateFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The specified role is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // -// * ErrCodeIncompatibleImageException "IncompatibleImageException" +// * IncompatibleImageException // The image does not support storage connectors. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateFleet @@ -613,36 +613,36 @@ func (c *AppStream) CreateImageBuilderRequest(input *CreateImageBuilderInput) (r // See the AWS API reference guide for Amazon AppStream's // API operation CreateImageBuilder for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The specified role is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // -// * ErrCodeIncompatibleImageException "IncompatibleImageException" +// * IncompatibleImageException // The image does not support storage connectors. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilder @@ -720,11 +720,11 @@ func (c *AppStream) CreateImageBuilderStreamingURLRequest(input *CreateImageBuil // See the AWS API reference guide for Amazon AppStream's // API operation CreateImageBuilderStreamingURL for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// Returned Error Types: +// * OperationNotPermittedException // The attempted operation is not permitted. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateImageBuilderStreamingURL @@ -803,27 +803,27 @@ func (c *AppStream) CreateStackRequest(input *CreateStackInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation CreateStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The specified role is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStack @@ -903,17 +903,17 @@ func (c *AppStream) CreateStreamingURLRequest(input *CreateStreamingURLInput) (r // See the AWS API reference guide for Amazon AppStream's // API operation CreateStreamingURL for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateStreamingURL @@ -991,15 +991,15 @@ func (c *AppStream) CreateUsageReportSubscriptionRequest(input *CreateUsageRepor // See the AWS API reference guide for Amazon AppStream's // API operation CreateUsageReportSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRoleException "InvalidRoleException" +// Returned Error Types: +// * InvalidRoleException // The specified role is invalid. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUsageReportSubscription @@ -1078,21 +1078,21 @@ func (c *AppStream) CreateUserRequest(input *CreateUserInput) (req *request.Requ // See the AWS API reference guide for Amazon AppStream's // API operation CreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser @@ -1173,11 +1173,11 @@ func (c *AppStream) DeleteDirectoryConfigRequest(input *DeleteDirectoryConfigInp // See the AWS API reference guide for Amazon AppStream's // API operation DeleteDirectoryConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteDirectoryConfig @@ -1256,14 +1256,14 @@ func (c *AppStream) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation DeleteFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteFleet @@ -1342,17 +1342,17 @@ func (c *AppStream) DeleteImageRequest(input *DeleteImageInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation DeleteImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImage @@ -1430,14 +1430,14 @@ func (c *AppStream) DeleteImageBuilderRequest(input *DeleteImageBuilderInput) (r // See the AWS API reference guide for Amazon AppStream's // API operation DeleteImageBuilder for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImageBuilder @@ -1518,11 +1518,11 @@ func (c *AppStream) DeleteImagePermissionsRequest(input *DeleteImagePermissionsI // See the AWS API reference guide for Amazon AppStream's // API operation DeleteImagePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// Returned Error Types: +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteImagePermissions @@ -1604,14 +1604,14 @@ func (c *AppStream) DeleteStackRequest(input *DeleteStackInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation DeleteStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteStack @@ -1690,12 +1690,12 @@ func (c *AppStream) DeleteUsageReportSubscriptionRequest(input *DeleteUsageRepor // See the AWS API reference guide for Amazon AppStream's // API operation DeleteUsageReportSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// Returned Error Types: +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUsageReportSubscription @@ -1774,8 +1774,8 @@ func (c *AppStream) DeleteUserRequest(input *DeleteUserInput) (req *request.Requ // See the AWS API reference guide for Amazon AppStream's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser @@ -1860,8 +1860,8 @@ func (c *AppStream) DescribeDirectoryConfigsRequest(input *DescribeDirectoryConf // See the AWS API reference guide for Amazon AppStream's // API operation DescribeDirectoryConfigs for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeDirectoryConfigs @@ -1940,8 +1940,8 @@ func (c *AppStream) DescribeFleetsRequest(input *DescribeFleetsInput) (req *requ // See the AWS API reference guide for Amazon AppStream's // API operation DescribeFleets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeFleets @@ -2021,8 +2021,8 @@ func (c *AppStream) DescribeImageBuildersRequest(input *DescribeImageBuildersInp // See the AWS API reference guide for Amazon AppStream's // API operation DescribeImageBuilders for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImageBuilders @@ -2107,8 +2107,8 @@ func (c *AppStream) DescribeImagePermissionsRequest(input *DescribeImagePermissi // See the AWS API reference guide for Amazon AppStream's // API operation DescribeImagePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissions @@ -2246,11 +2246,11 @@ func (c *AppStream) DescribeImagesRequest(input *DescribeImagesInput) (req *requ // See the AWS API reference guide for Amazon AppStream's // API operation DescribeImages for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// Returned Error Types: +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImages @@ -2383,8 +2383,8 @@ func (c *AppStream) DescribeSessionsRequest(input *DescribeSessionsInput) (req * // See the AWS API reference guide for Amazon AppStream's // API operation DescribeSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// Returned Error Types: +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeSessions @@ -2463,8 +2463,8 @@ func (c *AppStream) DescribeStacksRequest(input *DescribeStacksInput) (req *requ // See the AWS API reference guide for Amazon AppStream's // API operation DescribeStacks for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeStacks @@ -2542,11 +2542,11 @@ func (c *AppStream) DescribeUsageReportSubscriptionsRequest(input *DescribeUsage // See the AWS API reference guide for Amazon AppStream's // API operation DescribeUsageReportSubscriptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // @@ -2631,8 +2631,8 @@ func (c *AppStream) DescribeUserStackAssociationsRequest(input *DescribeUserStac // See the AWS API reference guide for Amazon AppStream's // API operation DescribeUserStackAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// Returned Error Types: +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations @@ -2710,11 +2710,11 @@ func (c *AppStream) DescribeUsersRequest(input *DescribeUsersInput) (req *reques // See the AWS API reference guide for Amazon AppStream's // API operation DescribeUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers @@ -2794,8 +2794,8 @@ func (c *AppStream) DisableUserRequest(input *DisableUserInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation DisableUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser @@ -2874,14 +2874,14 @@ func (c *AppStream) DisassociateFleetRequest(input *DisassociateFleetInput) (req // See the AWS API reference guide for Amazon AppStream's // API operation DisassociateFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisassociateFleet @@ -2961,11 +2961,11 @@ func (c *AppStream) EnableUserRequest(input *EnableUserInput) (req *request.Requ // See the AWS API reference guide for Amazon AppStream's // API operation EnableUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // @@ -3271,8 +3271,8 @@ func (c *AppStream) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for Amazon AppStream's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource @@ -3351,27 +3351,27 @@ func (c *AppStream) StartFleetRequest(input *StartFleetInput) (req *request.Requ // See the AWS API reference guide for Amazon AppStream's // API operation StartFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The specified role is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartFleet @@ -3449,21 +3449,21 @@ func (c *AppStream) StartImageBuilderRequest(input *StartImageBuilderInput) (req // See the AWS API reference guide for Amazon AppStream's // API operation StartImageBuilder for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// Returned Error Types: +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeIncompatibleImageException "IncompatibleImageException" +// * IncompatibleImageException // The image does not support storage connectors. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StartImageBuilder @@ -3542,11 +3542,11 @@ func (c *AppStream) StopFleetRequest(input *StopFleetInput) (req *request.Reques // See the AWS API reference guide for Amazon AppStream's // API operation StopFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopFleet @@ -3624,14 +3624,14 @@ func (c *AppStream) StopImageBuilderRequest(input *StopImageBuilderInput) (req * // See the AWS API reference guide for Amazon AppStream's // API operation StopImageBuilder for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/StopImageBuilder @@ -3720,15 +3720,15 @@ func (c *AppStream) TagResourceRequest(input *TagResourceInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource @@ -3813,8 +3813,8 @@ func (c *AppStream) UntagResourceRequest(input *UntagResourceInput) (req *reques // See the AWS API reference guide for Amazon AppStream's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource @@ -3894,14 +3894,14 @@ func (c *AppStream) UpdateDirectoryConfigRequest(input *UpdateDirectoryConfigInp // See the AWS API reference guide for Amazon AppStream's // API operation UpdateDirectoryConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateDirectoryConfig @@ -3985,36 +3985,36 @@ func (c *AppStream) UpdateFleetRequest(input *UpdateFleetInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation UpdateFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The specified role is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // -// * ErrCodeIncompatibleImageException "IncompatibleImageException" +// * IncompatibleImageException // The image does not support storage connectors. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateFleet @@ -4093,14 +4093,14 @@ func (c *AppStream) UpdateImagePermissionsRequest(input *UpdateImagePermissionsI // See the AWS API reference guide for Amazon AppStream's // API operation UpdateImagePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceNotAvailableException "ResourceNotAvailableException" +// * ResourceNotAvailableException // The specified resource exists and is not in use, but isn't available. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateImagePermissions @@ -4178,33 +4178,33 @@ func (c *AppStream) UpdateStackRequest(input *UpdateStackInput) (req *request.Re // See the AWS API reference guide for Amazon AppStream's // API operation UpdateStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The specified role is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Indicates an incorrect combination of parameters, or a missing parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested limit exceeds the permitted limit for an account. // -// * ErrCodeInvalidAccountStatusException "InvalidAccountStatusException" +// * InvalidAccountStatusException // The resource cannot be created because your AWS account is suspended. For // assistance, contact AWS Support. // -// * ErrCodeIncompatibleImageException "IncompatibleImageException" +// * IncompatibleImageException // The image does not support storage connectors. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The attempted operation is not permitted. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // An API error occurred. Wait a few minutes and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UpdateStack @@ -4774,6 +4774,63 @@ func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus { return s } +// An API error occurred. Wait a few minutes and try again. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + type CopyImageInput struct { _ struct{} `type:"structure"` @@ -8780,6 +8837,235 @@ func (s *ImageStateChangeReason) SetMessage(v string) *ImageStateChangeReason { return s } +// The image does not support storage connectors. +type IncompatibleImageException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IncompatibleImageException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncompatibleImageException) GoString() string { + return s.String() +} + +func newErrorIncompatibleImageException(v protocol.ResponseMetadata) error { + return &IncompatibleImageException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncompatibleImageException) Code() string { + return "IncompatibleImageException" +} + +// Message returns the exception's message. +func (s IncompatibleImageException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncompatibleImageException) OrigErr() error { + return nil +} + +func (s IncompatibleImageException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncompatibleImageException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncompatibleImageException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource cannot be created because your AWS account is suspended. For +// assistance, contact AWS Support. +type InvalidAccountStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAccountStatusException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAccountStatusException) GoString() string { + return s.String() +} + +func newErrorInvalidAccountStatusException(v protocol.ResponseMetadata) error { + return &InvalidAccountStatusException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAccountStatusException) Code() string { + return "InvalidAccountStatusException" +} + +// Message returns the exception's message. +func (s InvalidAccountStatusException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAccountStatusException) OrigErr() error { + return nil +} + +func (s InvalidAccountStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAccountStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAccountStatusException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates an incorrect combination of parameters, or a missing parameter. +type InvalidParameterCombinationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterCombinationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterCombinationException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error { + return &InvalidParameterCombinationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterCombinationException) Code() string { + return "InvalidParameterCombinationException" +} + +// Message returns the exception's message. +func (s InvalidParameterCombinationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterCombinationException) OrigErr() error { + return nil +} + +func (s InvalidParameterCombinationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterCombinationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterCombinationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified role is invalid. +type InvalidRoleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRoleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRoleException) GoString() string { + return s.String() +} + +func newErrorInvalidRoleException(v protocol.ResponseMetadata) error { + return &InvalidRoleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRoleException) Code() string { + return "InvalidRoleException" +} + +// Message returns the exception's message. +func (s InvalidRoleException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRoleException) OrigErr() error { + return nil +} + +func (s InvalidRoleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRoleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRoleException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the error that is returned when a usage report can't be generated. type LastReportGenerationExecutionError struct { _ struct{} `type:"structure"` @@ -8815,6 +9101,63 @@ func (s *LastReportGenerationExecutionError) SetErrorMessage(v string) *LastRepo return s } +// The requested limit exceeds the permitted limit for an account. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAssociatedFleetsInput struct { _ struct{} `type:"structure"` @@ -9086,6 +9429,120 @@ func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAc return s } +// The attempted operation is not permitted. +type OperationNotPermittedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OperationNotPermittedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotPermittedException) GoString() string { + return s.String() +} + +func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error { + return &OperationNotPermittedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotPermittedException) Code() string { + return "OperationNotPermittedException" +} + +// Message returns the exception's message. +func (s OperationNotPermittedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotPermittedException) OrigErr() error { + return nil +} + +func (s OperationNotPermittedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotPermittedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotPermittedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a resource error. type ResourceError struct { _ struct{} `type:"structure"` @@ -9128,6 +9585,177 @@ func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError { return s } +// The specified resource is in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource exists and is not in use, but isn't available. +type ResourceNotAvailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotAvailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotAvailableException) GoString() string { + return s.String() +} + +func newErrorResourceNotAvailableException(v protocol.ResponseMetadata) error { + return &ResourceNotAvailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotAvailableException) Code() string { + return "ResourceNotAvailableException" +} + +// Message returns the exception's message. +func (s ResourceNotAvailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotAvailableException) OrigErr() error { + return nil +} + +func (s ResourceNotAvailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotAvailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotAvailableException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message in the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the credentials for the service account used by the fleet or image // builder to connect to the directory. type ServiceAccountCredentials struct { diff --git a/service/appstream/errors.go b/service/appstream/errors.go index 5f8f857ae11..285b79bdeda 100644 --- a/service/appstream/errors.go +++ b/service/appstream/errors.go @@ -2,6 +2,10 @@ package appstream +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -71,3 +75,17 @@ const ( // The specified resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "IncompatibleImageException": newErrorIncompatibleImageException, + "InvalidAccountStatusException": newErrorInvalidAccountStatusException, + "InvalidParameterCombinationException": newErrorInvalidParameterCombinationException, + "InvalidRoleException": newErrorInvalidRoleException, + "LimitExceededException": newErrorLimitExceededException, + "OperationNotPermittedException": newErrorOperationNotPermittedException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotAvailableException": newErrorResourceNotAvailableException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/appstream/service.go b/service/appstream/service.go index 0bed2a6e2b2..c9f50f968d5 100644 --- a/service/appstream/service.go +++ b/service/appstream/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/appsync/api.go b/service/appsync/api.go index bc2dbaefa61..af53b94ab86 100644 --- a/service/appsync/api.go +++ b/service/appsync/api.go @@ -65,23 +65,23 @@ func (c *AppSync) CreateApiCacheRequest(input *CreateApiCacheInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation CreateApiCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache @@ -160,31 +160,31 @@ func (c *AppSync) CreateApiKeyRequest(input *CreateApiKeyInput) (req *request.Re // See the AWS API reference guide for AWS AppSync's // API operation CreateApiKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeApiKeyLimitExceededException "ApiKeyLimitExceededException" +// * ApiKeyLimitExceededException // The API key exceeded a limit. Try your request again. // -// * ErrCodeApiKeyValidityOutOfBoundsException "ApiKeyValidityOutOfBoundsException" +// * ApiKeyValidityOutOfBoundsException // The API key expiration must be set to a value between 1 and 365 days from // creation (for CreateApiKey) or from update (for UpdateApiKey). // @@ -263,23 +263,23 @@ func (c *AppSync) CreateDataSourceRequest(input *CreateDataSourceInput) (req *re // See the AWS API reference guide for AWS AppSync's // API operation CreateDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource @@ -360,19 +360,19 @@ func (c *AppSync) CreateFunctionRequest(input *CreateFunctionInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation CreateFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction @@ -450,25 +450,25 @@ func (c *AppSync) CreateGraphqlApiRequest(input *CreateGraphqlApiInput) (req *re // See the AWS API reference guide for AWS AppSync's // API operation CreateGraphqlApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeApiLimitExceededException "ApiLimitExceededException" +// * ApiLimitExceededException // The GraphQL API exceeded a limit. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi @@ -549,19 +549,19 @@ func (c *AppSync) CreateResolverRequest(input *CreateResolverInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation CreateResolver for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver @@ -639,23 +639,23 @@ func (c *AppSync) CreateTypeRequest(input *CreateTypeInput) (req *request.Reques // See the AWS API reference guide for AWS AppSync's // API operation CreateType for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateType @@ -734,23 +734,23 @@ func (c *AppSync) DeleteApiCacheRequest(input *DeleteApiCacheInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation DeleteApiCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiCache @@ -829,19 +829,19 @@ func (c *AppSync) DeleteApiKeyRequest(input *DeleteApiKeyInput) (req *request.Re // See the AWS API reference guide for AWS AppSync's // API operation DeleteApiKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKey @@ -920,23 +920,23 @@ func (c *AppSync) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req *re // See the AWS API reference guide for AWS AppSync's // API operation DeleteDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSource @@ -1015,19 +1015,19 @@ func (c *AppSync) DeleteFunctionRequest(input *DeleteFunctionInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation DeleteFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteFunction @@ -1106,26 +1106,26 @@ func (c *AppSync) DeleteGraphqlApiRequest(input *DeleteGraphqlApiInput) (req *re // See the AWS API reference guide for AWS AppSync's // API operation DeleteGraphqlApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApi @@ -1204,19 +1204,19 @@ func (c *AppSync) DeleteResolverRequest(input *DeleteResolverInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation DeleteResolver for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolver @@ -1295,23 +1295,23 @@ func (c *AppSync) DeleteTypeRequest(input *DeleteTypeInput) (req *request.Reques // See the AWS API reference guide for AWS AppSync's // API operation DeleteType for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteType @@ -1390,23 +1390,23 @@ func (c *AppSync) FlushApiCacheRequest(input *FlushApiCacheInput) (req *request. // See the AWS API reference guide for AWS AppSync's // API operation FlushApiCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/FlushApiCache @@ -1484,23 +1484,23 @@ func (c *AppSync) GetApiCacheRequest(input *GetApiCacheInput) (req *request.Requ // See the AWS API reference guide for AWS AppSync's // API operation GetApiCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache @@ -1578,23 +1578,23 @@ func (c *AppSync) GetDataSourceRequest(input *GetDataSourceInput) (req *request. // See the AWS API reference guide for AWS AppSync's // API operation GetDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource @@ -1672,16 +1672,16 @@ func (c *AppSync) GetFunctionRequest(input *GetFunctionInput) (req *request.Requ // See the AWS API reference guide for AWS AppSync's // API operation GetFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction @@ -1759,22 +1759,22 @@ func (c *AppSync) GetGraphqlApiRequest(input *GetGraphqlApiInput) (req *request. // See the AWS API reference guide for AWS AppSync's // API operation GetGraphqlApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi @@ -1852,18 +1852,18 @@ func (c *AppSync) GetIntrospectionSchemaRequest(input *GetIntrospectionSchemaInp // See the AWS API reference guide for AWS AppSync's // API operation GetIntrospectionSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeGraphQLSchemaException "GraphQLSchemaException" +// Returned Error Types: +// * GraphQLSchemaException // The GraphQL schema is not valid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchema @@ -1941,16 +1941,16 @@ func (c *AppSync) GetResolverRequest(input *GetResolverInput) (req *request.Requ // See the AWS API reference guide for AWS AppSync's // API operation GetResolver for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver @@ -2028,19 +2028,19 @@ func (c *AppSync) GetSchemaCreationStatusRequest(input *GetSchemaCreationStatusI // See the AWS API reference guide for AWS AppSync's // API operation GetSchemaCreationStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatus @@ -2118,23 +2118,23 @@ func (c *AppSync) GetTypeRequest(input *GetTypeInput) (req *request.Request, out // See the AWS API reference guide for AWS AppSync's // API operation GetType for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetType @@ -2217,19 +2217,19 @@ func (c *AppSync) ListApiKeysRequest(input *ListApiKeysInput) (req *request.Requ // See the AWS API reference guide for AWS AppSync's // API operation ListApiKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeys @@ -2307,19 +2307,19 @@ func (c *AppSync) ListDataSourcesRequest(input *ListDataSourcesInput) (req *requ // See the AWS API reference guide for AWS AppSync's // API operation ListDataSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources @@ -2397,19 +2397,19 @@ func (c *AppSync) ListFunctionsRequest(input *ListFunctionsInput) (req *request. // See the AWS API reference guide for AWS AppSync's // API operation ListFunctions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions @@ -2487,15 +2487,15 @@ func (c *AppSync) ListGraphqlApisRequest(input *ListGraphqlApisInput) (req *requ // See the AWS API reference guide for AWS AppSync's // API operation ListGraphqlApis for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis @@ -2573,19 +2573,19 @@ func (c *AppSync) ListResolversRequest(input *ListResolversInput) (req *request. // See the AWS API reference guide for AWS AppSync's // API operation ListResolvers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers @@ -2663,19 +2663,19 @@ func (c *AppSync) ListResolversByFunctionRequest(input *ListResolversByFunctionI // See the AWS API reference guide for AWS AppSync's // API operation ListResolversByFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction @@ -2753,25 +2753,25 @@ func (c *AppSync) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // See the AWS API reference guide for AWS AppSync's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTagsForResource @@ -2849,23 +2849,23 @@ func (c *AppSync) ListTypesRequest(input *ListTypesInput) (req *request.Request, // See the AWS API reference guide for AWS AppSync's // API operation ListTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypes @@ -2945,23 +2945,23 @@ func (c *AppSync) StartSchemaCreationRequest(input *StartSchemaCreationInput) (r // See the AWS API reference guide for AWS AppSync's // API operation StartSchemaCreation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreation @@ -3040,25 +3040,25 @@ func (c *AppSync) TagResourceRequest(input *TagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS AppSync's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/TagResource @@ -3137,25 +3137,25 @@ func (c *AppSync) UntagResourceRequest(input *UntagResourceInput) (req *request. // See the AWS API reference guide for AWS AppSync's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UntagResource @@ -3233,23 +3233,23 @@ func (c *AppSync) UpdateApiCacheRequest(input *UpdateApiCacheInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation UpdateApiCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache @@ -3327,25 +3327,25 @@ func (c *AppSync) UpdateApiKeyRequest(input *UpdateApiKeyInput) (req *request.Re // See the AWS API reference guide for AWS AppSync's // API operation UpdateApiKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeApiKeyValidityOutOfBoundsException "ApiKeyValidityOutOfBoundsException" +// * ApiKeyValidityOutOfBoundsException // The API key expiration must be set to a value between 1 and 365 days from // creation (for CreateApiKey) or from update (for UpdateApiKey). // @@ -3424,23 +3424,23 @@ func (c *AppSync) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *re // See the AWS API reference guide for AWS AppSync's // API operation UpdateDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource @@ -3518,19 +3518,19 @@ func (c *AppSync) UpdateFunctionRequest(input *UpdateFunctionInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation UpdateFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction @@ -3608,26 +3608,26 @@ func (c *AppSync) UpdateGraphqlApiRequest(input *UpdateGraphqlApiInput) (req *re // See the AWS API reference guide for AWS AppSync's // API operation UpdateGraphqlApi for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have access to perform this operation on this resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi @@ -3705,19 +3705,19 @@ func (c *AppSync) UpdateResolverRequest(input *UpdateResolverInput) (req *reques // See the AWS API reference guide for AWS AppSync's // API operation UpdateResolver for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver @@ -3795,23 +3795,23 @@ func (c *AppSync) UpdateTypeRequest(input *UpdateTypeInput) (req *request.Reques // See the AWS API reference guide for AWS AppSync's // API operation UpdateType for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and then try again. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is in progress at this time and it must complete before // you can make your change. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource specified in the request was not found. Check the resource, // and then try again. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal AWS AppSync error occurred. Try your request again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateType @@ -3836,6 +3836,62 @@ func (c *AppSync) UpdateTypeWithContext(ctx aws.Context, input *UpdateTypeInput, return out, req.Send() } +// You do not have access to perform this operation on this resource. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an additional authentication provider. type AdditionalAuthenticationProvider struct { _ struct{} `type:"structure"` @@ -4077,6 +4133,175 @@ func (s *ApiKey) SetId(v string) *ApiKey { return s } +// The API key exceeded a limit. Try your request again. +type ApiKeyLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ApiKeyLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApiKeyLimitExceededException) GoString() string { + return s.String() +} + +func newErrorApiKeyLimitExceededException(v protocol.ResponseMetadata) error { + return &ApiKeyLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApiKeyLimitExceededException) Code() string { + return "ApiKeyLimitExceededException" +} + +// Message returns the exception's message. +func (s ApiKeyLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApiKeyLimitExceededException) OrigErr() error { + return nil +} + +func (s ApiKeyLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApiKeyLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApiKeyLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The API key expiration must be set to a value between 1 and 365 days from +// creation (for CreateApiKey) or from update (for UpdateApiKey). +type ApiKeyValidityOutOfBoundsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ApiKeyValidityOutOfBoundsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApiKeyValidityOutOfBoundsException) GoString() string { + return s.String() +} + +func newErrorApiKeyValidityOutOfBoundsException(v protocol.ResponseMetadata) error { + return &ApiKeyValidityOutOfBoundsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApiKeyValidityOutOfBoundsException) Code() string { + return "ApiKeyValidityOutOfBoundsException" +} + +// Message returns the exception's message. +func (s ApiKeyValidityOutOfBoundsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApiKeyValidityOutOfBoundsException) OrigErr() error { + return nil +} + +func (s ApiKeyValidityOutOfBoundsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApiKeyValidityOutOfBoundsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApiKeyValidityOutOfBoundsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The GraphQL API exceeded a limit. Try your request again. +type ApiLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ApiLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApiLimitExceededException) GoString() string { + return s.String() +} + +func newErrorApiLimitExceededException(v protocol.ResponseMetadata) error { + return &ApiLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApiLimitExceededException) Code() string { + return "ApiLimitExceededException" +} + +// Message returns the exception's message. +func (s ApiLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApiLimitExceededException) OrigErr() error { + return nil +} + +func (s ApiLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApiLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApiLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The authorization config in case the HTTP endpoint requires authorization. type AuthorizationConfig struct { _ struct{} `type:"structure"` @@ -4160,6 +4385,63 @@ func (s *AwsIamConfig) SetSigningServiceName(v string) *AwsIamConfig { return s } +// The request is not well formed. For example, a value is invalid or a required +// field is missing. Check the field values, and then try again. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // The caching configuration for a resolver that has caching enabled. type CachingConfig struct { _ struct{} `type:"structure"` @@ -4261,6 +4543,63 @@ func (s *CognitoUserPoolConfig) SetUserPoolId(v string) *CognitoUserPoolConfig { return s } +// Another modification is in progress at this time and it must complete before +// you can make your change. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a CreateApiCache operation. type CreateApiCacheInput struct { _ struct{} `type:"structure"` @@ -6834,6 +7173,62 @@ func (s *GetTypeOutput) SetType(v *Type) *GetTypeOutput { return s } +// The GraphQL schema is not valid. +type GraphQLSchemaException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s GraphQLSchemaException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GraphQLSchemaException) GoString() string { + return s.String() +} + +func newErrorGraphQLSchemaException(v protocol.ResponseMetadata) error { + return &GraphQLSchemaException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GraphQLSchemaException) Code() string { + return "GraphQLSchemaException" +} + +// Message returns the exception's message. +func (s GraphQLSchemaException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GraphQLSchemaException) OrigErr() error { + return nil +} + +func (s GraphQLSchemaException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GraphQLSchemaException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GraphQLSchemaException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a GraphQL API. type GraphqlApi struct { _ struct{} `type:"structure"` @@ -6990,6 +7385,62 @@ func (s *HttpDataSourceConfig) SetEndpoint(v string) *HttpDataSourceConfig { return s } +// An internal AWS AppSync error occurred. Try your request again. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + type LambdaConflictHandlerConfig struct { _ struct{} `type:"structure"` @@ -7052,6 +7503,62 @@ func (s *LambdaDataSourceConfig) SetLambdaFunctionArn(v string) *LambdaDataSourc return s } +// The request exceeded a limit. Try your request again. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListApiKeysInput struct { _ struct{} `type:"structure"` @@ -7892,6 +8399,63 @@ func (s *LogConfig) SetFieldLogLevel(v string) *LogConfig { return s } +// The resource specified in the request was not found. Check the resource, +// and then try again. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an OpenID Connect configuration. type OpenIDConnectConfig struct { _ struct{} `type:"structure"` @@ -8465,6 +9029,62 @@ func (s *Type) SetName(v string) *Type { return s } +// You are not authorized to perform this operation. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/appsync/errors.go b/service/appsync/errors.go index d817d9bb596..f0c0eb3b301 100644 --- a/service/appsync/errors.go +++ b/service/appsync/errors.go @@ -2,6 +2,10 @@ package appsync +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -74,3 +78,17 @@ const ( // You are not authorized to perform this operation. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ApiKeyLimitExceededException": newErrorApiKeyLimitExceededException, + "ApiKeyValidityOutOfBoundsException": newErrorApiKeyValidityOutOfBoundsException, + "ApiLimitExceededException": newErrorApiLimitExceededException, + "BadRequestException": newErrorBadRequestException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "GraphQLSchemaException": newErrorGraphQLSchemaException, + "InternalFailureException": newErrorInternalFailureException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/appsync/service.go b/service/appsync/service.go index 7df50b5c017..da4d67cb1ea 100644 --- a/service/appsync/service.go +++ b/service/appsync/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/athena/api.go b/service/athena/api.go index 6de0da31293..e1931f6e160 100644 --- a/service/athena/api.go +++ b/service/athena/api.go @@ -74,12 +74,12 @@ func (c *Athena) BatchGetNamedQueryRequest(input *BatchGetNamedQueryInput) (req // See the AWS API reference guide for Amazon Athena's // API operation BatchGetNamedQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -163,12 +163,12 @@ func (c *Athena) BatchGetQueryExecutionRequest(input *BatchGetQueryExecutionInpu // See the AWS API reference guide for Amazon Athena's // API operation BatchGetQueryExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -252,12 +252,12 @@ func (c *Athena) CreateNamedQueryRequest(input *CreateNamedQueryInput) (req *req // See the AWS API reference guide for Amazon Athena's // API operation CreateNamedQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -337,12 +337,12 @@ func (c *Athena) CreateWorkGroupRequest(input *CreateWorkGroupInput) (req *reque // See the AWS API reference guide for Amazon Athena's // API operation CreateWorkGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -427,12 +427,12 @@ func (c *Athena) DeleteNamedQueryRequest(input *DeleteNamedQueryInput) (req *req // See the AWS API reference guide for Amazon Athena's // API operation DeleteNamedQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -513,12 +513,12 @@ func (c *Athena) DeleteWorkGroupRequest(input *DeleteWorkGroupInput) (req *reque // See the AWS API reference guide for Amazon Athena's // API operation DeleteWorkGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -598,12 +598,12 @@ func (c *Athena) GetNamedQueryRequest(input *GetNamedQueryInput) (req *request.R // See the AWS API reference guide for Amazon Athena's // API operation GetNamedQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -684,12 +684,12 @@ func (c *Athena) GetQueryExecutionRequest(input *GetQueryExecutionInput) (req *r // See the AWS API reference guide for Amazon Athena's // API operation GetQueryExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -788,12 +788,12 @@ func (c *Athena) GetQueryResultsRequest(input *GetQueryResultsInput) (req *reque // See the AWS API reference guide for Amazon Athena's // API operation GetQueryResults for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -924,12 +924,12 @@ func (c *Athena) GetWorkGroupRequest(input *GetWorkGroupInput) (req *request.Req // See the AWS API reference guide for Amazon Athena's // API operation GetWorkGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -1019,12 +1019,12 @@ func (c *Athena) ListNamedQueriesRequest(input *ListNamedQueriesInput) (req *req // See the AWS API reference guide for Amazon Athena's // API operation ListNamedQueries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -1167,12 +1167,12 @@ func (c *Athena) ListQueryExecutionsRequest(input *ListQueryExecutionsInput) (re // See the AWS API reference guide for Amazon Athena's // API operation ListQueryExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -1303,16 +1303,16 @@ func (c *Athena) ListTagsForResourceRequest(input *ListTagsForResourceInput) (re // See the AWS API reference guide for Amazon Athena's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/ListTagsForResource @@ -1396,12 +1396,12 @@ func (c *Athena) ListWorkGroupsRequest(input *ListWorkGroupsInput) (req *request // See the AWS API reference guide for Amazon Athena's // API operation ListWorkGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -1537,16 +1537,16 @@ func (c *Athena) StartQueryExecutionRequest(input *StartQueryExecutionInput) (re // See the AWS API reference guide for Amazon Athena's // API operation StartQueryExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Indicates that the request was throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/StartQueryExecution @@ -1630,12 +1630,12 @@ func (c *Athena) StopQueryExecutionRequest(input *StopQueryExecutionInput) (req // See the AWS API reference guide for Amazon Athena's // API operation StopQueryExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -1727,16 +1727,16 @@ func (c *Athena) TagResourceRequest(input *TagResourceInput) (req *request.Reque // See the AWS API reference guide for Amazon Athena's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/TagResource @@ -1817,16 +1817,16 @@ func (c *Athena) UntagResourceRequest(input *UntagResourceInput) (req *request.R // See the AWS API reference guide for Amazon Athena's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource, such as a workgroup, was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/athena-2017-05-18/UntagResource @@ -1906,12 +1906,12 @@ func (c *Athena) UpdateWorkGroupRequest(input *UpdateWorkGroupInput) (req *reque // See the AWS API reference guide for Amazon Athena's // API operation UpdateWorkGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Indicates a platform issue, which may be due to a transient condition or // outage. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter may be missing or out of range. // @@ -2898,6 +2898,124 @@ func (s *GetWorkGroupOutput) SetWorkGroup(v *WorkGroup) *GetWorkGroupOutput { return s } +// Indicates a platform issue, which may be due to a transient condition or +// outage. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that something is wrong with the input to the request. For example, +// a required parameter may be missing or out of range. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error code returned when the query execution failed to process, or when + // the processing request for the named query failed. + AthenaErrorCode *string `min:"1" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type ListNamedQueriesInput struct { _ struct{} `type:"structure"` @@ -3611,6 +3729,64 @@ func (s *QueryExecutionStatus) SetSubmissionDateTime(v time.Time) *QueryExecutio return s } +// A resource, such as a workgroup, was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + ResourceName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The location in Amazon S3 where query results are stored and the encryption // option, if any, used for query results. These are known as "client-side settings". // If workgroup settings override client-side settings, then the query uses @@ -4146,6 +4322,66 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Indicates that the request was throttled. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The reason for the query throttling, for example, when it exceeds the concurrent + // query limit. + Reason *string `type:"string" enum:"ThrottleReason"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a named query ID that could not be processed. type UnprocessedNamedQueryId struct { _ struct{} `type:"structure"` diff --git a/service/athena/errors.go b/service/athena/errors.go index 1d280db2b20..5da82bf6a0e 100644 --- a/service/athena/errors.go +++ b/service/athena/errors.go @@ -2,6 +2,10 @@ package athena +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerException for service response error code @@ -30,3 +34,10 @@ const ( // Indicates that the request was throttled. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerException": newErrorInternalServerException, + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/athena/service.go b/service/athena/service.go index 27a64fedc56..3b624a855c1 100644 --- a/service/athena/service.go +++ b/service/athena/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/augmentedairuntime/api.go b/service/augmentedairuntime/api.go index 7ab1d370f2c..4174079de15 100644 --- a/service/augmentedairuntime/api.go +++ b/service/augmentedairuntime/api.go @@ -3,6 +3,7 @@ package augmentedairuntime import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,17 +67,17 @@ func (c *AugmentedAIRuntime) DeleteHumanLoopRequest(input *DeleteHumanLoopInput) // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation DeleteHumanLoop for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Your request was not valid. Check the syntax and try again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We were unable to find the requested resource. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Your request has exceeded the allowed amount of requests. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Your request could not be processed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DeleteHumanLoop @@ -154,17 +155,17 @@ func (c *AugmentedAIRuntime) DescribeHumanLoopRequest(input *DescribeHumanLoopIn // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation DescribeHumanLoop for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Your request was not valid. Check the syntax and try again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We were unable to find the requested resource. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Your request has exceeded the allowed amount of requests. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Your request could not be processed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/DescribeHumanLoop @@ -248,14 +249,14 @@ func (c *AugmentedAIRuntime) ListHumanLoopsRequest(input *ListHumanLoopsInput) ( // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation ListHumanLoops for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Your request was not valid. Check the syntax and try again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Your request has exceeded the allowed amount of requests. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Your request could not be processed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/ListHumanLoops @@ -385,18 +386,18 @@ func (c *AugmentedAIRuntime) StartHumanLoopRequest(input *StartHumanLoopInput) ( // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation StartHumanLoop for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Your request was not valid. Check the syntax and try again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Your request has exceeded the allowed amount of requests. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // You have exceeded your service quota. To perform the requested action, remove // some of the relevant resources, or request a service quota increase. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Your request could not be processed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StartHumanLoop @@ -475,17 +476,17 @@ func (c *AugmentedAIRuntime) StopHumanLoopRequest(input *StopHumanLoopInput) (re // See the AWS API reference guide for Amazon Augmented AI Runtime's // API operation StopHumanLoop for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Your request was not valid. Check the syntax and try again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We were unable to find the requested resource. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Your request has exceeded the allowed amount of requests. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Your request could not be processed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-a2i-runtime-2019-11-07/StopHumanLoop @@ -944,6 +945,62 @@ func (s *HumanReviewDataAttributes) SetContentClassifiers(v []*string) *HumanRev return s } +// Your request could not be processed. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListHumanLoopsInput struct { _ struct{} `type:"structure"` @@ -1055,6 +1112,119 @@ func (s *ListHumanLoopsOutput) SetNextToken(v string) *ListHumanLoopsOutput { return s } +// We were unable to find the requested resource. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have exceeded your service quota. To perform the requested action, remove +// some of the relevant resources, or request a service quota increase. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type StartHumanLoopInput struct { _ struct{} `type:"structure"` @@ -1230,6 +1400,118 @@ func (s StopHumanLoopOutput) GoString() string { return s.String() } +// Your request has exceeded the allowed amount of requests. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// Your request was not valid. Check the syntax and try again. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ContentClassifierFreeOfPersonallyIdentifiableInformation is a ContentClassifier enum value ContentClassifierFreeOfPersonallyIdentifiableInformation = "FreeOfPersonallyIdentifiableInformation" diff --git a/service/augmentedairuntime/errors.go b/service/augmentedairuntime/errors.go index 44145dd09e2..2916e75cc27 100644 --- a/service/augmentedairuntime/errors.go +++ b/service/augmentedairuntime/errors.go @@ -2,6 +2,10 @@ package augmentedairuntime +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerException for service response error code @@ -35,3 +39,11 @@ const ( // Your request was not valid. Check the syntax and try again. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/augmentedairuntime/service.go b/service/augmentedairuntime/service.go index ba4ca977cdd..ce6da44e585 100644 --- a/service/augmentedairuntime/service.go +++ b/service/augmentedairuntime/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/autoscalingplans/api.go b/service/autoscalingplans/api.go index 20a6adb1272..017b19196dd 100644 --- a/service/autoscalingplans/api.go +++ b/service/autoscalingplans/api.go @@ -66,19 +66,19 @@ func (c *AutoScalingPlans) CreateScalingPlanRequest(input *CreateScalingPlanInpu // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation CreateScalingPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Your account exceeded a limit. This exception is thrown when a per-account // resource limit is exceeded. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan @@ -163,18 +163,18 @@ func (c *AutoScalingPlans) DeleteScalingPlanRequest(input *DeleteScalingPlanInpu // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation DeleteScalingPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // The specified object could not be found. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan @@ -252,18 +252,18 @@ func (c *AutoScalingPlans) DescribeScalingPlanResourcesRequest(input *DescribeSc // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation DescribeScalingPlanResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token provided is not valid. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources @@ -341,18 +341,18 @@ func (c *AutoScalingPlans) DescribeScalingPlansRequest(input *DescribeScalingPla // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation DescribeScalingPlans for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token provided is not valid. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans @@ -434,11 +434,11 @@ func (c *AutoScalingPlans) GetScalingPlanResourceForecastDataRequest(input *GetS // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation GetScalingPlanResourceForecastData for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData @@ -520,18 +520,18 @@ func (c *AutoScalingPlans) UpdateScalingPlanRequest(input *UpdateScalingPlanInpu // See the AWS API reference guide for AWS Auto Scaling Plans's // API operation UpdateScalingPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception was thrown for a validation issue. Review the parameters provided. // -// * ErrCodeConcurrentUpdateException "ConcurrentUpdateException" +// * ConcurrentUpdateException // Concurrent updates caused an exception, for example, if you request an update // to a scaling plan that already has a pending update. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an internal error. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // The specified object could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan @@ -609,6 +609,63 @@ func (s *ApplicationSource) SetTagFilters(v []*TagFilter) *ApplicationSource { return s } +// Concurrent updates caused an exception, for example, if you request an update +// to a scaling plan that already has a pending update. +type ConcurrentUpdateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentUpdateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentUpdateException) GoString() string { + return s.String() +} + +func newErrorConcurrentUpdateException(v protocol.ResponseMetadata) error { + return &ConcurrentUpdateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentUpdateException) Code() string { + return "ConcurrentUpdateException" +} + +// Message returns the exception's message. +func (s ConcurrentUpdateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentUpdateException) OrigErr() error { + return nil +} + +func (s ConcurrentUpdateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentUpdateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentUpdateException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateScalingPlanInput struct { _ struct{} `type:"structure"` @@ -1480,6 +1537,175 @@ func (s *GetScalingPlanResourceForecastDataOutput) SetDatapoints(v []*Datapoint) return s } +// The service encountered an internal error. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The token provided is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// Your account exceeded a limit. This exception is thrown when a per-account +// resource limit is exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a dimension for a customized metric. type MetricDimension struct { _ struct{} `type:"structure"` @@ -1533,6 +1759,62 @@ func (s *MetricDimension) SetValue(v string) *MetricDimension { return s } +// The specified object could not be found. +type ObjectNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ObjectNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectNotFoundException) GoString() string { + return s.String() +} + +func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error { + return &ObjectNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ObjectNotFoundException) Code() string { + return "ObjectNotFoundException" +} + +// Message returns the exception's message. +func (s ObjectNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ObjectNotFoundException) OrigErr() error { + return nil +} + +func (s ObjectNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ObjectNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ObjectNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a predefined metric that can be used for predictive scaling. type PredefinedLoadMetricSpecification struct { _ struct{} `type:"structure"` @@ -2594,6 +2876,62 @@ func (s UpdateScalingPlanOutput) GoString() string { return s.String() } +// An exception was thrown for a validation issue. Review the parameters provided. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ForecastDataTypeCapacityForecast is a ForecastDataType enum value ForecastDataTypeCapacityForecast = "CapacityForecast" diff --git a/service/autoscalingplans/errors.go b/service/autoscalingplans/errors.go index 8f954385969..20d629b8880 100644 --- a/service/autoscalingplans/errors.go +++ b/service/autoscalingplans/errors.go @@ -2,6 +2,10 @@ package autoscalingplans +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentUpdateException for service response error code @@ -42,3 +46,12 @@ const ( // An exception was thrown for a validation issue. Review the parameters provided. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentUpdateException": newErrorConcurrentUpdateException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "ObjectNotFoundException": newErrorObjectNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/autoscalingplans/service.go b/service/autoscalingplans/service.go index c26a4e3b0e6..9f5c1db6b68 100644 --- a/service/autoscalingplans/service.go +++ b/service/autoscalingplans/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/backup/api.go b/service/backup/api.go index 7d8513a621c..02513ac6128 100644 --- a/service/backup/api.go +++ b/service/backup/api.go @@ -70,22 +70,22 @@ func (c *Backup) CreateBackupPlanRequest(input *CreateBackupPlanInput) (req *req // See the AWS API reference guide for AWS Backup's // API operation CreateBackupPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The required resource already exists. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupPlan @@ -183,22 +183,22 @@ func (c *Backup) CreateBackupSelectionRequest(input *CreateBackupSelectionInput) // See the AWS API reference guide for AWS Backup's // API operation CreateBackupSelection for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The required resource already exists. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupSelection @@ -281,22 +281,22 @@ func (c *Backup) CreateBackupVaultRequest(input *CreateBackupVaultInput) (req *r // See the AWS API reference guide for AWS Backup's // API operation CreateBackupVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The required resource already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/CreateBackupVault @@ -377,21 +377,21 @@ func (c *Backup) DeleteBackupPlanRequest(input *DeleteBackupPlanInput) (req *req // See the AWS API reference guide for AWS Backup's // API operation DeleteBackupPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a parameter is of the wrong type. // @@ -472,18 +472,18 @@ func (c *Backup) DeleteBackupSelectionRequest(input *DeleteBackupSelectionInput) // See the AWS API reference guide for AWS Backup's // API operation DeleteBackupSelection for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupSelection @@ -563,21 +563,21 @@ func (c *Backup) DeleteBackupVaultRequest(input *DeleteBackupVaultInput) (req *r // See the AWS API reference guide for AWS Backup's // API operation DeleteBackupVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a parameter is of the wrong type. // @@ -657,18 +657,18 @@ func (c *Backup) DeleteBackupVaultAccessPolicyRequest(input *DeleteBackupVaultAc // See the AWS API reference guide for AWS Backup's // API operation DeleteBackupVaultAccessPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultAccessPolicy @@ -747,18 +747,18 @@ func (c *Backup) DeleteBackupVaultNotificationsRequest(input *DeleteBackupVaultN // See the AWS API reference guide for AWS Backup's // API operation DeleteBackupVaultNotifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DeleteBackupVaultNotifications @@ -837,21 +837,21 @@ func (c *Backup) DeleteRecoveryPointRequest(input *DeleteRecoveryPointInput) (re // See the AWS API reference guide for AWS Backup's // API operation DeleteRecoveryPoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a parameter is of the wrong type. // @@ -930,21 +930,21 @@ func (c *Backup) DescribeBackupJobRequest(input *DescribeBackupJobInput) (req *r // See the AWS API reference guide for AWS Backup's // API operation DescribeBackupJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeDependencyFailureException "DependencyFailureException" +// * DependencyFailureException // A dependent AWS service or resource returned an error to the AWS Backup service, // and the action cannot be completed. // @@ -1023,18 +1023,18 @@ func (c *Backup) DescribeBackupVaultRequest(input *DescribeBackupVaultInput) (re // See the AWS API reference guide for AWS Backup's // API operation DescribeBackupVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeBackupVault @@ -1114,18 +1114,18 @@ func (c *Backup) DescribeProtectedResourceRequest(input *DescribeProtectedResour // See the AWS API reference guide for AWS Backup's // API operation DescribeProtectedResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// Returned Error Types: +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeProtectedResource @@ -1204,18 +1204,18 @@ func (c *Backup) DescribeRecoveryPointRequest(input *DescribeRecoveryPointInput) // See the AWS API reference guide for AWS Backup's // API operation DescribeRecoveryPoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/DescribeRecoveryPoint @@ -1294,21 +1294,21 @@ func (c *Backup) DescribeRestoreJobRequest(input *DescribeRestoreJobInput) (req // See the AWS API reference guide for AWS Backup's // API operation DescribeRestoreJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeDependencyFailureException "DependencyFailureException" +// * DependencyFailureException // A dependent AWS service or resource returned an error to the AWS Backup service, // and the action cannot be completed. // @@ -1387,18 +1387,18 @@ func (c *Backup) ExportBackupPlanTemplateRequest(input *ExportBackupPlanTemplate // See the AWS API reference guide for AWS Backup's // API operation ExportBackupPlanTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ExportBackupPlanTemplate @@ -1476,18 +1476,18 @@ func (c *Backup) GetBackupPlanRequest(input *GetBackupPlanInput) (req *request.R // See the AWS API reference guide for AWS Backup's // API operation GetBackupPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupPlan @@ -1565,22 +1565,22 @@ func (c *Backup) GetBackupPlanFromJSONRequest(input *GetBackupPlanFromJSONInput) // See the AWS API reference guide for AWS Backup's // API operation GetBackupPlanFromJSON for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a parameter is of the wrong type. // @@ -1659,18 +1659,18 @@ func (c *Backup) GetBackupPlanFromTemplateRequest(input *GetBackupPlanFromTempla // See the AWS API reference guide for AWS Backup's // API operation GetBackupPlanFromTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupPlanFromTemplate @@ -1749,18 +1749,18 @@ func (c *Backup) GetBackupSelectionRequest(input *GetBackupSelectionInput) (req // See the AWS API reference guide for AWS Backup's // API operation GetBackupSelection for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupSelection @@ -1839,18 +1839,18 @@ func (c *Backup) GetBackupVaultAccessPolicyRequest(input *GetBackupVaultAccessPo // See the AWS API reference guide for AWS Backup's // API operation GetBackupVaultAccessPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupVaultAccessPolicy @@ -1928,18 +1928,18 @@ func (c *Backup) GetBackupVaultNotificationsRequest(input *GetBackupVaultNotific // See the AWS API reference guide for AWS Backup's // API operation GetBackupVaultNotifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetBackupVaultNotifications @@ -2024,18 +2024,18 @@ func (c *Backup) GetRecoveryPointRestoreMetadataRequest(input *GetRecoveryPointR // See the AWS API reference guide for AWS Backup's // API operation GetRecoveryPointRestoreMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetRecoveryPointRestoreMetadata @@ -2113,8 +2113,8 @@ func (c *Backup) GetSupportedResourceTypesRequest(input *GetSupportedResourceTyp // See the AWS API reference guide for AWS Backup's // API operation GetSupportedResourceTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/GetSupportedResourceTypes @@ -2198,12 +2198,12 @@ func (c *Backup) ListBackupJobsRequest(input *ListBackupJobsInput) (req *request // See the AWS API reference guide for AWS Backup's // API operation ListBackupJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupJobs @@ -2340,18 +2340,18 @@ func (c *Backup) ListBackupPlanTemplatesRequest(input *ListBackupPlanTemplatesIn // See the AWS API reference guide for AWS Backup's // API operation ListBackupPlanTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupPlanTemplates @@ -2489,18 +2489,18 @@ func (c *Backup) ListBackupPlanVersionsRequest(input *ListBackupPlanVersionsInpu // See the AWS API reference guide for AWS Backup's // API operation ListBackupPlanVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupPlanVersions @@ -2638,18 +2638,18 @@ func (c *Backup) ListBackupPlansRequest(input *ListBackupPlansInput) (req *reque // See the AWS API reference guide for AWS Backup's // API operation ListBackupPlans for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupPlans @@ -2786,18 +2786,18 @@ func (c *Backup) ListBackupSelectionsRequest(input *ListBackupSelectionsInput) ( // See the AWS API reference guide for AWS Backup's // API operation ListBackupSelections for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupSelections @@ -2934,18 +2934,18 @@ func (c *Backup) ListBackupVaultsRequest(input *ListBackupVaultsInput) (req *req // See the AWS API reference guide for AWS Backup's // API operation ListBackupVaults for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListBackupVaults @@ -3083,12 +3083,12 @@ func (c *Backup) ListProtectedResourcesRequest(input *ListProtectedResourcesInpu // See the AWS API reference guide for AWS Backup's // API operation ListProtectedResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListProtectedResources @@ -3225,18 +3225,18 @@ func (c *Backup) ListRecoveryPointsByBackupVaultRequest(input *ListRecoveryPoint // See the AWS API reference guide for AWS Backup's // API operation ListRecoveryPointsByBackupVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRecoveryPointsByBackupVault @@ -3373,18 +3373,18 @@ func (c *Backup) ListRecoveryPointsByResourceRequest(input *ListRecoveryPointsBy // See the AWS API reference guide for AWS Backup's // API operation ListRecoveryPointsByResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRecoveryPointsByResource @@ -3521,18 +3521,18 @@ func (c *Backup) ListRestoreJobsRequest(input *ListRestoreJobsInput) (req *reque // See the AWS API reference guide for AWS Backup's // API operation ListRestoreJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListRestoreJobs @@ -3669,18 +3669,18 @@ func (c *Backup) ListTagsRequest(input *ListTagsInput) (req *request.Request, ou // See the AWS API reference guide for AWS Backup's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/ListTags @@ -3813,18 +3813,18 @@ func (c *Backup) PutBackupVaultAccessPolicyRequest(input *PutBackupVaultAccessPo // See the AWS API reference guide for AWS Backup's // API operation PutBackupVaultAccessPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultAccessPolicy @@ -3903,18 +3903,18 @@ func (c *Backup) PutBackupVaultNotificationsRequest(input *PutBackupVaultNotific // See the AWS API reference guide for AWS Backup's // API operation PutBackupVaultNotifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/PutBackupVaultNotifications @@ -3992,21 +3992,21 @@ func (c *Backup) StartBackupJobRequest(input *StartBackupJobInput) (req *request // See the AWS API reference guide for AWS Backup's // API operation StartBackupJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. // @@ -4089,18 +4089,18 @@ func (c *Backup) StartRestoreJobRequest(input *StartRestoreJobInput) (req *reque // See the AWS API reference guide for AWS Backup's // API operation StartRestoreJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/StartRestoreJob @@ -4179,22 +4179,22 @@ func (c *Backup) StopBackupJobRequest(input *StopBackupJobInput) (req *request.R // See the AWS API reference guide for AWS Backup's // API operation StopBackupJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// Returned Error Types: +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a parameter is of the wrong type. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/StopBackupJob @@ -4274,21 +4274,21 @@ func (c *Backup) TagResourceRequest(input *TagResourceInput) (req *request.Reque // See the AWS API reference guide for AWS Backup's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit in the request has been exceeded; for example, a maximum number of // items allowed in a request. // @@ -4369,18 +4369,18 @@ func (c *Backup) UntagResourceRequest(input *UntagResourceInput) (req *request.R // See the AWS API reference guide for AWS Backup's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UntagResource @@ -4460,18 +4460,18 @@ func (c *Backup) UpdateBackupPlanRequest(input *UpdateBackupPlanInput) (req *req // See the AWS API reference guide for AWS Backup's // API operation UpdateBackupPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UpdateBackupPlan @@ -4559,18 +4559,18 @@ func (c *Backup) UpdateRecoveryPointLifecycleRequest(input *UpdateRecoveryPointL // See the AWS API reference guide for AWS Backup's // API operation UpdateRecoveryPointLifecycle for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource that is required for the action doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Indicates that something is wrong with a parameter's value. For example, // the value is out of range. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Indicates that a required parameter is missing. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/backup-2018-11-15/UpdateRecoveryPointLifecycle @@ -4595,6 +4595,72 @@ func (c *Backup) UpdateRecoveryPointLifecycleWithContext(ctx aws.Context, input return out, req.Send() } +// The required resource already exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Arn *string `type:"string"` + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + CreatorRequestId *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains DeleteAt and MoveToColdStorageAt timestamps, which are used to specify // a lifecycle for a recovery point. // @@ -5495,6 +5561,69 @@ func (s DeleteRecoveryPointOutput) GoString() string { return s.String() } +// A dependent AWS service or resource returned an error to the AWS Backup service, +// and the action cannot be completed. +type DependencyFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s DependencyFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DependencyFailureException) GoString() string { + return s.String() +} + +func newErrorDependencyFailureException(v protocol.ResponseMetadata) error { + return &DependencyFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DependencyFailureException) Code() string { + return "DependencyFailureException" +} + +// Message returns the exception's message. +func (s DependencyFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DependencyFailureException) OrigErr() error { + return nil +} + +func (s DependencyFailureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DependencyFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DependencyFailureException) RequestID() string { + return s.respMetadata.RequestID +} + type DescribeBackupJobInput struct { _ struct{} `type:"structure"` @@ -7180,6 +7309,132 @@ func (s *GetSupportedResourceTypesOutput) SetResourceTypes(v []*string) *GetSupp return s } +// Indicates that something is wrong with a parameter's value. For example, +// the value is out of range. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that something is wrong with the input to the request. For example, +// a parameter is of the wrong type. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains detailed information about a backup job. type Job struct { _ struct{} `type:"structure"` @@ -7411,6 +7666,69 @@ func (s *Lifecycle) SetMoveToColdStorageAfterDays(v int64) *Lifecycle { return s } +// A limit in the request has been exceeded; for example, a maximum number of +// items allowed in a request. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListBackupJobsInput struct { _ struct{} `type:"structure"` @@ -8551,6 +8869,68 @@ func (s *ListTagsOutput) SetTags(v map[string]*string) *ListTagsOutput { return s } +// Indicates that a required parameter is missing. +type MissingParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s MissingParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingParameterValueException) GoString() string { + return s.String() +} + +func newErrorMissingParameterValueException(v protocol.ResponseMetadata) error { + return &MissingParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingParameterValueException) Code() string { + return "MissingParameterValueException" +} + +// Message returns the exception's message. +func (s MissingParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingParameterValueException) OrigErr() error { + return nil +} + +func (s MissingParameterValueException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains an optional backup plan display name and an array of BackupRule // objects, each of which specifies a backup rule. Each rule in a backup plan // is a separate scheduled task and can back up a different selection of AWS @@ -9315,6 +9695,68 @@ func (s *RecoveryPointCreator) SetBackupRuleId(v string) *RecoveryPointCreator { return s } +// A resource that is required for the action doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains metadata about a restore job. type RestoreJobsListMember struct { _ struct{} `type:"structure"` @@ -9818,6 +10260,68 @@ func (s *SelectionsListMember) SetSelectionName(v string) *SelectionsListMember return s } +// The request failed due to a temporary failure of the server. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Context *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type StartBackupJobInput struct { _ struct{} `type:"structure"` diff --git a/service/backup/errors.go b/service/backup/errors.go index 06cc16b5ad0..b0c5ec8a5ff 100644 --- a/service/backup/errors.go +++ b/service/backup/errors.go @@ -2,6 +2,10 @@ package backup +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlreadyExistsException for service response error code @@ -56,3 +60,14 @@ const ( // The request failed due to a temporary failure of the server. ErrCodeServiceUnavailableException = "ServiceUnavailableException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlreadyExistsException": newErrorAlreadyExistsException, + "DependencyFailureException": newErrorDependencyFailureException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "MissingParameterValueException": newErrorMissingParameterValueException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, +} diff --git a/service/backup/service.go b/service/backup/service.go index fe38f5238f9..56d44bfd0a0 100644 --- a/service/backup/service.go +++ b/service/backup/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/batch/api.go b/service/batch/api.go index 27943044c88..30a7d4dce02 100644 --- a/service/batch/api.go +++ b/service/batch/api.go @@ -70,13 +70,13 @@ func (c *Batch) CancelJobRequest(input *CancelJobInput) (req *request.Request, o // See the AWS API reference guide for AWS Batch's // API operation CancelJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJob @@ -193,13 +193,13 @@ func (c *Batch) CreateComputeEnvironmentRequest(input *CreateComputeEnvironmentI // See the AWS API reference guide for AWS Batch's // API operation CreateComputeEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateComputeEnvironment @@ -285,13 +285,13 @@ func (c *Batch) CreateJobQueueRequest(input *CreateJobQueueInput) (req *request. // See the AWS API reference guide for AWS Batch's // API operation CreateJobQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueue @@ -374,13 +374,13 @@ func (c *Batch) DeleteComputeEnvironmentRequest(input *DeleteComputeEnvironmentI // See the AWS API reference guide for AWS Batch's // API operation DeleteComputeEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteComputeEnvironment @@ -464,13 +464,13 @@ func (c *Batch) DeleteJobQueueRequest(input *DeleteJobQueueInput) (req *request. // See the AWS API reference guide for AWS Batch's // API operation DeleteJobQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeleteJobQueue @@ -549,13 +549,13 @@ func (c *Batch) DeregisterJobDefinitionRequest(input *DeregisterJobDefinitionInp // See the AWS API reference guide for AWS Batch's // API operation DeregisterJobDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DeregisterJobDefinition @@ -643,13 +643,13 @@ func (c *Batch) DescribeComputeEnvironmentsRequest(input *DescribeComputeEnviron // See the AWS API reference guide for AWS Batch's // API operation DescribeComputeEnvironments for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeComputeEnvironments @@ -786,13 +786,13 @@ func (c *Batch) DescribeJobDefinitionsRequest(input *DescribeJobDefinitionsInput // See the AWS API reference guide for AWS Batch's // API operation DescribeJobDefinitions for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions @@ -928,13 +928,13 @@ func (c *Batch) DescribeJobQueuesRequest(input *DescribeJobQueuesInput) (req *re // See the AWS API reference guide for AWS Batch's // API operation DescribeJobQueues for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues @@ -1064,13 +1064,13 @@ func (c *Batch) DescribeJobsRequest(input *DescribeJobsInput) (req *request.Requ // See the AWS API reference guide for AWS Batch's // API operation DescribeJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobs @@ -1165,13 +1165,13 @@ func (c *Batch) ListJobsRequest(input *ListJobsInput) (req *request.Request, out // See the AWS API reference guide for AWS Batch's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs @@ -1301,13 +1301,13 @@ func (c *Batch) RegisterJobDefinitionRequest(input *RegisterJobDefinitionInput) // See the AWS API reference guide for AWS Batch's // API operation RegisterJobDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RegisterJobDefinition @@ -1386,13 +1386,13 @@ func (c *Batch) SubmitJobRequest(input *SubmitJobInput) (req *request.Request, o // See the AWS API reference guide for AWS Batch's // API operation SubmitJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/SubmitJob @@ -1473,13 +1473,13 @@ func (c *Batch) TerminateJobRequest(input *TerminateJobInput) (req *request.Requ // See the AWS API reference guide for AWS Batch's // API operation TerminateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJob @@ -1557,13 +1557,13 @@ func (c *Batch) UpdateComputeEnvironmentRequest(input *UpdateComputeEnvironmentI // See the AWS API reference guide for AWS Batch's // API operation UpdateComputeEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateComputeEnvironment @@ -1641,13 +1641,13 @@ func (c *Batch) UpdateJobQueueRequest(input *UpdateJobQueueInput) (req *request. // See the AWS API reference guide for AWS Batch's // API operation UpdateJobQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientException "ClientException" +// Returned Error Types: +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueue @@ -1973,6 +1973,64 @@ func (s CancelJobOutput) GoString() string { return s.String() } +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. +type ClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientException) GoString() string { + return s.String() +} + +func newErrorClientException(v protocol.ResponseMetadata) error { + return &ClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientException) Code() string { + return "ClientException" +} + +// Message returns the exception's message. +func (s ClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientException) OrigErr() error { + return nil +} + +func (s ClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing an AWS Batch compute environment. type ComputeEnvironmentDetail struct { _ struct{} `type:"structure"` @@ -5445,6 +5503,62 @@ func (s *RetryStrategy) SetAttempts(v int64) *RetryStrategy { return s } +// These errors are usually caused by a server issue. +type ServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerException) GoString() string { + return s.String() +} + +func newErrorServerException(v protocol.ResponseMetadata) error { + return &ServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerException) Code() string { + return "ServerException" +} + +// Message returns the exception's message. +func (s ServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerException) OrigErr() error { + return nil +} + +func (s ServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerException) RequestID() string { + return s.respMetadata.RequestID +} + type SubmitJobInput struct { _ struct{} `type:"structure"` diff --git a/service/batch/errors.go b/service/batch/errors.go index eb308658602..ae250859be0 100644 --- a/service/batch/errors.go +++ b/service/batch/errors.go @@ -2,6 +2,10 @@ package batch +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeClientException for service response error code @@ -18,3 +22,8 @@ const ( // These errors are usually caused by a server issue. ErrCodeServerException = "ServerException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ClientException": newErrorClientException, + "ServerException": newErrorServerException, +} diff --git a/service/batch/service.go b/service/batch/service.go index 3360af5e948..184de634277 100644 --- a/service/batch/service.go +++ b/service/batch/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/budgets/api.go b/service/budgets/api.go index 575051caca2..d5a922714db 100644 --- a/service/budgets/api.go +++ b/service/budgets/api.go @@ -70,22 +70,22 @@ func (c *Budgets) CreateBudgetRequest(input *CreateBudgetInput) (req *request.Re // See the AWS API reference guide for AWS Budgets's // API operation CreateBudget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeCreationLimitExceededException "CreationLimitExceededException" +// * CreationLimitExceededException // You've exceeded the notification or subscriber limit. // -// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) CreateBudget(input *CreateBudgetInput) (*CreateBudgetOutput, error) { @@ -162,25 +162,25 @@ func (c *Budgets) CreateNotificationRequest(input *CreateNotificationInput) (req // See the AWS API reference guide for AWS Budgets's // API operation CreateNotification for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeCreationLimitExceededException "CreationLimitExceededException" +// * CreationLimitExceededException // You've exceeded the notification or subscriber limit. // -// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) CreateNotification(input *CreateNotificationInput) (*CreateNotificationOutput, error) { @@ -257,25 +257,25 @@ func (c *Budgets) CreateSubscriberRequest(input *CreateSubscriberInput) (req *re // See the AWS API reference guide for AWS Budgets's // API operation CreateSubscriber for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeCreationLimitExceededException "CreationLimitExceededException" +// * CreationLimitExceededException // You've exceeded the notification or subscriber limit. // -// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) CreateSubscriber(input *CreateSubscriberInput) (*CreateSubscriberOutput, error) { @@ -354,19 +354,19 @@ func (c *Budgets) DeleteBudgetRequest(input *DeleteBudgetInput) (req *request.Re // See the AWS API reference guide for AWS Budgets's // API operation DeleteBudget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DeleteBudget(input *DeleteBudgetInput) (*DeleteBudgetOutput, error) { @@ -445,19 +445,19 @@ func (c *Budgets) DeleteNotificationRequest(input *DeleteNotificationInput) (req // See the AWS API reference guide for AWS Budgets's // API operation DeleteNotification for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DeleteNotification(input *DeleteNotificationInput) (*DeleteNotificationOutput, error) { @@ -535,19 +535,19 @@ func (c *Budgets) DeleteSubscriberRequest(input *DeleteSubscriberInput) (req *re // See the AWS API reference guide for AWS Budgets's // API operation DeleteSubscriber for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DeleteSubscriber(input *DeleteSubscriberInput) (*DeleteSubscriberOutput, error) { @@ -626,19 +626,19 @@ func (c *Budgets) DescribeBudgetRequest(input *DescribeBudgetInput) (req *reques // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeBudget(input *DescribeBudgetInput) (*DescribeBudgetOutput, error) { @@ -714,25 +714,25 @@ func (c *Budgets) DescribeBudgetPerformanceHistoryRequest(input *DescribeBudgetP // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgetPerformanceHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token expired. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeBudgetPerformanceHistory(input *DescribeBudgetPerformanceHistoryInput) (*DescribeBudgetPerformanceHistoryOutput, error) { @@ -811,25 +811,25 @@ func (c *Budgets) DescribeBudgetsRequest(input *DescribeBudgetsInput) (req *requ // See the AWS API reference guide for AWS Budgets's // API operation DescribeBudgets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token expired. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeBudgets(input *DescribeBudgetsInput) (*DescribeBudgetsOutput, error) { @@ -904,25 +904,25 @@ func (c *Budgets) DescribeNotificationsForBudgetRequest(input *DescribeNotificat // See the AWS API reference guide for AWS Budgets's // API operation DescribeNotificationsForBudget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token expired. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeNotificationsForBudget(input *DescribeNotificationsForBudgetInput) (*DescribeNotificationsForBudgetOutput, error) { @@ -997,25 +997,25 @@ func (c *Budgets) DescribeSubscribersForNotificationRequest(input *DescribeSubsc // See the AWS API reference guide for AWS Budgets's // API operation DescribeSubscribersForNotification for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token expired. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) DescribeSubscribersForNotification(input *DescribeSubscribersForNotificationInput) (*DescribeSubscribersForNotificationOutput, error) { @@ -1098,19 +1098,19 @@ func (c *Budgets) UpdateBudgetRequest(input *UpdateBudgetInput) (req *request.Re // See the AWS API reference guide for AWS Budgets's // API operation UpdateBudget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) UpdateBudget(input *UpdateBudgetInput) (*UpdateBudgetOutput, error) { @@ -1186,22 +1186,22 @@ func (c *Budgets) UpdateNotificationRequest(input *UpdateNotificationInput) (req // See the AWS API reference guide for AWS Budgets's // API operation UpdateNotification for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) UpdateNotification(input *UpdateNotificationInput) (*UpdateNotificationOutput, error) { @@ -1277,22 +1277,22 @@ func (c *Budgets) UpdateSubscriberRequest(input *UpdateSubscriberInput) (req *re // See the AWS API reference guide for AWS Budgets's // API operation UpdateSubscriber for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can’t locate the resource that you specified. // -// * ErrCodeDuplicateRecordException "DuplicateRecordException" +// * DuplicateRecordException // The budget name already exists. Budget names must be unique within an account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to use this operation with the given parameters. // func (c *Budgets) UpdateSubscriber(input *UpdateSubscriberInput) (*UpdateSubscriberOutput, error) { @@ -1316,6 +1316,63 @@ func (c *Budgets) UpdateSubscriberWithContext(ctx aws.Context, input *UpdateSubs return out, req.Send() } +// You are not authorized to use this operation with the given parameters. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the output of the CreateBudget operation. The content consists // of the detailed metadata and data file information, and the current status // of the budget object. @@ -2201,6 +2258,63 @@ func (s CreateSubscriberOutput) GoString() string { return s.String() } +// You've exceeded the notification or subscriber limit. +type CreationLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CreationLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreationLimitExceededException) GoString() string { + return s.String() +} + +func newErrorCreationLimitExceededException(v protocol.ResponseMetadata) error { + return &CreationLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CreationLimitExceededException) Code() string { + return "CreationLimitExceededException" +} + +// Message returns the exception's message. +func (s CreationLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CreationLimitExceededException) OrigErr() error { + return nil +} + +func (s CreationLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CreationLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CreationLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Request of DeleteBudget type DeleteBudgetInput struct { _ struct{} `type:"structure"` @@ -3047,6 +3161,350 @@ func (s *DescribeSubscribersForNotificationOutput) SetSubscribers(v []*Subscribe return s } +// The budget name already exists. Budget names must be unique within an account. +type DuplicateRecordException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateRecordException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateRecordException) GoString() string { + return s.String() +} + +func newErrorDuplicateRecordException(v protocol.ResponseMetadata) error { + return &DuplicateRecordException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateRecordException) Code() string { + return "DuplicateRecordException" +} + +// Message returns the exception's message. +func (s DuplicateRecordException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateRecordException) OrigErr() error { + return nil +} + +func (s DuplicateRecordException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateRecordException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateRecordException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pagination token expired. +type ExpiredNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ExpiredNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredNextTokenException) GoString() string { + return s.String() +} + +func newErrorExpiredNextTokenException(v protocol.ResponseMetadata) error { + return &ExpiredNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredNextTokenException) Code() string { + return "ExpiredNextTokenException" +} + +// Message returns the exception's message. +func (s ExpiredNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredNextTokenException) OrigErr() error { + return nil +} + +func (s ExpiredNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error on the server occurred during the processing of your request. Try +// again later. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} + +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} + +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pagination token is invalid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error on the client occurred. Typically, the cause is an invalid input +// value. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// We can’t locate the resource that you specified. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message the exception carries. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A notification that is associated with a budget. A budget can have up to // five notifications. // diff --git a/service/budgets/errors.go b/service/budgets/errors.go index a67e8ecc41e..15cf0ff5d3e 100644 --- a/service/budgets/errors.go +++ b/service/budgets/errors.go @@ -2,6 +2,10 @@ package budgets +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -54,3 +58,14 @@ const ( // We can’t locate the resource that you specified. ErrCodeNotFoundException = "NotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "CreationLimitExceededException": newErrorCreationLimitExceededException, + "DuplicateRecordException": newErrorDuplicateRecordException, + "ExpiredNextTokenException": newErrorExpiredNextTokenException, + "InternalErrorException": newErrorInternalErrorException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "NotFoundException": newErrorNotFoundException, +} diff --git a/service/budgets/service.go b/service/budgets/service.go index ed6cee7d9e8..5e6a1071669 100644 --- a/service/budgets/service.go +++ b/service/budgets/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/chime/api.go b/service/chime/api.go index db113e6a21d..7c5d5d8d25e 100644 --- a/service/chime/api.go +++ b/service/chime/api.go @@ -67,30 +67,30 @@ func (c *Chime) AssociatePhoneNumberWithUserRequest(input *AssociatePhoneNumberW // See the AWS API reference guide for Amazon Chime's // API operation AssociatePhoneNumberWithUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumberWithUser @@ -168,30 +168,30 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorRequest(input *AssociateP // See the AWS API reference guide for Amazon Chime's // API operation AssociatePhoneNumbersWithVoiceConnector for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumbersWithVoiceConnector @@ -270,30 +270,30 @@ func (c *Chime) AssociatePhoneNumbersWithVoiceConnectorGroupRequest(input *Assoc // See the AWS API reference guide for Amazon Chime's // API operation AssociatePhoneNumbersWithVoiceConnectorGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/AssociatePhoneNumbersWithVoiceConnectorGroup @@ -374,30 +374,30 @@ func (c *Chime) BatchCreateAttendeeRequest(input *BatchCreateAttendeeInput) (req // See the AWS API reference guide for Amazon Chime's // API operation BatchCreateAttendee for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchCreateAttendee @@ -477,24 +477,24 @@ func (c *Chime) BatchCreateRoomMembershipRequest(input *BatchCreateRoomMembershi // See the AWS API reference guide for Amazon Chime's // API operation BatchCreateRoomMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchCreateRoomMembership @@ -576,27 +576,27 @@ func (c *Chime) BatchDeletePhoneNumberRequest(input *BatchDeletePhoneNumberInput // See the AWS API reference guide for Amazon Chime's // API operation BatchDeletePhoneNumber for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchDeletePhoneNumber @@ -688,27 +688,27 @@ func (c *Chime) BatchSuspendUserRequest(input *BatchSuspendUserInput) (req *requ // See the AWS API reference guide for Amazon Chime's // API operation BatchSuspendUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchSuspendUser @@ -793,27 +793,27 @@ func (c *Chime) BatchUnsuspendUserRequest(input *BatchUnsuspendUserInput) (req * // See the AWS API reference guide for Amazon Chime's // API operation BatchUnsuspendUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUnsuspendUser @@ -901,27 +901,27 @@ func (c *Chime) BatchUpdatePhoneNumberRequest(input *BatchUpdatePhoneNumberInput // See the AWS API reference guide for Amazon Chime's // API operation BatchUpdatePhoneNumber for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdatePhoneNumber @@ -1001,27 +1001,27 @@ func (c *Chime) BatchUpdateUserRequest(input *BatchUpdateUserInput) (req *reques // See the AWS API reference guide for Amazon Chime's // API operation BatchUpdateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/BatchUpdateUser @@ -1102,27 +1102,27 @@ func (c *Chime) CreateAccountRequest(input *CreateAccountInput) (req *request.Re // See the AWS API reference guide for Amazon Chime's // API operation CreateAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAccount @@ -1202,30 +1202,30 @@ func (c *Chime) CreateAttendeeRequest(input *CreateAttendeeInput) (req *request. // See the AWS API reference guide for Amazon Chime's // API operation CreateAttendee for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateAttendee @@ -1303,27 +1303,27 @@ func (c *Chime) CreateBotRequest(input *CreateBotInput) (req *request.Request, o // See the AWS API reference guide for Amazon Chime's // API operation CreateBot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateBot @@ -1404,27 +1404,27 @@ func (c *Chime) CreateMeetingRequest(input *CreateMeetingInput) (req *request.Re // See the AWS API reference guide for Amazon Chime's // API operation CreateMeeting for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateMeeting @@ -1505,30 +1505,30 @@ func (c *Chime) CreatePhoneNumberOrderRequest(input *CreatePhoneNumberOrderInput // See the AWS API reference guide for Amazon Chime's // API operation CreatePhoneNumberOrder for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreatePhoneNumberOrder @@ -1606,27 +1606,27 @@ func (c *Chime) CreateRoomRequest(input *CreateRoomInput) (req *request.Request, // See the AWS API reference guide for Amazon Chime's // API operation CreateRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoom @@ -1706,31 +1706,31 @@ func (c *Chime) CreateRoomMembershipRequest(input *CreateRoomMembershipInput) (r // See the AWS API reference guide for Amazon Chime's // API operation CreateRoomMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoomMembership @@ -1815,30 +1815,30 @@ func (c *Chime) CreateVoiceConnectorRequest(input *CreateVoiceConnectorInput) (r // See the AWS API reference guide for Amazon Chime's // API operation CreateVoiceConnector for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnector @@ -1923,30 +1923,30 @@ func (c *Chime) CreateVoiceConnectorGroupRequest(input *CreateVoiceConnectorGrou // See the AWS API reference guide for Amazon Chime's // API operation CreateVoiceConnectorGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateVoiceConnectorGroup @@ -2037,31 +2037,31 @@ func (c *Chime) DeleteAccountRequest(input *DeleteAccountInput) (req *request.Re // See the AWS API reference guide for Amazon Chime's // API operation DeleteAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // The request was well-formed but was unable to be followed due to semantic // errors. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAccount @@ -2144,27 +2144,27 @@ func (c *Chime) DeleteAttendeeRequest(input *DeleteAttendeeInput) (req *request. // See the AWS API reference guide for Amazon Chime's // API operation DeleteAttendee for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteAttendee @@ -2243,24 +2243,24 @@ func (c *Chime) DeleteEventsConfigurationRequest(input *DeleteEventsConfiguratio // See the AWS API reference guide for Amazon Chime's // API operation DeleteEventsConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteEventsConfiguration @@ -2342,27 +2342,27 @@ func (c *Chime) DeleteMeetingRequest(input *DeleteMeetingInput) (req *request.Re // See the AWS API reference guide for Amazon Chime's // API operation DeleteMeeting for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteMeeting @@ -2446,27 +2446,27 @@ func (c *Chime) DeletePhoneNumberRequest(input *DeletePhoneNumberInput) (req *re // See the AWS API reference guide for Amazon Chime's // API operation DeletePhoneNumber for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeletePhoneNumber @@ -2545,24 +2545,24 @@ func (c *Chime) DeleteRoomRequest(input *DeleteRoomInput) (req *request.Request, // See the AWS API reference guide for Amazon Chime's // API operation DeleteRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoom @@ -2641,24 +2641,24 @@ func (c *Chime) DeleteRoomMembershipRequest(input *DeleteRoomMembershipInput) (r // See the AWS API reference guide for Amazon Chime's // API operation DeleteRoomMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteRoomMembership @@ -2739,31 +2739,31 @@ func (c *Chime) DeleteVoiceConnectorRequest(input *DeleteVoiceConnectorInput) (r // See the AWS API reference guide for Amazon Chime's // API operation DeleteVoiceConnector for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnector @@ -2844,31 +2844,31 @@ func (c *Chime) DeleteVoiceConnectorGroupRequest(input *DeleteVoiceConnectorGrou // See the AWS API reference guide for Amazon Chime's // API operation DeleteVoiceConnectorGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorGroup @@ -2947,27 +2947,27 @@ func (c *Chime) DeleteVoiceConnectorOriginationRequest(input *DeleteVoiceConnect // See the AWS API reference guide for Amazon Chime's // API operation DeleteVoiceConnectorOrigination for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorOrigination @@ -3047,27 +3047,27 @@ func (c *Chime) DeleteVoiceConnectorStreamingConfigurationRequest(input *DeleteV // See the AWS API reference guide for Amazon Chime's // API operation DeleteVoiceConnectorStreamingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorStreamingConfiguration @@ -3146,27 +3146,27 @@ func (c *Chime) DeleteVoiceConnectorTerminationRequest(input *DeleteVoiceConnect // See the AWS API reference guide for Amazon Chime's // API operation DeleteVoiceConnectorTermination for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTermination @@ -3246,27 +3246,27 @@ func (c *Chime) DeleteVoiceConnectorTerminationCredentialsRequest(input *DeleteV // See the AWS API reference guide for Amazon Chime's // API operation DeleteVoiceConnectorTerminationCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DeleteVoiceConnectorTerminationCredentials @@ -3346,27 +3346,27 @@ func (c *Chime) DisassociatePhoneNumberFromUserRequest(input *DisassociatePhoneN // See the AWS API reference guide for Amazon Chime's // API operation DisassociatePhoneNumberFromUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumberFromUser @@ -3445,27 +3445,27 @@ func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorRequest(input *Disasso // See the AWS API reference guide for Amazon Chime's // API operation DisassociatePhoneNumbersFromVoiceConnector for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnector @@ -3544,27 +3544,27 @@ func (c *Chime) DisassociatePhoneNumbersFromVoiceConnectorGroupRequest(input *Di // See the AWS API reference guide for Amazon Chime's // API operation DisassociatePhoneNumbersFromVoiceConnectorGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DisassociatePhoneNumbersFromVoiceConnectorGroup @@ -3643,27 +3643,27 @@ func (c *Chime) GetAccountRequest(input *GetAccountInput) (req *request.Request, // See the AWS API reference guide for Amazon Chime's // API operation GetAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccount @@ -3744,27 +3744,27 @@ func (c *Chime) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req * // See the AWS API reference guide for Amazon Chime's // API operation GetAccountSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAccountSettings @@ -3845,27 +3845,27 @@ func (c *Chime) GetAttendeeRequest(input *GetAttendeeInput) (req *request.Reques // See the AWS API reference guide for Amazon Chime's // API operation GetAttendee for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetAttendee @@ -3944,24 +3944,24 @@ func (c *Chime) GetBotRequest(input *GetBotInput) (req *request.Request, output // See the AWS API reference guide for Amazon Chime's // API operation GetBot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetBot @@ -4040,27 +4040,27 @@ func (c *Chime) GetEventsConfigurationRequest(input *GetEventsConfigurationInput // See the AWS API reference guide for Amazon Chime's // API operation GetEventsConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetEventsConfiguration @@ -4139,24 +4139,24 @@ func (c *Chime) GetGlobalSettingsRequest(input *GetGlobalSettingsInput) (req *re // See the AWS API reference guide for Amazon Chime's // API operation GetGlobalSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetGlobalSettings @@ -4237,27 +4237,27 @@ func (c *Chime) GetMeetingRequest(input *GetMeetingInput) (req *request.Request, // See the AWS API reference guide for Amazon Chime's // API operation GetMeeting for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetMeeting @@ -4336,27 +4336,27 @@ func (c *Chime) GetPhoneNumberRequest(input *GetPhoneNumberInput) (req *request. // See the AWS API reference guide for Amazon Chime's // API operation GetPhoneNumber for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumber @@ -4435,27 +4435,27 @@ func (c *Chime) GetPhoneNumberOrderRequest(input *GetPhoneNumberOrderInput) (req // See the AWS API reference guide for Amazon Chime's // API operation GetPhoneNumberOrder for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberOrder @@ -4534,24 +4534,24 @@ func (c *Chime) GetPhoneNumberSettingsRequest(input *GetPhoneNumberSettingsInput // See the AWS API reference guide for Amazon Chime's // API operation GetPhoneNumberSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetPhoneNumberSettings @@ -4629,24 +4629,24 @@ func (c *Chime) GetRoomRequest(input *GetRoomInput) (req *request.Request, outpu // See the AWS API reference guide for Amazon Chime's // API operation GetRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetRoom @@ -4728,27 +4728,27 @@ func (c *Chime) GetUserRequest(input *GetUserInput) (req *request.Request, outpu // See the AWS API reference guide for Amazon Chime's // API operation GetUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUser @@ -4827,27 +4827,27 @@ func (c *Chime) GetUserSettingsRequest(input *GetUserSettingsInput) (req *reques // See the AWS API reference guide for Amazon Chime's // API operation GetUserSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetUserSettings @@ -4926,27 +4926,27 @@ func (c *Chime) GetVoiceConnectorRequest(input *GetVoiceConnectorInput) (req *re // See the AWS API reference guide for Amazon Chime's // API operation GetVoiceConnector for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnector @@ -5025,27 +5025,27 @@ func (c *Chime) GetVoiceConnectorGroupRequest(input *GetVoiceConnectorGroupInput // See the AWS API reference guide for Amazon Chime's // API operation GetVoiceConnectorGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorGroup @@ -5125,27 +5125,27 @@ func (c *Chime) GetVoiceConnectorLoggingConfigurationRequest(input *GetVoiceConn // See the AWS API reference guide for Amazon Chime's // API operation GetVoiceConnectorLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorLoggingConfiguration @@ -5224,27 +5224,27 @@ func (c *Chime) GetVoiceConnectorOriginationRequest(input *GetVoiceConnectorOrig // See the AWS API reference guide for Amazon Chime's // API operation GetVoiceConnectorOrigination for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorOrigination @@ -5325,27 +5325,27 @@ func (c *Chime) GetVoiceConnectorStreamingConfigurationRequest(input *GetVoiceCo // See the AWS API reference guide for Amazon Chime's // API operation GetVoiceConnectorStreamingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorStreamingConfiguration @@ -5424,27 +5424,27 @@ func (c *Chime) GetVoiceConnectorTerminationRequest(input *GetVoiceConnectorTerm // See the AWS API reference guide for Amazon Chime's // API operation GetVoiceConnectorTermination for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTermination @@ -5523,27 +5523,27 @@ func (c *Chime) GetVoiceConnectorTerminationHealthRequest(input *GetVoiceConnect // See the AWS API reference guide for Amazon Chime's // API operation GetVoiceConnectorTerminationHealth for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/GetVoiceConnectorTerminationHealth @@ -5623,27 +5623,27 @@ func (c *Chime) InviteUsersRequest(input *InviteUsersInput) (req *request.Reques // See the AWS API reference guide for Amazon Chime's // API operation InviteUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/InviteUsers @@ -5730,27 +5730,27 @@ func (c *Chime) ListAccountsRequest(input *ListAccountsInput) (req *request.Requ // See the AWS API reference guide for Amazon Chime's // API operation ListAccounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAccounts @@ -5888,27 +5888,27 @@ func (c *Chime) ListAttendeesRequest(input *ListAttendeesInput) (req *request.Re // See the AWS API reference guide for Amazon Chime's // API operation ListAttendees for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListAttendees @@ -6045,24 +6045,24 @@ func (c *Chime) ListBotsRequest(input *ListBotsInput) (req *request.Request, out // See the AWS API reference guide for Amazon Chime's // API operation ListBots for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListBots @@ -6200,24 +6200,24 @@ func (c *Chime) ListMeetingsRequest(input *ListMeetingsInput) (req *request.Requ // See the AWS API reference guide for Amazon Chime's // API operation ListMeetings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListMeetings @@ -6353,24 +6353,24 @@ func (c *Chime) ListPhoneNumberOrdersRequest(input *ListPhoneNumberOrdersInput) // See the AWS API reference guide for Amazon Chime's // API operation ListPhoneNumberOrders for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumberOrders @@ -6507,24 +6507,24 @@ func (c *Chime) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *requ // See the AWS API reference guide for Amazon Chime's // API operation ListPhoneNumbers for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListPhoneNumbers @@ -6661,24 +6661,24 @@ func (c *Chime) ListRoomMembershipsRequest(input *ListRoomMembershipsInput) (req // See the AWS API reference guide for Amazon Chime's // API operation ListRoomMemberships for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRoomMemberships @@ -6816,24 +6816,24 @@ func (c *Chime) ListRoomsRequest(input *ListRoomsInput) (req *request.Request, o // See the AWS API reference guide for Amazon Chime's // API operation ListRooms for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListRooms @@ -6971,27 +6971,27 @@ func (c *Chime) ListUsersRequest(input *ListUsersInput) (req *request.Request, o // See the AWS API reference guide for Amazon Chime's // API operation ListUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListUsers @@ -7128,24 +7128,24 @@ func (c *Chime) ListVoiceConnectorGroupsRequest(input *ListVoiceConnectorGroupsI // See the AWS API reference guide for Amazon Chime's // API operation ListVoiceConnectorGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorGroups @@ -7275,27 +7275,27 @@ func (c *Chime) ListVoiceConnectorTerminationCredentialsRequest(input *ListVoice // See the AWS API reference guide for Amazon Chime's // API operation ListVoiceConnectorTerminationCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectorTerminationCredentials @@ -7379,24 +7379,24 @@ func (c *Chime) ListVoiceConnectorsRequest(input *ListVoiceConnectorsInput) (req // See the AWS API reference guide for Amazon Chime's // API operation ListVoiceConnectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListVoiceConnectors @@ -7528,27 +7528,27 @@ func (c *Chime) LogoutUserRequest(input *LogoutUserInput) (req *request.Request, // See the AWS API reference guide for Amazon Chime's // API operation LogoutUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/LogoutUser @@ -7628,27 +7628,27 @@ func (c *Chime) PutEventsConfigurationRequest(input *PutEventsConfigurationInput // See the AWS API reference guide for Amazon Chime's // API operation PutEventsConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutEventsConfiguration @@ -7728,27 +7728,27 @@ func (c *Chime) PutVoiceConnectorLoggingConfigurationRequest(input *PutVoiceConn // See the AWS API reference guide for Amazon Chime's // API operation PutVoiceConnectorLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorLoggingConfiguration @@ -7826,27 +7826,27 @@ func (c *Chime) PutVoiceConnectorOriginationRequest(input *PutVoiceConnectorOrig // See the AWS API reference guide for Amazon Chime's // API operation PutVoiceConnectorOrigination for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorOrigination @@ -7927,27 +7927,27 @@ func (c *Chime) PutVoiceConnectorStreamingConfigurationRequest(input *PutVoiceCo // See the AWS API reference guide for Amazon Chime's // API operation PutVoiceConnectorStreamingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorStreamingConfiguration @@ -8025,30 +8025,30 @@ func (c *Chime) PutVoiceConnectorTerminationRequest(input *PutVoiceConnectorTerm // See the AWS API reference guide for Amazon Chime's // API operation PutVoiceConnectorTermination for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTermination @@ -8127,27 +8127,27 @@ func (c *Chime) PutVoiceConnectorTerminationCredentialsRequest(input *PutVoiceCo // See the AWS API reference guide for Amazon Chime's // API operation PutVoiceConnectorTerminationCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PutVoiceConnectorTerminationCredentials @@ -8225,24 +8225,24 @@ func (c *Chime) RegenerateSecurityTokenRequest(input *RegenerateSecurityTokenInp // See the AWS API reference guide for Amazon Chime's // API operation RegenerateSecurityToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RegenerateSecurityToken @@ -8321,27 +8321,27 @@ func (c *Chime) ResetPersonalPINRequest(input *ResetPersonalPINInput) (req *requ // See the AWS API reference guide for Amazon Chime's // API operation ResetPersonalPIN for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ResetPersonalPIN @@ -8419,30 +8419,30 @@ func (c *Chime) RestorePhoneNumberRequest(input *RestorePhoneNumberInput) (req * // See the AWS API reference guide for Amazon Chime's // API operation RestorePhoneNumber for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The request exceeds the resource limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/RestorePhoneNumber @@ -8520,27 +8520,27 @@ func (c *Chime) SearchAvailablePhoneNumbersRequest(input *SearchAvailablePhoneNu // See the AWS API reference guide for Amazon Chime's // API operation SearchAvailablePhoneNumbers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permissions to perform the requested operation. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbers @@ -8619,27 +8619,27 @@ func (c *Chime) UpdateAccountRequest(input *UpdateAccountInput) (req *request.Re // See the AWS API reference guide for Amazon Chime's // API operation UpdateAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccount @@ -8721,31 +8721,31 @@ func (c *Chime) UpdateAccountSettingsRequest(input *UpdateAccountSettingsInput) // See the AWS API reference guide for Amazon Chime's // API operation UpdateAccountSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateAccountSettings @@ -8824,24 +8824,24 @@ func (c *Chime) UpdateBotRequest(input *UpdateBotInput) (req *request.Request, o // See the AWS API reference guide for Amazon Chime's // API operation UpdateBot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateBot @@ -8921,24 +8921,24 @@ func (c *Chime) UpdateGlobalSettingsRequest(input *UpdateGlobalSettingsInput) (r // See the AWS API reference guide for Amazon Chime's // API operation UpdateGlobalSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateGlobalSettings @@ -9026,27 +9026,27 @@ func (c *Chime) UpdatePhoneNumberRequest(input *UpdatePhoneNumberInput) (req *re // See the AWS API reference guide for Amazon Chime's // API operation UpdatePhoneNumber for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumber @@ -9128,24 +9128,24 @@ func (c *Chime) UpdatePhoneNumberSettingsRequest(input *UpdatePhoneNumberSetting // See the AWS API reference guide for Amazon Chime's // API operation UpdatePhoneNumberSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdatePhoneNumberSettings @@ -9223,24 +9223,24 @@ func (c *Chime) UpdateRoomRequest(input *UpdateRoomInput) (req *request.Request, // See the AWS API reference guide for Amazon Chime's // API operation UpdateRoom for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoom @@ -9320,24 +9320,24 @@ func (c *Chime) UpdateRoomMembershipRequest(input *UpdateRoomMembershipInput) (r // See the AWS API reference guide for Amazon Chime's // API operation UpdateRoomMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateRoomMembership @@ -9416,27 +9416,27 @@ func (c *Chime) UpdateUserRequest(input *UpdateUserInput) (req *request.Request, // See the AWS API reference guide for Amazon Chime's // API operation UpdateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUser @@ -9515,27 +9515,27 @@ func (c *Chime) UpdateUserSettingsRequest(input *UpdateUserSettingsInput) (req * // See the AWS API reference guide for Amazon Chime's // API operation UpdateUserSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateUserSettings @@ -9613,27 +9613,27 @@ func (c *Chime) UpdateVoiceConnectorRequest(input *UpdateVoiceConnectorInput) (r // See the AWS API reference guide for Amazon Chime's // API operation UpdateVoiceConnector for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnector @@ -9712,31 +9712,31 @@ func (c *Chime) UpdateVoiceConnectorGroupRequest(input *UpdateVoiceConnectorGrou // See the AWS API reference guide for Amazon Chime's // API operation UpdateVoiceConnectorGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// Returned Error Types: +// * UnauthorizedClientException // The client is not currently authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more of the resources in the request does not exist in the system. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is permanently forbidden from making the request. For example, // when a user tries to create an account from an unsupported Region. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input parameters don't match the service's restrictions. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request could not be processed because of conflict in the current state // of the resource. // -// * ErrCodeThrottledClientException "ThrottledClientException" +// * ThrottledClientException // The client exceeded its request rate limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // The service encountered an unexpected error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/UpdateVoiceConnectorGroup @@ -9761,6 +9761,64 @@ func (c *Chime) UpdateVoiceConnectorGroupWithContext(ctx aws.Context, input *Upd return out, req.Send() } +// You don't have permissions to perform the requested operation. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // The Amazon Chime account details. An AWS account can have multiple Amazon // Chime accounts. type Account struct { @@ -10196,6 +10254,64 @@ func (s *Attendee) SetJoinToken(v string) *Attendee { return s } +// The input parameters don't match the service's restrictions. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type BatchCreateAttendeeInput struct { _ struct{} `type:"structure"` @@ -10903,6 +11019,65 @@ func (s *BusinessCallingSettings) SetCdrBucket(v string) *BusinessCallingSetting return s } +// The request could not be processed because of conflict in the current state +// of the resource. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateAccountInput struct { _ struct{} `type:"structure"` @@ -12872,6 +13047,65 @@ func (s *EventsConfiguration) SetOutboundEventsHTTPSEndpoint(v string) *EventsCo return s } +// The client is permanently forbidden from making the request. For example, +// when a user tries to create an account from an unsupported Region. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetAccountInput struct { _ struct{} `type:"structure"` @@ -15832,6 +16066,64 @@ func (s *MembershipItem) SetRole(v string) *MembershipItem { return s } +// One or more of the resources in the request does not exist in the system. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A phone number for which an order has been placed. type OrderedPhoneNumber struct { _ struct{} `type:"structure"` @@ -17009,6 +17301,64 @@ func (s *ResetPersonalPINOutput) SetUser(v *User) *ResetPersonalPINOutput { return s } +// The request exceeds the resource limit. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type RestorePhoneNumberInput struct { _ struct{} `type:"structure"` @@ -17318,6 +17668,122 @@ func (s *SearchAvailablePhoneNumbersOutput) SetE164PhoneNumbers(v []*string) *Se return s } +// The service encountered an unexpected error. +type ServiceFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceFailureException) GoString() string { + return s.String() +} + +func newErrorServiceFailureException(v protocol.ResponseMetadata) error { + return &ServiceFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceFailureException) Code() string { + return "ServiceFailureException" +} + +// Message returns the exception's message. +func (s ServiceFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceFailureException) OrigErr() error { + return nil +} + +func (s ServiceFailureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is currently unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // The streaming configuration associated with an Amazon Chime Voice Connector. // Specifies whether media streaming is enabled for sending to Amazon Kinesis, // and shows the retention period for the Amazon Kinesis data, in hours. @@ -17545,6 +18011,181 @@ func (s *TerminationHealth) SetTimestamp(v time.Time) *TerminationHealth { return s } +// The client exceeded its request rate limit. +type ThrottledClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottledClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottledClientException) GoString() string { + return s.String() +} + +func newErrorThrottledClientException(v protocol.ResponseMetadata) error { + return &ThrottledClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottledClientException) Code() string { + return "ThrottledClientException" +} + +// Message returns the exception's message. +func (s ThrottledClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottledClientException) OrigErr() error { + return nil +} + +func (s ThrottledClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottledClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottledClientException) RequestID() string { + return s.respMetadata.RequestID +} + +// The client is not currently authorized to make the request. +type UnauthorizedClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedClientException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { + return &UnauthorizedClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedClientException) Code() string { + return "UnauthorizedClientException" +} + +// Message returns the exception's message. +func (s UnauthorizedClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedClientException) OrigErr() error { + return nil +} + +func (s UnauthorizedClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedClientException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was well-formed but was unable to be followed due to semantic +// errors. +type UnprocessableEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnprocessableEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnprocessableEntityException) GoString() string { + return s.String() +} + +func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { + return &UnprocessableEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnprocessableEntityException) Code() string { + return "UnprocessableEntityException" +} + +// Message returns the exception's message. +func (s UnprocessableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnprocessableEntityException) OrigErr() error { + return nil +} + +func (s UnprocessableEntityException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnprocessableEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnprocessableEntityException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateAccountInput struct { _ struct{} `type:"structure"` diff --git a/service/chime/errors.go b/service/chime/errors.go index b105ae993b5..17bb694febe 100644 --- a/service/chime/errors.go +++ b/service/chime/errors.go @@ -2,6 +2,10 @@ package chime +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -73,3 +77,17 @@ const ( // errors. ErrCodeUnprocessableEntityException = "UnprocessableEntityException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "NotFoundException": newErrorNotFoundException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ServiceFailureException": newErrorServiceFailureException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottledClientException": newErrorThrottledClientException, + "UnauthorizedClientException": newErrorUnauthorizedClientException, + "UnprocessableEntityException": newErrorUnprocessableEntityException, +} diff --git a/service/chime/service.go b/service/chime/service.go index a6d6a750832..21b87ab6c2b 100644 --- a/service/chime/service.go +++ b/service/chime/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cloud9/api.go b/service/cloud9/api.go index 299883bccd3..63761fb89ad 100644 --- a/service/cloud9/api.go +++ b/service/cloud9/api.go @@ -3,6 +3,7 @@ package cloud9 import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -67,26 +68,26 @@ func (c *Cloud9) CreateEnvironmentEC2Request(input *CreateEnvironmentEC2Input) ( // See the AWS API reference guide for AWS Cloud9's // API operation CreateEnvironmentEC2 for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/CreateEnvironmentEC2 @@ -164,26 +165,26 @@ func (c *Cloud9) CreateEnvironmentMembershipRequest(input *CreateEnvironmentMemb // See the AWS API reference guide for AWS Cloud9's // API operation CreateEnvironmentMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/CreateEnvironmentMembership @@ -263,26 +264,26 @@ func (c *Cloud9) DeleteEnvironmentRequest(input *DeleteEnvironmentInput) (req *r // See the AWS API reference guide for AWS Cloud9's // API operation DeleteEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/DeleteEnvironment @@ -361,26 +362,26 @@ func (c *Cloud9) DeleteEnvironmentMembershipRequest(input *DeleteEnvironmentMemb // See the AWS API reference guide for AWS Cloud9's // API operation DeleteEnvironmentMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/DeleteEnvironmentMembership @@ -465,26 +466,26 @@ func (c *Cloud9) DescribeEnvironmentMembershipsRequest(input *DescribeEnvironmen // See the AWS API reference guide for AWS Cloud9's // API operation DescribeEnvironmentMemberships for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/DescribeEnvironmentMemberships @@ -614,26 +615,26 @@ func (c *Cloud9) DescribeEnvironmentStatusRequest(input *DescribeEnvironmentStat // See the AWS API reference guide for AWS Cloud9's // API operation DescribeEnvironmentStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/DescribeEnvironmentStatus @@ -711,26 +712,26 @@ func (c *Cloud9) DescribeEnvironmentsRequest(input *DescribeEnvironmentsInput) ( // See the AWS API reference guide for AWS Cloud9's // API operation DescribeEnvironments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/DescribeEnvironments @@ -814,26 +815,26 @@ func (c *Cloud9) ListEnvironmentsRequest(input *ListEnvironmentsInput) (req *req // See the AWS API reference guide for AWS Cloud9's // API operation ListEnvironments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/ListEnvironments @@ -964,26 +965,26 @@ func (c *Cloud9) UpdateEnvironmentRequest(input *UpdateEnvironmentInput) (req *r // See the AWS API reference guide for AWS Cloud9's // API operation UpdateEnvironment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/UpdateEnvironment @@ -1062,26 +1063,26 @@ func (c *Cloud9) UpdateEnvironmentMembershipRequest(input *UpdateEnvironmentMemb // See the AWS API reference guide for AWS Cloud9's // API operation UpdateEnvironmentMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The target request is invalid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A conflict occurred. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The target resource cannot be found. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // An access permissions issue occurred. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many service requests were made over the given time period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit was exceeded. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/UpdateEnvironmentMembership @@ -1106,6 +1107,108 @@ func (c *Cloud9) UpdateEnvironmentMembershipWithContext(ctx aws.Context, input * return out, req.Send() } +// The target request is invalid. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// A conflict occurred. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateEnvironmentEC2Input struct { _ struct{} `type:"structure"` @@ -1923,6 +2026,159 @@ func (s *EnvironmentMember) SetUserId(v string) *EnvironmentMember { return s } +// An access permissions issue occurred. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + +// An internal server error occurred. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// A service limit was exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListEnvironmentsInput struct { _ struct{} `type:"structure"` @@ -1995,6 +2251,108 @@ func (s *ListEnvironmentsOutput) SetNextToken(v string) *ListEnvironmentsOutput return s } +// The target resource cannot be found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Too many service requests were made over the given time period. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateEnvironmentInput struct { _ struct{} `type:"structure"` diff --git a/service/cloud9/errors.go b/service/cloud9/errors.go index b5369ad46b3..0318a99b302 100644 --- a/service/cloud9/errors.go +++ b/service/cloud9/errors.go @@ -2,6 +2,10 @@ package cloud9 +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -46,3 +50,13 @@ const ( // Too many service requests were made over the given time period. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/cloud9/service.go b/service/cloud9/service.go index 9c1c1550aee..cfaec1d7791 100644 --- a/service/cloud9/service.go +++ b/service/cloud9/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/clouddirectory/api.go b/service/clouddirectory/api.go index c450d81b64d..2cb8b75ca44 100644 --- a/service/clouddirectory/api.go +++ b/service/clouddirectory/api.go @@ -68,17 +68,17 @@ func (c *CloudDirectory) AddFacetToObjectRequest(input *AddFacetToObjectInput) ( // See the AWS API reference guide for Amazon CloudDirectory's // API operation AddFacetToObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -86,24 +86,24 @@ func (c *CloudDirectory) AddFacetToObjectRequest(input *AddFacetToObjectInput) ( // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -183,17 +183,17 @@ func (c *CloudDirectory) ApplySchemaRequest(input *ApplySchemaInput) (req *reque // See the AWS API reference guide for Amazon CloudDirectory's // API operation ApplySchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -201,25 +201,25 @@ func (c *CloudDirectory) ApplySchemaRequest(input *ApplySchemaInput) (req *reque // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeSchemaAlreadyExistsException "SchemaAlreadyExistsException" +// * SchemaAlreadyExistsException // Indicates that a schema could not be created due to a naming conflict. Please // select a different name and then try again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// * InvalidAttachmentException // Indicates that an attempt to make an attachment was invalid. For example, // attaching two nodes with a link type that is not applicable to the nodes // or attempting to apply a schema to a directory a second time. @@ -304,17 +304,17 @@ func (c *CloudDirectory) AttachObjectRequest(input *AttachObjectInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation AttachObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -322,37 +322,37 @@ func (c *CloudDirectory) AttachObjectRequest(input *AttachObjectInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// * LinkNameAlreadyInUseException // Indicates that a link could not be created due to a naming conflict. Choose // a different name and then try again. // -// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// * InvalidAttachmentException // Indicates that an attempt to make an attachment was invalid. For example, // attaching two nodes with a link type that is not applicable to the nodes // or attempting to apply a schema to a directory a second time. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -433,17 +433,17 @@ func (c *CloudDirectory) AttachPolicyRequest(input *AttachPolicyInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation AttachPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -451,24 +451,24 @@ func (c *CloudDirectory) AttachPolicyRequest(input *AttachPolicyInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeNotPolicyException "NotPolicyException" +// * NotPolicyException // Indicates that the requested operation can only operate on policy objects. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachPolicy @@ -546,17 +546,17 @@ func (c *CloudDirectory) AttachToIndexRequest(input *AttachToIndexInput) (req *r // See the AWS API reference guide for Amazon CloudDirectory's // API operation AttachToIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -564,37 +564,37 @@ func (c *CloudDirectory) AttachToIndexRequest(input *AttachToIndexInput) (req *r // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// * InvalidAttachmentException // Indicates that an attempt to make an attachment was invalid. For example, // attaching two nodes with a link type that is not applicable to the nodes // or attempting to apply a schema to a directory a second time. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// * LinkNameAlreadyInUseException // Indicates that a link could not be created due to a naming conflict. Choose // a different name and then try again. // -// * ErrCodeIndexedAttributeMissingException "IndexedAttributeMissingException" +// * IndexedAttributeMissingException // An object has been attempted to be attached to an object that does not have // the appropriate attribute value. // -// * ErrCodeNotIndexException "NotIndexException" +// * NotIndexException // Indicates that the requested operation can only operate on index objects. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/AttachToIndex @@ -673,17 +673,17 @@ func (c *CloudDirectory) AttachTypedLinkRequest(input *AttachTypedLinkInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation AttachTypedLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -691,33 +691,33 @@ func (c *CloudDirectory) AttachTypedLinkRequest(input *AttachTypedLinkInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// * InvalidAttachmentException // Indicates that an attempt to make an attachment was invalid. For example, // attaching two nodes with a link type that is not applicable to the nodes // or attempting to apply a schema to a directory a second time. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -796,17 +796,17 @@ func (c *CloudDirectory) BatchReadRequest(input *BatchReadInput) (req *request.R // See the AWS API reference guide for Amazon CloudDirectory's // API operation BatchRead for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -814,18 +814,18 @@ func (c *CloudDirectory) BatchReadRequest(input *BatchReadInput) (req *request.R // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/BatchRead @@ -904,17 +904,17 @@ func (c *CloudDirectory) BatchWriteRequest(input *BatchWriteInput) (req *request // See the AWS API reference guide for Amazon CloudDirectory's // API operation BatchWrite for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -922,21 +922,21 @@ func (c *CloudDirectory) BatchWriteRequest(input *BatchWriteInput) (req *request // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeBatchWriteException "BatchWriteException" +// * BatchWriteException // A BatchWrite exception has occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/BatchWrite @@ -1019,17 +1019,17 @@ func (c *CloudDirectory) CreateDirectoryRequest(input *CreateDirectoryInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation CreateDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1037,22 +1037,22 @@ func (c *CloudDirectory) CreateDirectoryRequest(input *CreateDirectoryInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryAlreadyExistsException "DirectoryAlreadyExistsException" +// * DirectoryAlreadyExistsException // Indicates that a Directory could not be created due to a naming conflict. // Choose a different name and try again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateDirectory @@ -1132,17 +1132,17 @@ func (c *CloudDirectory) CreateFacetRequest(input *CreateFacetInput) (req *reque // See the AWS API reference guide for Amazon CloudDirectory's // API operation CreateFacet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1150,27 +1150,27 @@ func (c *CloudDirectory) CreateFacetRequest(input *CreateFacetInput) (req *reque // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetAlreadyExistsException "FacetAlreadyExistsException" +// * FacetAlreadyExistsException // A facet with the same name already exists. // -// * ErrCodeInvalidRuleException "InvalidRuleException" +// * InvalidRuleException // Occurs when any of the rule parameter keys or values are invalid. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -1250,17 +1250,17 @@ func (c *CloudDirectory) CreateIndexRequest(input *CreateIndexInput) (req *reque // See the AWS API reference guide for Amazon CloudDirectory's // API operation CreateIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1268,32 +1268,32 @@ func (c *CloudDirectory) CreateIndexRequest(input *CreateIndexInput) (req *reque // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // -// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// * LinkNameAlreadyInUseException // Indicates that a link could not be created due to a naming conflict. Choose // a different name and then try again. // -// * ErrCodeUnsupportedIndexTypeException "UnsupportedIndexTypeException" +// * UnsupportedIndexTypeException // Indicates that the requested index type is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateIndex @@ -1374,17 +1374,17 @@ func (c *CloudDirectory) CreateObjectRequest(input *CreateObjectInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation CreateObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1392,32 +1392,32 @@ func (c *CloudDirectory) CreateObjectRequest(input *CreateObjectInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // -// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// * LinkNameAlreadyInUseException // Indicates that a link could not be created due to a naming conflict. Choose // a different name and then try again. // -// * ErrCodeUnsupportedIndexTypeException "UnsupportedIndexTypeException" +// * UnsupportedIndexTypeException // Indicates that the requested index type is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateObject @@ -1507,17 +1507,17 @@ func (c *CloudDirectory) CreateSchemaRequest(input *CreateSchemaInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation CreateSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1525,22 +1525,22 @@ func (c *CloudDirectory) CreateSchemaRequest(input *CreateSchemaInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeSchemaAlreadyExistsException "SchemaAlreadyExistsException" +// * SchemaAlreadyExistsException // Indicates that a schema could not be created due to a naming conflict. Please // select a different name and then try again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/CreateSchema @@ -1619,17 +1619,17 @@ func (c *CloudDirectory) CreateTypedLinkFacetRequest(input *CreateTypedLinkFacet // See the AWS API reference guide for Amazon CloudDirectory's // API operation CreateTypedLinkFacet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1637,27 +1637,27 @@ func (c *CloudDirectory) CreateTypedLinkFacetRequest(input *CreateTypedLinkFacet // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetAlreadyExistsException "FacetAlreadyExistsException" +// * FacetAlreadyExistsException // A facet with the same name already exists. // -// * ErrCodeInvalidRuleException "InvalidRuleException" +// * InvalidRuleException // Occurs when any of the rule parameter keys or values are invalid. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -1737,35 +1737,35 @@ func (c *CloudDirectory) DeleteDirectoryRequest(input *DeleteDirectoryInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation DeleteDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeDirectoryNotDisabledException "DirectoryNotDisabledException" +// * DirectoryNotDisabledException // An operation can only operate on a disabled directory. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryDeletedException "DirectoryDeletedException" +// * DirectoryDeletedException // A directory that has been deleted and to which access has been attempted. // Note: The requested resource will eventually cease to exist. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1773,7 +1773,7 @@ func (c *CloudDirectory) DeleteDirectoryRequest(input *DeleteDirectoryInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteDirectory @@ -1853,17 +1853,17 @@ func (c *CloudDirectory) DeleteFacetRequest(input *DeleteFacetInput) (req *reque // See the AWS API reference guide for Amazon CloudDirectory's // API operation DeleteFacet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1871,24 +1871,24 @@ func (c *CloudDirectory) DeleteFacetRequest(input *DeleteFacetInput) (req *reque // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // -// * ErrCodeFacetInUseException "FacetInUseException" +// * FacetInUseException // Occurs when deleting a facet that contains an attribute that is a target // to an attribute reference in a different facet. // @@ -1971,17 +1971,17 @@ func (c *CloudDirectory) DeleteObjectRequest(input *DeleteObjectInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation DeleteObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -1989,24 +1989,24 @@ func (c *CloudDirectory) DeleteObjectRequest(input *DeleteObjectInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeObjectNotDetachedException "ObjectNotDetachedException" +// * ObjectNotDetachedException // Indicates that the requested operation cannot be completed because the object // has not been detached from the tree. // @@ -2086,17 +2086,17 @@ func (c *CloudDirectory) DeleteSchemaRequest(input *DeleteSchemaInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation DeleteSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2104,21 +2104,21 @@ func (c *CloudDirectory) DeleteSchemaRequest(input *DeleteSchemaInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeStillContainsLinksException "StillContainsLinksException" +// * StillContainsLinksException // The object could not be deleted because links still exist. Remove the links // and then try the operation again. // @@ -2198,17 +2198,17 @@ func (c *CloudDirectory) DeleteTypedLinkFacetRequest(input *DeleteTypedLinkFacet // See the AWS API reference guide for Amazon CloudDirectory's // API operation DeleteTypedLinkFacet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2216,21 +2216,21 @@ func (c *CloudDirectory) DeleteTypedLinkFacetRequest(input *DeleteTypedLinkFacet // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DeleteTypedLinkFacet @@ -2308,17 +2308,17 @@ func (c *CloudDirectory) DetachFromIndexRequest(input *DetachFromIndexInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation DetachFromIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2326,27 +2326,27 @@ func (c *CloudDirectory) DetachFromIndexRequest(input *DetachFromIndexInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeObjectAlreadyDetachedException "ObjectAlreadyDetachedException" +// * ObjectAlreadyDetachedException // Indicates that the object is not attached to the index. // -// * ErrCodeNotIndexException "NotIndexException" +// * NotIndexException // Indicates that the requested operation can only operate on index objects. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachFromIndex @@ -2425,17 +2425,17 @@ func (c *CloudDirectory) DetachObjectRequest(input *DetachObjectInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation DetachObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2443,24 +2443,24 @@ func (c *CloudDirectory) DetachObjectRequest(input *DetachObjectInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeNotNodeException "NotNodeException" +// * NotNodeException // Occurs when any invalid operations are performed on an object that is not // a node, such as calling ListObjectChildren for a leaf node object. // @@ -2540,17 +2540,17 @@ func (c *CloudDirectory) DetachPolicyRequest(input *DetachPolicyInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation DetachPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2558,24 +2558,24 @@ func (c *CloudDirectory) DetachPolicyRequest(input *DetachPolicyInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeNotPolicyException "NotPolicyException" +// * NotPolicyException // Indicates that the requested operation can only operate on policy objects. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DetachPolicy @@ -2655,17 +2655,17 @@ func (c *CloudDirectory) DetachTypedLinkRequest(input *DetachTypedLinkInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation DetachTypedLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2673,24 +2673,24 @@ func (c *CloudDirectory) DetachTypedLinkRequest(input *DetachTypedLinkInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -2771,32 +2771,32 @@ func (c *CloudDirectory) DisableDirectoryRequest(input *DisableDirectoryInput) ( // See the AWS API reference guide for Amazon CloudDirectory's // API operation DisableDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeDirectoryDeletedException "DirectoryDeletedException" +// * DirectoryDeletedException // A directory that has been deleted and to which access has been attempted. // Note: The requested resource will eventually cease to exist. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2804,7 +2804,7 @@ func (c *CloudDirectory) DisableDirectoryRequest(input *DisableDirectoryInput) ( // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/DisableDirectory @@ -2883,32 +2883,32 @@ func (c *CloudDirectory) EnableDirectoryRequest(input *EnableDirectoryInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation EnableDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeDirectoryDeletedException "DirectoryDeletedException" +// * DirectoryDeletedException // A directory that has been deleted and to which access has been attempted. // Note: The requested resource will eventually cease to exist. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -2916,7 +2916,7 @@ func (c *CloudDirectory) EnableDirectoryRequest(input *EnableDirectoryInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/EnableDirectory @@ -2995,17 +2995,17 @@ func (c *CloudDirectory) GetAppliedSchemaVersionRequest(input *GetAppliedSchemaV // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetAppliedSchemaVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3013,18 +3013,18 @@ func (c *CloudDirectory) GetAppliedSchemaVersionRequest(input *GetAppliedSchemaV // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetAppliedSchemaVersion @@ -3102,17 +3102,17 @@ func (c *CloudDirectory) GetDirectoryRequest(input *GetDirectoryInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3120,15 +3120,15 @@ func (c *CloudDirectory) GetDirectoryRequest(input *GetDirectoryInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetDirectory @@ -3208,17 +3208,17 @@ func (c *CloudDirectory) GetFacetRequest(input *GetFacetInput) (req *request.Req // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetFacet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3226,21 +3226,21 @@ func (c *CloudDirectory) GetFacetRequest(input *GetFacetInput) (req *request.Req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetFacet @@ -3318,17 +3318,17 @@ func (c *CloudDirectory) GetLinkAttributesRequest(input *GetLinkAttributesInput) // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetLinkAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3336,24 +3336,24 @@ func (c *CloudDirectory) GetLinkAttributesRequest(input *GetLinkAttributesInput) // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -3432,17 +3432,17 @@ func (c *CloudDirectory) GetObjectAttributesRequest(input *GetObjectAttributesIn // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetObjectAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3450,24 +3450,24 @@ func (c *CloudDirectory) GetObjectAttributesRequest(input *GetObjectAttributesIn // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -3546,17 +3546,17 @@ func (c *CloudDirectory) GetObjectInformationRequest(input *GetObjectInformation // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetObjectInformation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3564,21 +3564,21 @@ func (c *CloudDirectory) GetObjectInformationRequest(input *GetObjectInformation // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetObjectInformation @@ -3657,17 +3657,17 @@ func (c *CloudDirectory) GetSchemaAsJsonRequest(input *GetSchemaAsJsonInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetSchemaAsJson for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3675,21 +3675,21 @@ func (c *CloudDirectory) GetSchemaAsJsonRequest(input *GetSchemaAsJsonInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // @@ -3769,17 +3769,17 @@ func (c *CloudDirectory) GetTypedLinkFacetInformationRequest(input *GetTypedLink // See the AWS API reference guide for Amazon CloudDirectory's // API operation GetTypedLinkFacetInformation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3787,24 +3787,24 @@ func (c *CloudDirectory) GetTypedLinkFacetInformationRequest(input *GetTypedLink // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/GetTypedLinkFacetInformation @@ -3889,17 +3889,17 @@ func (c *CloudDirectory) ListAppliedSchemaArnsRequest(input *ListAppliedSchemaAr // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListAppliedSchemaArns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -3907,21 +3907,21 @@ func (c *CloudDirectory) ListAppliedSchemaArnsRequest(input *ListAppliedSchemaAr // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListAppliedSchemaArns @@ -4057,17 +4057,17 @@ func (c *CloudDirectory) ListAttachedIndicesRequest(input *ListAttachedIndicesIn // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListAttachedIndices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -4075,21 +4075,21 @@ func (c *CloudDirectory) ListAttachedIndicesRequest(input *ListAttachedIndicesIn // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListAttachedIndices @@ -4225,17 +4225,17 @@ func (c *CloudDirectory) ListDevelopmentSchemaArnsRequest(input *ListDevelopment // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListDevelopmentSchemaArns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -4243,21 +4243,21 @@ func (c *CloudDirectory) ListDevelopmentSchemaArnsRequest(input *ListDevelopment // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListDevelopmentSchemaArns @@ -4393,17 +4393,17 @@ func (c *CloudDirectory) ListDirectoriesRequest(input *ListDirectoriesInput) (re // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListDirectories for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -4411,18 +4411,18 @@ func (c *CloudDirectory) ListDirectoriesRequest(input *ListDirectoriesInput) (re // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListDirectories @@ -4558,17 +4558,17 @@ func (c *CloudDirectory) ListFacetAttributesRequest(input *ListFacetAttributesIn // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListFacetAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -4576,24 +4576,24 @@ func (c *CloudDirectory) ListFacetAttributesRequest(input *ListFacetAttributesIn // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListFacetAttributes @@ -4729,17 +4729,17 @@ func (c *CloudDirectory) ListFacetNamesRequest(input *ListFacetNamesInput) (req // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListFacetNames for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -4747,21 +4747,21 @@ func (c *CloudDirectory) ListFacetNamesRequest(input *ListFacetNamesInput) (req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListFacetNames @@ -4893,17 +4893,17 @@ func (c *CloudDirectory) ListIncomingTypedLinksRequest(input *ListIncomingTypedL // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListIncomingTypedLinks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -4911,27 +4911,27 @@ func (c *CloudDirectory) ListIncomingTypedLinksRequest(input *ListIncomingTypedL // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -5016,17 +5016,17 @@ func (c *CloudDirectory) ListIndexRequest(input *ListIndexInput) (req *request.R // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -5034,31 +5034,31 @@ func (c *CloudDirectory) ListIndexRequest(input *ListIndexInput) (req *request.R // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeNotIndexException "NotIndexException" +// * NotIndexException // Indicates that the requested operation can only operate on index objects. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListIndex @@ -5196,27 +5196,27 @@ func (c *CloudDirectory) ListManagedSchemaArnsRequest(input *ListManagedSchemaAr // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListManagedSchemaArns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListManagedSchemaArns @@ -5352,17 +5352,17 @@ func (c *CloudDirectory) ListObjectAttributesRequest(input *ListObjectAttributes // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListObjectAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -5370,27 +5370,27 @@ func (c *CloudDirectory) ListObjectAttributesRequest(input *ListObjectAttributes // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -5528,17 +5528,17 @@ func (c *CloudDirectory) ListObjectChildrenRequest(input *ListObjectChildrenInpu // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListObjectChildren for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -5546,27 +5546,27 @@ func (c *CloudDirectory) ListObjectChildrenRequest(input *ListObjectChildrenInpu // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeNotNodeException "NotNodeException" +// * NotNodeException // Occurs when any invalid operations are performed on an object that is not // a node, such as calling ListObjectChildren for a leaf node object. // @@ -5713,17 +5713,17 @@ func (c *CloudDirectory) ListObjectParentPathsRequest(input *ListObjectParentPat // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListObjectParentPaths for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -5731,24 +5731,24 @@ func (c *CloudDirectory) ListObjectParentPathsRequest(input *ListObjectParentPat // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListObjectParentPaths @@ -5885,17 +5885,17 @@ func (c *CloudDirectory) ListObjectParentsRequest(input *ListObjectParentsInput) // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListObjectParents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -5903,27 +5903,27 @@ func (c *CloudDirectory) ListObjectParentsRequest(input *ListObjectParentsInput) // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeCannotListParentOfRootException "CannotListParentOfRootException" +// * CannotListParentOfRootException // Cannot list the parents of a Directory root. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListObjectParents @@ -6059,17 +6059,17 @@ func (c *CloudDirectory) ListObjectPoliciesRequest(input *ListObjectPoliciesInpu // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListObjectPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -6077,24 +6077,24 @@ func (c *CloudDirectory) ListObjectPoliciesRequest(input *ListObjectPoliciesInpu // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListObjectPolicies @@ -6226,17 +6226,17 @@ func (c *CloudDirectory) ListOutgoingTypedLinksRequest(input *ListOutgoingTypedL // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListOutgoingTypedLinks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -6244,27 +6244,27 @@ func (c *CloudDirectory) ListOutgoingTypedLinksRequest(input *ListOutgoingTypedL // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -6349,17 +6349,17 @@ func (c *CloudDirectory) ListPolicyAttachmentsRequest(input *ListPolicyAttachmen // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListPolicyAttachments for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -6367,27 +6367,27 @@ func (c *CloudDirectory) ListPolicyAttachmentsRequest(input *ListPolicyAttachmen // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeNotPolicyException "NotPolicyException" +// * NotPolicyException // Indicates that the requested operation can only operate on policy objects. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListPolicyAttachments @@ -6525,17 +6525,17 @@ func (c *CloudDirectory) ListPublishedSchemaArnsRequest(input *ListPublishedSche // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListPublishedSchemaArns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -6543,21 +6543,21 @@ func (c *CloudDirectory) ListPublishedSchemaArnsRequest(input *ListPublishedSche // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListPublishedSchemaArns @@ -6695,17 +6695,17 @@ func (c *CloudDirectory) ListTagsForResourceRequest(input *ListTagsForResourceIn // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -6713,21 +6713,21 @@ func (c *CloudDirectory) ListTagsForResourceRequest(input *ListTagsForResourceIn // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidTaggingRequestException "InvalidTaggingRequestException" +// * InvalidTaggingRequestException // Can occur for multiple reasons such as when you tag a resource that doesn’t // exist or if you specify a higher number of tags for a resource than the allowed // limit. Allowed limit is 50 tags per resource. @@ -6866,17 +6866,17 @@ func (c *CloudDirectory) ListTypedLinkFacetAttributesRequest(input *ListTypedLin // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListTypedLinkFacetAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -6884,24 +6884,24 @@ func (c *CloudDirectory) ListTypedLinkFacetAttributesRequest(input *ListTypedLin // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListTypedLinkFacetAttributes @@ -7038,17 +7038,17 @@ func (c *CloudDirectory) ListTypedLinkFacetNamesRequest(input *ListTypedLinkFace // See the AWS API reference guide for Amazon CloudDirectory's // API operation ListTypedLinkFacetNames for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7056,21 +7056,21 @@ func (c *CloudDirectory) ListTypedLinkFacetNamesRequest(input *ListTypedLinkFace // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/ListTypedLinkFacetNames @@ -7212,17 +7212,17 @@ func (c *CloudDirectory) LookupPolicyRequest(input *LookupPolicyInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation LookupPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7230,24 +7230,24 @@ func (c *CloudDirectory) LookupPolicyRequest(input *LookupPolicyInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Indicates that the NextToken value is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/LookupPolicy @@ -7378,17 +7378,17 @@ func (c *CloudDirectory) PublishSchemaRequest(input *PublishSchemaInput) (req *r // See the AWS API reference guide for Amazon CloudDirectory's // API operation PublishSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7396,21 +7396,21 @@ func (c *CloudDirectory) PublishSchemaRequest(input *PublishSchemaInput) (req *r // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeSchemaAlreadyPublishedException "SchemaAlreadyPublishedException" +// * SchemaAlreadyPublishedException // Indicates that a schema is already published. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/PublishSchema @@ -7490,17 +7490,17 @@ func (c *CloudDirectory) PutSchemaFromJsonRequest(input *PutSchemaFromJsonInput) // See the AWS API reference guide for Amazon CloudDirectory's // API operation PutSchemaFromJson for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7508,21 +7508,21 @@ func (c *CloudDirectory) PutSchemaFromJsonRequest(input *PutSchemaFromJsonInput) // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeInvalidSchemaDocException "InvalidSchemaDocException" +// * InvalidSchemaDocException // Indicates that the provided SchemaDoc value is not valid. // -// * ErrCodeInvalidRuleException "InvalidRuleException" +// * InvalidRuleException // Occurs when any of the rule parameter keys or values are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/PutSchemaFromJson @@ -7601,17 +7601,17 @@ func (c *CloudDirectory) RemoveFacetFromObjectRequest(input *RemoveFacetFromObje // See the AWS API reference guide for Amazon CloudDirectory's // API operation RemoveFacetFromObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7619,24 +7619,24 @@ func (c *CloudDirectory) RemoveFacetFromObjectRequest(input *RemoveFacetFromObje // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -7716,17 +7716,17 @@ func (c *CloudDirectory) TagResourceRequest(input *TagResourceInput) (req *reque // See the AWS API reference guide for Amazon CloudDirectory's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7734,21 +7734,21 @@ func (c *CloudDirectory) TagResourceRequest(input *TagResourceInput) (req *reque // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidTaggingRequestException "InvalidTaggingRequestException" +// * InvalidTaggingRequestException // Can occur for multiple reasons such as when you tag a resource that doesn’t // exist or if you specify a higher number of tags for a resource than the allowed // limit. Allowed limit is 50 tags per resource. @@ -7829,17 +7829,17 @@ func (c *CloudDirectory) UntagResourceRequest(input *UntagResourceInput) (req *r // See the AWS API reference guide for Amazon CloudDirectory's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7847,21 +7847,21 @@ func (c *CloudDirectory) UntagResourceRequest(input *UntagResourceInput) (req *r // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidTaggingRequestException "InvalidTaggingRequestException" +// * InvalidTaggingRequestException // Can occur for multiple reasons such as when you tag a resource that doesn’t // exist or if you specify a higher number of tags for a resource than the allowed // limit. Allowed limit is 50 tags per resource. @@ -7948,17 +7948,17 @@ func (c *CloudDirectory) UpdateFacetRequest(input *UpdateFacetInput) (req *reque // See the AWS API reference guide for Amazon CloudDirectory's // API operation UpdateFacet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -7966,31 +7966,31 @@ func (c *CloudDirectory) UpdateFacetRequest(input *UpdateFacetInput) (req *reque // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeInvalidFacetUpdateException "InvalidFacetUpdateException" +// * InvalidFacetUpdateException // An attempt to modify a Facet resulted in an invalid schema exception. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // -// * ErrCodeInvalidRuleException "InvalidRuleException" +// * InvalidRuleException // Occurs when any of the rule parameter keys or values are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/UpdateFacet @@ -8070,17 +8070,17 @@ func (c *CloudDirectory) UpdateLinkAttributesRequest(input *UpdateLinkAttributes // See the AWS API reference guide for Amazon CloudDirectory's // API operation UpdateLinkAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -8088,24 +8088,24 @@ func (c *CloudDirectory) UpdateLinkAttributesRequest(input *UpdateLinkAttributes // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -8184,17 +8184,17 @@ func (c *CloudDirectory) UpdateObjectAttributesRequest(input *UpdateObjectAttrib // See the AWS API reference guide for Amazon CloudDirectory's // API operation UpdateObjectAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -8202,28 +8202,28 @@ func (c *CloudDirectory) UpdateObjectAttributesRequest(input *UpdateObjectAttrib // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeDirectoryNotEnabledException "DirectoryNotEnabledException" +// * DirectoryNotEnabledException // Operations are only permitted on enabled directories. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeLinkNameAlreadyInUseException "LinkNameAlreadyInUseException" +// * LinkNameAlreadyInUseException // Indicates that a link could not be created due to a naming conflict. Choose // a different name and then try again. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // @@ -8303,17 +8303,17 @@ func (c *CloudDirectory) UpdateSchemaRequest(input *UpdateSchemaInput) (req *req // See the AWS API reference guide for Amazon CloudDirectory's // API operation UpdateSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -8321,18 +8321,18 @@ func (c *CloudDirectory) UpdateSchemaRequest(input *UpdateSchemaInput) (req *req // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/UpdateSchema @@ -8411,17 +8411,17 @@ func (c *CloudDirectory) UpdateTypedLinkFacetRequest(input *UpdateTypedLinkFacet // See the AWS API reference guide for Amazon CloudDirectory's // API operation UpdateTypedLinkFacet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -8429,31 +8429,31 @@ func (c *CloudDirectory) UpdateTypedLinkFacetRequest(input *UpdateTypedLinkFacet // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeFacetValidationException "FacetValidationException" +// * FacetValidationException // The Facet that you provided was not well formed or could not be validated // with the schema. // -// * ErrCodeInvalidFacetUpdateException "InvalidFacetUpdateException" +// * InvalidFacetUpdateException // An attempt to modify a Facet resulted in an invalid schema exception. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeFacetNotFoundException "FacetNotFoundException" +// * FacetNotFoundException // The specified Facet could not be found. // -// * ErrCodeInvalidRuleException "InvalidRuleException" +// * InvalidRuleException // Occurs when any of the rule parameter keys or values are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/UpdateTypedLinkFacet @@ -8536,17 +8536,17 @@ func (c *CloudDirectory) UpgradeAppliedSchemaRequest(input *UpgradeAppliedSchema // See the AWS API reference guide for Amazon CloudDirectory's // API operation UpgradeAppliedSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -8554,27 +8554,27 @@ func (c *CloudDirectory) UpgradeAppliedSchemaRequest(input *UpgradeAppliedSchema // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeIncompatibleSchemaException "IncompatibleSchemaException" +// * IncompatibleSchemaException // Indicates a failure occurred while performing a check for backward compatibility // between the specified schema and the schema that is currently applied to // the directory. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// * InvalidAttachmentException // Indicates that an attempt to make an attachment was invalid. For example, // attaching two nodes with a link type that is not applicable to the nodes // or attempting to apply a schema to a directory a second time. // -// * ErrCodeSchemaAlreadyExistsException "SchemaAlreadyExistsException" +// * SchemaAlreadyExistsException // Indicates that a schema could not be created due to a naming conflict. Please // select a different name and then try again. // @@ -8654,17 +8654,17 @@ func (c *CloudDirectory) UpgradePublishedSchemaRequest(input *UpgradePublishedSc // See the AWS API reference guide for Amazon CloudDirectory's // API operation UpgradePublishedSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // Indicates a problem that must be resolved by Amazon Web Services. This might // be a transient error in which case you can retry your request until it succeeds. // Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) // site to see if there are any operational issues with the service. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // Indicates that the provided ARN value is not valid. // -// * ErrCodeRetryableConflictException "RetryableConflictException" +// * RetryableConflictException // Occurs when a conflict with a previous successful write is detected. For // example, if a write operation occurs on an object and then an attempt is // made to read the object using “SERIALIZABLE” consistency, this exception @@ -8672,27 +8672,27 @@ func (c *CloudDirectory) UpgradePublishedSchemaRequest(input *UpgradePublishedSc // to propagate to the host serving the current request. A retry (with appropriate // backoff logic) is the recommended response to this exception. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // Indicates that your request is malformed in some manner. See the exception // message. // -// * ErrCodeIncompatibleSchemaException "IncompatibleSchemaException" +// * IncompatibleSchemaException // Indicates a failure occurred while performing a check for backward compatibility // between the specified schema and the schema that is currently applied to // the directory. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access denied. Check your permissions. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidAttachmentException "InvalidAttachmentException" +// * InvalidAttachmentException // Indicates that an attempt to make an attachment was invalid. For example, // attaching two nodes with a link type that is not applicable to the nodes // or attempting to apply a schema to a directory a second time. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) // for more information. // @@ -8718,6 +8718,62 @@ func (c *CloudDirectory) UpgradePublishedSchemaWithContext(ctx aws.Context, inpu return out, req.Send() } +// Access denied. Check your permissions. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AddFacetToObjectInput struct { _ struct{} `type:"structure"` @@ -12766,6 +12822,66 @@ func (s *BatchUpdateObjectAttributesResponse) SetObjectIdentifier(v string) *Bat return s } +// A BatchWrite exception has occurred. +type BatchWriteException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Index *int64 `type:"integer"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string" enum:"BatchWriteExceptionType"` +} + +// String returns the string representation +func (s BatchWriteException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchWriteException) GoString() string { + return s.String() +} + +func newErrorBatchWriteException(v protocol.ResponseMetadata) error { + return &BatchWriteException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BatchWriteException) Code() string { + return "BatchWriteException" +} + +// Message returns the exception's message. +func (s BatchWriteException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BatchWriteException) OrigErr() error { + return nil +} + +func (s BatchWriteException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BatchWriteException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BatchWriteException) RequestID() string { + return s.respMetadata.RequestID +} + type BatchWriteInput struct { _ struct{} `type:"structure"` @@ -13245,6 +13361,62 @@ func (s *BatchWriteOutput) SetResponses(v []*BatchWriteOperationResponse) *Batch return s } +// Cannot list the parents of a Directory root. +type CannotListParentOfRootException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CannotListParentOfRootException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CannotListParentOfRootException) GoString() string { + return s.String() +} + +func newErrorCannotListParentOfRootException(v protocol.ResponseMetadata) error { + return &CannotListParentOfRootException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CannotListParentOfRootException) Code() string { + return "CannotListParentOfRootException" +} + +// Message returns the exception's message. +func (s CannotListParentOfRootException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CannotListParentOfRootException) OrigErr() error { + return nil +} + +func (s CannotListParentOfRootException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CannotListParentOfRootException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CannotListParentOfRootException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateDirectoryInput struct { _ struct{} `type:"structure"` @@ -14588,6 +14760,232 @@ func (s *Directory) SetState(v string) *Directory { return s } +// Indicates that a Directory could not be created due to a naming conflict. +// Choose a different name and try again. +type DirectoryAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DirectoryAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorDirectoryAlreadyExistsException(v protocol.ResponseMetadata) error { + return &DirectoryAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryAlreadyExistsException) Code() string { + return "DirectoryAlreadyExistsException" +} + +// Message returns the exception's message. +func (s DirectoryAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryAlreadyExistsException) OrigErr() error { + return nil +} + +func (s DirectoryAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// A directory that has been deleted and to which access has been attempted. +// Note: The requested resource will eventually cease to exist. +type DirectoryDeletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DirectoryDeletedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryDeletedException) GoString() string { + return s.String() +} + +func newErrorDirectoryDeletedException(v protocol.ResponseMetadata) error { + return &DirectoryDeletedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryDeletedException) Code() string { + return "DirectoryDeletedException" +} + +// Message returns the exception's message. +func (s DirectoryDeletedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryDeletedException) OrigErr() error { + return nil +} + +func (s DirectoryDeletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryDeletedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryDeletedException) RequestID() string { + return s.respMetadata.RequestID +} + +// An operation can only operate on a disabled directory. +type DirectoryNotDisabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DirectoryNotDisabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryNotDisabledException) GoString() string { + return s.String() +} + +func newErrorDirectoryNotDisabledException(v protocol.ResponseMetadata) error { + return &DirectoryNotDisabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryNotDisabledException) Code() string { + return "DirectoryNotDisabledException" +} + +// Message returns the exception's message. +func (s DirectoryNotDisabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryNotDisabledException) OrigErr() error { + return nil +} + +func (s DirectoryNotDisabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryNotDisabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryNotDisabledException) RequestID() string { + return s.respMetadata.RequestID +} + +// Operations are only permitted on enabled directories. +type DirectoryNotEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DirectoryNotEnabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryNotEnabledException) GoString() string { + return s.String() +} + +func newErrorDirectoryNotEnabledException(v protocol.ResponseMetadata) error { + return &DirectoryNotEnabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryNotEnabledException) Code() string { + return "DirectoryNotEnabledException" +} + +// Message returns the exception's message. +func (s DirectoryNotEnabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryNotEnabledException) OrigErr() error { + return nil +} + +func (s DirectoryNotEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryNotEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryNotEnabledException) RequestID() string { + return s.respMetadata.RequestID +} + type DisableDirectoryInput struct { _ struct{} `type:"structure"` @@ -14761,6 +15159,62 @@ func (s *Facet) SetObjectType(v string) *Facet { return s } +// A facet with the same name already exists. +type FacetAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FacetAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FacetAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorFacetAlreadyExistsException(v protocol.ResponseMetadata) error { + return &FacetAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FacetAlreadyExistsException) Code() string { + return "FacetAlreadyExistsException" +} + +// Message returns the exception's message. +func (s FacetAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FacetAlreadyExistsException) OrigErr() error { + return nil +} + +func (s FacetAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FacetAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FacetAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // An attribute that is associated with the Facet. type FacetAttribute struct { _ struct{} `type:"structure"` @@ -15023,50 +15477,220 @@ func (s *FacetAttributeUpdate) SetAttribute(v *FacetAttribute) *FacetAttributeUp return s } -type GetAppliedSchemaVersionInput struct { - _ struct{} `type:"structure"` +// Occurs when deleting a facet that contains an attribute that is a target +// to an attribute reference in a different facet. +type FacetInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The ARN of the applied schema. - // - // SchemaArn is a required field - SchemaArn *string `type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s GetAppliedSchemaVersionInput) String() string { +func (s FacetInUseException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetAppliedSchemaVersionInput) GoString() string { +func (s FacetInUseException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetAppliedSchemaVersionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetAppliedSchemaVersionInput"} - if s.SchemaArn == nil { - invalidParams.Add(request.NewErrParamRequired("SchemaArn")) +func newErrorFacetInUseException(v protocol.ResponseMetadata) error { + return &FacetInUseException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s FacetInUseException) Code() string { + return "FacetInUseException" +} + +// Message returns the exception's message. +func (s FacetInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FacetInUseException) OrigErr() error { return nil } -// SetSchemaArn sets the SchemaArn field's value. -func (s *GetAppliedSchemaVersionInput) SetSchemaArn(v string) *GetAppliedSchemaVersionInput { - s.SchemaArn = &v - return s +func (s FacetInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type GetAppliedSchemaVersionOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s FacetInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Current applied schema ARN, including the minor version in use if one was - // provided. - AppliedSchemaArn *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s FacetInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified Facet could not be found. +type FacetNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FacetNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FacetNotFoundException) GoString() string { + return s.String() +} + +func newErrorFacetNotFoundException(v protocol.ResponseMetadata) error { + return &FacetNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FacetNotFoundException) Code() string { + return "FacetNotFoundException" +} + +// Message returns the exception's message. +func (s FacetNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FacetNotFoundException) OrigErr() error { + return nil +} + +func (s FacetNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FacetNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FacetNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Facet that you provided was not well formed or could not be validated +// with the schema. +type FacetValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FacetValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FacetValidationException) GoString() string { + return s.String() +} + +func newErrorFacetValidationException(v protocol.ResponseMetadata) error { + return &FacetValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FacetValidationException) Code() string { + return "FacetValidationException" +} + +// Message returns the exception's message. +func (s FacetValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FacetValidationException) OrigErr() error { + return nil +} + +func (s FacetValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FacetValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FacetValidationException) RequestID() string { + return s.respMetadata.RequestID +} + +type GetAppliedSchemaVersionInput struct { + _ struct{} `type:"structure"` + + // The ARN of the applied schema. + // + // SchemaArn is a required field + SchemaArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s GetAppliedSchemaVersionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetAppliedSchemaVersionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetAppliedSchemaVersionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetAppliedSchemaVersionInput"} + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *GetAppliedSchemaVersionInput) SetSchemaArn(v string) *GetAppliedSchemaVersionInput { + s.SchemaArn = &v + return s +} + +type GetAppliedSchemaVersionOutput struct { + _ struct{} `type:"structure"` + + // Current applied schema ARN, including the minor version in use if one was + // provided. + AppliedSchemaArn *string `type:"string"` } // String returns the string representation @@ -15586,152 +16210,779 @@ func (s *GetSchemaAsJsonInput) SetSchemaArn(v string) *GetSchemaAsJsonInput { type GetSchemaAsJsonOutput struct { _ struct{} `type:"structure"` - // The JSON representation of the schema document. - Document *string `type:"string"` + // The JSON representation of the schema document. + Document *string `type:"string"` + + // The name of the retrieved schema. + Name *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s GetSchemaAsJsonOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetSchemaAsJsonOutput) GoString() string { + return s.String() +} + +// SetDocument sets the Document field's value. +func (s *GetSchemaAsJsonOutput) SetDocument(v string) *GetSchemaAsJsonOutput { + s.Document = &v + return s +} + +// SetName sets the Name field's value. +func (s *GetSchemaAsJsonOutput) SetName(v string) *GetSchemaAsJsonOutput { + s.Name = &v + return s +} + +type GetTypedLinkFacetInformationInput struct { + _ struct{} `type:"structure"` + + // The unique name of the typed link facet. + // + // Name is a required field + Name *string `type:"string" required:"true"` + + // The Amazon Resource Name (ARN) that is associated with the schema. For more + // information, see arns. + // + // SchemaArn is a required field + SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetTypedLinkFacetInformationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTypedLinkFacetInformationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetTypedLinkFacetInformationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetTypedLinkFacetInformationInput"} + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) + } + if s.SchemaArn == nil { + invalidParams.Add(request.NewErrParamRequired("SchemaArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetName sets the Name field's value. +func (s *GetTypedLinkFacetInformationInput) SetName(v string) *GetTypedLinkFacetInformationInput { + s.Name = &v + return s +} + +// SetSchemaArn sets the SchemaArn field's value. +func (s *GetTypedLinkFacetInformationInput) SetSchemaArn(v string) *GetTypedLinkFacetInformationInput { + s.SchemaArn = &v + return s +} + +type GetTypedLinkFacetInformationOutput struct { + _ struct{} `type:"structure"` + + // The order of identity attributes for the facet, from most significant to + // least significant. The ability to filter typed links considers the order + // that the attributes are defined on the typed link facet. When providing ranges + // to typed link selection, any inexact ranges must be specified at the end. + // Any attributes that do not have a range specified are presumed to match the + // entire range. Filters are interpreted in the order of the attributes on the + // typed link facet, not the order in which they are supplied to any API calls. + // For more information about identity attributes, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). + IdentityAttributeOrder []*string `type:"list"` +} + +// String returns the string representation +func (s GetTypedLinkFacetInformationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetTypedLinkFacetInformationOutput) GoString() string { + return s.String() +} + +// SetIdentityAttributeOrder sets the IdentityAttributeOrder field's value. +func (s *GetTypedLinkFacetInformationOutput) SetIdentityAttributeOrder(v []*string) *GetTypedLinkFacetInformationOutput { + s.IdentityAttributeOrder = v + return s +} + +// Indicates a failure occurred while performing a check for backward compatibility +// between the specified schema and the schema that is currently applied to +// the directory. +type IncompatibleSchemaException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IncompatibleSchemaException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncompatibleSchemaException) GoString() string { + return s.String() +} + +func newErrorIncompatibleSchemaException(v protocol.ResponseMetadata) error { + return &IncompatibleSchemaException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncompatibleSchemaException) Code() string { + return "IncompatibleSchemaException" +} + +// Message returns the exception's message. +func (s IncompatibleSchemaException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncompatibleSchemaException) OrigErr() error { + return nil +} + +func (s IncompatibleSchemaException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncompatibleSchemaException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncompatibleSchemaException) RequestID() string { + return s.respMetadata.RequestID +} + +// Represents an index and an attached object. +type IndexAttachment struct { + _ struct{} `type:"structure"` + + // The indexed attribute values. + IndexedAttributes []*AttributeKeyAndValue `type:"list"` + + // In response to ListIndex, the ObjectIdentifier of the object attached to + // the index. In response to ListAttachedIndices, the ObjectIdentifier of the + // index attached to the object. This field will always contain the ObjectIdentifier + // of the object on the opposite side of the attachment specified in the query. + ObjectIdentifier *string `type:"string"` +} + +// String returns the string representation +func (s IndexAttachment) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IndexAttachment) GoString() string { + return s.String() +} + +// SetIndexedAttributes sets the IndexedAttributes field's value. +func (s *IndexAttachment) SetIndexedAttributes(v []*AttributeKeyAndValue) *IndexAttachment { + s.IndexedAttributes = v + return s +} + +// SetObjectIdentifier sets the ObjectIdentifier field's value. +func (s *IndexAttachment) SetObjectIdentifier(v string) *IndexAttachment { + s.ObjectIdentifier = &v + return s +} + +// An object has been attempted to be attached to an object that does not have +// the appropriate attribute value. +type IndexedAttributeMissingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IndexedAttributeMissingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IndexedAttributeMissingException) GoString() string { + return s.String() +} + +func newErrorIndexedAttributeMissingException(v protocol.ResponseMetadata) error { + return &IndexedAttributeMissingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IndexedAttributeMissingException) Code() string { + return "IndexedAttributeMissingException" +} + +// Message returns the exception's message. +func (s IndexedAttributeMissingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IndexedAttributeMissingException) OrigErr() error { + return nil +} + +func (s IndexedAttributeMissingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IndexedAttributeMissingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IndexedAttributeMissingException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates a problem that must be resolved by Amazon Web Services. This might +// be a transient error in which case you can retry your request until it succeeds. +// Otherwise, go to the AWS Service Health Dashboard (http://status.aws.amazon.com/) +// site to see if there are any operational issues with the service. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the provided ARN value is not valid. +type InvalidArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArnException) GoString() string { + return s.String() +} + +func newErrorInvalidArnException(v protocol.ResponseMetadata) error { + return &InvalidArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArnException) Code() string { + return "InvalidArnException" +} + +// Message returns the exception's message. +func (s InvalidArnException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArnException) OrigErr() error { + return nil +} + +func (s InvalidArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that an attempt to make an attachment was invalid. For example, +// attaching two nodes with a link type that is not applicable to the nodes +// or attempting to apply a schema to a directory a second time. +type InvalidAttachmentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAttachmentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAttachmentException) GoString() string { + return s.String() +} + +func newErrorInvalidAttachmentException(v protocol.ResponseMetadata) error { + return &InvalidAttachmentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAttachmentException) Code() string { + return "InvalidAttachmentException" +} + +// Message returns the exception's message. +func (s InvalidAttachmentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAttachmentException) OrigErr() error { + return nil +} + +func (s InvalidAttachmentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAttachmentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAttachmentException) RequestID() string { + return s.respMetadata.RequestID +} + +// An attempt to modify a Facet resulted in an invalid schema exception. +type InvalidFacetUpdateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidFacetUpdateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFacetUpdateException) GoString() string { + return s.String() +} + +func newErrorInvalidFacetUpdateException(v protocol.ResponseMetadata) error { + return &InvalidFacetUpdateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFacetUpdateException) Code() string { + return "InvalidFacetUpdateException" +} + +// Message returns the exception's message. +func (s InvalidFacetUpdateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFacetUpdateException) OrigErr() error { + return nil +} + +func (s InvalidFacetUpdateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFacetUpdateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFacetUpdateException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the NextToken value is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// Occurs when any of the rule parameter keys or values are invalid. +type InvalidRuleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRuleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRuleException) GoString() string { + return s.String() +} + +func newErrorInvalidRuleException(v protocol.ResponseMetadata) error { + return &InvalidRuleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRuleException) Code() string { + return "InvalidRuleException" +} + +// Message returns the exception's message. +func (s InvalidRuleException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRuleException) OrigErr() error { + return nil +} + +func (s InvalidRuleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRuleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRuleException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the retrieved schema. - Name *string `min:"1" type:"string"` +// Indicates that the provided SchemaDoc value is not valid. +type InvalidSchemaDocException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s GetSchemaAsJsonOutput) String() string { +func (s InvalidSchemaDocException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetSchemaAsJsonOutput) GoString() string { +func (s InvalidSchemaDocException) GoString() string { return s.String() } -// SetDocument sets the Document field's value. -func (s *GetSchemaAsJsonOutput) SetDocument(v string) *GetSchemaAsJsonOutput { - s.Document = &v - return s +func newErrorInvalidSchemaDocException(v protocol.ResponseMetadata) error { + return &InvalidSchemaDocException{ + respMetadata: v, + } } -// SetName sets the Name field's value. -func (s *GetSchemaAsJsonOutput) SetName(v string) *GetSchemaAsJsonOutput { - s.Name = &v - return s +// Code returns the exception type name. +func (s InvalidSchemaDocException) Code() string { + return "InvalidSchemaDocException" } -type GetTypedLinkFacetInformationInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidSchemaDocException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The unique name of the typed link facet. - // - // Name is a required field - Name *string `type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSchemaDocException) OrigErr() error { + return nil +} - // The Amazon Resource Name (ARN) that is associated with the schema. For more - // information, see arns. - // - // SchemaArn is a required field - SchemaArn *string `location:"header" locationName:"x-amz-data-partition" type:"string" required:"true"` +func (s InvalidSchemaDocException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSchemaDocException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSchemaDocException) RequestID() string { + return s.respMetadata.RequestID +} + +// Can occur for multiple reasons such as when you tag a resource that doesn’t +// exist or if you specify a higher number of tags for a resource than the allowed +// limit. Allowed limit is 50 tags per resource. +type InvalidTaggingRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s GetTypedLinkFacetInformationInput) String() string { +func (s InvalidTaggingRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetTypedLinkFacetInformationInput) GoString() string { +func (s InvalidTaggingRequestException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetTypedLinkFacetInformationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetTypedLinkFacetInformationInput"} - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - if s.SchemaArn == nil { - invalidParams.Add(request.NewErrParamRequired("SchemaArn")) +func newErrorInvalidTaggingRequestException(v protocol.ResponseMetadata) error { + return &InvalidTaggingRequestException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s InvalidTaggingRequestException) Code() string { + return "InvalidTaggingRequestException" +} + +// Message returns the exception's message. +func (s InvalidTaggingRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTaggingRequestException) OrigErr() error { return nil } -// SetName sets the Name field's value. -func (s *GetTypedLinkFacetInformationInput) SetName(v string) *GetTypedLinkFacetInformationInput { - s.Name = &v - return s +func (s InvalidTaggingRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSchemaArn sets the SchemaArn field's value. -func (s *GetTypedLinkFacetInformationInput) SetSchemaArn(v string) *GetTypedLinkFacetInformationInput { - s.SchemaArn = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTaggingRequestException) StatusCode() int { + return s.respMetadata.StatusCode } -type GetTypedLinkFacetInformationOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTaggingRequestException) RequestID() string { + return s.respMetadata.RequestID +} - // The order of identity attributes for the facet, from most significant to - // least significant. The ability to filter typed links considers the order - // that the attributes are defined on the typed link facet. When providing ranges - // to typed link selection, any inexact ranges must be specified at the end. - // Any attributes that do not have a range specified are presumed to match the - // entire range. Filters are interpreted in the order of the attributes on the - // typed link facet, not the order in which they are supplied to any API calls. - // For more information about identity attributes, see Typed Links (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink). - IdentityAttributeOrder []*string `type:"list"` +// Indicates that limits are exceeded. See Limits (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/limits.html) +// for more information. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s GetTypedLinkFacetInformationOutput) String() string { +func (s LimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetTypedLinkFacetInformationOutput) GoString() string { +func (s LimitExceededException) GoString() string { return s.String() } -// SetIdentityAttributeOrder sets the IdentityAttributeOrder field's value. -func (s *GetTypedLinkFacetInformationOutput) SetIdentityAttributeOrder(v []*string) *GetTypedLinkFacetInformationOutput { - s.IdentityAttributeOrder = v - return s +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } } -// Represents an index and an attached object. -type IndexAttachment struct { - _ struct{} `type:"structure"` - - // The indexed attribute values. - IndexedAttributes []*AttributeKeyAndValue `type:"list"` +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} - // In response to ListIndex, the ObjectIdentifier of the object attached to - // the index. In response to ListAttachedIndices, the ObjectIdentifier of the - // index attached to the object. This field will always contain the ObjectIdentifier - // of the object on the opposite side of the attachment specified in the query. - ObjectIdentifier *string `type:"string"` +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// String returns the string representation -func (s IndexAttachment) String() string { - return awsutil.Prettify(s) +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil } -// GoString returns the string representation -func (s IndexAttachment) GoString() string { - return s.String() +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetIndexedAttributes sets the IndexedAttributes field's value. -func (s *IndexAttachment) SetIndexedAttributes(v []*AttributeKeyAndValue) *IndexAttachment { - s.IndexedAttributes = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetObjectIdentifier sets the ObjectIdentifier field's value. -func (s *IndexAttachment) SetObjectIdentifier(v string) *IndexAttachment { - s.ObjectIdentifier = &v - return s +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID } // The action to take on a typed link attribute value. Updates are only supported @@ -15816,6 +17067,63 @@ func (s *LinkAttributeUpdate) SetAttributeKey(v *AttributeKey) *LinkAttributeUpd return s } +// Indicates that a link could not be created due to a naming conflict. Choose +// a different name and then try again. +type LinkNameAlreadyInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LinkNameAlreadyInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LinkNameAlreadyInUseException) GoString() string { + return s.String() +} + +func newErrorLinkNameAlreadyInUseException(v protocol.ResponseMetadata) error { + return &LinkNameAlreadyInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LinkNameAlreadyInUseException) Code() string { + return "LinkNameAlreadyInUseException" +} + +// Message returns the exception's message. +func (s LinkNameAlreadyInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LinkNameAlreadyInUseException) OrigErr() error { + return nil +} + +func (s LinkNameAlreadyInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LinkNameAlreadyInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LinkNameAlreadyInUseException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAppliedSchemaArnsInput struct { _ struct{} `type:"structure"` @@ -18108,37 +19416,262 @@ func (s *LookupPolicyInput) SetObjectReference(v *ObjectReference) *LookupPolicy return s } -type LookupPolicyOutput struct { - _ struct{} `type:"structure"` +type LookupPolicyOutput struct { + _ struct{} `type:"structure"` + + // The pagination token. + NextToken *string `type:"string"` + + // Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, + // and PolicyType. For more information, see Policies (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). + PolicyToPathList []*PolicyToPath `type:"list"` +} + +// String returns the string representation +func (s LookupPolicyOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LookupPolicyOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupPolicyOutput) SetNextToken(v string) *LookupPolicyOutput { + s.NextToken = &v + return s +} + +// SetPolicyToPathList sets the PolicyToPathList field's value. +func (s *LookupPolicyOutput) SetPolicyToPathList(v []*PolicyToPath) *LookupPolicyOutput { + s.PolicyToPathList = v + return s +} + +// Indicates that the requested operation can only operate on index objects. +type NotIndexException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotIndexException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotIndexException) GoString() string { + return s.String() +} + +func newErrorNotIndexException(v protocol.ResponseMetadata) error { + return &NotIndexException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotIndexException) Code() string { + return "NotIndexException" +} + +// Message returns the exception's message. +func (s NotIndexException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotIndexException) OrigErr() error { + return nil +} + +func (s NotIndexException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotIndexException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotIndexException) RequestID() string { + return s.respMetadata.RequestID +} + +// Occurs when any invalid operations are performed on an object that is not +// a node, such as calling ListObjectChildren for a leaf node object. +type NotNodeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotNodeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotNodeException) GoString() string { + return s.String() +} + +func newErrorNotNodeException(v protocol.ResponseMetadata) error { + return &NotNodeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotNodeException) Code() string { + return "NotNodeException" +} + +// Message returns the exception's message. +func (s NotNodeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotNodeException) OrigErr() error { + return nil +} + +func (s NotNodeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotNodeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotNodeException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the requested operation can only operate on policy objects. +type NotPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotPolicyException) GoString() string { + return s.String() +} + +func newErrorNotPolicyException(v protocol.ResponseMetadata) error { + return &NotPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotPolicyException) Code() string { + return "NotPolicyException" +} + +// Message returns the exception's message. +func (s NotPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotPolicyException) OrigErr() error { + return nil +} + +func (s NotPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotPolicyException) RequestID() string { + return s.respMetadata.RequestID +} - // The pagination token. - NextToken *string `type:"string"` +// Indicates that the object is not attached to the index. +type ObjectAlreadyDetachedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // Provides list of path to policies. Policies contain PolicyId, ObjectIdentifier, - // and PolicyType. For more information, see Policies (https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies). - PolicyToPathList []*PolicyToPath `type:"list"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s LookupPolicyOutput) String() string { +func (s ObjectAlreadyDetachedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LookupPolicyOutput) GoString() string { +func (s ObjectAlreadyDetachedException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *LookupPolicyOutput) SetNextToken(v string) *LookupPolicyOutput { - s.NextToken = &v - return s +func newErrorObjectAlreadyDetachedException(v protocol.ResponseMetadata) error { + return &ObjectAlreadyDetachedException{ + respMetadata: v, + } } -// SetPolicyToPathList sets the PolicyToPathList field's value. -func (s *LookupPolicyOutput) SetPolicyToPathList(v []*PolicyToPath) *LookupPolicyOutput { - s.PolicyToPathList = v - return s +// Code returns the exception type name. +func (s ObjectAlreadyDetachedException) Code() string { + return "ObjectAlreadyDetachedException" +} + +// Message returns the exception's message. +func (s ObjectAlreadyDetachedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ObjectAlreadyDetachedException) OrigErr() error { + return nil +} + +func (s ObjectAlreadyDetachedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ObjectAlreadyDetachedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ObjectAlreadyDetachedException) RequestID() string { + return s.respMetadata.RequestID } // The action to take on the object attribute. @@ -18308,6 +19841,63 @@ func (s *ObjectIdentifierAndLinkNameTuple) SetObjectIdentifier(v string) *Object return s } +// Indicates that the requested operation cannot be completed because the object +// has not been detached from the tree. +type ObjectNotDetachedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ObjectNotDetachedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectNotDetachedException) GoString() string { + return s.String() +} + +func newErrorObjectNotDetachedException(v protocol.ResponseMetadata) error { + return &ObjectNotDetachedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ObjectNotDetachedException) Code() string { + return "ObjectNotDetachedException" +} + +// Message returns the exception's message. +func (s ObjectNotDetachedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ObjectNotDetachedException) OrigErr() error { + return nil +} + +func (s ObjectNotDetachedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ObjectNotDetachedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ObjectNotDetachedException) RequestID() string { + return s.respMetadata.RequestID +} + // The reference that identifies an object. type ObjectReference struct { _ struct{} `type:"structure"` @@ -18726,6 +20316,123 @@ func (s RemoveFacetFromObjectOutput) GoString() string { return s.String() } +// The specified resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Occurs when a conflict with a previous successful write is detected. For +// example, if a write operation occurs on an object and then an attempt is +// made to read the object using “SERIALIZABLE” consistency, this exception +// may result. 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. +type RetryableConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s RetryableConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RetryableConflictException) GoString() string { + return s.String() +} + +func newErrorRetryableConflictException(v protocol.ResponseMetadata) error { + return &RetryableConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RetryableConflictException) Code() string { + return "RetryableConflictException" +} + +// Message returns the exception's message. +func (s RetryableConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RetryableConflictException) OrigErr() error { + return nil +} + +func (s RetryableConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RetryableConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RetryableConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains an Amazon Resource Name (ARN) and parameters that are associated // with the rule. type Rule struct { @@ -18760,6 +20467,119 @@ func (s *Rule) SetType(v string) *Rule { return s } +// Indicates that a schema could not be created due to a naming conflict. Please +// select a different name and then try again. +type SchemaAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SchemaAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchemaAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorSchemaAlreadyExistsException(v protocol.ResponseMetadata) error { + return &SchemaAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SchemaAlreadyExistsException) Code() string { + return "SchemaAlreadyExistsException" +} + +// Message returns the exception's message. +func (s SchemaAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SchemaAlreadyExistsException) OrigErr() error { + return nil +} + +func (s SchemaAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SchemaAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SchemaAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that a schema is already published. +type SchemaAlreadyPublishedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SchemaAlreadyPublishedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchemaAlreadyPublishedException) GoString() string { + return s.String() +} + +func newErrorSchemaAlreadyPublishedException(v protocol.ResponseMetadata) error { + return &SchemaAlreadyPublishedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SchemaAlreadyPublishedException) Code() string { + return "SchemaAlreadyPublishedException" +} + +// Message returns the exception's message. +func (s SchemaAlreadyPublishedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SchemaAlreadyPublishedException) OrigErr() error { + return nil +} + +func (s SchemaAlreadyPublishedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SchemaAlreadyPublishedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SchemaAlreadyPublishedException) RequestID() string { + return s.respMetadata.RequestID +} + // A facet. type SchemaFacet struct { _ struct{} `type:"structure"` @@ -18808,6 +20628,63 @@ func (s *SchemaFacet) SetSchemaArn(v string) *SchemaFacet { return s } +// The object could not be deleted because links still exist. Remove the links +// and then try the operation again. +type StillContainsLinksException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s StillContainsLinksException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StillContainsLinksException) GoString() string { + return s.String() +} + +func newErrorStillContainsLinksException(v protocol.ResponseMetadata) error { + return &StillContainsLinksException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StillContainsLinksException) Code() string { + return "StillContainsLinksException" +} + +// Message returns the exception's message. +func (s StillContainsLinksException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StillContainsLinksException) OrigErr() error { + return nil +} + +func (s StillContainsLinksException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StillContainsLinksException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StillContainsLinksException) RequestID() string { + return s.respMetadata.RequestID +} + // The tag structure that contains a tag key and value. type Tag struct { _ struct{} `type:"structure"` @@ -19494,6 +21371,62 @@ func (s *TypedLinkSpecifier) SetTypedLinkFacet(v *TypedLinkSchemaAndFacetName) * return s } +// Indicates that the requested index type is not supported. +type UnsupportedIndexTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedIndexTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedIndexTypeException) GoString() string { + return s.String() +} + +func newErrorUnsupportedIndexTypeException(v protocol.ResponseMetadata) error { + return &UnsupportedIndexTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedIndexTypeException) Code() string { + return "UnsupportedIndexTypeException" +} + +// Message returns the exception's message. +func (s UnsupportedIndexTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedIndexTypeException) OrigErr() error { + return nil +} + +func (s UnsupportedIndexTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedIndexTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedIndexTypeException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -20251,6 +22184,63 @@ func (s *UpgradePublishedSchemaOutput) SetUpgradedSchemaArn(v string) *UpgradePu return s } +// Indicates that your request is malformed in some manner. See the exception +// message. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // BatchReadExceptionTypeValidationException is a BatchReadExceptionType enum value BatchReadExceptionTypeValidationException = "ValidationException" diff --git a/service/clouddirectory/errors.go b/service/clouddirectory/errors.go index 1fc648c115e..53ef79f9b7e 100644 --- a/service/clouddirectory/errors.go +++ b/service/clouddirectory/errors.go @@ -2,6 +2,10 @@ package clouddirectory +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -240,3 +244,41 @@ const ( // message. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "BatchWriteException": newErrorBatchWriteException, + "CannotListParentOfRootException": newErrorCannotListParentOfRootException, + "DirectoryAlreadyExistsException": newErrorDirectoryAlreadyExistsException, + "DirectoryDeletedException": newErrorDirectoryDeletedException, + "DirectoryNotDisabledException": newErrorDirectoryNotDisabledException, + "DirectoryNotEnabledException": newErrorDirectoryNotEnabledException, + "FacetAlreadyExistsException": newErrorFacetAlreadyExistsException, + "FacetInUseException": newErrorFacetInUseException, + "FacetNotFoundException": newErrorFacetNotFoundException, + "FacetValidationException": newErrorFacetValidationException, + "IncompatibleSchemaException": newErrorIncompatibleSchemaException, + "IndexedAttributeMissingException": newErrorIndexedAttributeMissingException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidArnException": newErrorInvalidArnException, + "InvalidAttachmentException": newErrorInvalidAttachmentException, + "InvalidFacetUpdateException": newErrorInvalidFacetUpdateException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidRuleException": newErrorInvalidRuleException, + "InvalidSchemaDocException": newErrorInvalidSchemaDocException, + "InvalidTaggingRequestException": newErrorInvalidTaggingRequestException, + "LimitExceededException": newErrorLimitExceededException, + "LinkNameAlreadyInUseException": newErrorLinkNameAlreadyInUseException, + "NotIndexException": newErrorNotIndexException, + "NotNodeException": newErrorNotNodeException, + "NotPolicyException": newErrorNotPolicyException, + "ObjectAlreadyDetachedException": newErrorObjectAlreadyDetachedException, + "ObjectNotDetachedException": newErrorObjectNotDetachedException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "RetryableConflictException": newErrorRetryableConflictException, + "SchemaAlreadyExistsException": newErrorSchemaAlreadyExistsException, + "SchemaAlreadyPublishedException": newErrorSchemaAlreadyPublishedException, + "StillContainsLinksException": newErrorStillContainsLinksException, + "UnsupportedIndexTypeException": newErrorUnsupportedIndexTypeException, + "ValidationException": newErrorValidationException, +} diff --git a/service/clouddirectory/service.go b/service/clouddirectory/service.go index 502280ec0ef..5a9ef4556a8 100644 --- a/service/clouddirectory/service.go +++ b/service/clouddirectory/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cloudhsm/api.go b/service/cloudhsm/api.go index d07d9d198df..f73f1ebbbce 100644 --- a/service/cloudhsm/api.go +++ b/service/cloudhsm/api.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opAddTagsToResource = "AddTagsToResource" @@ -74,14 +75,14 @@ func (c *CloudHSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req // See the AWS API reference guide for Amazon CloudHSM's // API operation AddTagsToResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/AddTagsToResource @@ -169,14 +170,14 @@ func (c *CloudHSM) CreateHapgRequest(input *CreateHapgInput) (req *request.Reque // See the AWS API reference guide for Amazon CloudHSM's // API operation CreateHapg for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHapg @@ -273,14 +274,14 @@ func (c *CloudHSM) CreateHsmRequest(input *CreateHsmInput) (req *request.Request // See the AWS API reference guide for Amazon CloudHSM's // API operation CreateHsm for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateHsm @@ -367,14 +368,14 @@ func (c *CloudHSM) CreateLunaClientRequest(input *CreateLunaClientInput) (req *r // See the AWS API reference guide for Amazon CloudHSM's // API operation CreateLunaClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/CreateLunaClient @@ -461,14 +462,14 @@ func (c *CloudHSM) DeleteHapgRequest(input *DeleteHapgInput) (req *request.Reque // See the AWS API reference guide for Amazon CloudHSM's // API operation DeleteHapg for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHapg @@ -556,14 +557,14 @@ func (c *CloudHSM) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Request // See the AWS API reference guide for Amazon CloudHSM's // API operation DeleteHsm for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteHsm @@ -650,14 +651,14 @@ func (c *CloudHSM) DeleteLunaClientRequest(input *DeleteLunaClientInput) (req *r // See the AWS API reference guide for Amazon CloudHSM's // API operation DeleteLunaClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DeleteLunaClient @@ -744,14 +745,14 @@ func (c *CloudHSM) DescribeHapgRequest(input *DescribeHapgInput) (req *request.R // See the AWS API reference guide for Amazon CloudHSM's // API operation DescribeHapg for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHapg @@ -839,14 +840,14 @@ func (c *CloudHSM) DescribeHsmRequest(input *DescribeHsmInput) (req *request.Req // See the AWS API reference guide for Amazon CloudHSM's // API operation DescribeHsm for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeHsm @@ -933,14 +934,14 @@ func (c *CloudHSM) DescribeLunaClientRequest(input *DescribeLunaClientInput) (re // See the AWS API reference guide for Amazon CloudHSM's // API operation DescribeLunaClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/DescribeLunaClient @@ -1028,14 +1029,14 @@ func (c *CloudHSM) GetConfigRequest(input *GetConfigInput) (req *request.Request // See the AWS API reference guide for Amazon CloudHSM's // API operation GetConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/GetConfig @@ -1122,14 +1123,14 @@ func (c *CloudHSM) ListAvailableZonesRequest(input *ListAvailableZonesInput) (re // See the AWS API reference guide for Amazon CloudHSM's // API operation ListAvailableZones for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListAvailableZones @@ -1221,14 +1222,14 @@ func (c *CloudHSM) ListHapgsRequest(input *ListHapgsInput) (req *request.Request // See the AWS API reference guide for Amazon CloudHSM's // API operation ListHapgs for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHapgs @@ -1321,14 +1322,14 @@ func (c *CloudHSM) ListHsmsRequest(input *ListHsmsInput) (req *request.Request, // See the AWS API reference guide for Amazon CloudHSM's // API operation ListHsms for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListHsms @@ -1420,14 +1421,14 @@ func (c *CloudHSM) ListLunaClientsRequest(input *ListLunaClientsInput) (req *req // See the AWS API reference guide for Amazon CloudHSM's // API operation ListLunaClients for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListLunaClients @@ -1514,14 +1515,14 @@ func (c *CloudHSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) ( // See the AWS API reference guide for Amazon CloudHSM's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ListTagsForResource @@ -1608,14 +1609,14 @@ func (c *CloudHSM) ModifyHapgRequest(input *ModifyHapgInput) (req *request.Reque // See the AWS API reference guide for Amazon CloudHSM's // API operation ModifyHapg for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHapg @@ -1708,14 +1709,14 @@ func (c *CloudHSM) ModifyHsmRequest(input *ModifyHsmInput) (req *request.Request // See the AWS API reference guide for Amazon CloudHSM's // API operation ModifyHsm for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyHsm @@ -1805,8 +1806,8 @@ func (c *CloudHSM) ModifyLunaClientRequest(input *ModifyLunaClientInput) (req *r // See the AWS API reference guide for Amazon CloudHSM's // API operation ModifyLunaClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/ModifyLunaClient @@ -1896,14 +1897,14 @@ func (c *CloudHSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceIn // See the AWS API reference guide for Amazon CloudHSM's // API operation RemoveTagsFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// Returned Error Types: +// * CloudHsmServiceException // Indicates that an exception occurred in the AWS CloudHSM service. // -// * ErrCodeCloudHsmInternalException "CloudHsmInternalException" +// * CloudHsmInternalException // Indicates that an internal error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Indicates that one or more of the request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudhsm-2014-05-30/RemoveTagsFromResource @@ -2015,6 +2016,117 @@ func (s *AddTagsToResourceOutput) SetStatus(v string) *AddTagsToResourceOutput { return s } +// Indicates that an internal error occurred. +type CloudHsmInternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CloudHsmInternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmInternalException) GoString() string { + return s.String() +} + +func newErrorCloudHsmInternalException(v protocol.ResponseMetadata) error { + return &CloudHsmInternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmInternalException) Code() string { + return "CloudHsmInternalException" +} + +// Message returns the exception's message. +func (s CloudHsmInternalException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmInternalException) OrigErr() error { + return nil +} + +func (s CloudHsmInternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmInternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmInternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that an exception occurred in the AWS CloudHSM service. +type CloudHsmServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Additional information about the error. + Message_ *string `locationName:"message" type:"string"` + + // Indicates if the action can be retried. + Retryable *bool `locationName:"retryable" type:"boolean"` +} + +// String returns the string representation +func (s CloudHsmServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmServiceException) GoString() string { + return s.String() +} + +func newErrorCloudHsmServiceException(v protocol.ResponseMetadata) error { + return &CloudHsmServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmServiceException) Code() string { + return "CloudHsmServiceException" +} + +// Message returns the exception's message. +func (s CloudHsmServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmServiceException) OrigErr() error { + return nil +} + +func (s CloudHsmServiceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmServiceException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the inputs for the CreateHapgRequest action. type CreateHapgInput struct { _ struct{} `type:"structure"` @@ -3076,6 +3188,57 @@ func (s *GetConfigOutput) SetConfigType(v string) *GetConfigOutput { return s } +// Indicates that one or more of the request parameters are not valid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the inputs for the ListAvailableZones action. type ListAvailableZonesInput struct { _ struct{} `type:"structure"` diff --git a/service/cloudhsm/errors.go b/service/cloudhsm/errors.go index 3621a25688d..74c6e3ee162 100644 --- a/service/cloudhsm/errors.go +++ b/service/cloudhsm/errors.go @@ -2,6 +2,10 @@ package cloudhsm +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCloudHsmInternalException for service response error code @@ -22,3 +26,9 @@ const ( // Indicates that one or more of the request parameters are not valid. ErrCodeInvalidRequestException = "InvalidRequestException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CloudHsmInternalException": newErrorCloudHsmInternalException, + "CloudHsmServiceException": newErrorCloudHsmServiceException, + "InvalidRequestException": newErrorInvalidRequestException, +} diff --git a/service/cloudhsm/service.go b/service/cloudhsm/service.go index c290fa26124..e29e14b3349 100644 --- a/service/cloudhsm/service.go +++ b/service/cloudhsm/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cloudhsmv2/api.go b/service/cloudhsmv2/api.go index 3011f741854..38a3e3998d9 100644 --- a/service/cloudhsmv2/api.go +++ b/service/cloudhsmv2/api.go @@ -66,21 +66,21 @@ func (c *CloudHSMV2) CopyBackupToRegionRequest(input *CopyBackupToRegionInput) ( // See the AWS API reference guide for AWS CloudHSM V2's // API operation CopyBackupToRegion for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -159,21 +159,21 @@ func (c *CloudHSMV2) CreateClusterRequest(input *CreateClusterInput) (req *reque // See the AWS API reference guide for AWS CloudHSM V2's // API operation CreateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -253,21 +253,21 @@ func (c *CloudHSMV2) CreateHsmRequest(input *CreateHsmInput) (req *request.Reque // See the AWS API reference guide for AWS CloudHSM V2's // API operation CreateHsm for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -348,21 +348,21 @@ func (c *CloudHSMV2) DeleteBackupRequest(input *DeleteBackupInput) (req *request // See the AWS API reference guide for AWS CloudHSM V2's // API operation DeleteBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -443,21 +443,21 @@ func (c *CloudHSMV2) DeleteClusterRequest(input *DeleteClusterInput) (req *reque // See the AWS API reference guide for AWS CloudHSM V2's // API operation DeleteCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -539,21 +539,21 @@ func (c *CloudHSMV2) DeleteHsmRequest(input *DeleteHsmInput) (req *request.Reque // See the AWS API reference guide for AWS CloudHSM V2's // API operation DeleteHsm for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -645,21 +645,21 @@ func (c *CloudHSMV2) DescribeBackupsRequest(input *DescribeBackupsInput) (req *r // See the AWS API reference guide for AWS CloudHSM V2's // API operation DescribeBackups for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -803,18 +803,18 @@ func (c *CloudHSMV2) DescribeClustersRequest(input *DescribeClustersInput) (req // See the AWS API reference guide for AWS CloudHSM V2's // API operation DescribeClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -948,21 +948,21 @@ func (c *CloudHSMV2) InitializeClusterRequest(input *InitializeClusterInput) (re // See the AWS API reference guide for AWS CloudHSM V2's // API operation InitializeCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -1053,21 +1053,21 @@ func (c *CloudHSMV2) ListTagsRequest(input *ListTagsInput) (req *request.Request // See the AWS API reference guide for AWS CloudHSM V2's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -1199,21 +1199,21 @@ func (c *CloudHSMV2) RestoreBackupRequest(input *RestoreBackupInput) (req *reque // See the AWS API reference guide for AWS CloudHSM V2's // API operation RestoreBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -1293,21 +1293,21 @@ func (c *CloudHSMV2) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for AWS CloudHSM V2's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -1387,21 +1387,21 @@ func (c *CloudHSMV2) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for AWS CloudHSM V2's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmInternalFailureException "CloudHsmInternalFailureException" +// Returned Error Types: +// * CloudHsmInternalFailureException // The request was rejected because of an AWS CloudHSM internal failure. The // request can be retried. // -// * ErrCodeCloudHsmServiceException "CloudHsmServiceException" +// * CloudHsmServiceException // The request was rejected because an error occurred. // -// * ErrCodeCloudHsmResourceNotFoundException "CloudHsmResourceNotFoundException" +// * CloudHsmResourceNotFoundException // The request was rejected because it refers to a resource that cannot be found. // -// * ErrCodeCloudHsmInvalidRequestException "CloudHsmInvalidRequestException" +// * CloudHsmInvalidRequestException // The request was rejected because it is not a valid request. // -// * ErrCodeCloudHsmAccessDeniedException "CloudHsmAccessDeniedException" +// * CloudHsmAccessDeniedException // The request was rejected because the requester does not have permission to // perform the requested operation. // @@ -1583,6 +1583,288 @@ func (s *Certificates) SetManufacturerHardwareCertificate(v string) *Certificate return s } +// The request was rejected because the requester does not have permission to +// perform the requested operation. +type CloudHsmAccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmAccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmAccessDeniedException) GoString() string { + return s.String() +} + +func newErrorCloudHsmAccessDeniedException(v protocol.ResponseMetadata) error { + return &CloudHsmAccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmAccessDeniedException) Code() string { + return "CloudHsmAccessDeniedException" +} + +// Message returns the exception's message. +func (s CloudHsmAccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmAccessDeniedException) OrigErr() error { + return nil +} + +func (s CloudHsmAccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmAccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmAccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because of an AWS CloudHSM internal failure. The +// request can be retried. +type CloudHsmInternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmInternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmInternalFailureException) GoString() string { + return s.String() +} + +func newErrorCloudHsmInternalFailureException(v protocol.ResponseMetadata) error { + return &CloudHsmInternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmInternalFailureException) Code() string { + return "CloudHsmInternalFailureException" +} + +// Message returns the exception's message. +func (s CloudHsmInternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmInternalFailureException) OrigErr() error { + return nil +} + +func (s CloudHsmInternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmInternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmInternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because it is not a valid request. +type CloudHsmInvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmInvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmInvalidRequestException) GoString() string { + return s.String() +} + +func newErrorCloudHsmInvalidRequestException(v protocol.ResponseMetadata) error { + return &CloudHsmInvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmInvalidRequestException) Code() string { + return "CloudHsmInvalidRequestException" +} + +// Message returns the exception's message. +func (s CloudHsmInvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmInvalidRequestException) OrigErr() error { + return nil +} + +func (s CloudHsmInvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmInvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmInvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because it refers to a resource that cannot be found. +type CloudHsmResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorCloudHsmResourceNotFoundException(v protocol.ResponseMetadata) error { + return &CloudHsmResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmResourceNotFoundException) Code() string { + return "CloudHsmResourceNotFoundException" +} + +// Message returns the exception's message. +func (s CloudHsmResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmResourceNotFoundException) OrigErr() error { + return nil +} + +func (s CloudHsmResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because an error occurred. +type CloudHsmServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmServiceException) GoString() string { + return s.String() +} + +func newErrorCloudHsmServiceException(v protocol.ResponseMetadata) error { + return &CloudHsmServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmServiceException) Code() string { + return "CloudHsmServiceException" +} + +// Message returns the exception's message. +func (s CloudHsmServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmServiceException) OrigErr() error { + return nil +} + +func (s CloudHsmServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmServiceException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about an AWS CloudHSM cluster. type Cluster struct { _ struct{} `type:"structure"` diff --git a/service/cloudhsmv2/errors.go b/service/cloudhsmv2/errors.go index 542f2f40481..6ade559a111 100644 --- a/service/cloudhsmv2/errors.go +++ b/service/cloudhsmv2/errors.go @@ -2,6 +2,10 @@ package cloudhsmv2 +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCloudHsmAccessDeniedException for service response error code @@ -36,3 +40,11 @@ const ( // The request was rejected because an error occurred. ErrCodeCloudHsmServiceException = "CloudHsmServiceException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CloudHsmAccessDeniedException": newErrorCloudHsmAccessDeniedException, + "CloudHsmInternalFailureException": newErrorCloudHsmInternalFailureException, + "CloudHsmInvalidRequestException": newErrorCloudHsmInvalidRequestException, + "CloudHsmResourceNotFoundException": newErrorCloudHsmResourceNotFoundException, + "CloudHsmServiceException": newErrorCloudHsmServiceException, +} diff --git a/service/cloudhsmv2/service.go b/service/cloudhsmv2/service.go index 0c6ee83410b..6034df79403 100644 --- a/service/cloudhsmv2/service.go +++ b/service/cloudhsmv2/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cloudsearchdomain/api.go b/service/cloudsearchdomain/api.go index a999f6f9796..042e6808c1d 100644 --- a/service/cloudsearchdomain/api.go +++ b/service/cloudsearchdomain/api.go @@ -3,11 +3,13 @@ package cloudsearchdomain import ( + "fmt" "io" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opSearch = "Search" @@ -85,8 +87,8 @@ func (c *CloudSearchDomain) SearchRequest(input *SearchInput) (req *request.Requ // See the AWS API reference guide for Amazon CloudSearch Domain's // API operation Search for usage and error information. // -// Returned Error Codes: -// * ErrCodeSearchException "SearchException" +// Returned Error Types: +// * SearchException // Information about any problems encountered while processing a search request. // func (c *CloudSearchDomain) Search(input *SearchInput) (*SearchOutput, error) { @@ -177,8 +179,8 @@ func (c *CloudSearchDomain) SuggestRequest(input *SuggestInput) (req *request.Re // See the AWS API reference guide for Amazon CloudSearch Domain's // API operation Suggest for usage and error information. // -// Returned Error Codes: -// * ErrCodeSearchException "SearchException" +// Returned Error Types: +// * SearchException // Information about any problems encountered while processing a search request. // func (c *CloudSearchDomain) Suggest(input *SuggestInput) (*SuggestOutput, error) { @@ -274,8 +276,8 @@ func (c *CloudSearchDomain) UploadDocumentsRequest(input *UploadDocumentsInput) // See the AWS API reference guide for Amazon CloudSearch Domain's // API operation UploadDocuments for usage and error information. // -// Returned Error Codes: -// * ErrCodeDocumentServiceException "DocumentServiceException" +// Returned Error Types: +// * DocumentServiceException // Information about any problems encountered while processing an upload request. // func (c *CloudSearchDomain) UploadDocuments(input *UploadDocumentsInput) (*UploadDocumentsOutput, error) { @@ -356,6 +358,66 @@ func (s *BucketInfo) SetBuckets(v []*Bucket) *BucketInfo { return s } +// Information about any problems encountered while processing an upload request. +type DocumentServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The description of the errors returned by the document service. + Message_ *string `locationName:"message" type:"string"` + + // The return status of a document upload request, error or success. + Status *string `locationName:"status" type:"string"` +} + +// String returns the string representation +func (s DocumentServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentServiceException) GoString() string { + return s.String() +} + +func newErrorDocumentServiceException(v protocol.ResponseMetadata) error { + return &DocumentServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DocumentServiceException) Code() string { + return "DocumentServiceException" +} + +// Message returns the exception's message. +func (s DocumentServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DocumentServiceException) OrigErr() error { + return nil +} + +func (s DocumentServiceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DocumentServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DocumentServiceException) RequestID() string { + return s.respMetadata.RequestID +} + // A warning returned by the document service when an issue is discovered while // processing an upload request. type DocumentServiceWarning struct { @@ -593,6 +655,63 @@ func (s *Hits) SetStart(v int64) *Hits { return s } +// Information about any problems encountered while processing a search request. +type SearchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description of the error returned by the search service. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SearchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SearchException) GoString() string { + return s.String() +} + +func newErrorSearchException(v protocol.ResponseMetadata) error { + return &SearchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SearchException) Code() string { + return "SearchException" +} + +// Message returns the exception's message. +func (s SearchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SearchException) OrigErr() error { + return nil +} + +func (s SearchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SearchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SearchException) RequestID() string { + return s.respMetadata.RequestID +} + // Container for the parameters to the Search request. type SearchInput struct { _ struct{} `type:"structure"` diff --git a/service/cloudsearchdomain/errors.go b/service/cloudsearchdomain/errors.go index d94267b85aa..ad1ce6e7632 100644 --- a/service/cloudsearchdomain/errors.go +++ b/service/cloudsearchdomain/errors.go @@ -2,6 +2,10 @@ package cloudsearchdomain +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDocumentServiceException for service response error code @@ -16,3 +20,8 @@ const ( // Information about any problems encountered while processing a search request. ErrCodeSearchException = "SearchException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DocumentServiceException": newErrorDocumentServiceException, + "SearchException": newErrorSearchException, +} diff --git a/service/cloudsearchdomain/service.go b/service/cloudsearchdomain/service.go index 9afd631d541..6ee756b4890 100644 --- a/service/cloudsearchdomain/service.go +++ b/service/cloudsearchdomain/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -82,7 +83,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cloudtrail/api.go b/service/cloudtrail/api.go index f3b532ddef8..f0441f4b614 100644 --- a/service/cloudtrail/api.go +++ b/service/cloudtrail/api.go @@ -73,25 +73,25 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // See the AWS API reference guide for AWS CloudTrail's // API operation AddTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the specified resource is not found. // -// * ErrCodeARNInvalidException "CloudTrailARNInvalidException" +// * ARNInvalidException // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // -// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" +// * ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported // by CloudTrail. // -// * ErrCodeTagsLimitExceededException "TagsLimitExceededException" +// * TagsLimitExceededException // The number of tags per trail has exceeded the permitted amount. Currently, // the limit is 50. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -107,17 +107,17 @@ func (c *CloudTrail) AddTagsRequest(input *AddTagsInput) (req *request.Request, // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" +// * InvalidTagParameterException // This exception is thrown when the specified tag key or values are not valid. // It can also occur if there are duplicate tags or too many tags on the resource. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail @@ -199,39 +199,39 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R // See the AWS API reference guide for AWS CloudTrail's // API operation CreateTrail for usage and error information. // -// Returned Error Codes: -// * ErrCodeMaximumNumberOfTrailsExceededException "MaximumNumberOfTrailsExceededException" +// Returned Error Types: +// * MaximumNumberOfTrailsExceededException // This exception is thrown when the maximum number of trails is reached. // -// * ErrCodeTrailAlreadyExistsException "TrailAlreadyExistsException" +// * TrailAlreadyExistsException // This exception is thrown when the specified trail already exists. // -// * ErrCodeS3BucketDoesNotExistException "S3BucketDoesNotExistException" +// * S3BucketDoesNotExistException // This exception is thrown when the specified S3 bucket does not exist. // -// * ErrCodeInsufficientS3BucketPolicyException "InsufficientS3BucketPolicyException" +// * InsufficientS3BucketPolicyException // This exception is thrown when the policy on the S3 bucket is not sufficient. // -// * ErrCodeInsufficientSnsTopicPolicyException "InsufficientSnsTopicPolicyException" +// * InsufficientSnsTopicPolicyException // This exception is thrown when the policy on the SNS topic is not sufficient. // -// * ErrCodeInsufficientEncryptionPolicyException "InsufficientEncryptionPolicyException" +// * InsufficientEncryptionPolicyException // This exception is thrown when the policy on the S3 bucket or KMS key is not // sufficient. // -// * ErrCodeInvalidS3BucketNameException "InvalidS3BucketNameException" +// * InvalidS3BucketNameException // This exception is thrown when the provided S3 bucket name is not valid. // -// * ErrCodeInvalidS3PrefixException "InvalidS3PrefixException" +// * InvalidS3PrefixException // This exception is thrown when the provided S3 prefix is not valid. // -// * ErrCodeInvalidSnsTopicNameException "InvalidSnsTopicNameException" +// * InvalidSnsTopicNameException // This exception is thrown when the provided SNS topic name is not valid. // -// * ErrCodeInvalidKmsKeyIdException "InvalidKmsKeyIdException" +// * InvalidKmsKeyIdException // This exception is thrown when the KMS key ARN is invalid. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -247,67 +247,67 @@ func (c *CloudTrail) CreateTrailRequest(input *CreateTrailInput) (req *request.R // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeTrailNotProvidedException "TrailNotProvidedException" +// * TrailNotProvidedException // This exception is no longer in use. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // This exception is thrown when the combination of parameters provided is not // valid. // -// * ErrCodeKmsKeyNotFoundException "KmsKeyNotFoundException" +// * KmsKeyNotFoundException // This exception is thrown when the KMS key does not exist, or when the S3 // bucket and the KMS key are not in the same region. // -// * ErrCodeKmsKeyDisabledException "KmsKeyDisabledException" +// * KmsKeyDisabledException // This exception is no longer in use. // -// * ErrCodeKmsException "KmsException" +// * KmsException // This exception is thrown when there is an issue with the specified KMS key // and the trail can’t be updated. // -// * ErrCodeInvalidCloudWatchLogsLogGroupArnException "InvalidCloudWatchLogsLogGroupArnException" +// * InvalidCloudWatchLogsLogGroupArnException // This exception is thrown when the provided CloudWatch log group is not valid. // -// * ErrCodeInvalidCloudWatchLogsRoleArnException "InvalidCloudWatchLogsRoleArnException" +// * InvalidCloudWatchLogsRoleArnException // This exception is thrown when the provided role is not valid. // -// * ErrCodeCloudWatchLogsDeliveryUnavailableException "CloudWatchLogsDeliveryUnavailableException" +// * CloudWatchLogsDeliveryUnavailableException // Cannot set a CloudWatch Logs delivery for this region. // -// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" +// * InvalidTagParameterException // This exception is thrown when the specified tag key or values are not valid. // It can also occur if there are duplicate tags or too many tags on the resource. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeAccessNotEnabledException "CloudTrailAccessNotEnabledException" +// * AccessNotEnabledException // This exception is thrown when trusted access has not been enabled between // AWS CloudTrail and AWS Organizations. For more information, see Enabling // Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// * InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization trail is lacking one or more required permissions for creating // an organization trail in a required service. For more information, see Prepare // For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeOrganizationsNotInUseException "OrganizationsNotInUseException" +// * OrganizationsNotInUseException // This exception is thrown when the request is made from an AWS account that // is not a member of an organization. To make this request, sign in using the // credentials of an account that belongs to an organization. // -// * ErrCodeOrganizationNotInAllFeaturesModeException "OrganizationNotInAllFeaturesModeException" +// * OrganizationNotInAllFeaturesModeException // This exception is thrown when AWS Organizations is not configured to support // all features. All features must be enabled in AWS Organization to support // creating an organization trail. For more information, see Prepare For Creating @@ -391,11 +391,11 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R // See the AWS API reference guide for AWS CloudTrail's // API operation DeleteTrail for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -411,23 +411,23 @@ func (c *CloudTrail) DeleteTrailRequest(input *DeleteTrailInput) (req *request.R // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" +// * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// * InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization trail is lacking one or more required permissions for creating // an organization trail in a required service. For more information, see Prepare @@ -509,14 +509,14 @@ func (c *CloudTrail) DescribeTrailsRequest(input *DescribeTrailsInput) (req *req // See the AWS API reference guide for AWS CloudTrail's // API operation DescribeTrails for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// Returned Error Types: +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -619,11 +619,11 @@ func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (re // See the AWS API reference guide for AWS CloudTrail's // API operation GetEventSelectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -639,10 +639,10 @@ func (c *CloudTrail) GetEventSelectorsRequest(input *GetEventSelectorsInput) (re // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetEventSelectors @@ -727,11 +727,11 @@ func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput) // See the AWS API reference guide for AWS CloudTrail's // API operation GetInsightSelectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -747,13 +747,13 @@ func (c *CloudTrail) GetInsightSelectorsRequest(input *GetInsightSelectorsInput) // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeInsightNotEnabledException "InsightNotEnabledException" +// * InsightNotEnabledException // If you run GetInsightSelectors on a trail that does not have Insights events // enabled, the operation throws the exception InsightNotEnabledException. // @@ -832,11 +832,11 @@ func (c *CloudTrail) GetTrailRequest(input *GetTrailInput) (req *request.Request // See the AWS API reference guide for AWS CloudTrail's // API operation GetTrail for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -852,10 +852,10 @@ func (c *CloudTrail) GetTrailRequest(input *GetTrailInput) (req *request.Request // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrail @@ -937,11 +937,11 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req // See the AWS API reference guide for AWS CloudTrail's // API operation GetTrailStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -957,10 +957,10 @@ func (c *CloudTrail) GetTrailStatusRequest(input *GetTrailStatusInput) (req *req // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/GetTrailStatus @@ -1051,18 +1051,18 @@ func (c *CloudTrail) ListPublicKeysRequest(input *ListPublicKeysInput) (req *req // See the AWS API reference guide for AWS CloudTrail's // API operation ListPublicKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" +// Returned Error Types: +// * InvalidTimeRangeException // Occurs if the timestamp values are invalid. Either the start time occurs // after the end time or the time range is outside the range of possible values. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeInvalidTokenException "InvalidTokenException" +// * InvalidTokenException // Reserved for future use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListPublicKeys @@ -1198,21 +1198,21 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // See the AWS API reference guide for AWS CloudTrail's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the specified resource is not found. // -// * ErrCodeARNInvalidException "CloudTrailARNInvalidException" +// * ARNInvalidException // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // -// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" +// * ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported // by CloudTrail. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -1228,13 +1228,13 @@ func (c *CloudTrail) ListTagsRequest(input *ListTagsInput) (req *request.Request // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeInvalidTokenException "InvalidTokenException" +// * InvalidTokenException // Reserved for future use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTags @@ -1370,11 +1370,11 @@ func (c *CloudTrail) ListTrailsRequest(input *ListTrailsInput) (req *request.Req // See the AWS API reference guide for AWS CloudTrail's // API operation ListTrails for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// Returned Error Types: +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/ListTrails @@ -1545,29 +1545,29 @@ func (c *CloudTrail) LookupEventsRequest(input *LookupEventsInput) (req *request // See the AWS API reference guide for AWS CloudTrail's // API operation LookupEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidLookupAttributesException "InvalidLookupAttributesException" +// Returned Error Types: +// * InvalidLookupAttributesException // Occurs when an invalid lookup attribute is specified. // -// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" +// * InvalidTimeRangeException // Occurs if the timestamp values are invalid. Either the start time occurs // after the end time or the time range is outside the range of possible values. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // This exception is thrown if the limit specified is invalid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // Invalid token or token that was previously used in a request with different // parameters. This exception is thrown if the token is invalid. // -// * ErrCodeInvalidEventCategoryException "InvalidEventCategoryException" +// * InvalidEventCategoryException // Occurs if an event category that is not valid is specified as a value of // EventCategory. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cloudtrail-2013-11-01/LookupEvents @@ -1728,11 +1728,11 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // See the AWS API reference guide for AWS CloudTrail's // API operation PutEventSelectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -1748,11 +1748,11 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" +// * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // -// * ErrCodeInvalidEventSelectorsException "InvalidEventSelectorsException" +// * InvalidEventSelectorsException // This exception is thrown when the PutEventSelectors operation is called with // a number of event selectors or data resources that is not valid. The combination // of event selectors and data resources is not valid. A trail can have up to @@ -1773,19 +1773,19 @@ func (c *CloudTrail) PutEventSelectorsRequest(input *PutEventSelectorsInput) (re // * Specify a valid value for a parameter. For example, specifying the ReadWriteType // parameter with a value of read-only is invalid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// * InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization trail is lacking one or more required permissions for creating // an organization trail in a required service. For more information, see Prepare @@ -1869,11 +1869,11 @@ func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput) // See the AWS API reference guide for AWS CloudTrail's // API operation PutInsightSelectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -1889,29 +1889,29 @@ func (c *CloudTrail) PutInsightSelectorsRequest(input *PutInsightSelectorsInput) // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" +// * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // -// * ErrCodeInvalidInsightSelectorsException "InvalidInsightSelectorsException" +// * InvalidInsightSelectorsException // The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors // or GetInsightSelectors request is not valid, or the specified insight type // in the InsightSelectors statement is not a valid insight type. // -// * ErrCodeInsufficientS3BucketPolicyException "InsufficientS3BucketPolicyException" +// * InsufficientS3BucketPolicyException // This exception is thrown when the policy on the S3 bucket is not sufficient. // -// * ErrCodeInsufficientEncryptionPolicyException "InsufficientEncryptionPolicyException" +// * InsufficientEncryptionPolicyException // This exception is thrown when the policy on the S3 bucket or KMS key is not // sufficient. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail @@ -1993,21 +1993,21 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // See the AWS API reference guide for AWS CloudTrail's // API operation RemoveTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the specified resource is not found. // -// * ErrCodeARNInvalidException "CloudTrailARNInvalidException" +// * ARNInvalidException // This exception is thrown when an operation is called with an invalid trail // ARN. The format of a trail ARN is: // // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail // -// * ErrCodeResourceTypeNotSupportedException "ResourceTypeNotSupportedException" +// * ResourceTypeNotSupportedException // This exception is thrown when the specified resource type is not supported // by CloudTrail. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -2023,17 +2023,17 @@ func (c *CloudTrail) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Req // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" +// * InvalidTagParameterException // This exception is thrown when the specified tag key or values are not valid. // It can also occur if there are duplicate tags or too many tags on the resource. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail @@ -2119,11 +2119,11 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request // See the AWS API reference guide for AWS CloudTrail's // API operation StartLogging for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -2139,23 +2139,23 @@ func (c *CloudTrail) StartLoggingRequest(input *StartLoggingInput) (req *request // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" +// * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// * InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization trail is lacking one or more required permissions for creating // an organization trail in a required service. For more information, see Prepare @@ -2243,11 +2243,11 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // See the AWS API reference guide for AWS CloudTrail's // API operation StopLogging for usage and error information. // -// Returned Error Codes: -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// Returned Error Types: +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -2263,23 +2263,23 @@ func (c *CloudTrail) StopLoggingRequest(input *StopLoggingInput) (req *request.R // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" +// * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// * InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization trail is lacking one or more required permissions for creating // an organization trail in a required service. For more information, see Prepare @@ -2365,36 +2365,36 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R // See the AWS API reference guide for AWS CloudTrail's // API operation UpdateTrail for usage and error information. // -// Returned Error Codes: -// * ErrCodeS3BucketDoesNotExistException "S3BucketDoesNotExistException" +// Returned Error Types: +// * S3BucketDoesNotExistException // This exception is thrown when the specified S3 bucket does not exist. // -// * ErrCodeInsufficientS3BucketPolicyException "InsufficientS3BucketPolicyException" +// * InsufficientS3BucketPolicyException // This exception is thrown when the policy on the S3 bucket is not sufficient. // -// * ErrCodeInsufficientSnsTopicPolicyException "InsufficientSnsTopicPolicyException" +// * InsufficientSnsTopicPolicyException // This exception is thrown when the policy on the SNS topic is not sufficient. // -// * ErrCodeInsufficientEncryptionPolicyException "InsufficientEncryptionPolicyException" +// * InsufficientEncryptionPolicyException // This exception is thrown when the policy on the S3 bucket or KMS key is not // sufficient. // -// * ErrCodeTrailNotFoundException "TrailNotFoundException" +// * TrailNotFoundException // This exception is thrown when the trail with the given name is not found. // -// * ErrCodeInvalidS3BucketNameException "InvalidS3BucketNameException" +// * InvalidS3BucketNameException // This exception is thrown when the provided S3 bucket name is not valid. // -// * ErrCodeInvalidS3PrefixException "InvalidS3PrefixException" +// * InvalidS3PrefixException // This exception is thrown when the provided S3 prefix is not valid. // -// * ErrCodeInvalidSnsTopicNameException "InvalidSnsTopicNameException" +// * InvalidSnsTopicNameException // This exception is thrown when the provided SNS topic name is not valid. // -// * ErrCodeInvalidKmsKeyIdException "InvalidKmsKeyIdException" +// * InvalidKmsKeyIdException // This exception is thrown when the KMS key ARN is invalid. // -// * ErrCodeInvalidTrailNameException "InvalidTrailNameException" +// * InvalidTrailNameException // This exception is thrown when the provided trail name is not valid. Trail // names must meet the following requirements: // @@ -2410,10 +2410,10 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R // // * Not be in IP address format (for example, 192.168.5.4) // -// * ErrCodeTrailNotProvidedException "TrailNotProvidedException" +// * TrailNotProvidedException // This exception is no longer in use. // -// * ErrCodeInvalidEventSelectorsException "InvalidEventSelectorsException" +// * InvalidEventSelectorsException // This exception is thrown when the PutEventSelectors operation is called with // a number of event selectors or data resources that is not valid. The combination // of event selectors and data resources is not valid. A trail can have up to @@ -2434,64 +2434,64 @@ func (c *CloudTrail) UpdateTrailRequest(input *UpdateTrailInput) (req *request.R // * Specify a valid value for a parameter. For example, specifying the ReadWriteType // parameter with a value of read-only is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // This exception is thrown when the combination of parameters provided is not // valid. // -// * ErrCodeInvalidHomeRegionException "InvalidHomeRegionException" +// * InvalidHomeRegionException // This exception is thrown when an operation is called on a trail from a region // other than the region in which the trail was created. // -// * ErrCodeKmsKeyNotFoundException "KmsKeyNotFoundException" +// * KmsKeyNotFoundException // This exception is thrown when the KMS key does not exist, or when the S3 // bucket and the KMS key are not in the same region. // -// * ErrCodeKmsKeyDisabledException "KmsKeyDisabledException" +// * KmsKeyDisabledException // This exception is no longer in use. // -// * ErrCodeKmsException "KmsException" +// * KmsException // This exception is thrown when there is an issue with the specified KMS key // and the trail can’t be updated. // -// * ErrCodeInvalidCloudWatchLogsLogGroupArnException "InvalidCloudWatchLogsLogGroupArnException" +// * InvalidCloudWatchLogsLogGroupArnException // This exception is thrown when the provided CloudWatch log group is not valid. // -// * ErrCodeInvalidCloudWatchLogsRoleArnException "InvalidCloudWatchLogsRoleArnException" +// * InvalidCloudWatchLogsRoleArnException // This exception is thrown when the provided role is not valid. // -// * ErrCodeCloudWatchLogsDeliveryUnavailableException "CloudWatchLogsDeliveryUnavailableException" +// * CloudWatchLogsDeliveryUnavailableException // Cannot set a CloudWatch Logs delivery for this region. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // This exception is thrown when the requested operation is not supported. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This exception is thrown when the requested operation is not permitted. // -// * ErrCodeAccessNotEnabledException "CloudTrailAccessNotEnabledException" +// * AccessNotEnabledException // This exception is thrown when trusted access has not been enabled between // AWS CloudTrail and AWS Organizations. For more information, see Enabling // Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) // and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeInsufficientDependencyServiceAccessPermissionException "InsufficientDependencyServiceAccessPermissionException" +// * InsufficientDependencyServiceAccessPermissionException // This exception is thrown when the IAM user or role that is used to create // the organization trail is lacking one or more required permissions for creating // an organization trail in a required service. For more information, see Prepare // For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeOrganizationsNotInUseException "OrganizationsNotInUseException" +// * OrganizationsNotInUseException // This exception is thrown when the request is made from an AWS account that // is not a member of an organization. To make this request, sign in using the // credentials of an account that belongs to an organization. // -// * ErrCodeNotOrganizationMasterAccountException "NotOrganizationMasterAccountException" +// * NotOrganizationMasterAccountException // This exception is thrown when the AWS account making the request to create // or update an organization trail is not the master account for an organization // in AWS Organizations. For more information, see Prepare For Creating a Trail // For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). // -// * ErrCodeOrganizationNotInAllFeaturesModeException "OrganizationNotInAllFeaturesModeException" +// * OrganizationNotInAllFeaturesModeException // This exception is thrown when AWS Organizations is not configured to support // all features. All features must be enabled in AWS Organization to support // creating an organization trail. For more information, see Prepare For Creating @@ -2519,6 +2519,114 @@ func (c *CloudTrail) UpdateTrailWithContext(ctx aws.Context, input *UpdateTrailI return out, req.Send() } +// This exception is thrown when an operation is called with an invalid trail +// ARN. The format of a trail ARN is: +// +// arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail +type ARNInvalidException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ARNInvalidException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ARNInvalidException) GoString() string { + return s.String() +} + +func newErrorARNInvalidException(v protocol.ResponseMetadata) error { + return &ARNInvalidException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ARNInvalidException) Code() string { + return "CloudTrailARNInvalidException" +} + +// Message returns the exception's message. +func (s ARNInvalidException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ARNInvalidException) OrigErr() error { + return nil +} + +func (s ARNInvalidException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ARNInvalidException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ARNInvalidException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when trusted access has not been enabled between +// AWS CloudTrail and AWS Organizations. For more information, see Enabling +// Trusted Access with Other AWS Services (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_integrate_services.html) +// and Prepare For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +type AccessNotEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccessNotEnabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessNotEnabledException) GoString() string { + return s.String() +} + +func newErrorAccessNotEnabledException(v protocol.ResponseMetadata) error { + return &AccessNotEnabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessNotEnabledException) Code() string { + return "CloudTrailAccessNotEnabledException" +} + +// Message returns the exception's message. +func (s AccessNotEnabledException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessNotEnabledException) OrigErr() error { + return nil +} + +func (s AccessNotEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessNotEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessNotEnabledException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the tags to add to a trail. type AddTagsInput struct { _ struct{} `type:"structure"` @@ -2596,6 +2704,57 @@ func (s AddTagsOutput) GoString() string { return s.String() } +// Cannot set a CloudWatch Logs delivery for this region. +type CloudWatchLogsDeliveryUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CloudWatchLogsDeliveryUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudWatchLogsDeliveryUnavailableException) GoString() string { + return s.String() +} + +func newErrorCloudWatchLogsDeliveryUnavailableException(v protocol.ResponseMetadata) error { + return &CloudWatchLogsDeliveryUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudWatchLogsDeliveryUnavailableException) Code() string { + return "CloudWatchLogsDeliveryUnavailableException" +} + +// Message returns the exception's message. +func (s CloudWatchLogsDeliveryUnavailableException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudWatchLogsDeliveryUnavailableException) OrigErr() error { + return nil +} + +func (s CloudWatchLogsDeliveryUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudWatchLogsDeliveryUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudWatchLogsDeliveryUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the settings for each trail. type CreateTrailInput struct { _ struct{} `type:"structure"` @@ -3849,6 +4008,58 @@ func (s *GetTrailStatusOutput) SetTimeLoggingStopped(v string) *GetTrailStatusOu return s } +// If you run GetInsightSelectors on a trail that does not have Insights events +// enabled, the operation throws the exception InsightNotEnabledException. +type InsightNotEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InsightNotEnabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InsightNotEnabledException) GoString() string { + return s.String() +} + +func newErrorInsightNotEnabledException(v protocol.ResponseMetadata) error { + return &InsightNotEnabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InsightNotEnabledException) Code() string { + return "InsightNotEnabledException" +} + +// Message returns the exception's message. +func (s InsightNotEnabledException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsightNotEnabledException) OrigErr() error { + return nil +} + +func (s InsightNotEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InsightNotEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsightNotEnabledException) RequestID() string { + return s.respMetadata.RequestID +} + // A JSON string that contains a list of insight types that are logged on a // trail. type InsightSelector struct { @@ -3875,201 +4086,1523 @@ func (s *InsightSelector) SetInsightType(v string) *InsightSelector { return s } -// Requests the public keys for a specified time range. -type ListPublicKeysInput struct { - _ struct{} `type:"structure"` - - // Optionally specifies, in UTC, the end of the time range to look up public - // keys for CloudTrail digest files. If not specified, the current time is used. - EndTime *time.Time `type:"timestamp"` - - // Reserved for future use. - NextToken *string `type:"string"` - - // Optionally specifies, in UTC, the start of the time range to look up public - // keys for CloudTrail digest files. If not specified, the current time is used, - // and the current public key is returned. - StartTime *time.Time `type:"timestamp"` +// This exception is thrown when the IAM user or role that is used to create +// the organization trail is lacking one or more required permissions for creating +// an organization trail in a required service. For more information, see Prepare +// For Creating a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +type InsufficientDependencyServiceAccessPermissionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListPublicKeysInput) String() string { +func (s InsufficientDependencyServiceAccessPermissionException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPublicKeysInput) GoString() string { +func (s InsufficientDependencyServiceAccessPermissionException) GoString() string { return s.String() } -// SetEndTime sets the EndTime field's value. -func (s *ListPublicKeysInput) SetEndTime(v time.Time) *ListPublicKeysInput { - s.EndTime = &v - return s +func newErrorInsufficientDependencyServiceAccessPermissionException(v protocol.ResponseMetadata) error { + return &InsufficientDependencyServiceAccessPermissionException{ + respMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *ListPublicKeysInput) SetNextToken(v string) *ListPublicKeysInput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s InsufficientDependencyServiceAccessPermissionException) Code() string { + return "InsufficientDependencyServiceAccessPermissionException" } -// SetStartTime sets the StartTime field's value. -func (s *ListPublicKeysInput) SetStartTime(v time.Time) *ListPublicKeysInput { - s.StartTime = &v - return s +// Message returns the exception's message. +func (s InsufficientDependencyServiceAccessPermissionException) Message() string { + return "" } -// Returns the objects or data listed below if successful. Otherwise, returns -// an error. -type ListPublicKeysOutput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientDependencyServiceAccessPermissionException) OrigErr() error { + return nil +} - // Reserved for future use. - NextToken *string `type:"string"` +func (s InsufficientDependencyServiceAccessPermissionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Contains an array of PublicKey objects. - // - // The returned public keys may have validity time ranges that overlap. - PublicKeyList []*PublicKey `type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientDependencyServiceAccessPermissionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsufficientDependencyServiceAccessPermissionException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the policy on the S3 bucket or KMS key is not +// sufficient. +type InsufficientEncryptionPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListPublicKeysOutput) String() string { +func (s InsufficientEncryptionPolicyException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPublicKeysOutput) GoString() string { +func (s InsufficientEncryptionPolicyException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListPublicKeysOutput) SetNextToken(v string) *ListPublicKeysOutput { - s.NextToken = &v - return s +func newErrorInsufficientEncryptionPolicyException(v protocol.ResponseMetadata) error { + return &InsufficientEncryptionPolicyException{ + respMetadata: v, + } } -// SetPublicKeyList sets the PublicKeyList field's value. -func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput { - s.PublicKeyList = v - return s +// Code returns the exception type name. +func (s InsufficientEncryptionPolicyException) Code() string { + return "InsufficientEncryptionPolicyException" } -// Specifies a list of trail tags to return. -type ListTagsInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InsufficientEncryptionPolicyException) Message() string { + return "" +} - // Reserved for future use. - NextToken *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientEncryptionPolicyException) OrigErr() error { + return nil +} - // Specifies a list of trail ARNs whose tags will be listed. The list has a - // limit of 20 ARNs. The format of a trail ARN is: - // - // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail - // - // ResourceIdList is a required field - ResourceIdList []*string `type:"list" required:"true"` +func (s InsufficientEncryptionPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientEncryptionPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsufficientEncryptionPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the policy on the S3 bucket is not sufficient. +type InsufficientS3BucketPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsInput) String() string { +func (s InsufficientS3BucketPolicyException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsInput) GoString() string { +func (s InsufficientS3BucketPolicyException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} - if s.ResourceIdList == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceIdList")) +func newErrorInsufficientS3BucketPolicyException(v protocol.ResponseMetadata) error { + return &InsufficientS3BucketPolicyException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InsufficientS3BucketPolicyException) Code() string { + return "InsufficientS3BucketPolicyException" } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { - s.NextToken = &v - return s +// Message returns the exception's message. +func (s InsufficientS3BucketPolicyException) Message() string { + return "" } -// SetResourceIdList sets the ResourceIdList field's value. -func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput { - s.ResourceIdList = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientS3BucketPolicyException) OrigErr() error { + return nil } -// Returns the objects or data listed below if successful. Otherwise, returns -// an error. -type ListTagsOutput struct { - _ struct{} `type:"structure"` +func (s InsufficientS3BucketPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Reserved for future use. - NextToken *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientS3BucketPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} - // A list of resource tags. - ResourceTagList []*ResourceTag `type:"list"` +// RequestID returns the service's response RequestID for request. +func (s InsufficientS3BucketPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the policy on the SNS topic is not sufficient. +type InsufficientSnsTopicPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsOutput) String() string { +func (s InsufficientSnsTopicPolicyException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsOutput) GoString() string { +func (s InsufficientSnsTopicPolicyException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { - s.NextToken = &v - return s +func newErrorInsufficientSnsTopicPolicyException(v protocol.ResponseMetadata) error { + return &InsufficientSnsTopicPolicyException{ + respMetadata: v, + } } -// SetResourceTagList sets the ResourceTagList field's value. -func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput { - s.ResourceTagList = v - return s +// Code returns the exception type name. +func (s InsufficientSnsTopicPolicyException) Code() string { + return "InsufficientSnsTopicPolicyException" } -type ListTrailsInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InsufficientSnsTopicPolicyException) Message() string { + return "" +} - // The token to use to get the next page of results after a previous API call. - // This token must be passed in with the same parameters that were specified - // in the the original call. For example, if the original call specified an - // AttributeKey of 'Username' with a value of 'root', the call with NextToken - // should include those same parameters. - NextToken *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientSnsTopicPolicyException) OrigErr() error { + return nil +} + +func (s InsufficientSnsTopicPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientSnsTopicPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsufficientSnsTopicPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the provided CloudWatch log group is not valid. +type InvalidCloudWatchLogsLogGroupArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTrailsInput) String() string { +func (s InvalidCloudWatchLogsLogGroupArnException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTrailsInput) GoString() string { +func (s InvalidCloudWatchLogsLogGroupArnException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTrailsInput) SetNextToken(v string) *ListTrailsInput { - s.NextToken = &v - return s +func newErrorInvalidCloudWatchLogsLogGroupArnException(v protocol.ResponseMetadata) error { + return &InvalidCloudWatchLogsLogGroupArnException{ + respMetadata: v, + } } -type ListTrailsOutput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidCloudWatchLogsLogGroupArnException) Code() string { + return "InvalidCloudWatchLogsLogGroupArnException" +} + +// Message returns the exception's message. +func (s InvalidCloudWatchLogsLogGroupArnException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCloudWatchLogsLogGroupArnException) OrigErr() error { + return nil +} + +func (s InvalidCloudWatchLogsLogGroupArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCloudWatchLogsLogGroupArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCloudWatchLogsLogGroupArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the provided role is not valid. +type InvalidCloudWatchLogsRoleArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidCloudWatchLogsRoleArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCloudWatchLogsRoleArnException) GoString() string { + return s.String() +} + +func newErrorInvalidCloudWatchLogsRoleArnException(v protocol.ResponseMetadata) error { + return &InvalidCloudWatchLogsRoleArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCloudWatchLogsRoleArnException) Code() string { + return "InvalidCloudWatchLogsRoleArnException" +} + +// Message returns the exception's message. +func (s InvalidCloudWatchLogsRoleArnException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCloudWatchLogsRoleArnException) OrigErr() error { + return nil +} + +func (s InvalidCloudWatchLogsRoleArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCloudWatchLogsRoleArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCloudWatchLogsRoleArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// Occurs if an event category that is not valid is specified as a value of +// EventCategory. +type InvalidEventCategoryException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidEventCategoryException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEventCategoryException) GoString() string { + return s.String() +} + +func newErrorInvalidEventCategoryException(v protocol.ResponseMetadata) error { + return &InvalidEventCategoryException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEventCategoryException) Code() string { + return "InvalidEventCategoryException" +} + +// Message returns the exception's message. +func (s InvalidEventCategoryException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEventCategoryException) OrigErr() error { + return nil +} + +func (s InvalidEventCategoryException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEventCategoryException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEventCategoryException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the PutEventSelectors operation is called with +// a number of event selectors or data resources that is not valid. The combination +// of event selectors and data resources is not valid. A trail can have up to +// 5 event selectors. A trail is limited to 250 data resources. These data resources +// can be distributed across event selectors, but the overall total cannot exceed +// 250. +// +// You can: +// +// * Specify a valid number of event selectors (1 to 5) for a trail. +// +// * Specify a valid number of data resources (1 to 250) for an event selector. +// The limit of number of resources on an individual event selector is configurable +// up to 250. However, this upper limit is allowed only if the total number +// of data resources does not exceed 250 across all event selectors for a +// trail. +// +// * Specify a valid value for a parameter. For example, specifying the ReadWriteType +// parameter with a value of read-only is invalid. +type InvalidEventSelectorsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidEventSelectorsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEventSelectorsException) GoString() string { + return s.String() +} + +func newErrorInvalidEventSelectorsException(v protocol.ResponseMetadata) error { + return &InvalidEventSelectorsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEventSelectorsException) Code() string { + return "InvalidEventSelectorsException" +} + +// Message returns the exception's message. +func (s InvalidEventSelectorsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEventSelectorsException) OrigErr() error { + return nil +} + +func (s InvalidEventSelectorsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEventSelectorsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEventSelectorsException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when an operation is called on a trail from a region +// other than the region in which the trail was created. +type InvalidHomeRegionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidHomeRegionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidHomeRegionException) GoString() string { + return s.String() +} + +func newErrorInvalidHomeRegionException(v protocol.ResponseMetadata) error { + return &InvalidHomeRegionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidHomeRegionException) Code() string { + return "InvalidHomeRegionException" +} + +// Message returns the exception's message. +func (s InvalidHomeRegionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidHomeRegionException) OrigErr() error { + return nil +} + +func (s InvalidHomeRegionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidHomeRegionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidHomeRegionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The formatting or syntax of the InsightSelectors JSON statement in your PutInsightSelectors +// or GetInsightSelectors request is not valid, or the specified insight type +// in the InsightSelectors statement is not a valid insight type. +type InvalidInsightSelectorsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidInsightSelectorsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInsightSelectorsException) GoString() string { + return s.String() +} + +func newErrorInvalidInsightSelectorsException(v protocol.ResponseMetadata) error { + return &InvalidInsightSelectorsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInsightSelectorsException) Code() string { + return "InvalidInsightSelectorsException" +} + +// Message returns the exception's message. +func (s InvalidInsightSelectorsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInsightSelectorsException) OrigErr() error { + return nil +} + +func (s InvalidInsightSelectorsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInsightSelectorsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInsightSelectorsException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the KMS key ARN is invalid. +type InvalidKmsKeyIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidKmsKeyIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidKmsKeyIdException) GoString() string { + return s.String() +} + +func newErrorInvalidKmsKeyIdException(v protocol.ResponseMetadata) error { + return &InvalidKmsKeyIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidKmsKeyIdException) Code() string { + return "InvalidKmsKeyIdException" +} + +// Message returns the exception's message. +func (s InvalidKmsKeyIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidKmsKeyIdException) OrigErr() error { + return nil +} + +func (s InvalidKmsKeyIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidKmsKeyIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidKmsKeyIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// Occurs when an invalid lookup attribute is specified. +type InvalidLookupAttributesException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidLookupAttributesException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLookupAttributesException) GoString() string { + return s.String() +} + +func newErrorInvalidLookupAttributesException(v protocol.ResponseMetadata) error { + return &InvalidLookupAttributesException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLookupAttributesException) Code() string { + return "InvalidLookupAttributesException" +} + +// Message returns the exception's message. +func (s InvalidLookupAttributesException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLookupAttributesException) OrigErr() error { + return nil +} + +func (s InvalidLookupAttributesException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLookupAttributesException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLookupAttributesException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown if the limit specified is invalid. +type InvalidMaxResultsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidMaxResultsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidMaxResultsException) GoString() string { + return s.String() +} + +func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error { + return &InvalidMaxResultsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidMaxResultsException) Code() string { + return "InvalidMaxResultsException" +} + +// Message returns the exception's message. +func (s InvalidMaxResultsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMaxResultsException) OrigErr() error { + return nil +} + +func (s InvalidMaxResultsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMaxResultsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidMaxResultsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Invalid token or token that was previously used in a request with different +// parameters. This exception is thrown if the token is invalid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the combination of parameters provided is not +// valid. +type InvalidParameterCombinationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidParameterCombinationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterCombinationException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error { + return &InvalidParameterCombinationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterCombinationException) Code() string { + return "InvalidParameterCombinationException" +} + +// Message returns the exception's message. +func (s InvalidParameterCombinationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterCombinationException) OrigErr() error { + return nil +} + +func (s InvalidParameterCombinationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterCombinationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterCombinationException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the provided S3 bucket name is not valid. +type InvalidS3BucketNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidS3BucketNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidS3BucketNameException) GoString() string { + return s.String() +} + +func newErrorInvalidS3BucketNameException(v protocol.ResponseMetadata) error { + return &InvalidS3BucketNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidS3BucketNameException) Code() string { + return "InvalidS3BucketNameException" +} + +// Message returns the exception's message. +func (s InvalidS3BucketNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidS3BucketNameException) OrigErr() error { + return nil +} + +func (s InvalidS3BucketNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidS3BucketNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidS3BucketNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the provided S3 prefix is not valid. +type InvalidS3PrefixException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidS3PrefixException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidS3PrefixException) GoString() string { + return s.String() +} + +func newErrorInvalidS3PrefixException(v protocol.ResponseMetadata) error { + return &InvalidS3PrefixException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidS3PrefixException) Code() string { + return "InvalidS3PrefixException" +} + +// Message returns the exception's message. +func (s InvalidS3PrefixException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidS3PrefixException) OrigErr() error { + return nil +} + +func (s InvalidS3PrefixException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidS3PrefixException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidS3PrefixException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the provided SNS topic name is not valid. +type InvalidSnsTopicNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidSnsTopicNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSnsTopicNameException) GoString() string { + return s.String() +} + +func newErrorInvalidSnsTopicNameException(v protocol.ResponseMetadata) error { + return &InvalidSnsTopicNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSnsTopicNameException) Code() string { + return "InvalidSnsTopicNameException" +} + +// Message returns the exception's message. +func (s InvalidSnsTopicNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSnsTopicNameException) OrigErr() error { + return nil +} + +func (s InvalidSnsTopicNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSnsTopicNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSnsTopicNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the specified tag key or values are not valid. +// It can also occur if there are duplicate tags or too many tags on the resource. +type InvalidTagParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidTagParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidTagParameterException(v protocol.ResponseMetadata) error { + return &InvalidTagParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTagParameterException) Code() string { + return "InvalidTagParameterException" +} + +// Message returns the exception's message. +func (s InvalidTagParameterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagParameterException) OrigErr() error { + return nil +} + +func (s InvalidTagParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// Occurs if the timestamp values are invalid. Either the start time occurs +// after the end time or the time range is outside the range of possible values. +type InvalidTimeRangeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidTimeRangeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTimeRangeException) GoString() string { + return s.String() +} + +func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error { + return &InvalidTimeRangeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTimeRangeException) Code() string { + return "InvalidTimeRangeException" +} + +// Message returns the exception's message. +func (s InvalidTimeRangeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTimeRangeException) OrigErr() error { + return nil +} + +func (s InvalidTimeRangeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTimeRangeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTimeRangeException) RequestID() string { + return s.respMetadata.RequestID +} + +// Reserved for future use. +type InvalidTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidTokenException(v protocol.ResponseMetadata) error { + return &InvalidTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTokenException) Code() string { + return "InvalidTokenException" +} + +// Message returns the exception's message. +func (s InvalidTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTokenException) OrigErr() error { + return nil +} + +func (s InvalidTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the provided trail name is not valid. Trail +// names must meet the following requirements: +// +// * Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores +// (_), or dashes (-) +// +// * Start with a letter or number, and end with a letter or number +// +// * Be between 3 and 128 characters +// +// * Have no adjacent periods, underscores or dashes. Names like my-_namespace +// and my--namespace are invalid. +// +// * Not be in IP address format (for example, 192.168.5.4) +type InvalidTrailNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidTrailNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTrailNameException) GoString() string { + return s.String() +} + +func newErrorInvalidTrailNameException(v protocol.ResponseMetadata) error { + return &InvalidTrailNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTrailNameException) Code() string { + return "InvalidTrailNameException" +} + +// Message returns the exception's message. +func (s InvalidTrailNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTrailNameException) OrigErr() error { + return nil +} + +func (s InvalidTrailNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTrailNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTrailNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when there is an issue with the specified KMS key +// and the trail can’t be updated. +type KmsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s KmsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KmsException) GoString() string { + return s.String() +} + +func newErrorKmsException(v protocol.ResponseMetadata) error { + return &KmsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KmsException) Code() string { + return "KmsException" +} + +// Message returns the exception's message. +func (s KmsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KmsException) OrigErr() error { + return nil +} + +func (s KmsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KmsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KmsException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is no longer in use. +// +// Deprecated: KmsKeyDisabledException has been deprecated +type KmsKeyDisabledException struct { + _ struct{} `deprecated:"true" type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s KmsKeyDisabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KmsKeyDisabledException) GoString() string { + return s.String() +} + +func newErrorKmsKeyDisabledException(v protocol.ResponseMetadata) error { + return &KmsKeyDisabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KmsKeyDisabledException) Code() string { + return "KmsKeyDisabledException" +} + +// Message returns the exception's message. +func (s KmsKeyDisabledException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KmsKeyDisabledException) OrigErr() error { + return nil +} + +func (s KmsKeyDisabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KmsKeyDisabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KmsKeyDisabledException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the KMS key does not exist, or when the S3 +// bucket and the KMS key are not in the same region. +type KmsKeyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s KmsKeyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KmsKeyNotFoundException) GoString() string { + return s.String() +} + +func newErrorKmsKeyNotFoundException(v protocol.ResponseMetadata) error { + return &KmsKeyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KmsKeyNotFoundException) Code() string { + return "KmsKeyNotFoundException" +} + +// Message returns the exception's message. +func (s KmsKeyNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KmsKeyNotFoundException) OrigErr() error { + return nil +} + +func (s KmsKeyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KmsKeyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KmsKeyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Requests the public keys for a specified time range. +type ListPublicKeysInput struct { + _ struct{} `type:"structure"` + + // Optionally specifies, in UTC, the end of the time range to look up public + // keys for CloudTrail digest files. If not specified, the current time is used. + EndTime *time.Time `type:"timestamp"` + + // Reserved for future use. + NextToken *string `type:"string"` + + // Optionally specifies, in UTC, the start of the time range to look up public + // keys for CloudTrail digest files. If not specified, the current time is used, + // and the current public key is returned. + StartTime *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s ListPublicKeysInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPublicKeysInput) GoString() string { + return s.String() +} + +// SetEndTime sets the EndTime field's value. +func (s *ListPublicKeysInput) SetEndTime(v time.Time) *ListPublicKeysInput { + s.EndTime = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPublicKeysInput) SetNextToken(v string) *ListPublicKeysInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *ListPublicKeysInput) SetStartTime(v time.Time) *ListPublicKeysInput { + s.StartTime = &v + return s +} + +// Returns the objects or data listed below if successful. Otherwise, returns +// an error. +type ListPublicKeysOutput struct { + _ struct{} `type:"structure"` + + // Reserved for future use. + NextToken *string `type:"string"` + + // Contains an array of PublicKey objects. + // + // The returned public keys may have validity time ranges that overlap. + PublicKeyList []*PublicKey `type:"list"` +} + +// String returns the string representation +func (s ListPublicKeysOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListPublicKeysOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPublicKeysOutput) SetNextToken(v string) *ListPublicKeysOutput { + s.NextToken = &v + return s +} + +// SetPublicKeyList sets the PublicKeyList field's value. +func (s *ListPublicKeysOutput) SetPublicKeyList(v []*PublicKey) *ListPublicKeysOutput { + s.PublicKeyList = v + return s +} + +// Specifies a list of trail tags to return. +type ListTagsInput struct { + _ struct{} `type:"structure"` + + // Reserved for future use. + NextToken *string `type:"string"` + + // Specifies a list of trail ARNs whose tags will be listed. The list has a + // limit of 20 ARNs. The format of a trail ARN is: + // + // arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail + // + // ResourceIdList is a required field + ResourceIdList []*string `type:"list" required:"true"` +} + +// String returns the string representation +func (s ListTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} + if s.ResourceIdList == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceIdList")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { + s.NextToken = &v + return s +} + +// SetResourceIdList sets the ResourceIdList field's value. +func (s *ListTagsInput) SetResourceIdList(v []*string) *ListTagsInput { + s.ResourceIdList = v + return s +} + +// Returns the objects or data listed below if successful. Otherwise, returns +// an error. +type ListTagsOutput struct { + _ struct{} `type:"structure"` + + // Reserved for future use. + NextToken *string `type:"string"` + + // A list of resource tags. + ResourceTagList []*ResourceTag `type:"list"` +} + +// String returns the string representation +func (s ListTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { + s.NextToken = &v + return s +} + +// SetResourceTagList sets the ResourceTagList field's value. +func (s *ListTagsOutput) SetResourceTagList(v []*ResourceTag) *ListTagsOutput { + s.ResourceTagList = v + return s +} + +type ListTrailsInput struct { + _ struct{} `type:"structure"` + + // The token to use to get the next page of results after a previous API call. + // This token must be passed in with the same parameters that were specified + // in the the original call. For example, if the original call specified an + // AttributeKey of 'Username' with a value of 'root', the call with NextToken + // should include those same parameters. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s ListTrailsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTrailsInput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTrailsInput) SetNextToken(v string) *ListTrailsInput { + s.NextToken = &v + return s +} + +type ListTrailsOutput struct { + _ struct{} `type:"structure"` // The token to use to get the next page of results after a previous API call. // If the token does not appear, there are no more results to return. The token @@ -4250,55 +5783,318 @@ func (s *LookupEventsInput) SetMaxResults(v int64) *LookupEventsInput { return s } -// SetNextToken sets the NextToken field's value. -func (s *LookupEventsInput) SetNextToken(v string) *LookupEventsInput { - s.NextToken = &v - return s +// SetNextToken sets the NextToken field's value. +func (s *LookupEventsInput) SetNextToken(v string) *LookupEventsInput { + s.NextToken = &v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *LookupEventsInput) SetStartTime(v time.Time) *LookupEventsInput { + s.StartTime = &v + return s +} + +// Contains a response to a LookupEvents action. +type LookupEventsOutput struct { + _ struct{} `type:"structure"` + + // A list of events returned based on the lookup attributes specified and the + // CloudTrail event. The events list is sorted by time. The most recent event + // is listed first. + Events []*Event `type:"list"` + + // The token to use to get the next page of results after a previous API call. + // If the token does not appear, there are no more results to return. The token + // must be passed in with the same parameters as the previous call. For example, + // if the original call specified an AttributeKey of 'Username' with a value + // of 'root', the call with NextToken should include those same parameters. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s LookupEventsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LookupEventsOutput) GoString() string { + return s.String() +} + +// SetEvents sets the Events field's value. +func (s *LookupEventsOutput) SetEvents(v []*Event) *LookupEventsOutput { + s.Events = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *LookupEventsOutput) SetNextToken(v string) *LookupEventsOutput { + s.NextToken = &v + return s +} + +// This exception is thrown when the maximum number of trails is reached. +type MaximumNumberOfTrailsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaximumNumberOfTrailsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaximumNumberOfTrailsExceededException) GoString() string { + return s.String() +} + +func newErrorMaximumNumberOfTrailsExceededException(v protocol.ResponseMetadata) error { + return &MaximumNumberOfTrailsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaximumNumberOfTrailsExceededException) Code() string { + return "MaximumNumberOfTrailsExceededException" +} + +// Message returns the exception's message. +func (s MaximumNumberOfTrailsExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumNumberOfTrailsExceededException) OrigErr() error { + return nil +} + +func (s MaximumNumberOfTrailsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaximumNumberOfTrailsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaximumNumberOfTrailsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the AWS account making the request to create +// or update an organization trail is not the master account for an organization +// in AWS Organizations. For more information, see Prepare For Creating a Trail +// For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +type NotOrganizationMasterAccountException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NotOrganizationMasterAccountException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotOrganizationMasterAccountException) GoString() string { + return s.String() +} + +func newErrorNotOrganizationMasterAccountException(v protocol.ResponseMetadata) error { + return &NotOrganizationMasterAccountException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotOrganizationMasterAccountException) Code() string { + return "NotOrganizationMasterAccountException" +} + +// Message returns the exception's message. +func (s NotOrganizationMasterAccountException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotOrganizationMasterAccountException) OrigErr() error { + return nil +} + +func (s NotOrganizationMasterAccountException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotOrganizationMasterAccountException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotOrganizationMasterAccountException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the requested operation is not permitted. +type OperationNotPermittedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OperationNotPermittedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotPermittedException) GoString() string { + return s.String() +} + +func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error { + return &OperationNotPermittedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotPermittedException) Code() string { + return "OperationNotPermittedException" +} + +// Message returns the exception's message. +func (s OperationNotPermittedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotPermittedException) OrigErr() error { + return nil +} + +func (s OperationNotPermittedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotPermittedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotPermittedException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when AWS Organizations is not configured to support +// all features. All features must be enabled in AWS Organization to support +// creating an organization trail. For more information, see Prepare For Creating +// a Trail For Your Organization (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-an-organizational-trail-prepare.html). +type OrganizationNotInAllFeaturesModeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OrganizationNotInAllFeaturesModeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationNotInAllFeaturesModeException) GoString() string { + return s.String() +} + +func newErrorOrganizationNotInAllFeaturesModeException(v protocol.ResponseMetadata) error { + return &OrganizationNotInAllFeaturesModeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationNotInAllFeaturesModeException) Code() string { + return "OrganizationNotInAllFeaturesModeException" +} + +// Message returns the exception's message. +func (s OrganizationNotInAllFeaturesModeException) Message() string { + return "" } -// SetStartTime sets the StartTime field's value. -func (s *LookupEventsInput) SetStartTime(v time.Time) *LookupEventsInput { - s.StartTime = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationNotInAllFeaturesModeException) OrigErr() error { + return nil } -// Contains a response to a LookupEvents action. -type LookupEventsOutput struct { - _ struct{} `type:"structure"` +func (s OrganizationNotInAllFeaturesModeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A list of events returned based on the lookup attributes specified and the - // CloudTrail event. The events list is sorted by time. The most recent event - // is listed first. - Events []*Event `type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationNotInAllFeaturesModeException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The token to use to get the next page of results after a previous API call. - // If the token does not appear, there are no more results to return. The token - // must be passed in with the same parameters as the previous call. For example, - // if the original call specified an AttributeKey of 'Username' with a value - // of 'root', the call with NextToken should include those same parameters. - NextToken *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s OrganizationNotInAllFeaturesModeException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the request is made from an AWS account that +// is not a member of an organization. To make this request, sign in using the +// credentials of an account that belongs to an organization. +type OrganizationsNotInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s LookupEventsOutput) String() string { +func (s OrganizationsNotInUseException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LookupEventsOutput) GoString() string { +func (s OrganizationsNotInUseException) GoString() string { return s.String() } -// SetEvents sets the Events field's value. -func (s *LookupEventsOutput) SetEvents(v []*Event) *LookupEventsOutput { - s.Events = v - return s +func newErrorOrganizationsNotInUseException(v protocol.ResponseMetadata) error { + return &OrganizationsNotInUseException{ + respMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *LookupEventsOutput) SetNextToken(v string) *LookupEventsOutput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s OrganizationsNotInUseException) Code() string { + return "OrganizationsNotInUseException" +} + +// Message returns the exception's message. +func (s OrganizationsNotInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationsNotInUseException) OrigErr() error { + return nil +} + +func (s OrganizationsNotInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationsNotInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationsNotInUseException) RequestID() string { + return s.respMetadata.RequestID } // Contains information about a returned public key. @@ -4664,6 +6460,57 @@ func (s *Resource) SetResourceType(v string) *Resource { return s } +// This exception is thrown when the specified resource is not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A resource tag. type ResourceTag struct { _ struct{} `type:"structure"` @@ -4697,6 +6544,109 @@ func (s *ResourceTag) SetTagsList(v []*Tag) *ResourceTag { return s } +// This exception is thrown when the specified resource type is not supported +// by CloudTrail. +type ResourceTypeNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceTypeNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceTypeNotSupportedException) GoString() string { + return s.String() +} + +func newErrorResourceTypeNotSupportedException(v protocol.ResponseMetadata) error { + return &ResourceTypeNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceTypeNotSupportedException) Code() string { + return "ResourceTypeNotSupportedException" +} + +// Message returns the exception's message. +func (s ResourceTypeNotSupportedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceTypeNotSupportedException) OrigErr() error { + return nil +} + +func (s ResourceTypeNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceTypeNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceTypeNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the specified S3 bucket does not exist. +type S3BucketDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s S3BucketDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s S3BucketDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorS3BucketDoesNotExistException(v protocol.ResponseMetadata) error { + return &S3BucketDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s S3BucketDoesNotExistException) Code() string { + return "S3BucketDoesNotExistException" +} + +// Message returns the exception's message. +func (s S3BucketDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s S3BucketDoesNotExistException) OrigErr() error { + return nil +} + +func (s S3BucketDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s S3BucketDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s S3BucketDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + // The request to CloudTrail to start logging AWS API calls for an account. type StartLoggingInput struct { _ struct{} `type:"structure"` @@ -4864,6 +6814,58 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// The number of tags per trail has exceeded the permitted amount. Currently, +// the limit is 50. +type TagsLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagsLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagsLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTagsLimitExceededException(v protocol.ResponseMetadata) error { + return &TagsLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagsLimitExceededException) Code() string { + return "TagsLimitExceededException" +} + +// Message returns the exception's message. +func (s TagsLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagsLimitExceededException) OrigErr() error { + return nil +} + +func (s TagsLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagsLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagsLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The settings for a trail. type Trail struct { _ struct{} `type:"structure"` @@ -5041,6 +7043,57 @@ func (s *Trail) SetTrailARN(v string) *Trail { return s } +// This exception is thrown when the specified trail already exists. +type TrailAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TrailAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TrailAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorTrailAlreadyExistsException(v protocol.ResponseMetadata) error { + return &TrailAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TrailAlreadyExistsException) Code() string { + return "TrailAlreadyExistsException" +} + +// Message returns the exception's message. +func (s TrailAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TrailAlreadyExistsException) OrigErr() error { + return nil +} + +func (s TrailAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TrailAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TrailAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a CloudTrail trail, including the trail's name, home region, // and Amazon Resource Name (ARN). type TrailInfo struct { @@ -5084,6 +7137,159 @@ func (s *TrailInfo) SetTrailARN(v string) *TrailInfo { return s } +// This exception is thrown when the trail with the given name is not found. +type TrailNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TrailNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TrailNotFoundException) GoString() string { + return s.String() +} + +func newErrorTrailNotFoundException(v protocol.ResponseMetadata) error { + return &TrailNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TrailNotFoundException) Code() string { + return "TrailNotFoundException" +} + +// Message returns the exception's message. +func (s TrailNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TrailNotFoundException) OrigErr() error { + return nil +} + +func (s TrailNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TrailNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TrailNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is no longer in use. +type TrailNotProvidedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TrailNotProvidedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TrailNotProvidedException) GoString() string { + return s.String() +} + +func newErrorTrailNotProvidedException(v protocol.ResponseMetadata) error { + return &TrailNotProvidedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TrailNotProvidedException) Code() string { + return "TrailNotProvidedException" +} + +// Message returns the exception's message. +func (s TrailNotProvidedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TrailNotProvidedException) OrigErr() error { + return nil +} + +func (s TrailNotProvidedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TrailNotProvidedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TrailNotProvidedException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the requested operation is not supported. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s UnsupportedOperationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies settings to update for the trail. type UpdateTrailInput struct { _ struct{} `type:"structure"` diff --git a/service/cloudtrail/errors.go b/service/cloudtrail/errors.go index 87a183cd226..5feef21ae67 100644 --- a/service/cloudtrail/errors.go +++ b/service/cloudtrail/errors.go @@ -2,6 +2,10 @@ package cloudtrail +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeARNInvalidException for service response error code @@ -318,3 +322,48 @@ const ( // This exception is thrown when the requested operation is not supported. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CloudTrailARNInvalidException": newErrorARNInvalidException, + "CloudTrailAccessNotEnabledException": newErrorAccessNotEnabledException, + "CloudWatchLogsDeliveryUnavailableException": newErrorCloudWatchLogsDeliveryUnavailableException, + "InsightNotEnabledException": newErrorInsightNotEnabledException, + "InsufficientDependencyServiceAccessPermissionException": newErrorInsufficientDependencyServiceAccessPermissionException, + "InsufficientEncryptionPolicyException": newErrorInsufficientEncryptionPolicyException, + "InsufficientS3BucketPolicyException": newErrorInsufficientS3BucketPolicyException, + "InsufficientSnsTopicPolicyException": newErrorInsufficientSnsTopicPolicyException, + "InvalidCloudWatchLogsLogGroupArnException": newErrorInvalidCloudWatchLogsLogGroupArnException, + "InvalidCloudWatchLogsRoleArnException": newErrorInvalidCloudWatchLogsRoleArnException, + "InvalidEventCategoryException": newErrorInvalidEventCategoryException, + "InvalidEventSelectorsException": newErrorInvalidEventSelectorsException, + "InvalidHomeRegionException": newErrorInvalidHomeRegionException, + "InvalidInsightSelectorsException": newErrorInvalidInsightSelectorsException, + "InvalidKmsKeyIdException": newErrorInvalidKmsKeyIdException, + "InvalidLookupAttributesException": newErrorInvalidLookupAttributesException, + "InvalidMaxResultsException": newErrorInvalidMaxResultsException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterCombinationException": newErrorInvalidParameterCombinationException, + "InvalidS3BucketNameException": newErrorInvalidS3BucketNameException, + "InvalidS3PrefixException": newErrorInvalidS3PrefixException, + "InvalidSnsTopicNameException": newErrorInvalidSnsTopicNameException, + "InvalidTagParameterException": newErrorInvalidTagParameterException, + "InvalidTimeRangeException": newErrorInvalidTimeRangeException, + "InvalidTokenException": newErrorInvalidTokenException, + "InvalidTrailNameException": newErrorInvalidTrailNameException, + "KmsException": newErrorKmsException, + "KmsKeyDisabledException": newErrorKmsKeyDisabledException, + "KmsKeyNotFoundException": newErrorKmsKeyNotFoundException, + "MaximumNumberOfTrailsExceededException": newErrorMaximumNumberOfTrailsExceededException, + "NotOrganizationMasterAccountException": newErrorNotOrganizationMasterAccountException, + "OperationNotPermittedException": newErrorOperationNotPermittedException, + "OrganizationNotInAllFeaturesModeException": newErrorOrganizationNotInAllFeaturesModeException, + "OrganizationsNotInUseException": newErrorOrganizationsNotInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceTypeNotSupportedException": newErrorResourceTypeNotSupportedException, + "S3BucketDoesNotExistException": newErrorS3BucketDoesNotExistException, + "TagsLimitExceededException": newErrorTagsLimitExceededException, + "TrailAlreadyExistsException": newErrorTrailAlreadyExistsException, + "TrailNotFoundException": newErrorTrailNotFoundException, + "TrailNotProvidedException": newErrorTrailNotProvidedException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, +} diff --git a/service/cloudtrail/service.go b/service/cloudtrail/service.go index e6035e679e8..fece8a618aa 100644 --- a/service/cloudtrail/service.go +++ b/service/cloudtrail/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cloudwatchevents/api.go b/service/cloudwatchevents/api.go index 99b12487c2b..cf10dcf489d 100644 --- a/service/cloudwatchevents/api.go +++ b/service/cloudwatchevents/api.go @@ -70,14 +70,14 @@ func (c *CloudWatchEvents) ActivateEventSourceRequest(input *ActivateEventSource // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ActivateEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The specified state isn't a valid state for an event source. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ActivateEventSource @@ -160,23 +160,23 @@ func (c *CloudWatchEvents) CreateEventBusRequest(input *CreateEventBusInput) (re // See the AWS API reference guide for Amazon CloudWatch Events's // API operation CreateEventBus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource that you're trying to create already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The specified state isn't a valid state for an event source. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreateEventBus @@ -282,17 +282,17 @@ func (c *CloudWatchEvents) CreatePartnerEventSourceRequest(input *CreatePartnerE // See the AWS API reference guide for Amazon CloudWatch Events's // API operation CreatePartnerEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource that you're trying to create already exists. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/CreatePartnerEventSource @@ -377,14 +377,14 @@ func (c *CloudWatchEvents) DeactivateEventSourceRequest(input *DeactivateEventSo // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DeactivateEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The specified state isn't a valid state for an event source. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeactivateEventSource @@ -467,8 +467,8 @@ func (c *CloudWatchEvents) DeleteEventBusRequest(input *DeleteEventBusInput) (re // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DeleteEventBus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteEventBus @@ -551,8 +551,8 @@ func (c *CloudWatchEvents) DeletePartnerEventSourceRequest(input *DeletePartnerE // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DeletePartnerEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeletePartnerEventSource @@ -642,21 +642,21 @@ func (c *CloudWatchEvents) DeleteRuleRequest(input *DeleteRuleInput) (req *reque // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DeleteRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DeleteRule @@ -742,11 +742,11 @@ func (c *CloudWatchEvents) DescribeEventBusRequest(input *DescribeEventBusInput) // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DescribeEventBus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventBus @@ -827,11 +827,11 @@ func (c *CloudWatchEvents) DescribeEventSourceRequest(input *DescribeEventSource // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DescribeEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeEventSource @@ -913,11 +913,11 @@ func (c *CloudWatchEvents) DescribePartnerEventSourceRequest(input *DescribePart // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DescribePartnerEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribePartnerEventSource @@ -998,11 +998,11 @@ func (c *CloudWatchEvents) DescribeRuleRequest(input *DescribeRuleInput) (req *r // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DescribeRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DescribeRule @@ -1085,21 +1085,21 @@ func (c *CloudWatchEvents) DisableRuleRequest(input *DisableRuleInput) (req *req // See the AWS API reference guide for Amazon CloudWatch Events's // API operation DisableRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/DisableRule @@ -1182,21 +1182,21 @@ func (c *CloudWatchEvents) EnableRuleRequest(input *EnableRuleInput) (req *reque // See the AWS API reference guide for Amazon CloudWatch Events's // API operation EnableRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/EnableRule @@ -1277,8 +1277,8 @@ func (c *CloudWatchEvents) ListEventBusesRequest(input *ListEventBusesInput) (re // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListEventBuses for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventBuses @@ -1360,8 +1360,8 @@ func (c *CloudWatchEvents) ListEventSourcesRequest(input *ListEventSourcesInput) // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListEventSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListEventSources @@ -1442,11 +1442,11 @@ func (c *CloudWatchEvents) ListPartnerEventSourceAccountsRequest(input *ListPart // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListPartnerEventSourceAccounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSourceAccounts @@ -1527,8 +1527,8 @@ func (c *CloudWatchEvents) ListPartnerEventSourcesRequest(input *ListPartnerEven // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListPartnerEventSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListPartnerEventSources @@ -1607,11 +1607,11 @@ func (c *CloudWatchEvents) ListRuleNamesByTargetRequest(input *ListRuleNamesByTa // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListRuleNamesByTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRuleNamesByTarget @@ -1693,11 +1693,11 @@ func (c *CloudWatchEvents) ListRulesRequest(input *ListRulesInput) (req *request // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules @@ -1776,11 +1776,11 @@ func (c *CloudWatchEvents) ListTagsForResourceRequest(input *ListTagsForResource // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTagsForResource @@ -1858,11 +1858,11 @@ func (c *CloudWatchEvents) ListTargetsByRuleRequest(input *ListTargetsByRuleInpu // See the AWS API reference guide for Amazon CloudWatch Events's // API operation ListTargetsByRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListTargetsByRule @@ -1941,8 +1941,8 @@ func (c *CloudWatchEvents) PutEventsRequest(input *PutEventsInput) (req *request // See the AWS API reference guide for Amazon CloudWatch Events's // API operation PutEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents @@ -2024,8 +2024,8 @@ func (c *CloudWatchEvents) PutPartnerEventsRequest(input *PutPartnerEventsInput) // See the AWS API reference guide for Amazon CloudWatch Events's // API operation PutPartnerEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEvents @@ -2123,17 +2123,17 @@ func (c *CloudWatchEvents) PutPermissionRequest(input *PutPermissionInput) (req // See the AWS API reference guide for Amazon CloudWatch Events's // API operation PutPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" +// * PolicyLengthExceededException // The event bus policy is too long. For more information, see the limits. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPermission @@ -2264,27 +2264,27 @@ func (c *CloudWatchEvents) PutRuleRequest(input *PutRuleInput) (req *request.Req // See the AWS API reference guide for Amazon CloudWatch Events's // API operation PutRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidEventPatternException "InvalidEventPatternException" +// Returned Error Types: +// * InvalidEventPatternException // The event pattern isn't valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutRule @@ -2464,24 +2464,24 @@ func (c *CloudWatchEvents) PutTargetsRequest(input *PutTargetsInput) (req *reque // See the AWS API reference guide for Amazon CloudWatch Events's // API operation PutTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargets @@ -2563,14 +2563,14 @@ func (c *CloudWatchEvents) RemovePermissionRequest(input *RemovePermissionInput) // See the AWS API reference guide for Amazon CloudWatch Events's // API operation RemovePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemovePermission @@ -2658,21 +2658,21 @@ func (c *CloudWatchEvents) RemoveTargetsRequest(input *RemoveTargetsInput) (req // See the AWS API reference guide for Amazon CloudWatch Events's // API operation RemoveTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/RemoveTargets @@ -2766,17 +2766,17 @@ func (c *CloudWatchEvents) TagResourceRequest(input *TagResourceInput) (req *req // See the AWS API reference guide for Amazon CloudWatch Events's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove @@ -2864,11 +2864,11 @@ func (c *CloudWatchEvents) TestEventPatternRequest(input *TestEventPatternInput) // See the AWS API reference guide for Amazon CloudWatch Events's // API operation TestEventPattern for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidEventPatternException "InvalidEventPatternException" +// Returned Error Types: +// * InvalidEventPatternException // The event pattern isn't valid. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/TestEventPattern @@ -2948,17 +2948,17 @@ func (c *CloudWatchEvents) UntagResourceRequest(input *UntagResourceInput) (req // See the AWS API reference guide for Amazon CloudWatch Events's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove @@ -3241,6 +3241,57 @@ func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy { return s } +// There is concurrent modification on a resource. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // A JSON string that you can use to limit the event bus permissions that you're // granting to only accounts that fulfill the condition. Currently, the only // supported condition is membership in a certain AWS organization. The string @@ -4632,6 +4683,159 @@ func (s *InputTransformer) SetInputTemplate(v string) *InputTransformer { return s } +// This exception occurs due to unexpected causes. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// The event pattern isn't valid. +type InvalidEventPatternException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidEventPatternException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEventPatternException) GoString() string { + return s.String() +} + +func newErrorInvalidEventPatternException(v protocol.ResponseMetadata) error { + return &InvalidEventPatternException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEventPatternException) Code() string { + return "InvalidEventPatternException" +} + +// Message returns the exception's message. +func (s InvalidEventPatternException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEventPatternException) OrigErr() error { + return nil +} + +func (s InvalidEventPatternException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEventPatternException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEventPatternException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified state isn't a valid state for an event source. +type InvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateException) GoString() string { + return s.String() +} + +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateException) Code() string { + return "InvalidStateException" +} + +// Message returns the exception's message. +func (s InvalidStateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateException) OrigErr() error { + return nil +} + +func (s InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + // This object enables you to specify a JSON path to extract from the event // and use as the partition key for the Amazon Kinesis data stream so that you // can control the shard that the event goes to. If you don't include this parameter, @@ -4676,6 +4880,57 @@ func (s *KinesisParameters) SetPartitionKeyPath(v string) *KinesisParameters { return s } +// You tried to create more resources than is allowed. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListEventBusesInput struct { _ struct{} `type:"structure"` @@ -5463,6 +5718,61 @@ func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutp return s } +// An AWS service created this rule on behalf of your account. That service +// manages it. If you see this error in response to DeleteRule or RemoveTargets, +// you can use the Force parameter in those calls to delete the rule or remove +// targets from the rule. You can't modify these managed rules by using DisableRule, +// EnableRule, PutTargets, PutRule, TagResource, or UntagResource. +type ManagedRuleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ManagedRuleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ManagedRuleException) GoString() string { + return s.String() +} + +func newErrorManagedRuleException(v protocol.ResponseMetadata) error { + return &ManagedRuleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ManagedRuleException) Code() string { + return "ManagedRuleException" +} + +// Message returns the exception's message. +func (s ManagedRuleException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ManagedRuleException) OrigErr() error { + return nil +} + +func (s ManagedRuleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ManagedRuleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ManagedRuleException) RequestID() string { + return s.respMetadata.RequestID +} + // This structure specifies the network configuration for an ECS task. type NetworkConfiguration struct { _ struct{} `type:"structure"` @@ -5595,6 +5905,57 @@ func (s *PartnerEventSourceAccount) SetState(v string) *PartnerEventSourceAccoun return s } +// The event bus policy is too long. For more information, see the limits. +type PolicyLengthExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PolicyLengthExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyLengthExceededException) GoString() string { + return s.String() +} + +func newErrorPolicyLengthExceededException(v protocol.ResponseMetadata) error { + return &PolicyLengthExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyLengthExceededException) Code() string { + return "PolicyLengthExceededException" +} + +// Message returns the exception's message. +func (s PolicyLengthExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyLengthExceededException) OrigErr() error { + return nil +} + +func (s PolicyLengthExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyLengthExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyLengthExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type PutEventsInput struct { _ struct{} `type:"structure"` @@ -6656,6 +7017,108 @@ func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEnt return s } +// The resource that you're trying to create already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// An entity that you specified doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a rule in Amazon EventBridge. type Rule struct { _ struct{} `type:"structure"` diff --git a/service/cloudwatchevents/errors.go b/service/cloudwatchevents/errors.go index 24efbdc1643..64166ae623f 100644 --- a/service/cloudwatchevents/errors.go +++ b/service/cloudwatchevents/errors.go @@ -2,6 +2,10 @@ package cloudwatchevents +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -62,3 +66,15 @@ const ( // An entity that you specified doesn't exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InternalException": newErrorInternalException, + "InvalidEventPatternException": newErrorInvalidEventPatternException, + "InvalidStateException": newErrorInvalidStateException, + "LimitExceededException": newErrorLimitExceededException, + "ManagedRuleException": newErrorManagedRuleException, + "PolicyLengthExceededException": newErrorPolicyLengthExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/cloudwatchevents/service.go b/service/cloudwatchevents/service.go index 32abf833e37..b52dda40fa6 100644 --- a/service/cloudwatchevents/service.go +++ b/service/cloudwatchevents/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cloudwatchlogs/api.go b/service/cloudwatchlogs/api.go index c55e6f420ac..1739a974a44 100644 --- a/service/cloudwatchlogs/api.go +++ b/service/cloudwatchlogs/api.go @@ -83,17 +83,17 @@ func (c *CloudWatchLogs) AssociateKmsKeyRequest(input *AssociateKmsKeyInput) (re // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation AssociateKmsKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/AssociateKmsKey @@ -174,17 +174,17 @@ func (c *CloudWatchLogs) CancelExportTaskRequest(input *CancelExportTaskInput) ( // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation CancelExportTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation is not valid on the specified resource. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CancelExportTask @@ -276,23 +276,23 @@ func (c *CloudWatchLogs) CreateExportTaskRequest(input *CreateExportTaskInput) ( // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation CreateExportTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateExportTask @@ -397,20 +397,20 @@ func (c *CloudWatchLogs) CreateLogGroupRequest(input *CreateLogGroupInput) (req // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation CreateLogGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogGroup @@ -501,17 +501,17 @@ func (c *CloudWatchLogs) CreateLogStreamRequest(input *CreateLogStreamInput) (re // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation CreateLogStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/CreateLogStream @@ -592,17 +592,17 @@ func (c *CloudWatchLogs) DeleteDestinationRequest(input *DeleteDestinationInput) // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DeleteDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteDestination @@ -682,17 +682,17 @@ func (c *CloudWatchLogs) DeleteLogGroupRequest(input *DeleteLogGroupInput) (req // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DeleteLogGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogGroup @@ -772,17 +772,17 @@ func (c *CloudWatchLogs) DeleteLogStreamRequest(input *DeleteLogStreamInput) (re // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DeleteLogStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteLogStream @@ -861,17 +861,17 @@ func (c *CloudWatchLogs) DeleteMetricFilterRequest(input *DeleteMetricFilterInpu // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DeleteMetricFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteMetricFilter @@ -951,14 +951,14 @@ func (c *CloudWatchLogs) DeleteResourcePolicyRequest(input *DeleteResourcePolicy // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DeleteResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy @@ -1040,17 +1040,17 @@ func (c *CloudWatchLogs) DeleteRetentionPolicyRequest(input *DeleteRetentionPoli // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DeleteRetentionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteRetentionPolicy @@ -1129,17 +1129,17 @@ func (c *CloudWatchLogs) DeleteSubscriptionFilterRequest(input *DeleteSubscripti // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DeleteSubscriptionFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteSubscriptionFilter @@ -1224,11 +1224,11 @@ func (c *CloudWatchLogs) DescribeDestinationsRequest(input *DescribeDestinations // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeDestinations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeDestinations @@ -1360,11 +1360,11 @@ func (c *CloudWatchLogs) DescribeExportTasksRequest(input *DescribeExportTasksIn // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeExportTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeExportTasks @@ -1449,11 +1449,11 @@ func (c *CloudWatchLogs) DescribeLogGroupsRequest(input *DescribeLogGroupsInput) // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeLogGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogGroups @@ -1595,14 +1595,14 @@ func (c *CloudWatchLogs) DescribeLogStreamsRequest(input *DescribeLogStreamsInpu // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeLogStreams for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeLogStreams @@ -1741,14 +1741,14 @@ func (c *CloudWatchLogs) DescribeMetricFiltersRequest(input *DescribeMetricFilte // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeMetricFilters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters @@ -1882,14 +1882,14 @@ func (c *CloudWatchLogs) DescribeQueriesRequest(input *DescribeQueriesInput) (re // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeQueries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeQueries @@ -1967,11 +1967,11 @@ func (c *CloudWatchLogs) DescribeResourcePoliciesRequest(input *DescribeResource // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeResourcePolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies @@ -2057,14 +2057,14 @@ func (c *CloudWatchLogs) DescribeSubscriptionFiltersRequest(input *DescribeSubsc // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DescribeSubscriptionFilters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters @@ -2204,17 +2204,17 @@ func (c *CloudWatchLogs) DisassociateKmsKeyRequest(input *DisassociateKmsKeyInpu // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation DisassociateKmsKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DisassociateKmsKey @@ -2306,14 +2306,14 @@ func (c *CloudWatchLogs) FilterLogEventsRequest(input *FilterLogEventsInput) (re // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation FilterLogEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FilterLogEvents @@ -2455,14 +2455,14 @@ func (c *CloudWatchLogs) GetLogEventsRequest(input *GetLogEventsInput) (req *req // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation GetLogEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogEvents @@ -2601,17 +2601,17 @@ func (c *CloudWatchLogs) GetLogGroupFieldsRequest(input *GetLogGroupFieldsInput) // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation GetLogGroupFields for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogGroupFields @@ -2694,17 +2694,17 @@ func (c *CloudWatchLogs) GetLogRecordRequest(input *GetLogRecordInput) (req *req // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation GetLogRecord for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogRecord @@ -2792,14 +2792,14 @@ func (c *CloudWatchLogs) GetQueryResultsRequest(input *GetQueryResultsInput) (re // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation GetQueryResults for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetQueryResults @@ -2877,11 +2877,11 @@ func (c *CloudWatchLogs) ListTagsLogGroupRequest(input *ListTagsLogGroupInput) ( // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation ListTagsLogGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ListTagsLogGroup @@ -2970,14 +2970,14 @@ func (c *CloudWatchLogs) PutDestinationRequest(input *PutDestinationInput) (req // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation PutDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestination @@ -3059,14 +3059,14 @@ func (c *CloudWatchLogs) PutDestinationPolicyRequest(input *PutDestinationPolicy // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation PutDestinationPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutDestinationPolicy @@ -3180,24 +3180,24 @@ func (c *CloudWatchLogs) PutLogEventsRequest(input *PutLogEventsInput) (req *req // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation PutLogEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeInvalidSequenceTokenException "InvalidSequenceTokenException" +// * InvalidSequenceTokenException // The sequence token is not valid. You can get the correct sequence token in // the expectedSequenceToken field in the InvalidSequenceTokenException message. // -// * ErrCodeDataAlreadyAcceptedException "DataAlreadyAcceptedException" +// * DataAlreadyAcceptedException // The event was already logged. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // -// * ErrCodeUnrecognizedClientException "UnrecognizedClientException" +// * UnrecognizedClientException // The most likely cause is an invalid AWS access key ID or secret key. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutLogEvents @@ -3281,20 +3281,20 @@ func (c *CloudWatchLogs) PutMetricFilterRequest(input *PutMetricFilterInput) (re // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation PutMetricFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter @@ -3374,14 +3374,14 @@ func (c *CloudWatchLogs) PutResourcePolicyRequest(input *PutResourcePolicyInput) // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation PutResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy @@ -3462,17 +3462,17 @@ func (c *CloudWatchLogs) PutRetentionPolicyRequest(input *PutRetentionPolicyInpu // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation PutRetentionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutRetentionPolicy @@ -3571,20 +3571,20 @@ func (c *CloudWatchLogs) PutSubscriptionFilterRequest(input *PutSubscriptionFilt // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation PutSubscriptionFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeOperationAbortedException "OperationAbortedException" +// * OperationAbortedException // Multiple requests to update the same resource were in conflict. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter @@ -3669,24 +3669,24 @@ func (c *CloudWatchLogs) StartQueryRequest(input *StartQueryInput) (req *request // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation StartQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedQueryException "MalformedQueryException" +// Returned Error Types: +// * MalformedQueryException // The query string is not valid. Details about this error are displayed in // a QueryCompileError object. For more information, see . // // For more information about valid query syntax, see CloudWatch Logs Insights // Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the maximum number of resources that can be created. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StartQuery @@ -3766,14 +3766,14 @@ func (c *CloudWatchLogs) StopQueryRequest(input *StopQueryInput) (req *request.R // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation StopQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/StopQuery @@ -3859,11 +3859,11 @@ func (c *CloudWatchLogs) TagLogGroupRequest(input *TagLogGroupInput) (req *reque // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation TagLogGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is specified incorrectly. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TagLogGroup @@ -3943,11 +3943,11 @@ func (c *CloudWatchLogs) TestMetricFilterRequest(input *TestMetricFilterInput) ( // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation TestMetricFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is specified incorrectly. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/TestMetricFilter @@ -4029,8 +4029,8 @@ func (c *CloudWatchLogs) UntagLogGroupRequest(input *UntagLogGroupInput) (req *r // See the AWS API reference guide for Amazon CloudWatch Logs's // API operation UntagLogGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/UntagLogGroup @@ -4481,6 +4481,59 @@ func (s CreateLogStreamOutput) GoString() string { return s.String() } +// The event was already logged. +type DataAlreadyAcceptedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s DataAlreadyAcceptedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataAlreadyAcceptedException) GoString() string { + return s.String() +} + +func newErrorDataAlreadyAcceptedException(v protocol.ResponseMetadata) error { + return &DataAlreadyAcceptedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DataAlreadyAcceptedException) Code() string { + return "DataAlreadyAcceptedException" +} + +// Message returns the exception's message. +func (s DataAlreadyAcceptedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DataAlreadyAcceptedException) OrigErr() error { + return nil +} + +func (s DataAlreadyAcceptedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DataAlreadyAcceptedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DataAlreadyAcceptedException) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteDestinationInput struct { _ struct{} `type:"structure"` @@ -6778,6 +6831,213 @@ func (s *InputLogEvent) SetTimestamp(v int64) *InputLogEvent { return s } +// The operation is not valid on the specified resource. +type InvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOperationException) GoString() string { + return s.String() +} + +func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { + return &InvalidOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOperationException) Code() string { + return "InvalidOperationException" +} + +// Message returns the exception's message. +func (s InvalidOperationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOperationException) OrigErr() error { + return nil +} + +func (s InvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// A parameter is specified incorrectly. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The sequence token is not valid. You can get the correct sequence token in +// the expectedSequenceToken field in the InvalidSequenceTokenException message. +type InvalidSequenceTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ExpectedSequenceToken *string `locationName:"expectedSequenceToken" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidSequenceTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSequenceTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidSequenceTokenException(v protocol.ResponseMetadata) error { + return &InvalidSequenceTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSequenceTokenException) Code() string { + return "InvalidSequenceTokenException" +} + +// Message returns the exception's message. +func (s InvalidSequenceTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSequenceTokenException) OrigErr() error { + return nil +} + +func (s InvalidSequenceTokenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSequenceTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSequenceTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have reached the maximum number of resources that can be created. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTagsLogGroupInput struct { _ struct{} `type:"structure"` @@ -7058,6 +7318,64 @@ func (s *LogStream) SetUploadSequenceToken(v string) *LogStream { return s } +// The query string is not valid. Details about this error are displayed in +// a QueryCompileError object. For more information, see . +// +// For more information about valid query syntax, see CloudWatch Logs Insights +// Query Syntax (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html). +type MalformedQueryException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Reserved. + QueryCompileError *QueryCompileError `locationName:"queryCompileError" type:"structure"` +} + +// String returns the string representation +func (s MalformedQueryException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MalformedQueryException) GoString() string { + return s.String() +} + +func newErrorMalformedQueryException(v protocol.ResponseMetadata) error { + return &MalformedQueryException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MalformedQueryException) Code() string { + return "MalformedQueryException" +} + +// Message returns the exception's message. +func (s MalformedQueryException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedQueryException) OrigErr() error { + return nil +} + +func (s MalformedQueryException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MalformedQueryException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MalformedQueryException) RequestID() string { + return s.respMetadata.RequestID +} + // Metric filters express how CloudWatch Logs would extract metric observations // from ingested log events and transform them into metric data in a CloudWatch // metric. @@ -7245,6 +7563,57 @@ func (s *MetricTransformation) SetMetricValue(v string) *MetricTransformation { return s } +// Multiple requests to update the same resource were in conflict. +type OperationAbortedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OperationAbortedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationAbortedException) GoString() string { + return s.String() +} + +func newErrorOperationAbortedException(v protocol.ResponseMetadata) error { + return &OperationAbortedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationAbortedException) Code() string { + return "OperationAbortedException" +} + +// Message returns the exception's message. +func (s OperationAbortedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationAbortedException) OrigErr() error { + return nil +} + +func (s OperationAbortedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationAbortedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationAbortedException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a log event. type OutputLogEvent struct { _ struct{} `type:"structure"` @@ -8216,6 +8585,108 @@ func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogE return s } +// The specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A policy enabling one or more entities to put logs to a log group in this // account. type ResourcePolicy struct { @@ -8327,6 +8798,57 @@ func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream { return s } +// The service cannot complete the request. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type StartQueryInput struct { _ struct{} `type:"structure"` @@ -8759,6 +9281,57 @@ func (s *TestMetricFilterOutput) SetMatches(v []*MetricFilterMatchRecord) *TestM return s } +// The most likely cause is an invalid AWS access key ID or secret key. +type UnrecognizedClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UnrecognizedClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnrecognizedClientException) GoString() string { + return s.String() +} + +func newErrorUnrecognizedClientException(v protocol.ResponseMetadata) error { + return &UnrecognizedClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnrecognizedClientException) Code() string { + return "UnrecognizedClientException" +} + +// Message returns the exception's message. +func (s UnrecognizedClientException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnrecognizedClientException) OrigErr() error { + return nil +} + +func (s UnrecognizedClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnrecognizedClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnrecognizedClientException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagLogGroupInput struct { _ struct{} `type:"structure"` diff --git a/service/cloudwatchlogs/errors.go b/service/cloudwatchlogs/errors.go index 88562053e94..c6e23336d00 100644 --- a/service/cloudwatchlogs/errors.go +++ b/service/cloudwatchlogs/errors.go @@ -2,6 +2,10 @@ package cloudwatchlogs +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDataAlreadyAcceptedException for service response error code @@ -75,3 +79,17 @@ const ( // The most likely cause is an invalid AWS access key ID or secret key. ErrCodeUnrecognizedClientException = "UnrecognizedClientException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DataAlreadyAcceptedException": newErrorDataAlreadyAcceptedException, + "InvalidOperationException": newErrorInvalidOperationException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidSequenceTokenException": newErrorInvalidSequenceTokenException, + "LimitExceededException": newErrorLimitExceededException, + "MalformedQueryException": newErrorMalformedQueryException, + "OperationAbortedException": newErrorOperationAbortedException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "UnrecognizedClientException": newErrorUnrecognizedClientException, +} diff --git a/service/cloudwatchlogs/service.go b/service/cloudwatchlogs/service.go index 99b39807ee1..41520eda946 100644 --- a/service/cloudwatchlogs/service.go +++ b/service/cloudwatchlogs/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codebuild/api.go b/service/codebuild/api.go index 7bb6e2e4b84..846cc6b6e7e 100644 --- a/service/codebuild/api.go +++ b/service/codebuild/api.go @@ -66,8 +66,8 @@ func (c *CodeBuild) BatchDeleteBuildsRequest(input *BatchDeleteBuildsInput) (req // See the AWS API reference guide for AWS CodeBuild's // API operation BatchDeleteBuilds for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchDeleteBuilds @@ -145,8 +145,8 @@ func (c *CodeBuild) BatchGetBuildsRequest(input *BatchGetBuildsInput) (req *requ // See the AWS API reference guide for AWS CodeBuild's // API operation BatchGetBuilds for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetBuilds @@ -224,8 +224,8 @@ func (c *CodeBuild) BatchGetProjectsRequest(input *BatchGetProjectsInput) (req * // See the AWS API reference guide for AWS CodeBuild's // API operation BatchGetProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetProjects @@ -303,8 +303,8 @@ func (c *CodeBuild) BatchGetReportGroupsRequest(input *BatchGetReportGroupsInput // See the AWS API reference guide for AWS CodeBuild's // API operation BatchGetReportGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetReportGroups @@ -382,8 +382,8 @@ func (c *CodeBuild) BatchGetReportsRequest(input *BatchGetReportsInput) (req *re // See the AWS API reference guide for AWS CodeBuild's // API operation BatchGetReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/BatchGetReports @@ -461,15 +461,15 @@ func (c *CodeBuild) CreateProjectRequest(input *CreateProjectInput) (req *reques // See the AWS API reference guide for AWS CodeBuild's // API operation CreateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified AWS resource cannot be created, because an AWS resource with // the same settings already exists. // -// * ErrCodeAccountLimitExceededException "AccountLimitExceededException" +// * AccountLimitExceededException // An AWS service limit was exceeded for the calling AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateProject @@ -547,15 +547,15 @@ func (c *CodeBuild) CreateReportGroupRequest(input *CreateReportGroupInput) (req // See the AWS API reference guide for AWS CodeBuild's // API operation CreateReportGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified AWS resource cannot be created, because an AWS resource with // the same settings already exists. // -// * ErrCodeAccountLimitExceededException "AccountLimitExceededException" +// * AccountLimitExceededException // An AWS service limit was exceeded for the calling AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateReportGroup @@ -644,18 +644,18 @@ func (c *CodeBuild) CreateWebhookRequest(input *CreateWebhookInput) (req *reques // See the AWS API reference guide for AWS CodeBuild's // API operation CreateWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeOAuthProviderException "OAuthProviderException" +// * OAuthProviderException // There was a problem with the underlying OAuth provider. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified AWS resource cannot be created, because an AWS resource with // the same settings already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/CreateWebhook @@ -734,8 +734,8 @@ func (c *CodeBuild) DeleteProjectRequest(input *DeleteProjectInput) (req *reques // See the AWS API reference guide for AWS CodeBuild's // API operation DeleteProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteProject @@ -814,8 +814,8 @@ func (c *CodeBuild) DeleteReportRequest(input *DeleteReportInput) (req *request. // See the AWS API reference guide for AWS CodeBuild's // API operation DeleteReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReport @@ -898,8 +898,8 @@ func (c *CodeBuild) DeleteReportGroupRequest(input *DeleteReportGroupInput) (req // See the AWS API reference guide for AWS CodeBuild's // API operation DeleteReportGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteReportGroup @@ -978,8 +978,8 @@ func (c *CodeBuild) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput // See the AWS API reference guide for AWS CodeBuild's // API operation DeleteResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteResourcePolicy @@ -1057,11 +1057,11 @@ func (c *CodeBuild) DeleteSourceCredentialsRequest(input *DeleteSourceCredential // See the AWS API reference guide for AWS CodeBuild's // API operation DeleteSourceCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteSourceCredentials @@ -1142,14 +1142,14 @@ func (c *CodeBuild) DeleteWebhookRequest(input *DeleteWebhookInput) (req *reques // See the AWS API reference guide for AWS CodeBuild's // API operation DeleteWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // -// * ErrCodeOAuthProviderException "OAuthProviderException" +// * OAuthProviderException // There was a problem with the underlying OAuth provider. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DeleteWebhook @@ -1227,11 +1227,11 @@ func (c *CodeBuild) DescribeTestCasesRequest(input *DescribeTestCasesInput) (req // See the AWS API reference guide for AWS CodeBuild's // API operation DescribeTestCases for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/DescribeTestCases @@ -1309,11 +1309,11 @@ func (c *CodeBuild) GetResourcePolicyRequest(input *GetResourcePolicyInput) (req // See the AWS API reference guide for AWS CodeBuild's // API operation GetResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified AWS resource cannot be found. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/GetResourcePolicy @@ -1392,14 +1392,14 @@ func (c *CodeBuild) ImportSourceCredentialsRequest(input *ImportSourceCredential // See the AWS API reference guide for AWS CodeBuild's // API operation ImportSourceCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeAccountLimitExceededException "AccountLimitExceededException" +// * AccountLimitExceededException // An AWS service limit was exceeded for the calling AWS account. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified AWS resource cannot be created, because an AWS resource with // the same settings already exists. // @@ -1479,11 +1479,11 @@ func (c *CodeBuild) InvalidateProjectCacheRequest(input *InvalidateProjectCacheI // See the AWS API reference guide for AWS CodeBuild's // API operation InvalidateProjectCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/InvalidateProjectCache @@ -1561,8 +1561,8 @@ func (c *CodeBuild) ListBuildsRequest(input *ListBuildsInput) (req *request.Requ // See the AWS API reference guide for AWS CodeBuild's // API operation ListBuilds for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuilds @@ -1641,11 +1641,11 @@ func (c *CodeBuild) ListBuildsForProjectRequest(input *ListBuildsForProjectInput // See the AWS API reference guide for AWS CodeBuild's // API operation ListBuildsForProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListBuildsForProject @@ -1798,8 +1798,8 @@ func (c *CodeBuild) ListProjectsRequest(input *ListProjectsInput) (req *request. // See the AWS API reference guide for AWS CodeBuild's // API operation ListProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListProjects @@ -1877,8 +1877,8 @@ func (c *CodeBuild) ListReportGroupsRequest(input *ListReportGroupsInput) (req * // See the AWS API reference guide for AWS CodeBuild's // API operation ListReportGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportGroups @@ -1956,8 +1956,8 @@ func (c *CodeBuild) ListReportsRequest(input *ListReportsInput) (req *request.Re // See the AWS API reference guide for AWS CodeBuild's // API operation ListReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReports @@ -2035,11 +2035,11 @@ func (c *CodeBuild) ListReportsForReportGroupRequest(input *ListReportsForReport // See the AWS API reference guide for AWS CodeBuild's // API operation ListReportsForReportGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListReportsForReportGroup @@ -2117,8 +2117,8 @@ func (c *CodeBuild) ListSharedProjectsRequest(input *ListSharedProjectsInput) (r // See the AWS API reference guide for AWS CodeBuild's // API operation ListSharedProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedProjects @@ -2196,8 +2196,8 @@ func (c *CodeBuild) ListSharedReportGroupsRequest(input *ListSharedReportGroupsI // See the AWS API reference guide for AWS CodeBuild's // API operation ListSharedReportGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/ListSharedReportGroups @@ -2349,11 +2349,11 @@ func (c *CodeBuild) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req // See the AWS API reference guide for AWS CodeBuild's // API operation PutResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified AWS resource cannot be found. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input value that was provided is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/PutResourcePolicy @@ -2431,14 +2431,14 @@ func (c *CodeBuild) StartBuildRequest(input *StartBuildInput) (req *request.Requ // See the AWS API reference guide for AWS CodeBuild's // API operation StartBuild for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // -// * ErrCodeAccountLimitExceededException "AccountLimitExceededException" +// * AccountLimitExceededException // An AWS service limit was exceeded for the calling AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StartBuild @@ -2516,11 +2516,11 @@ func (c *CodeBuild) StopBuildRequest(input *StopBuildInput) (req *request.Reques // See the AWS API reference guide for AWS CodeBuild's // API operation StopBuild for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/StopBuild @@ -2598,11 +2598,11 @@ func (c *CodeBuild) UpdateProjectRequest(input *UpdateProjectInput) (req *reques // See the AWS API reference guide for AWS CodeBuild's // API operation UpdateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateProject @@ -2680,11 +2680,11 @@ func (c *CodeBuild) UpdateReportGroupRequest(input *UpdateReportGroupInput) (req // See the AWS API reference guide for AWS CodeBuild's // API operation UpdateReportGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateReportGroup @@ -2764,14 +2764,14 @@ func (c *CodeBuild) UpdateWebhookRequest(input *UpdateWebhookInput) (req *reques // See the AWS API reference guide for AWS CodeBuild's // API operation UpdateWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input value that was provided is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified AWS resource cannot be found. // -// * ErrCodeOAuthProviderException "OAuthProviderException" +// * OAuthProviderException // There was a problem with the underlying OAuth provider. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/UpdateWebhook @@ -2796,6 +2796,57 @@ func (c *CodeBuild) UpdateWebhookWithContext(ctx aws.Context, input *UpdateWebho return out, req.Send() } +// An AWS service limit was exceeded for the calling AWS account. +type AccountLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccountLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountLimitExceededException) GoString() string { + return s.String() +} + +func newErrorAccountLimitExceededException(v protocol.ResponseMetadata) error { + return &AccountLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountLimitExceededException) Code() string { + return "AccountLimitExceededException" +} + +// Message returns the exception's message. +func (s AccountLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountLimitExceededException) OrigErr() error { + return nil +} + +func (s AccountLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type BatchDeleteBuildsInput struct { _ struct{} `type:"structure"` @@ -5252,6 +5303,57 @@ func (s *ImportSourceCredentialsOutput) SetArn(v string) *ImportSourceCredential return s } +// The input value that was provided is not valid. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + type InvalidateProjectCacheInput struct { _ struct{} `type:"structure"` @@ -6451,6 +6553,57 @@ func (s *NetworkInterface) SetSubnetId(v string) *NetworkInterface { return s } +// There was a problem with the underlying OAuth provider. +type OAuthProviderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OAuthProviderException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OAuthProviderException) GoString() string { + return s.String() +} + +func newErrorOAuthProviderException(v protocol.ResponseMetadata) error { + return &OAuthProviderException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OAuthProviderException) Code() string { + return "OAuthProviderException" +} + +// Message returns the exception's message. +func (s OAuthProviderException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OAuthProviderException) OrigErr() error { + return nil +} + +func (s OAuthProviderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OAuthProviderException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OAuthProviderException) RequestID() string { + return s.respMetadata.RequestID +} + // Additional information about a build phase that has an error. You can use // this information for troubleshooting. type PhaseContext struct { @@ -7978,6 +8131,109 @@ func (s *ReportGroup) SetType(v string) *ReportGroup { return s } +// The specified AWS resource cannot be created, because an AWS resource with +// the same settings already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified AWS resource cannot be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about S3 logs for a build project. type S3LogsConfig struct { _ struct{} `type:"structure"` diff --git a/service/codebuild/errors.go b/service/codebuild/errors.go index eba0333fb6a..1f4a4d3b920 100644 --- a/service/codebuild/errors.go +++ b/service/codebuild/errors.go @@ -2,6 +2,10 @@ package codebuild +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccountLimitExceededException for service response error code @@ -35,3 +39,11 @@ const ( // The specified AWS resource cannot be found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccountLimitExceededException": newErrorAccountLimitExceededException, + "InvalidInputException": newErrorInvalidInputException, + "OAuthProviderException": newErrorOAuthProviderException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/codebuild/service.go b/service/codebuild/service.go index 0e58f9cf808..2dff5342cc3 100644 --- a/service/codebuild/service.go +++ b/service/codebuild/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codecommit/api.go b/service/codecommit/api.go index 3f73649cdf9..520f3f0abb5 100644 --- a/service/codecommit/api.go +++ b/service/codecommit/api.go @@ -73,50 +73,50 @@ func (c *CodeCommit) AssociateApprovalRuleTemplateWithRepositoryRequest(input *A // See the AWS API reference guide for AWS CodeCommit's // API operation AssociateApprovalRuleTemplateWithRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeMaximumRuleTemplatesAssociatedWithRepositoryException "MaximumRuleTemplatesAssociatedWithRepositoryException" +// * MaximumRuleTemplatesAssociatedWithRepositoryException // The maximum number of approval rule templates for a repository has been exceeded. // You cannot associate more than 25 approval rule templates with a repository. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/AssociateApprovalRuleTemplateWithRepository @@ -195,40 +195,40 @@ func (c *CodeCommit) BatchAssociateApprovalRuleTemplateWithRepositoriesRequest(i // See the AWS API reference guide for AWS CodeCommit's // API operation BatchAssociateApprovalRuleTemplateWithRepositories for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeRepositoryNamesRequiredException "RepositoryNamesRequiredException" +// * RepositoryNamesRequiredException // At least one repository name object is required, but was not specified. // -// * ErrCodeMaximumRepositoryNamesExceededException "MaximumRepositoryNamesExceededException" +// * MaximumRepositoryNamesExceededException // The maximum number of allowed repository names was exceeded. Currently, this // number is 100. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchAssociateApprovalRuleTemplateWithRepositories @@ -307,77 +307,77 @@ func (c *CodeCommit) BatchDescribeMergeConflictsRequest(input *BatchDescribeMerg // See the AWS API reference guide for AWS CodeCommit's // API operation BatchDescribeMergeConflicts for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeMergeOptionRequiredException "MergeOptionRequiredException" +// * MergeOptionRequiredException // A merge option or stategy is required, and none was provided. // -// * ErrCodeInvalidMergeOptionException "InvalidMergeOptionException" +// * InvalidMergeOptionException // The specified merge option is not valid for this operation. Not all merge // strategies are supported for all operations. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeInvalidMaxConflictFilesException "InvalidMaxConflictFilesException" +// * InvalidMaxConflictFilesException // The specified value for the number of conflict files to return is not valid. // -// * ErrCodeInvalidMaxMergeHunksException "InvalidMaxMergeHunksException" +// * InvalidMaxMergeHunksException // The specified value for the number of merge hunks to return is not valid. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDescribeMergeConflicts @@ -456,40 +456,40 @@ func (c *CodeCommit) BatchDisassociateApprovalRuleTemplateFromRepositoriesReques // See the AWS API reference guide for AWS CodeCommit's // API operation BatchDisassociateApprovalRuleTemplateFromRepositories for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeRepositoryNamesRequiredException "RepositoryNamesRequiredException" +// * RepositoryNamesRequiredException // At least one repository name object is required, but was not specified. // -// * ErrCodeMaximumRepositoryNamesExceededException "MaximumRepositoryNamesExceededException" +// * MaximumRepositoryNamesExceededException // The maximum number of allowed repository names was exceeded. Currently, this // number is 100. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchDisassociateApprovalRuleTemplateFromRepositories @@ -567,42 +567,42 @@ func (c *CodeCommit) BatchGetCommitsRequest(input *BatchGetCommitsInput) (req *r // See the AWS API reference guide for AWS CodeCommit's // API operation BatchGetCommits for usage and error information. // -// Returned Error Codes: -// * ErrCodeCommitIdsListRequiredException "CommitIdsListRequiredException" +// Returned Error Types: +// * CommitIdsListRequiredException // A list of commit IDs is required, but was either not specified or the list // was empty. // -// * ErrCodeCommitIdsLimitExceededException "CommitIdsLimitExceededException" +// * CommitIdsLimitExceededException // The maximum number of allowed commit IDs in a batch request is 100. Verify // that your batch requests contains no more than 100 commit IDs, and then try // again. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetCommits @@ -686,34 +686,34 @@ func (c *CodeCommit) BatchGetRepositoriesRequest(input *BatchGetRepositoriesInpu // See the AWS API reference guide for AWS CodeCommit's // API operation BatchGetRepositories for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNamesRequiredException "RepositoryNamesRequiredException" +// Returned Error Types: +// * RepositoryNamesRequiredException // At least one repository name object is required, but was not specified. // -// * ErrCodeMaximumRepositoryNamesExceededException "MaximumRepositoryNamesExceededException" +// * MaximumRepositoryNamesExceededException // The maximum number of allowed repository names was exceeded. Currently, this // number is 100. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories @@ -795,33 +795,33 @@ func (c *CodeCommit) CreateApprovalRuleTemplateRequest(input *CreateApprovalRule // See the AWS API reference guide for AWS CodeCommit's // API operation CreateApprovalRuleTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateNameAlreadyExistsException "ApprovalRuleTemplateNameAlreadyExistsException" +// * ApprovalRuleTemplateNameAlreadyExistsException // You cannot create an approval rule template with that name because a template // with that name already exists in this AWS Region for your AWS account. Approval // rule template names must be unique. // -// * ErrCodeApprovalRuleTemplateContentRequiredException "ApprovalRuleTemplateContentRequiredException" +// * ApprovalRuleTemplateContentRequiredException // The content for the approval rule template is empty. You must provide some // content for an approval rule template. The content cannot be null. // -// * ErrCodeInvalidApprovalRuleTemplateContentException "InvalidApprovalRuleTemplateContentException" +// * InvalidApprovalRuleTemplateContentException // The content of the approval rule template is not valid. // -// * ErrCodeInvalidApprovalRuleTemplateDescriptionException "InvalidApprovalRuleTemplateDescriptionException" +// * InvalidApprovalRuleTemplateDescriptionException // The description for the approval rule template is not valid because it exceeds // the maximum characters allowed for a description. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeNumberOfRuleTemplatesExceededException "NumberOfRuleTemplatesExceededException" +// * NumberOfRuleTemplatesExceededException // The maximum number of approval rule templates has been exceeded for this // AWS Region. // @@ -904,52 +904,52 @@ func (c *CodeCommit) CreateBranchRequest(input *CreateBranchInput) (req *request // See the AWS API reference guide for AWS CodeCommit's // API operation CreateBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeBranchNameExistsException "BranchNameExistsException" +// * BranchNameExistsException // The specified branch name already exists. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" +// * CommitIdRequiredException // A commit ID was not specified. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateBranch @@ -1027,161 +1027,161 @@ func (c *CodeCommit) CreateCommitRequest(input *CreateCommitInput) (req *request // See the AWS API reference guide for AWS CodeCommit's // API operation CreateCommit for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeParentCommitIdRequiredException "ParentCommitIdRequiredException" +// * ParentCommitIdRequiredException // A parent commit ID is required. To view the full commit ID of a branch in // a repository, use GetBranch or a Git command (for example, git pull or git // log). // -// * ErrCodeInvalidParentCommitIdException "InvalidParentCommitIdException" +// * InvalidParentCommitIdException // The parent commit ID is not valid. The commit ID cannot be empty, and must // match the head commit ID for the branch of the repository where you want // to add or update a file. // -// * ErrCodeParentCommitDoesNotExistException "ParentCommitDoesNotExistException" +// * ParentCommitDoesNotExistException // The parent commit ID is not valid because it does not exist. The specified // parent commit ID does not exist in the specified branch of the repository. // -// * ErrCodeParentCommitIdOutdatedException "ParentCommitIdOutdatedException" +// * ParentCommitIdOutdatedException // The file could not be added because the provided parent commit ID is not // the current tip of the specified branch. To view the full commit ID of the // current head of the branch, use GetBranch. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException" +// * BranchNameIsTagNameException // The specified branch name is not valid because it is a tag name. Enter the // name of a branch in the repository. For a list of valid branch names, use // ListBranches. // -// * ErrCodeFileEntryRequiredException "FileEntryRequiredException" +// * FileEntryRequiredException // The commit cannot be created because no files have been specified as added, // updated, or changed (PutFile or DeleteFile) for the commit. // -// * ErrCodeMaximumFileEntriesExceededException "MaximumFileEntriesExceededException" +// * MaximumFileEntriesExceededException // The number of specified files to change as part of this commit exceeds the // maximum number of files that can be changed in a single commit. Consider // using a Git client for these changes. // -// * ErrCodePutFileEntryConflictException "PutFileEntryConflictException" +// * PutFileEntryConflictException // The commit cannot be created because one or more files specified in the commit // reference both a file and a folder. // -// * ErrCodeSourceFileOrContentRequiredException "SourceFileOrContentRequiredException" +// * SourceFileOrContentRequiredException // The commit cannot be created because no source files or file content have // been specified for the commit. // -// * ErrCodeFileContentAndSourceFileSpecifiedException "FileContentAndSourceFileSpecifiedException" +// * FileContentAndSourceFileSpecifiedException // The commit cannot be created because both a source file and file content // have been specified for the same file. You cannot provide both. Either specify // a source file or provide the file content directly. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeSamePathRequestException "SamePathRequestException" +// * SamePathRequestException // The commit cannot be created because one or more changes in this commit duplicate // actions in the same file path. For example, you cannot make the same delete // request to the same file in the same file path twice, or make a delete request // and a move request to the same file as part of the same commit. // -// * ErrCodeFileDoesNotExistException "FileDoesNotExistException" +// * FileDoesNotExistException // The specified file does not exist. Verify that you have used the correct // file name, full path, and extension. // -// * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" +// * FileContentSizeLimitExceededException // The file cannot be added because it is too large. The maximum file size is // 6 MB, and the combined file content change size is 7 MB. Consider making // these changes using a Git client. // -// * ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" +// * FolderContentSizeLimitExceededException // The commit cannot be created because at least one of the overall changes // in the commit results in a folder whose contents exceed the limit of 6 MB. // Either reduce the number and size of your changes, or split the changes across // multiple folders. // -// * ErrCodeInvalidDeletionParameterException "InvalidDeletionParameterException" +// * InvalidDeletionParameterException // The specified deletion parameter is not valid. // -// * ErrCodeRestrictedSourceFileException "RestrictedSourceFileException" +// * RestrictedSourceFileException // The commit cannot be created because one of the changes specifies copying // or moving a .gitkeep file. // -// * ErrCodeFileModeRequiredException "FileModeRequiredException" +// * FileModeRequiredException // The commit cannot be created because no file mode has been specified. A file // mode is required to update mode permissions for a file. // -// * ErrCodeInvalidFileModeException "InvalidFileModeException" +// * InvalidFileModeException // The specified file mode permission is not valid. For a list of valid file // mode permissions, see PutFile. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeNoChangeException "NoChangeException" +// * NoChangeException // The commit cannot be created because no changes will be made to the repository // as a result of this commit. A commit must contain at least one change. // -// * ErrCodeFileNameConflictsWithDirectoryNameException "FileNameConflictsWithDirectoryNameException" +// * FileNameConflictsWithDirectoryNameException // A file cannot be added to the repository because the specified file name // has the same name as a directory in this repository. Either provide another // name for the file, or add the file in a directory that does not match the // file name. // -// * ErrCodeDirectoryNameConflictsWithFileNameException "DirectoryNameConflictsWithFileNameException" +// * DirectoryNameConflictsWithFileNameException // A file cannot be added to the repository because the specified path name // has the same name as a file that already exists in this repository. Either // provide a different name for the file, or specify a different path for the // file. // -// * ErrCodeFilePathConflictsWithSubmodulePathException "FilePathConflictsWithSubmodulePathException" +// * FilePathConflictsWithSubmodulePathException // The commit cannot be created because a specified file path points to a submodule. // Verify that the destination files have valid file paths that do not point // to a submodule. @@ -1261,105 +1261,105 @@ func (c *CodeCommit) CreatePullRequestRequest(input *CreatePullRequestInput) (re // See the AWS API reference guide for AWS CodeCommit's // API operation CreatePullRequest for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException" +// * ClientRequestTokenRequiredException // A client request token is required. A client request token is an unique, // client-generated idempotency token that, when provided in a request, ensures // the request cannot be repeated with a changed parameter. If a request is // received with the same parameters and a token is included, the request returns // information about the initial request that used that token. // -// * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" +// * InvalidClientRequestTokenException // The client request token is not valid. // -// * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException" +// * IdempotencyParameterMismatchException // The client request token is not valid. Either the token is not in a valid // format, or the token has been used in a previous request and cannot be reused. // -// * ErrCodeReferenceNameRequiredException "ReferenceNameRequiredException" +// * ReferenceNameRequiredException // A reference name is required, but none was provided. // -// * ErrCodeInvalidReferenceNameException "InvalidReferenceNameException" +// * InvalidReferenceNameException // The specified reference name format is not valid. Reference names must conform // to the Git references format (for example, refs/heads/master). For more information, // see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References) // or consult your Git documentation. // -// * ErrCodeReferenceDoesNotExistException "ReferenceDoesNotExistException" +// * ReferenceDoesNotExistException // The specified reference does not exist. You must provide a full commit ID. // -// * ErrCodeReferenceTypeNotSupportedException "ReferenceTypeNotSupportedException" +// * ReferenceTypeNotSupportedException // The specified reference is not a supported type. // -// * ErrCodeTitleRequiredException "TitleRequiredException" +// * TitleRequiredException // A pull request title is required. It cannot be empty or null. // -// * ErrCodeInvalidTitleException "InvalidTitleException" +// * InvalidTitleException // The title of the pull request is not valid. Pull request titles cannot exceed // 100 characters in length. // -// * ErrCodeInvalidDescriptionException "InvalidDescriptionException" +// * InvalidDescriptionException // The pull request description is not valid. Descriptions cannot be more than // 1,000 characters. // -// * ErrCodeTargetsRequiredException "TargetsRequiredException" +// * TargetsRequiredException // An array of target objects is required. It cannot be empty or null. // -// * ErrCodeInvalidTargetsException "InvalidTargetsException" +// * InvalidTargetsException // The targets for the pull request is not valid or not in a valid format. Targets // are a list of target objects. Each target object must contain the full values // for the repository name, source branch, and destination branch for a pull // request. // -// * ErrCodeTargetRequiredException "TargetRequiredException" +// * TargetRequiredException // A pull request target is required. It cannot be empty or null. A pull request // target must contain the full values for the repository name, source branch, // and destination branch for the pull request. // -// * ErrCodeInvalidTargetException "InvalidTargetException" +// * InvalidTargetException // The target for the pull request is not valid. A target must contain the full // values for the repository name, source branch, and destination branch for // the pull request. // -// * ErrCodeMultipleRepositoriesInPullRequestException "MultipleRepositoriesInPullRequestException" +// * MultipleRepositoriesInPullRequestException // You cannot include more than one repository in a pull request. Make sure // you have specified only one repository name in your request, and then try // again. // -// * ErrCodeMaximumOpenPullRequestsExceededException "MaximumOpenPullRequestsExceededException" +// * MaximumOpenPullRequestsExceededException // You cannot create the pull request because the repository has too many open // pull requests. The maximum number of open pull requests for a repository // is 1,000. Close one or more open pull requests, and then try again. // -// * ErrCodeSourceAndDestinationAreSameException "SourceAndDestinationAreSameException" +// * SourceAndDestinationAreSameException // The source branch and destination branch for the pull request are the same. // You must specify different branches for the source and destination. // @@ -1438,56 +1438,56 @@ func (c *CodeCommit) CreatePullRequestApprovalRuleRequest(input *CreatePullReque // See the AWS API reference guide for AWS CodeCommit's // API operation CreatePullRequestApprovalRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleNameRequiredException "ApprovalRuleNameRequiredException" +// Returned Error Types: +// * ApprovalRuleNameRequiredException // An approval rule name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleNameException "InvalidApprovalRuleNameException" +// * InvalidApprovalRuleNameException // The name for the approval rule is not valid. // -// * ErrCodeApprovalRuleNameAlreadyExistsException "ApprovalRuleNameAlreadyExistsException" +// * ApprovalRuleNameAlreadyExistsException // An approval rule with that name already exists. Approval rule names must // be unique within the scope of a pull request. // -// * ErrCodeApprovalRuleContentRequiredException "ApprovalRuleContentRequiredException" +// * ApprovalRuleContentRequiredException // The content for the approval rule is empty. You must provide some content // for an approval rule. The content cannot be null. // -// * ErrCodeInvalidApprovalRuleContentException "InvalidApprovalRuleContentException" +// * InvalidApprovalRuleContentException // The content for the approval rule is not valid. // -// * ErrCodeNumberOfRulesExceededException "NumberOfRulesExceededException" +// * NumberOfRulesExceededException // The approval rule cannot be added. The pull request has the maximum number // of approval rules associated with it. // -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreatePullRequestApprovalRule @@ -1565,51 +1565,51 @@ func (c *CodeCommit) CreateRepositoryRequest(input *CreateRepositoryInput) (req // See the AWS API reference guide for AWS CodeCommit's // API operation CreateRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameExistsException "RepositoryNameExistsException" +// Returned Error Types: +// * RepositoryNameExistsException // The specified repository name already exists. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException" +// * InvalidRepositoryDescriptionException // The specified repository description is not valid. // -// * ErrCodeRepositoryLimitExceededException "RepositoryLimitExceededException" +// * RepositoryLimitExceededException // A repository resource limit was exceeded. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeInvalidTagsMapException "InvalidTagsMapException" +// * InvalidTagsMapException // The map of tags is not valid. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The maximum number of tags for an AWS CodeCommit resource has been exceeded. // -// * ErrCodeInvalidSystemTagUsageException "InvalidSystemTagUsageException" +// * InvalidSystemTagUsageException // The specified tag is not valid. Key names cannot be prefixed with aws:. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // The tag policy is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository @@ -1694,138 +1694,138 @@ func (c *CodeCommit) CreateUnreferencedMergeCommitRequest(input *CreateUnreferen // See the AWS API reference guide for AWS CodeCommit's // API operation CreateUnreferencedMergeCommit for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeMergeOptionRequiredException "MergeOptionRequiredException" +// * MergeOptionRequiredException // A merge option or stategy is required, and none was provided. // -// * ErrCodeInvalidMergeOptionException "InvalidMergeOptionException" +// * InvalidMergeOptionException // The specified merge option is not valid for this operation. Not all merge // strategies are supported for all operations. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeInvalidConflictResolutionException "InvalidConflictResolutionException" +// * InvalidConflictResolutionException // The specified conflict resolution list is not valid. // -// * ErrCodeManualMergeRequiredException "ManualMergeRequiredException" +// * ManualMergeRequiredException // The pull request cannot be merged automatically into the destination branch. // You must manually merge the branches and resolve any conflicts. // -// * ErrCodeMaximumConflictResolutionEntriesExceededException "MaximumConflictResolutionEntriesExceededException" +// * MaximumConflictResolutionEntriesExceededException // The number of allowed conflict resolution entries was exceeded. // -// * ErrCodeMultipleConflictResolutionEntriesException "MultipleConflictResolutionEntriesException" +// * MultipleConflictResolutionEntriesException // More than one conflict resolution entries exists for the conflict. A conflict // can have only one conflict resolution entry. // -// * ErrCodeReplacementTypeRequiredException "ReplacementTypeRequiredException" +// * ReplacementTypeRequiredException // A replacement type is required. // -// * ErrCodeInvalidReplacementTypeException "InvalidReplacementTypeException" +// * InvalidReplacementTypeException // Automerge was specified for resolving the conflict, but the specified replacement // type is not valid. // -// * ErrCodeReplacementContentRequiredException "ReplacementContentRequiredException" +// * ReplacementContentRequiredException // USE_NEW_CONTENT was specified, but no replacement content has been provided. // -// * ErrCodeInvalidReplacementContentException "InvalidReplacementContentException" +// * InvalidReplacementContentException // Automerge was specified for resolving the conflict, but the replacement type // is not valid or content is missing. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" +// * FileContentSizeLimitExceededException // The file cannot be added because it is too large. The maximum file size is // 6 MB, and the combined file content change size is 7 MB. Consider making // these changes using a Git client. // -// * ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" +// * FolderContentSizeLimitExceededException // The commit cannot be created because at least one of the overall changes // in the commit results in a folder whose contents exceed the limit of 6 MB. // Either reduce the number and size of your changes, or split the changes across // multiple folders. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeConcurrentReferenceUpdateException "ConcurrentReferenceUpdateException" +// * ConcurrentReferenceUpdateException // The merge cannot be completed because the target branch has been modified. // Another user might have modified the target branch while the merge was in // progress. Wait a few minutes, and then try again. // -// * ErrCodeFileModeRequiredException "FileModeRequiredException" +// * FileModeRequiredException // The commit cannot be created because no file mode has been specified. A file // mode is required to update mode permissions for a file. // -// * ErrCodeInvalidFileModeException "InvalidFileModeException" +// * InvalidFileModeException // The specified file mode permission is not valid. For a list of valid file // mode permissions, see PutFile. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateUnreferencedMergeCommit @@ -1904,16 +1904,16 @@ func (c *CodeCommit) DeleteApprovalRuleTemplateRequest(input *DeleteApprovalRule // See the AWS API reference guide for AWS CodeCommit's // API operation DeleteApprovalRuleTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateInUseException "ApprovalRuleTemplateInUseException" +// * ApprovalRuleTemplateInUseException // The approval rule template is associated with one or more repositories. You // cannot delete a template that is associated with a repository. Remove all // associations, and then try again. @@ -1994,44 +1994,44 @@ func (c *CodeCommit) DeleteBranchRequest(input *DeleteBranchInput) (req *request // See the AWS API reference guide for AWS CodeCommit's // API operation DeleteBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeDefaultBranchCannotBeDeletedException "DefaultBranchCannotBeDeletedException" +// * DefaultBranchCannotBeDeletedException // The specified branch is the default branch for the repository, and cannot // be deleted. To delete this branch, you must first set another branch as the // default branch. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteBranch @@ -2109,19 +2109,19 @@ func (c *CodeCommit) DeleteCommentContentRequest(input *DeleteCommentContentInpu // See the AWS API reference guide for AWS CodeCommit's // API operation DeleteCommentContent for usage and error information. // -// Returned Error Codes: -// * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" +// Returned Error Types: +// * CommentDoesNotExistException // No comment exists with the provided ID. Verify that you have used the correct // ID, and then try again. // -// * ErrCodeCommentIdRequiredException "CommentIdRequiredException" +// * CommentIdRequiredException // The comment ID is missing or null. A comment ID is required. // -// * ErrCodeInvalidCommentIdException "InvalidCommentIdException" +// * InvalidCommentIdException // The comment ID is not in a valid format. Make sure that you have provided // the full comment ID. // -// * ErrCodeCommentDeletedException "CommentDeletedException" +// * CommentDeletedException // This comment has already been deleted. You cannot edit or delete a deleted // comment. // @@ -2202,88 +2202,88 @@ func (c *CodeCommit) DeleteFileRequest(input *DeleteFileInput) (req *request.Req // See the AWS API reference guide for AWS CodeCommit's // API operation DeleteFile for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeParentCommitIdRequiredException "ParentCommitIdRequiredException" +// * ParentCommitIdRequiredException // A parent commit ID is required. To view the full commit ID of a branch in // a repository, use GetBranch or a Git command (for example, git pull or git // log). // -// * ErrCodeInvalidParentCommitIdException "InvalidParentCommitIdException" +// * InvalidParentCommitIdException // The parent commit ID is not valid. The commit ID cannot be empty, and must // match the head commit ID for the branch of the repository where you want // to add or update a file. // -// * ErrCodeParentCommitDoesNotExistException "ParentCommitDoesNotExistException" +// * ParentCommitDoesNotExistException // The parent commit ID is not valid because it does not exist. The specified // parent commit ID does not exist in the specified branch of the repository. // -// * ErrCodeParentCommitIdOutdatedException "ParentCommitIdOutdatedException" +// * ParentCommitIdOutdatedException // The file could not be added because the provided parent commit ID is not // the current tip of the specified branch. To view the full commit ID of the // current head of the branch, use GetBranch. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeFileDoesNotExistException "FileDoesNotExistException" +// * FileDoesNotExistException // The specified file does not exist. Verify that you have used the correct // file name, full path, and extension. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException" +// * BranchNameIsTagNameException // The specified branch name is not valid because it is a tag name. Enter the // name of a branch in the repository. For a list of valid branch names, use // ListBranches. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteFile @@ -2366,45 +2366,45 @@ func (c *CodeCommit) DeletePullRequestApprovalRuleRequest(input *DeletePullReque // See the AWS API reference guide for AWS CodeCommit's // API operation DeletePullRequestApprovalRule for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodeApprovalRuleNameRequiredException "ApprovalRuleNameRequiredException" +// * ApprovalRuleNameRequiredException // An approval rule name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleNameException "InvalidApprovalRuleNameException" +// * InvalidApprovalRuleNameException // The name for the approval rule is not valid. // -// * ErrCodeCannotDeleteApprovalRuleFromTemplateException "CannotDeleteApprovalRuleFromTemplateException" +// * CannotDeleteApprovalRuleFromTemplateException // The approval rule cannot be deleted from the pull request because it was // created by an approval rule template and applied to the pull request automatically. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeletePullRequestApprovalRule @@ -2487,30 +2487,30 @@ func (c *CodeCommit) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req // See the AWS API reference guide for AWS CodeCommit's // API operation DeleteRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DeleteRepository @@ -2597,84 +2597,84 @@ func (c *CodeCommit) DescribeMergeConflictsRequest(input *DescribeMergeConflicts // See the AWS API reference guide for AWS CodeCommit's // API operation DescribeMergeConflicts for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeMergeOptionRequiredException "MergeOptionRequiredException" +// * MergeOptionRequiredException // A merge option or stategy is required, and none was provided. // -// * ErrCodeInvalidMergeOptionException "InvalidMergeOptionException" +// * InvalidMergeOptionException // The specified merge option is not valid for this operation. Not all merge // strategies are supported for all operations. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeFileDoesNotExistException "FileDoesNotExistException" +// * FileDoesNotExistException // The specified file does not exist. Verify that you have used the correct // file name, full path, and extension. // -// * ErrCodeInvalidMaxMergeHunksException "InvalidMaxMergeHunksException" +// * InvalidMaxMergeHunksException // The specified value for the number of merge hunks to return is not valid. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribeMergeConflicts @@ -2810,49 +2810,49 @@ func (c *CodeCommit) DescribePullRequestEventsRequest(input *DescribePullRequest // See the AWS API reference guide for AWS CodeCommit's // API operation DescribePullRequestEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidPullRequestEventTypeException "InvalidPullRequestEventTypeException" +// * InvalidPullRequestEventTypeException // The pull request event type is not valid. // -// * ErrCodeInvalidActorArnException "InvalidActorArnException" +// * InvalidActorArnException // The Amazon Resource Name (ARN) is not valid. Make sure that you have provided // the full ARN for the user who initiated the change for the pull request, // and then try again. // -// * ErrCodeActorDoesNotExistException "ActorDoesNotExistException" +// * ActorDoesNotExistException // The specified Amazon Resource Name (ARN) does not exist in the AWS account. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DescribePullRequestEvents @@ -2986,46 +2986,46 @@ func (c *CodeCommit) DisassociateApprovalRuleTemplateFromRepositoryRequest(input // See the AWS API reference guide for AWS CodeCommit's // API operation DisassociateApprovalRuleTemplateFromRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/DisassociateApprovalRuleTemplateFromRepository @@ -3104,42 +3104,42 @@ func (c *CodeCommit) EvaluatePullRequestApprovalRulesRequest(input *EvaluatePull // See the AWS API reference guide for AWS CodeCommit's // API operation EvaluatePullRequestApprovalRules for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidRevisionIdException "InvalidRevisionIdException" +// * InvalidRevisionIdException // The revision ID is not valid. Use GetPullRequest to determine the value. // -// * ErrCodeRevisionIdRequiredException "RevisionIdRequiredException" +// * RevisionIdRequiredException // A revision ID is required, but was not provided. // -// * ErrCodeRevisionNotCurrentException "RevisionNotCurrentException" +// * RevisionNotCurrentException // The revision ID provided in the request does not match the current revision // ID. Use GetPullRequest to retrieve the current revision ID. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EvaluatePullRequestApprovalRules @@ -3217,16 +3217,16 @@ func (c *CodeCommit) GetApprovalRuleTemplateRequest(input *GetApprovalRuleTempla // See the AWS API reference guide for AWS CodeCommit's // API operation GetApprovalRuleTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. @@ -3306,45 +3306,45 @@ func (c *CodeCommit) GetBlobRequest(input *GetBlobInput) (req *request.Request, // See the AWS API reference guide for AWS CodeCommit's // API operation GetBlob for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeBlobIdRequiredException "BlobIdRequiredException" +// * BlobIdRequiredException // A blob ID is required, but was not specified. // -// * ErrCodeInvalidBlobIdException "InvalidBlobIdException" +// * InvalidBlobIdException // The specified blob is not valid. // -// * ErrCodeBlobIdDoesNotExistException "BlobIdDoesNotExistException" +// * BlobIdDoesNotExistException // The specified blob does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeFileTooLargeException "FileTooLargeException" +// * FileTooLargeException // The specified file exceeds the file size limit for AWS CodeCommit. For more // information about limits in AWS CodeCommit, see AWS CodeCommit User Guide // (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). @@ -3425,42 +3425,42 @@ func (c *CodeCommit) GetBranchRequest(input *GetBranchInput) (req *request.Reque // See the AWS API reference guide for AWS CodeCommit's // API operation GetBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetBranch @@ -3538,19 +3538,19 @@ func (c *CodeCommit) GetCommentRequest(input *GetCommentInput) (req *request.Req // See the AWS API reference guide for AWS CodeCommit's // API operation GetComment for usage and error information. // -// Returned Error Codes: -// * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" +// Returned Error Types: +// * CommentDoesNotExistException // No comment exists with the provided ID. Verify that you have used the correct // ID, and then try again. // -// * ErrCodeCommentIdRequiredException "CommentIdRequiredException" +// * CommentIdRequiredException // The comment ID is missing or null. A comment ID is required. // -// * ErrCodeInvalidCommentIdException "InvalidCommentIdException" +// * InvalidCommentIdException // The comment ID is not in a valid format. Make sure that you have provided // the full comment ID. // -// * ErrCodeCommentDeletedException "CommentDeletedException" +// * CommentDeletedException // This comment has already been deleted. You cannot edit or delete a deleted // comment. // @@ -3635,49 +3635,49 @@ func (c *CodeCommit) GetCommentsForComparedCommitRequest(input *GetCommentsForCo // See the AWS API reference guide for AWS CodeCommit's // API operation GetCommentsForComparedCommit for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" +// * CommitIdRequiredException // A commit ID was not specified. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForComparedCommit @@ -3813,66 +3813,66 @@ func (c *CodeCommit) GetCommentsForPullRequestRequest(input *GetCommentsForPullR // See the AWS API reference guide for AWS CodeCommit's // API operation GetCommentsForPullRequest for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// Returned Error Types: +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" +// * CommitIdRequiredException // A commit ID was not specified. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException" +// * RepositoryNotAssociatedWithPullRequestException // The repository does not contain any pull requests with that pull request // ID. Use GetPullRequest to verify the correct repository name for the pull // request ID. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommentsForPullRequest @@ -4003,42 +4003,42 @@ func (c *CodeCommit) GetCommitRequest(input *GetCommitInput) (req *request.Reque // See the AWS API reference guide for AWS CodeCommit's // API operation GetCommit for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" +// * CommitIdRequiredException // A commit ID was not specified. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeCommitIdDoesNotExistException "CommitIdDoesNotExistException" +// * CommitIdDoesNotExistException // The specified commit ID does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetCommit @@ -4124,58 +4124,58 @@ func (c *CodeCommit) GetDifferencesRequest(input *GetDifferencesInput) (req *req // See the AWS API reference guide for AWS CodeCommit's // API operation GetDifferences for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodePathDoesNotExistException "PathDoesNotExistException" +// * PathDoesNotExistException // The specified path does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetDifferences @@ -4305,53 +4305,53 @@ func (c *CodeCommit) GetFileRequest(input *GetFileInput) (req *request.Request, // See the AWS API reference guide for AWS CodeCommit's // API operation GetFile for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeFileDoesNotExistException "FileDoesNotExistException" +// * FileDoesNotExistException // The specified file does not exist. Verify that you have used the correct // file name, full path, and extension. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeFileTooLargeException "FileTooLargeException" +// * FileTooLargeException // The specified file exceeds the file size limit for AWS CodeCommit. For more // information about limits in AWS CodeCommit, see AWS CodeCommit User Guide // (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). @@ -4431,50 +4431,50 @@ func (c *CodeCommit) GetFolderRequest(input *GetFolderInput) (req *request.Reque // See the AWS API reference guide for AWS CodeCommit's // API operation GetFolder for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeFolderDoesNotExistException "FolderDoesNotExistException" +// * FolderDoesNotExistException // The specified folder does not exist. Either the folder name is not correct, // or you did not enter the full path to the folder. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetFolder @@ -4552,49 +4552,49 @@ func (c *CodeCommit) GetMergeCommitRequest(input *GetMergeCommitInput) (req *req // See the AWS API reference guide for AWS CodeCommit's // API operation GetMergeCommit for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeCommit @@ -4679,82 +4679,82 @@ func (c *CodeCommit) GetMergeConflictsRequest(input *GetMergeConflictsInput) (re // See the AWS API reference guide for AWS CodeCommit's // API operation GetMergeConflicts for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeMergeOptionRequiredException "MergeOptionRequiredException" +// * MergeOptionRequiredException // A merge option or stategy is required, and none was provided. // -// * ErrCodeInvalidMergeOptionException "InvalidMergeOptionException" +// * InvalidMergeOptionException // The specified merge option is not valid for this operation. Not all merge // strategies are supported for all operations. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeInvalidMaxConflictFilesException "InvalidMaxConflictFilesException" +// * InvalidMaxConflictFilesException // The specified value for the number of conflict files to return is not valid. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidDestinationCommitSpecifierException "InvalidDestinationCommitSpecifierException" +// * InvalidDestinationCommitSpecifierException // The destination commit specifier is not valid. You must provide a valid branch // name, tag, or full commit ID. // -// * ErrCodeInvalidSourceCommitSpecifierException "InvalidSourceCommitSpecifierException" +// * InvalidSourceCommitSpecifierException // The source commit specifier is not valid. You must provide a valid branch // name, tag, or full commit ID. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeConflicts @@ -4886,61 +4886,61 @@ func (c *CodeCommit) GetMergeOptionsRequest(input *GetMergeOptionsInput) (req *r // See the AWS API reference guide for AWS CodeCommit's // API operation GetMergeOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetMergeOptions @@ -5018,32 +5018,32 @@ func (c *CodeCommit) GetPullRequestRequest(input *GetPullRequestInput) (req *req // See the AWS API reference guide for AWS CodeCommit's // API operation GetPullRequest for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequest @@ -5123,38 +5123,38 @@ func (c *CodeCommit) GetPullRequestApprovalStatesRequest(input *GetPullRequestAp // See the AWS API reference guide for AWS CodeCommit's // API operation GetPullRequestApprovalStates for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidRevisionIdException "InvalidRevisionIdException" +// * InvalidRevisionIdException // The revision ID is not valid. Use GetPullRequest to determine the value. // -// * ErrCodeRevisionIdRequiredException "RevisionIdRequiredException" +// * RevisionIdRequiredException // A revision ID is required, but was not provided. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestApprovalStates @@ -5234,38 +5234,38 @@ func (c *CodeCommit) GetPullRequestOverrideStateRequest(input *GetPullRequestOve // See the AWS API reference guide for AWS CodeCommit's // API operation GetPullRequestOverrideState for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidRevisionIdException "InvalidRevisionIdException" +// * InvalidRevisionIdException // The revision ID is not valid. Use GetPullRequest to determine the value. // -// * ErrCodeRevisionIdRequiredException "RevisionIdRequiredException" +// * RevisionIdRequiredException // A revision ID is required, but was not provided. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetPullRequestOverrideState @@ -5349,33 +5349,33 @@ func (c *CodeCommit) GetRepositoryRequest(input *GetRepositoryInput) (req *reque // See the AWS API reference guide for AWS CodeCommit's // API operation GetRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository @@ -5453,33 +5453,33 @@ func (c *CodeCommit) GetRepositoryTriggersRequest(input *GetRepositoryTriggersIn // See the AWS API reference guide for AWS CodeCommit's // API operation GetRepositoryTriggers for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepositoryTriggers @@ -5565,11 +5565,11 @@ func (c *CodeCommit) ListApprovalRuleTemplatesRequest(input *ListApprovalRuleTem // See the AWS API reference guide for AWS CodeCommit's // API operation ListApprovalRuleTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// Returned Error Types: +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListApprovalRuleTemplates @@ -5705,39 +5705,39 @@ func (c *CodeCommit) ListAssociatedApprovalRuleTemplatesForRepositoryRequest(inp // See the AWS API reference guide for AWS CodeCommit's // API operation ListAssociatedApprovalRuleTemplatesForRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListAssociatedApprovalRuleTemplatesForRepository @@ -5873,36 +5873,36 @@ func (c *CodeCommit) ListBranchesRequest(input *ListBranchesInput) (req *request // See the AWS API reference guide for AWS CodeCommit's // API operation ListBranches for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListBranches @@ -6039,50 +6039,50 @@ func (c *CodeCommit) ListPullRequestsRequest(input *ListPullRequestsInput) (req // See the AWS API reference guide for AWS CodeCommit's // API operation ListPullRequests for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPullRequestStatusException "InvalidPullRequestStatusException" +// Returned Error Types: +// * InvalidPullRequestStatusException // The pull request status is not valid. The only valid values are OPEN and // CLOSED. // -// * ErrCodeInvalidAuthorArnException "InvalidAuthorArnException" +// * InvalidAuthorArnException // The Amazon Resource Name (ARN) is not valid. Make sure that you have provided // the full ARN for the author of the pull request, and then try again. // -// * ErrCodeAuthorDoesNotExistException "AuthorDoesNotExistException" +// * AuthorDoesNotExistException // The specified Amazon Resource Name (ARN) does not exist in the AWS account. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListPullRequests @@ -6218,14 +6218,14 @@ func (c *CodeCommit) ListRepositoriesRequest(input *ListRepositoriesInput) (req // See the AWS API reference guide for AWS CodeCommit's // API operation ListRepositories for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidSortByException "InvalidSortByException" +// Returned Error Types: +// * InvalidSortByException // The specified sort by value is not valid. // -// * ErrCodeInvalidOrderException "InvalidOrderException" +// * InvalidOrderException // The specified sort order is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositories @@ -6361,39 +6361,39 @@ func (c *CodeCommit) ListRepositoriesForApprovalRuleTemplateRequest(input *ListR // See the AWS API reference guide for AWS CodeCommit's // API operation ListRepositoriesForApprovalRuleTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// Returned Error Types: +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified number of maximum results is not valid. // -// * ErrCodeInvalidContinuationTokenException "InvalidContinuationTokenException" +// * InvalidContinuationTokenException // The specified continuation token is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/ListRepositoriesForApprovalRuleTemplate @@ -6526,24 +6526,24 @@ func (c *CodeCommit) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS CodeCommit's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// Returned Error Types: +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeResourceArnRequiredException "ResourceArnRequiredException" +// * ResourceArnRequiredException // A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. // For a list of valid resources in AWS CodeCommit, see CodeCommit Resources // and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) // in the AWS CodeCommit User Guide. // -// * ErrCodeInvalidResourceArnException "InvalidResourceArnException" +// * InvalidResourceArnException // The value for the resource ARN is not valid. For more information about resources // in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) // in the AWS CodeCommit User Guide. @@ -6623,74 +6623,74 @@ func (c *CodeCommit) MergeBranchesByFastForwardRequest(input *MergeBranchesByFas // See the AWS API reference guide for AWS CodeCommit's // API operation MergeBranchesByFastForward for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidTargetBranchException "InvalidTargetBranchException" +// * InvalidTargetBranchException // The specified target branch is not valid. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException" +// * BranchNameIsTagNameException // The specified branch name is not valid because it is a tag name. Enter the // name of a branch in the repository. For a list of valid branch names, use // ListBranches. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeManualMergeRequiredException "ManualMergeRequiredException" +// * ManualMergeRequiredException // The pull request cannot be merged automatically into the destination branch. // You must manually merge the branches and resolve any conflicts. // -// * ErrCodeConcurrentReferenceUpdateException "ConcurrentReferenceUpdateException" +// * ConcurrentReferenceUpdateException // The merge cannot be completed because the target branch has been modified. // Another user might have modified the target branch while the merge was in // progress. Wait a few minutes, and then try again. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByFastForward @@ -6768,148 +6768,148 @@ func (c *CodeCommit) MergeBranchesBySquashRequest(input *MergeBranchesBySquashIn // See the AWS API reference guide for AWS CodeCommit's // API operation MergeBranchesBySquash for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidTargetBranchException "InvalidTargetBranchException" +// * InvalidTargetBranchException // The specified target branch is not valid. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException" +// * BranchNameIsTagNameException // The specified branch name is not valid because it is a tag name. Enter the // name of a branch in the repository. For a list of valid branch names, use // ListBranches. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeManualMergeRequiredException "ManualMergeRequiredException" +// * ManualMergeRequiredException // The pull request cannot be merged automatically into the destination branch. // You must manually merge the branches and resolve any conflicts. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeInvalidConflictResolutionException "InvalidConflictResolutionException" +// * InvalidConflictResolutionException // The specified conflict resolution list is not valid. // -// * ErrCodeMaximumConflictResolutionEntriesExceededException "MaximumConflictResolutionEntriesExceededException" +// * MaximumConflictResolutionEntriesExceededException // The number of allowed conflict resolution entries was exceeded. // -// * ErrCodeMultipleConflictResolutionEntriesException "MultipleConflictResolutionEntriesException" +// * MultipleConflictResolutionEntriesException // More than one conflict resolution entries exists for the conflict. A conflict // can have only one conflict resolution entry. // -// * ErrCodeReplacementTypeRequiredException "ReplacementTypeRequiredException" +// * ReplacementTypeRequiredException // A replacement type is required. // -// * ErrCodeInvalidReplacementTypeException "InvalidReplacementTypeException" +// * InvalidReplacementTypeException // Automerge was specified for resolving the conflict, but the specified replacement // type is not valid. // -// * ErrCodeReplacementContentRequiredException "ReplacementContentRequiredException" +// * ReplacementContentRequiredException // USE_NEW_CONTENT was specified, but no replacement content has been provided. // -// * ErrCodeInvalidReplacementContentException "InvalidReplacementContentException" +// * InvalidReplacementContentException // Automerge was specified for resolving the conflict, but the replacement type // is not valid or content is missing. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" +// * FileContentSizeLimitExceededException // The file cannot be added because it is too large. The maximum file size is // 6 MB, and the combined file content change size is 7 MB. Consider making // these changes using a Git client. // -// * ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" +// * FolderContentSizeLimitExceededException // The commit cannot be created because at least one of the overall changes // in the commit results in a folder whose contents exceed the limit of 6 MB. // Either reduce the number and size of your changes, or split the changes across // multiple folders. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeFileModeRequiredException "FileModeRequiredException" +// * FileModeRequiredException // The commit cannot be created because no file mode has been specified. A file // mode is required to update mode permissions for a file. // -// * ErrCodeInvalidFileModeException "InvalidFileModeException" +// * InvalidFileModeException // The specified file mode permission is not valid. For a list of valid file // mode permissions, see PutFile. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeConcurrentReferenceUpdateException "ConcurrentReferenceUpdateException" +// * ConcurrentReferenceUpdateException // The merge cannot be completed because the target branch has been modified. // Another user might have modified the target branch while the merge was in // progress. Wait a few minutes, and then try again. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesBySquash @@ -6987,148 +6987,148 @@ func (c *CodeCommit) MergeBranchesByThreeWayRequest(input *MergeBranchesByThreeW // See the AWS API reference guide for AWS CodeCommit's // API operation MergeBranchesByThreeWay for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeCommitRequiredException "CommitRequiredException" +// * CommitRequiredException // A commit was not specified. // -// * ErrCodeInvalidCommitException "InvalidCommitException" +// * InvalidCommitException // The specified commit is not valid. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidTargetBranchException "InvalidTargetBranchException" +// * InvalidTargetBranchException // The specified target branch is not valid. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException" +// * BranchNameIsTagNameException // The specified branch name is not valid because it is a tag name. Enter the // name of a branch in the repository. For a list of valid branch names, use // ListBranches. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeManualMergeRequiredException "ManualMergeRequiredException" +// * ManualMergeRequiredException // The pull request cannot be merged automatically into the destination branch. // You must manually merge the branches and resolve any conflicts. // -// * ErrCodeConcurrentReferenceUpdateException "ConcurrentReferenceUpdateException" +// * ConcurrentReferenceUpdateException // The merge cannot be completed because the target branch has been modified. // Another user might have modified the target branch while the merge was in // progress. Wait a few minutes, and then try again. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeInvalidConflictResolutionException "InvalidConflictResolutionException" +// * InvalidConflictResolutionException // The specified conflict resolution list is not valid. // -// * ErrCodeMaximumConflictResolutionEntriesExceededException "MaximumConflictResolutionEntriesExceededException" +// * MaximumConflictResolutionEntriesExceededException // The number of allowed conflict resolution entries was exceeded. // -// * ErrCodeMultipleConflictResolutionEntriesException "MultipleConflictResolutionEntriesException" +// * MultipleConflictResolutionEntriesException // More than one conflict resolution entries exists for the conflict. A conflict // can have only one conflict resolution entry. // -// * ErrCodeReplacementTypeRequiredException "ReplacementTypeRequiredException" +// * ReplacementTypeRequiredException // A replacement type is required. // -// * ErrCodeInvalidReplacementTypeException "InvalidReplacementTypeException" +// * InvalidReplacementTypeException // Automerge was specified for resolving the conflict, but the specified replacement // type is not valid. // -// * ErrCodeReplacementContentRequiredException "ReplacementContentRequiredException" +// * ReplacementContentRequiredException // USE_NEW_CONTENT was specified, but no replacement content has been provided. // -// * ErrCodeInvalidReplacementContentException "InvalidReplacementContentException" +// * InvalidReplacementContentException // Automerge was specified for resolving the conflict, but the replacement type // is not valid or content is missing. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" +// * FileContentSizeLimitExceededException // The file cannot be added because it is too large. The maximum file size is // 6 MB, and the combined file content change size is 7 MB. Consider making // these changes using a Git client. // -// * ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" +// * FolderContentSizeLimitExceededException // The commit cannot be created because at least one of the overall changes // in the commit results in a folder whose contents exceed the limit of 6 MB. // Either reduce the number and size of your changes, or split the changes across // multiple folders. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeFileModeRequiredException "FileModeRequiredException" +// * FileModeRequiredException // The commit cannot be created because no file mode has been specified. A file // mode is required to update mode permissions for a file. // -// * ErrCodeInvalidFileModeException "InvalidFileModeException" +// * InvalidFileModeException // The specified file mode permission is not valid. For a list of valid file // mode permissions, see PutFile. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergeBranchesByThreeWay @@ -7209,77 +7209,77 @@ func (c *CodeCommit) MergePullRequestByFastForwardRequest(input *MergePullReques // See the AWS API reference guide for AWS CodeCommit's // API operation MergePullRequestByFastForward for usage and error information. // -// Returned Error Codes: -// * ErrCodeManualMergeRequiredException "ManualMergeRequiredException" +// Returned Error Types: +// * ManualMergeRequiredException // The pull request cannot be merged automatically into the destination branch. // You must manually merge the branches and resolve any conflicts. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeTipOfSourceReferenceIsDifferentException "TipOfSourceReferenceIsDifferentException" +// * TipOfSourceReferenceIsDifferentException // The tip of the source branch in the destination repository does not match // the tip of the source branch specified in your request. The pull request // might have been updated. Make sure that you have the latest changes. // -// * ErrCodeReferenceDoesNotExistException "ReferenceDoesNotExistException" +// * ReferenceDoesNotExistException // The specified reference does not exist. You must provide a full commit ID. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException" +// * RepositoryNotAssociatedWithPullRequestException // The repository does not contain any pull requests with that pull request // ID. Use GetPullRequest to verify the correct repository name for the pull // request ID. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeConcurrentReferenceUpdateException "ConcurrentReferenceUpdateException" +// * ConcurrentReferenceUpdateException // The merge cannot be completed because the target branch has been modified. // Another user might have modified the target branch while the merge was in // progress. Wait a few minutes, and then try again. // -// * ErrCodePullRequestApprovalRulesNotSatisfiedException "PullRequestApprovalRulesNotSatisfiedException" +// * PullRequestApprovalRulesNotSatisfiedException // The pull request cannot be merged because one or more approval rules applied // to the pull request have conditions that have not been met. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByFastForward @@ -7359,149 +7359,149 @@ func (c *CodeCommit) MergePullRequestBySquashRequest(input *MergePullRequestBySq // See the AWS API reference guide for AWS CodeCommit's // API operation MergePullRequestBySquash for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// Returned Error Types: +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeManualMergeRequiredException "ManualMergeRequiredException" +// * ManualMergeRequiredException // The pull request cannot be merged automatically into the destination branch. // You must manually merge the branches and resolve any conflicts. // -// * ErrCodeTipOfSourceReferenceIsDifferentException "TipOfSourceReferenceIsDifferentException" +// * TipOfSourceReferenceIsDifferentException // The tip of the source branch in the destination repository does not match // the tip of the source branch specified in your request. The pull request // might have been updated. Make sure that you have the latest changes. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeInvalidConflictResolutionException "InvalidConflictResolutionException" +// * InvalidConflictResolutionException // The specified conflict resolution list is not valid. // -// * ErrCodeReplacementTypeRequiredException "ReplacementTypeRequiredException" +// * ReplacementTypeRequiredException // A replacement type is required. // -// * ErrCodeInvalidReplacementTypeException "InvalidReplacementTypeException" +// * InvalidReplacementTypeException // Automerge was specified for resolving the conflict, but the specified replacement // type is not valid. // -// * ErrCodeMultipleConflictResolutionEntriesException "MultipleConflictResolutionEntriesException" +// * MultipleConflictResolutionEntriesException // More than one conflict resolution entries exists for the conflict. A conflict // can have only one conflict resolution entry. // -// * ErrCodeReplacementContentRequiredException "ReplacementContentRequiredException" +// * ReplacementContentRequiredException // USE_NEW_CONTENT was specified, but no replacement content has been provided. // -// * ErrCodeMaximumConflictResolutionEntriesExceededException "MaximumConflictResolutionEntriesExceededException" +// * MaximumConflictResolutionEntriesExceededException // The number of allowed conflict resolution entries was exceeded. // -// * ErrCodeConcurrentReferenceUpdateException "ConcurrentReferenceUpdateException" +// * ConcurrentReferenceUpdateException // The merge cannot be completed because the target branch has been modified. // Another user might have modified the target branch while the merge was in // progress. Wait a few minutes, and then try again. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeInvalidFileModeException "InvalidFileModeException" +// * InvalidFileModeException // The specified file mode permission is not valid. For a list of valid file // mode permissions, see PutFile. // -// * ErrCodeInvalidReplacementContentException "InvalidReplacementContentException" +// * InvalidReplacementContentException // Automerge was specified for resolving the conflict, but the replacement type // is not valid or content is missing. // -// * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" +// * FileContentSizeLimitExceededException // The file cannot be added because it is too large. The maximum file size is // 6 MB, and the combined file content change size is 7 MB. Consider making // these changes using a Git client. // -// * ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" +// * FolderContentSizeLimitExceededException // The commit cannot be created because at least one of the overall changes // in the commit results in a folder whose contents exceed the limit of 6 MB. // Either reduce the number and size of your changes, or split the changes across // multiple folders. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException" +// * RepositoryNotAssociatedWithPullRequestException // The repository does not contain any pull requests with that pull request // ID. Use GetPullRequest to verify the correct repository name for the pull // request ID. // -// * ErrCodePullRequestApprovalRulesNotSatisfiedException "PullRequestApprovalRulesNotSatisfiedException" +// * PullRequestApprovalRulesNotSatisfiedException // The pull request cannot be merged because one or more approval rules applied // to the pull request have conditions that have not been met. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestBySquash @@ -7582,149 +7582,149 @@ func (c *CodeCommit) MergePullRequestByThreeWayRequest(input *MergePullRequestBy // See the AWS API reference guide for AWS CodeCommit's // API operation MergePullRequestByThreeWay for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// Returned Error Types: +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeManualMergeRequiredException "ManualMergeRequiredException" +// * ManualMergeRequiredException // The pull request cannot be merged automatically into the destination branch. // You must manually merge the branches and resolve any conflicts. // -// * ErrCodeTipOfSourceReferenceIsDifferentException "TipOfSourceReferenceIsDifferentException" +// * TipOfSourceReferenceIsDifferentException // The tip of the source branch in the destination repository does not match // the tip of the source branch specified in your request. The pull request // might have been updated. Make sure that you have the latest changes. // -// * ErrCodeTipsDivergenceExceededException "TipsDivergenceExceededException" +// * TipsDivergenceExceededException // The divergence between the tips of the provided commit specifiers is too // great to determine whether there might be any merge conflicts. Locally compare // the specifiers using git diff or a diff tool. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeInvalidConflictDetailLevelException "InvalidConflictDetailLevelException" +// * InvalidConflictDetailLevelException // The specified conflict detail level is not valid. // -// * ErrCodeInvalidConflictResolutionStrategyException "InvalidConflictResolutionStrategyException" +// * InvalidConflictResolutionStrategyException // The specified conflict resolution strategy is not valid. // -// * ErrCodeInvalidConflictResolutionException "InvalidConflictResolutionException" +// * InvalidConflictResolutionException // The specified conflict resolution list is not valid. // -// * ErrCodeReplacementTypeRequiredException "ReplacementTypeRequiredException" +// * ReplacementTypeRequiredException // A replacement type is required. // -// * ErrCodeInvalidReplacementTypeException "InvalidReplacementTypeException" +// * InvalidReplacementTypeException // Automerge was specified for resolving the conflict, but the specified replacement // type is not valid. // -// * ErrCodeMultipleConflictResolutionEntriesException "MultipleConflictResolutionEntriesException" +// * MultipleConflictResolutionEntriesException // More than one conflict resolution entries exists for the conflict. A conflict // can have only one conflict resolution entry. // -// * ErrCodeReplacementContentRequiredException "ReplacementContentRequiredException" +// * ReplacementContentRequiredException // USE_NEW_CONTENT was specified, but no replacement content has been provided. // -// * ErrCodeMaximumConflictResolutionEntriesExceededException "MaximumConflictResolutionEntriesExceededException" +// * MaximumConflictResolutionEntriesExceededException // The number of allowed conflict resolution entries was exceeded. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeInvalidFileModeException "InvalidFileModeException" +// * InvalidFileModeException // The specified file mode permission is not valid. For a list of valid file // mode permissions, see PutFile. // -// * ErrCodeInvalidReplacementContentException "InvalidReplacementContentException" +// * InvalidReplacementContentException // Automerge was specified for resolving the conflict, but the replacement type // is not valid or content is missing. // -// * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" +// * FileContentSizeLimitExceededException // The file cannot be added because it is too large. The maximum file size is // 6 MB, and the combined file content change size is 7 MB. Consider making // these changes using a Git client. // -// * ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" +// * FolderContentSizeLimitExceededException // The commit cannot be created because at least one of the overall changes // in the commit results in a folder whose contents exceed the limit of 6 MB. // Either reduce the number and size of your changes, or split the changes across // multiple folders. // -// * ErrCodeMaximumFileContentToLoadExceededException "MaximumFileContentToLoadExceededException" +// * MaximumFileContentToLoadExceededException // The number of files to load exceeds the allowed limit. // -// * ErrCodeMaximumItemsToCompareExceededException "MaximumItemsToCompareExceededException" +// * MaximumItemsToCompareExceededException // The number of items to compare between the source or destination branches // and the merge base has exceeded the maximum allowed. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException" +// * RepositoryNotAssociatedWithPullRequestException // The repository does not contain any pull requests with that pull request // ID. Use GetPullRequest to verify the correct repository name for the pull // request ID. // -// * ErrCodeConcurrentReferenceUpdateException "ConcurrentReferenceUpdateException" +// * ConcurrentReferenceUpdateException // The merge cannot be completed because the target branch has been modified. // Another user might have modified the target branch while the merge was in // progress. Wait a few minutes, and then try again. // -// * ErrCodePullRequestApprovalRulesNotSatisfiedException "PullRequestApprovalRulesNotSatisfiedException" +// * PullRequestApprovalRulesNotSatisfiedException // The pull request cannot be merged because one or more approval rules applied // to the pull request have conditions that have not been met. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/MergePullRequestByThreeWay @@ -7804,55 +7804,55 @@ func (c *CodeCommit) OverridePullRequestApprovalRulesRequest(input *OverridePull // See the AWS API reference guide for AWS CodeCommit's // API operation OverridePullRequestApprovalRules for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidRevisionIdException "InvalidRevisionIdException" +// * InvalidRevisionIdException // The revision ID is not valid. Use GetPullRequest to determine the value. // -// * ErrCodeRevisionIdRequiredException "RevisionIdRequiredException" +// * RevisionIdRequiredException // A revision ID is required, but was not provided. // -// * ErrCodeInvalidOverrideStatusException "InvalidOverrideStatusException" +// * InvalidOverrideStatusException // The override status is not valid. Valid statuses are OVERRIDE and REVOKE. // -// * ErrCodeOverrideStatusRequiredException "OverrideStatusRequiredException" +// * OverrideStatusRequiredException // An override status is required, but no value was provided. Valid values include // OVERRIDE and REVOKE. // -// * ErrCodeOverrideAlreadySetException "OverrideAlreadySetException" +// * OverrideAlreadySetException // The pull request has already had its approval rules set to override. // -// * ErrCodeRevisionNotCurrentException "RevisionNotCurrentException" +// * RevisionNotCurrentException // The revision ID provided in the request does not match the current revision // ID. Use GetPullRequest to retrieve the current revision ID. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/OverridePullRequestApprovalRules @@ -7930,89 +7930,89 @@ func (c *CodeCommit) PostCommentForComparedCommitRequest(input *PostCommentForCo // See the AWS API reference guide for AWS CodeCommit's // API operation PostCommentForComparedCommit for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException" +// * ClientRequestTokenRequiredException // A client request token is required. A client request token is an unique, // client-generated idempotency token that, when provided in a request, ensures // the request cannot be repeated with a changed parameter. If a request is // received with the same parameters and a token is included, the request returns // information about the initial request that used that token. // -// * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" +// * InvalidClientRequestTokenException // The client request token is not valid. // -// * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException" +// * IdempotencyParameterMismatchException // The client request token is not valid. Either the token is not in a valid // format, or the token has been used in a previous request and cannot be reused. // -// * ErrCodeCommentContentRequiredException "CommentContentRequiredException" +// * CommentContentRequiredException // The comment is empty. You must provide some content for a comment. The content // cannot be null. // -// * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" +// * CommentContentSizeLimitExceededException // The comment is too large. Comments are limited to 1,000 characters. // -// * ErrCodeInvalidFileLocationException "InvalidFileLocationException" +// * InvalidFileLocationException // The location of the file is not valid. Make sure that you include the file // name and extension. // -// * ErrCodeInvalidRelativeFileVersionEnumException "InvalidRelativeFileVersionEnumException" +// * InvalidRelativeFileVersionEnumException // Either the enum is not in a valid format, or the specified file version enum // is not valid in respect to the current file version. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidFilePositionException "InvalidFilePositionException" +// * InvalidFilePositionException // The position is not valid. Make sure that the line number exists in the version // of the file you want to comment on. // -// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" +// * CommitIdRequiredException // A commit ID was not specified. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException "BeforeCommitIdAndAfterCommitIdAreSameException" +// * BeforeCommitIdAndAfterCommitIdAreSameException // The before commit ID and the after commit ID are the same, which is not valid. // The before commit ID and the after commit ID must be different commit IDs. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodePathDoesNotExistException "PathDoesNotExistException" +// * PathDoesNotExistException // The specified path does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PostCommentForComparedCommit @@ -8090,108 +8090,108 @@ func (c *CodeCommit) PostCommentForPullRequestRequest(input *PostCommentForPullR // See the AWS API reference guide for AWS CodeCommit's // API operation PostCommentForPullRequest for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeRepositoryNotAssociatedWithPullRequestException "RepositoryNotAssociatedWithPullRequestException" +// * RepositoryNotAssociatedWithPullRequestException // The repository does not contain any pull requests with that pull request // ID. Use GetPullRequest to verify the correct repository name for the pull // request ID. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException" +// * ClientRequestTokenRequiredException // A client request token is required. A client request token is an unique, // client-generated idempotency token that, when provided in a request, ensures // the request cannot be repeated with a changed parameter. If a request is // received with the same parameters and a token is included, the request returns // information about the initial request that used that token. // -// * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" +// * InvalidClientRequestTokenException // The client request token is not valid. // -// * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException" +// * IdempotencyParameterMismatchException // The client request token is not valid. Either the token is not in a valid // format, or the token has been used in a previous request and cannot be reused. // -// * ErrCodeCommentContentRequiredException "CommentContentRequiredException" +// * CommentContentRequiredException // The comment is empty. You must provide some content for a comment. The content // cannot be null. // -// * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" +// * CommentContentSizeLimitExceededException // The comment is too large. Comments are limited to 1,000 characters. // -// * ErrCodeInvalidFileLocationException "InvalidFileLocationException" +// * InvalidFileLocationException // The location of the file is not valid. Make sure that you include the file // name and extension. // -// * ErrCodeInvalidRelativeFileVersionEnumException "InvalidRelativeFileVersionEnumException" +// * InvalidRelativeFileVersionEnumException // Either the enum is not in a valid format, or the specified file version enum // is not valid in respect to the current file version. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidFilePositionException "InvalidFilePositionException" +// * InvalidFilePositionException // The position is not valid. Make sure that the line number exists in the version // of the file you want to comment on. // -// * ErrCodeCommitIdRequiredException "CommitIdRequiredException" +// * CommitIdRequiredException // A commit ID was not specified. // -// * ErrCodeInvalidCommitIdException "InvalidCommitIdException" +// * InvalidCommitIdException // The specified commit ID is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeCommitDoesNotExistException "CommitDoesNotExistException" +// * CommitDoesNotExistException // The specified commit does not exist or no commit was specified, and the specified // repository has no default branch. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodePathDoesNotExistException "PathDoesNotExistException" +// * PathDoesNotExistException // The specified path does not exist. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeBeforeCommitIdAndAfterCommitIdAreSameException "BeforeCommitIdAndAfterCommitIdAreSameException" +// * BeforeCommitIdAndAfterCommitIdAreSameException // The before commit ID and the after commit ID are the same, which is not valid. // The before commit ID and the after commit ID must be different commit IDs. // @@ -8271,36 +8271,36 @@ func (c *CodeCommit) PostCommentReplyRequest(input *PostCommentReplyInput) (req // See the AWS API reference guide for AWS CodeCommit's // API operation PostCommentReply for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientRequestTokenRequiredException "ClientRequestTokenRequiredException" +// Returned Error Types: +// * ClientRequestTokenRequiredException // A client request token is required. A client request token is an unique, // client-generated idempotency token that, when provided in a request, ensures // the request cannot be repeated with a changed parameter. If a request is // received with the same parameters and a token is included, the request returns // information about the initial request that used that token. // -// * ErrCodeInvalidClientRequestTokenException "InvalidClientRequestTokenException" +// * InvalidClientRequestTokenException // The client request token is not valid. // -// * ErrCodeIdempotencyParameterMismatchException "IdempotencyParameterMismatchException" +// * IdempotencyParameterMismatchException // The client request token is not valid. Either the token is not in a valid // format, or the token has been used in a previous request and cannot be reused. // -// * ErrCodeCommentContentRequiredException "CommentContentRequiredException" +// * CommentContentRequiredException // The comment is empty. You must provide some content for a comment. The content // cannot be null. // -// * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" +// * CommentContentSizeLimitExceededException // The comment is too large. Comments are limited to 1,000 characters. // -// * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" +// * CommentDoesNotExistException // No comment exists with the provided ID. Verify that you have used the correct // ID, and then try again. // -// * ErrCodeCommentIdRequiredException "CommentIdRequiredException" +// * CommentIdRequiredException // The comment ID is missing or null. A comment ID is required. // -// * ErrCodeInvalidCommentIdException "InvalidCommentIdException" +// * InvalidCommentIdException // The comment ID is not in a valid format. Make sure that you have provided // the full comment ID. // @@ -8380,126 +8380,126 @@ func (c *CodeCommit) PutFileRequest(input *PutFileInput) (req *request.Request, // See the AWS API reference guide for AWS CodeCommit's // API operation PutFile for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeParentCommitIdRequiredException "ParentCommitIdRequiredException" +// * ParentCommitIdRequiredException // A parent commit ID is required. To view the full commit ID of a branch in // a repository, use GetBranch or a Git command (for example, git pull or git // log). // -// * ErrCodeInvalidParentCommitIdException "InvalidParentCommitIdException" +// * InvalidParentCommitIdException // The parent commit ID is not valid. The commit ID cannot be empty, and must // match the head commit ID for the branch of the repository where you want // to add or update a file. // -// * ErrCodeParentCommitDoesNotExistException "ParentCommitDoesNotExistException" +// * ParentCommitDoesNotExistException // The parent commit ID is not valid because it does not exist. The specified // parent commit ID does not exist in the specified branch of the repository. // -// * ErrCodeParentCommitIdOutdatedException "ParentCommitIdOutdatedException" +// * ParentCommitIdOutdatedException // The file could not be added because the provided parent commit ID is not // the current tip of the specified branch. To view the full commit ID of the // current head of the branch, use GetBranch. // -// * ErrCodeFileContentRequiredException "FileContentRequiredException" +// * FileContentRequiredException // The file cannot be added because it is empty. Empty files cannot be added // to the repository with this API. // -// * ErrCodeFileContentSizeLimitExceededException "FileContentSizeLimitExceededException" +// * FileContentSizeLimitExceededException // The file cannot be added because it is too large. The maximum file size is // 6 MB, and the combined file content change size is 7 MB. Consider making // these changes using a Git client. // -// * ErrCodeFolderContentSizeLimitExceededException "FolderContentSizeLimitExceededException" +// * FolderContentSizeLimitExceededException // The commit cannot be created because at least one of the overall changes // in the commit results in a folder whose contents exceed the limit of 6 MB. // Either reduce the number and size of your changes, or split the changes across // multiple folders. // -// * ErrCodePathRequiredException "PathRequiredException" +// * PathRequiredException // The folderPath for a location cannot be null. // -// * ErrCodeInvalidPathException "InvalidPathException" +// * InvalidPathException // The specified path is not valid. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeBranchNameIsTagNameException "BranchNameIsTagNameException" +// * BranchNameIsTagNameException // The specified branch name is not valid because it is a tag name. Enter the // name of a branch in the repository. For a list of valid branch names, use // ListBranches. // -// * ErrCodeInvalidFileModeException "InvalidFileModeException" +// * InvalidFileModeException // The specified file mode permission is not valid. For a list of valid file // mode permissions, see PutFile. // -// * ErrCodeNameLengthExceededException "NameLengthExceededException" +// * NameLengthExceededException // The user name is not valid because it has exceeded the character limit for // author names. // -// * ErrCodeInvalidEmailException "InvalidEmailException" +// * InvalidEmailException // The specified email address either contains one or more characters that are // not allowed, or it exceeds the maximum number of characters allowed for an // email address. // -// * ErrCodeCommitMessageLengthExceededException "CommitMessageLengthExceededException" +// * CommitMessageLengthExceededException // The commit message is too long. Provide a shorter string. // -// * ErrCodeInvalidDeletionParameterException "InvalidDeletionParameterException" +// * InvalidDeletionParameterException // The specified deletion parameter is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // -// * ErrCodeSameFileContentException "SameFileContentException" +// * SameFileContentException // The file was not added or updated because the content of the file is exactly // the same as the content of that file in the repository and branch that you // specified. // -// * ErrCodeFileNameConflictsWithDirectoryNameException "FileNameConflictsWithDirectoryNameException" +// * FileNameConflictsWithDirectoryNameException // A file cannot be added to the repository because the specified file name // has the same name as a directory in this repository. Either provide another // name for the file, or add the file in a directory that does not match the // file name. // -// * ErrCodeDirectoryNameConflictsWithFileNameException "DirectoryNameConflictsWithFileNameException" +// * DirectoryNameConflictsWithFileNameException // A file cannot be added to the repository because the specified path name // has the same name as a file that already exists in this repository. Either // provide a different name for the file, or specify a different path for the // file. // -// * ErrCodeFilePathConflictsWithSubmodulePathException "FilePathConflictsWithSubmodulePathException" +// * FilePathConflictsWithSubmodulePathException // The commit cannot be created because a specified file path points to a submodule. // Verify that the destination files have valid file paths that do not point // to a submodule. @@ -8579,79 +8579,79 @@ func (c *CodeCommit) PutRepositoryTriggersRequest(input *PutRepositoryTriggersIn // See the AWS API reference guide for AWS CodeCommit's // API operation PutRepositoryTriggers for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// Returned Error Types: +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException" +// * RepositoryTriggersListRequiredException // The list of triggers for the repository is required, but was not specified. // -// * ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException" +// * MaximumRepositoryTriggersExceededException // The number of triggers allowed for the repository was exceeded. // -// * ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException" +// * InvalidRepositoryTriggerNameException // The name of the trigger is not valid. // -// * ErrCodeInvalidRepositoryTriggerDestinationArnException "InvalidRepositoryTriggerDestinationArnException" +// * InvalidRepositoryTriggerDestinationArnException // The Amazon Resource Name (ARN) for the trigger is not valid for the specified // destination. The most common reason for this error is that the ARN does not // meet the requirements for the service type. // -// * ErrCodeInvalidRepositoryTriggerRegionException "InvalidRepositoryTriggerRegionException" +// * InvalidRepositoryTriggerRegionException // The AWS Region for the trigger target does not match the AWS Region for the // repository. Triggers must be created in the same Region as the target for // the trigger. // -// * ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException" +// * InvalidRepositoryTriggerCustomDataException // The custom data provided for the trigger is not valid. // -// * ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException" +// * MaximumBranchesExceededException // The number of branches for the trigger was exceeded. // -// * ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException" +// * InvalidRepositoryTriggerBranchNameException // One or more branch names specified for the trigger is not valid. // -// * ErrCodeInvalidRepositoryTriggerEventsException "InvalidRepositoryTriggerEventsException" +// * InvalidRepositoryTriggerEventsException // One or more events specified for the trigger is not valid. Check to make // sure that all events specified match the requirements for allowed events. // -// * ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException" +// * RepositoryTriggerNameRequiredException // A name for the trigger is required, but was not specified. // -// * ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException" +// * RepositoryTriggerDestinationArnRequiredException // A destination ARN for the target service for the trigger is required, but // was not specified. // -// * ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException" +// * RepositoryTriggerBranchNameListRequiredException // At least one branch name is required, but was not specified in the trigger // configuration. // -// * ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException" +// * RepositoryTriggerEventsListRequiredException // At least one event for the trigger is required, but was not specified. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/PutRepositoryTriggers @@ -8732,41 +8732,41 @@ func (c *CodeCommit) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for AWS CodeCommit's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// Returned Error Types: +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeResourceArnRequiredException "ResourceArnRequiredException" +// * ResourceArnRequiredException // A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. // For a list of valid resources in AWS CodeCommit, see CodeCommit Resources // and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) // in the AWS CodeCommit User Guide. // -// * ErrCodeInvalidResourceArnException "InvalidResourceArnException" +// * InvalidResourceArnException // The value for the resource ARN is not valid. For more information about resources // in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) // in the AWS CodeCommit User Guide. // -// * ErrCodeTagsMapRequiredException "TagsMapRequiredException" +// * TagsMapRequiredException // A map of tags is required. // -// * ErrCodeInvalidTagsMapException "InvalidTagsMapException" +// * InvalidTagsMapException // The map of tags is not valid. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The maximum number of tags for an AWS CodeCommit resource has been exceeded. // -// * ErrCodeInvalidSystemTagUsageException "InvalidSystemTagUsageException" +// * InvalidSystemTagUsageException // The specified tag is not valid. Key names cannot be prefixed with aws:. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // The tag policy is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TagResource @@ -8847,79 +8847,79 @@ func (c *CodeCommit) TestRepositoryTriggersRequest(input *TestRepositoryTriggers // See the AWS API reference guide for AWS CodeCommit's // API operation TestRepositoryTriggers for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// Returned Error Types: +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeRepositoryTriggersListRequiredException "RepositoryTriggersListRequiredException" +// * RepositoryTriggersListRequiredException // The list of triggers for the repository is required, but was not specified. // -// * ErrCodeMaximumRepositoryTriggersExceededException "MaximumRepositoryTriggersExceededException" +// * MaximumRepositoryTriggersExceededException // The number of triggers allowed for the repository was exceeded. // -// * ErrCodeInvalidRepositoryTriggerNameException "InvalidRepositoryTriggerNameException" +// * InvalidRepositoryTriggerNameException // The name of the trigger is not valid. // -// * ErrCodeInvalidRepositoryTriggerDestinationArnException "InvalidRepositoryTriggerDestinationArnException" +// * InvalidRepositoryTriggerDestinationArnException // The Amazon Resource Name (ARN) for the trigger is not valid for the specified // destination. The most common reason for this error is that the ARN does not // meet the requirements for the service type. // -// * ErrCodeInvalidRepositoryTriggerRegionException "InvalidRepositoryTriggerRegionException" +// * InvalidRepositoryTriggerRegionException // The AWS Region for the trigger target does not match the AWS Region for the // repository. Triggers must be created in the same Region as the target for // the trigger. // -// * ErrCodeInvalidRepositoryTriggerCustomDataException "InvalidRepositoryTriggerCustomDataException" +// * InvalidRepositoryTriggerCustomDataException // The custom data provided for the trigger is not valid. // -// * ErrCodeMaximumBranchesExceededException "MaximumBranchesExceededException" +// * MaximumBranchesExceededException // The number of branches for the trigger was exceeded. // -// * ErrCodeInvalidRepositoryTriggerBranchNameException "InvalidRepositoryTriggerBranchNameException" +// * InvalidRepositoryTriggerBranchNameException // One or more branch names specified for the trigger is not valid. // -// * ErrCodeInvalidRepositoryTriggerEventsException "InvalidRepositoryTriggerEventsException" +// * InvalidRepositoryTriggerEventsException // One or more events specified for the trigger is not valid. Check to make // sure that all events specified match the requirements for allowed events. // -// * ErrCodeRepositoryTriggerNameRequiredException "RepositoryTriggerNameRequiredException" +// * RepositoryTriggerNameRequiredException // A name for the trigger is required, but was not specified. // -// * ErrCodeRepositoryTriggerDestinationArnRequiredException "RepositoryTriggerDestinationArnRequiredException" +// * RepositoryTriggerDestinationArnRequiredException // A destination ARN for the target service for the trigger is required, but // was not specified. // -// * ErrCodeRepositoryTriggerBranchNameListRequiredException "RepositoryTriggerBranchNameListRequiredException" +// * RepositoryTriggerBranchNameListRequiredException // At least one branch name is required, but was not specified in the trigger // configuration. // -// * ErrCodeRepositoryTriggerEventsListRequiredException "RepositoryTriggerEventsListRequiredException" +// * RepositoryTriggerEventsListRequiredException // At least one event for the trigger is required, but was not specified. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/TestRepositoryTriggers @@ -9000,41 +9000,41 @@ func (c *CodeCommit) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for AWS CodeCommit's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// Returned Error Types: +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeResourceArnRequiredException "ResourceArnRequiredException" +// * ResourceArnRequiredException // A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. // For a list of valid resources in AWS CodeCommit, see CodeCommit Resources // and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) // in the AWS CodeCommit User Guide. // -// * ErrCodeInvalidResourceArnException "InvalidResourceArnException" +// * InvalidResourceArnException // The value for the resource ARN is not valid. For more information about resources // in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) // in the AWS CodeCommit User Guide. // -// * ErrCodeTagKeysListRequiredException "TagKeysListRequiredException" +// * TagKeysListRequiredException // A list of tag keys is required. The list cannot be empty or null. // -// * ErrCodeInvalidTagKeysListException "InvalidTagKeysListException" +// * InvalidTagKeysListException // The list of tags is not valid. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The maximum number of tags for an AWS CodeCommit resource has been exceeded. // -// * ErrCodeInvalidSystemTagUsageException "InvalidSystemTagUsageException" +// * InvalidSystemTagUsageException // The specified tag is not valid. Key names cannot be prefixed with aws:. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // The tag policy is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UntagResource @@ -9114,27 +9114,27 @@ func (c *CodeCommit) UpdateApprovalRuleTemplateContentRequest(input *UpdateAppro // See the AWS API reference guide for AWS CodeCommit's // API operation UpdateApprovalRuleTemplateContent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// Returned Error Types: +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeInvalidApprovalRuleTemplateContentException "InvalidApprovalRuleTemplateContentException" +// * InvalidApprovalRuleTemplateContentException // The content of the approval rule template is not valid. // -// * ErrCodeInvalidRuleContentSha256Exception "InvalidRuleContentSha256Exception" +// * InvalidRuleContentSha256Exception // The SHA-256 hash signature for the rule content is not valid. // -// * ErrCodeApprovalRuleTemplateContentRequiredException "ApprovalRuleTemplateContentRequiredException" +// * ApprovalRuleTemplateContentRequiredException // The content for the approval rule template is empty. You must provide some // content for an approval rule template. The content cannot be null. // @@ -9213,21 +9213,21 @@ func (c *CodeCommit) UpdateApprovalRuleTemplateDescriptionRequest(input *UpdateA // See the AWS API reference guide for AWS CodeCommit's // API operation UpdateApprovalRuleTemplateDescription for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// Returned Error Types: +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeInvalidApprovalRuleTemplateDescriptionException "InvalidApprovalRuleTemplateDescriptionException" +// * InvalidApprovalRuleTemplateDescriptionException // The description for the approval rule template is not valid because it exceeds // the maximum characters allowed for a description. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). @@ -9307,21 +9307,21 @@ func (c *CodeCommit) UpdateApprovalRuleTemplateNameRequest(input *UpdateApproval // See the AWS API reference guide for AWS CodeCommit's // API operation UpdateApprovalRuleTemplateName for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidApprovalRuleTemplateNameException "InvalidApprovalRuleTemplateNameException" +// Returned Error Types: +// * InvalidApprovalRuleTemplateNameException // The name of the approval rule template is not valid. Template names must // be between 1 and 100 valid characters in length. For more information about // limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). // -// * ErrCodeApprovalRuleTemplateNameRequiredException "ApprovalRuleTemplateNameRequiredException" +// * ApprovalRuleTemplateNameRequiredException // An approval rule template name is required, but was not specified. // -// * ErrCodeApprovalRuleTemplateDoesNotExistException "ApprovalRuleTemplateDoesNotExistException" +// * ApprovalRuleTemplateDoesNotExistException // The specified approval rule template does not exist. Verify that the name // is correct and that you are signed in to the AWS Region where the template // was created, and then try again. // -// * ErrCodeApprovalRuleTemplateNameAlreadyExistsException "ApprovalRuleTemplateNameAlreadyExistsException" +// * ApprovalRuleTemplateNameAlreadyExistsException // You cannot create an approval rule template with that name because a template // with that name already exists in this AWS Region for your AWS account. Approval // rule template names must be unique. @@ -9401,30 +9401,30 @@ func (c *CodeCommit) UpdateCommentRequest(input *UpdateCommentInput) (req *reque // See the AWS API reference guide for AWS CodeCommit's // API operation UpdateComment for usage and error information. // -// Returned Error Codes: -// * ErrCodeCommentContentRequiredException "CommentContentRequiredException" +// Returned Error Types: +// * CommentContentRequiredException // The comment is empty. You must provide some content for a comment. The content // cannot be null. // -// * ErrCodeCommentContentSizeLimitExceededException "CommentContentSizeLimitExceededException" +// * CommentContentSizeLimitExceededException // The comment is too large. Comments are limited to 1,000 characters. // -// * ErrCodeCommentDoesNotExistException "CommentDoesNotExistException" +// * CommentDoesNotExistException // No comment exists with the provided ID. Verify that you have used the correct // ID, and then try again. // -// * ErrCodeCommentIdRequiredException "CommentIdRequiredException" +// * CommentIdRequiredException // The comment ID is missing or null. A comment ID is required. // -// * ErrCodeInvalidCommentIdException "InvalidCommentIdException" +// * InvalidCommentIdException // The comment ID is not in a valid format. Make sure that you have provided // the full comment ID. // -// * ErrCodeCommentNotCreatedByCallerException "CommentNotCreatedByCallerException" +// * CommentNotCreatedByCallerException // You cannot modify or delete this comment. Only comment authors can modify // or delete their comments. // -// * ErrCodeCommentDeletedException "CommentDeletedException" +// * CommentDeletedException // This comment has already been deleted. You cannot edit or delete a deleted // comment. // @@ -9508,42 +9508,42 @@ func (c *CodeCommit) UpdateDefaultBranchRequest(input *UpdateDefaultBranchInput) // See the AWS API reference guide for AWS CodeCommit's // API operation UpdateDefaultBranch for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeBranchNameRequiredException "BranchNameRequiredException" +// * BranchNameRequiredException // A branch name is required, but was not specified. // -// * ErrCodeInvalidBranchNameException "InvalidBranchNameException" +// * InvalidBranchNameException // The specified reference name is not valid. // -// * ErrCodeBranchDoesNotExistException "BranchDoesNotExistException" +// * BranchDoesNotExistException // The specified branch does not exist. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateDefaultBranch @@ -9623,58 +9623,58 @@ func (c *CodeCommit) UpdatePullRequestApprovalRuleContentRequest(input *UpdatePu // See the AWS API reference guide for AWS CodeCommit's // API operation UpdatePullRequestApprovalRuleContent for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodeApprovalRuleNameRequiredException "ApprovalRuleNameRequiredException" +// * ApprovalRuleNameRequiredException // An approval rule name is required, but was not specified. // -// * ErrCodeInvalidApprovalRuleNameException "InvalidApprovalRuleNameException" +// * InvalidApprovalRuleNameException // The name for the approval rule is not valid. // -// * ErrCodeApprovalRuleDoesNotExistException "ApprovalRuleDoesNotExistException" +// * ApprovalRuleDoesNotExistException // The specified approval rule does not exist. // -// * ErrCodeInvalidRuleContentSha256Exception "InvalidRuleContentSha256Exception" +// * InvalidRuleContentSha256Exception // The SHA-256 hash signature for the rule content is not valid. // -// * ErrCodeApprovalRuleContentRequiredException "ApprovalRuleContentRequiredException" +// * ApprovalRuleContentRequiredException // The content for the approval rule is empty. You must provide some content // for an approval rule. The content cannot be null. // -// * ErrCodeInvalidApprovalRuleContentException "InvalidApprovalRuleContentException" +// * InvalidApprovalRuleContentException // The content for the approval rule is not valid. // -// * ErrCodeCannotModifyApprovalRuleFromTemplateException "CannotModifyApprovalRuleFromTemplateException" +// * CannotModifyApprovalRuleFromTemplateException // The approval rule cannot be modified for the pull request because it was // created by an approval rule template and applied to the pull request automatically. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalRuleContent @@ -9754,61 +9754,61 @@ func (c *CodeCommit) UpdatePullRequestApprovalStateRequest(input *UpdatePullRequ // See the AWS API reference guide for AWS CodeCommit's // API operation UpdatePullRequestApprovalState for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidRevisionIdException "InvalidRevisionIdException" +// * InvalidRevisionIdException // The revision ID is not valid. Use GetPullRequest to determine the value. // -// * ErrCodeRevisionIdRequiredException "RevisionIdRequiredException" +// * RevisionIdRequiredException // A revision ID is required, but was not provided. // -// * ErrCodeInvalidApprovalStateException "InvalidApprovalStateException" +// * InvalidApprovalStateException // The state for the approval is not valid. Valid values include APPROVE and // REVOKE. // -// * ErrCodeApprovalStateRequiredException "ApprovalStateRequiredException" +// * ApprovalStateRequiredException // An approval state is required, but was not specified. // -// * ErrCodePullRequestCannotBeApprovedByAuthorException "PullRequestCannotBeApprovedByAuthorException" +// * PullRequestCannotBeApprovedByAuthorException // The approval cannot be applied because the user approving the pull request // matches the user who created the pull request. You cannot approve a pull // request that you created. // -// * ErrCodeRevisionNotCurrentException "RevisionNotCurrentException" +// * RevisionNotCurrentException // The revision ID provided in the request does not match the current revision // ID. Use GetPullRequest to retrieve the current revision ID. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // -// * ErrCodeMaximumNumberOfApprovalsExceededException "MaximumNumberOfApprovalsExceededException" +// * MaximumNumberOfApprovalsExceededException // The number of approvals required for the approval rule exceeds the maximum // number allowed. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestApprovalState @@ -9886,24 +9886,24 @@ func (c *CodeCommit) UpdatePullRequestDescriptionRequest(input *UpdatePullReques // See the AWS API reference guide for AWS CodeCommit's // API operation UpdatePullRequestDescription for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidDescriptionException "InvalidDescriptionException" +// * InvalidDescriptionException // The pull request description is not valid. Descriptions cannot be more than // 1,000 characters. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestDescription @@ -9981,43 +9981,43 @@ func (c *CodeCommit) UpdatePullRequestStatusRequest(input *UpdatePullRequestStat // See the AWS API reference guide for AWS CodeCommit's // API operation UpdatePullRequestStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeInvalidPullRequestStatusUpdateException "InvalidPullRequestStatusUpdateException" +// * InvalidPullRequestStatusUpdateException // The pull request status update is not valid. The only valid update is from // OPEN to CLOSED. // -// * ErrCodeInvalidPullRequestStatusException "InvalidPullRequestStatusException" +// * InvalidPullRequestStatusException // The pull request status is not valid. The only valid values are OPEN and // CLOSED. // -// * ErrCodePullRequestStatusRequiredException "PullRequestStatusRequiredException" +// * PullRequestStatusRequiredException // A pull request status is required, but none was provided. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestStatus @@ -10095,27 +10095,27 @@ func (c *CodeCommit) UpdatePullRequestTitleRequest(input *UpdatePullRequestTitle // See the AWS API reference guide for AWS CodeCommit's // API operation UpdatePullRequestTitle for usage and error information. // -// Returned Error Codes: -// * ErrCodePullRequestDoesNotExistException "PullRequestDoesNotExistException" +// Returned Error Types: +// * PullRequestDoesNotExistException // The pull request ID could not be found. Make sure that you have specified // the correct repository name and pull request ID, and then try again. // -// * ErrCodeInvalidPullRequestIdException "InvalidPullRequestIdException" +// * InvalidPullRequestIdException // The pull request ID is not valid. Make sure that you have provided the full // ID and that the pull request is in the specified repository, and then try // again. // -// * ErrCodePullRequestIdRequiredException "PullRequestIdRequiredException" +// * PullRequestIdRequiredException // A pull request ID is required, but none was provided. // -// * ErrCodeTitleRequiredException "TitleRequiredException" +// * TitleRequiredException // A pull request title is required. It cannot be empty or null. // -// * ErrCodeInvalidTitleException "InvalidTitleException" +// * InvalidTitleException // The title of the pull request is not valid. Pull request titles cannot exceed // 100 characters in length. // -// * ErrCodePullRequestAlreadyClosedException "PullRequestAlreadyClosedException" +// * PullRequestAlreadyClosedException // The pull request status cannot be updated because it is already closed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdatePullRequestTitle @@ -10200,36 +10200,36 @@ func (c *CodeCommit) UpdateRepositoryDescriptionRequest(input *UpdateRepositoryD // See the AWS API reference guide for AWS CodeCommit's // API operation UpdateRepositoryDescription for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// Returned Error Types: +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. // Other exceptions occur when a required repository parameter is missing, or // when a specified repository does not exist. // -// * ErrCodeInvalidRepositoryDescriptionException "InvalidRepositoryDescriptionException" +// * InvalidRepositoryDescriptionException // The specified repository description is not valid. // -// * ErrCodeEncryptionIntegrityChecksFailedException "EncryptionIntegrityChecksFailedException" +// * EncryptionIntegrityChecksFailedException // An encryption integrity check failed. // -// * ErrCodeEncryptionKeyAccessDeniedException "EncryptionKeyAccessDeniedException" +// * EncryptionKeyAccessDeniedException // An encryption key could not be accessed. // -// * ErrCodeEncryptionKeyDisabledException "EncryptionKeyDisabledException" +// * EncryptionKeyDisabledException // The encryption key is disabled. // -// * ErrCodeEncryptionKeyNotFoundException "EncryptionKeyNotFoundException" +// * EncryptionKeyNotFoundException // No encryption key was found. // -// * ErrCodeEncryptionKeyUnavailableException "EncryptionKeyUnavailableException" +// * EncryptionKeyUnavailableException // The encryption key is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryDescription @@ -10313,17 +10313,17 @@ func (c *CodeCommit) UpdateRepositoryNameRequest(input *UpdateRepositoryNameInpu // See the AWS API reference guide for AWS CodeCommit's // API operation UpdateRepositoryName for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryDoesNotExistException "RepositoryDoesNotExistException" +// Returned Error Types: +// * RepositoryDoesNotExistException // The specified repository does not exist. // -// * ErrCodeRepositoryNameExistsException "RepositoryNameExistsException" +// * RepositoryNameExistsException // The specified repository name already exists. // -// * ErrCodeRepositoryNameRequiredException "RepositoryNameRequiredException" +// * RepositoryNameRequiredException // A repository name is required, but was not specified. // -// * ErrCodeInvalidRepositoryNameException "InvalidRepositoryNameException" +// * InvalidRepositoryNameException // A specified repository name is not valid. // // This exception occurs only when a specified repository name is not valid. @@ -10352,6 +10352,57 @@ func (c *CodeCommit) UpdateRepositoryNameWithContext(ctx aws.Context, input *Upd return out, req.Send() } +// The specified Amazon Resource Name (ARN) does not exist in the AWS account. +type ActorDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ActorDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActorDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorActorDoesNotExistException(v protocol.ResponseMetadata) error { + return &ActorDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ActorDoesNotExistException) Code() string { + return "ActorDoesNotExistException" +} + +// Message returns the exception's message. +func (s ActorDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ActorDoesNotExistException) OrigErr() error { + return nil +} + +func (s ActorDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ActorDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ActorDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + // Returns information about a specific approval on a pull request. type Approval struct { _ struct{} `type:"structure"` @@ -10473,6 +10524,109 @@ func (s *ApprovalRule) SetRuleContentSha256(v string) *ApprovalRule { return s } +// The content for the approval rule is empty. You must provide some content +// for an approval rule. The content cannot be null. +type ApprovalRuleContentRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApprovalRuleContentRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalRuleContentRequiredException) GoString() string { + return s.String() +} + +func newErrorApprovalRuleContentRequiredException(v protocol.ResponseMetadata) error { + return &ApprovalRuleContentRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApprovalRuleContentRequiredException) Code() string { + return "ApprovalRuleContentRequiredException" +} + +// Message returns the exception's message. +func (s ApprovalRuleContentRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleContentRequiredException) OrigErr() error { + return nil +} + +func (s ApprovalRuleContentRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleContentRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleContentRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified approval rule does not exist. +type ApprovalRuleDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApprovalRuleDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalRuleDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorApprovalRuleDoesNotExistException(v protocol.ResponseMetadata) error { + return &ApprovalRuleDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApprovalRuleDoesNotExistException) Code() string { + return "ApprovalRuleDoesNotExistException" +} + +// Message returns the exception's message. +func (s ApprovalRuleDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleDoesNotExistException) OrigErr() error { + return nil +} + +func (s ApprovalRuleDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + // Returns information about an event for an approval rule. type ApprovalRuleEventMetadata struct { _ struct{} `type:"structure"` @@ -10515,6 +10669,109 @@ func (s *ApprovalRuleEventMetadata) SetApprovalRuleName(v string) *ApprovalRuleE return s } +// An approval rule with that name already exists. Approval rule names must +// be unique within the scope of a pull request. +type ApprovalRuleNameAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApprovalRuleNameAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalRuleNameAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorApprovalRuleNameAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ApprovalRuleNameAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApprovalRuleNameAlreadyExistsException) Code() string { + return "ApprovalRuleNameAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ApprovalRuleNameAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleNameAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ApprovalRuleNameAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleNameAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleNameAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// An approval rule name is required, but was not specified. +type ApprovalRuleNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApprovalRuleNameRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalRuleNameRequiredException) GoString() string { + return s.String() +} + +func newErrorApprovalRuleNameRequiredException(v protocol.ResponseMetadata) error { + return &ApprovalRuleNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApprovalRuleNameRequiredException) Code() string { + return "ApprovalRuleNameRequiredException" +} + +// Message returns the exception's message. +func (s ApprovalRuleNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleNameRequiredException) OrigErr() error { + return nil +} + +func (s ApprovalRuleNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + // Returns information about an override event for approval rules for a pull // request. type ApprovalRuleOverriddenEventMetadata struct { @@ -10638,163 +10895,527 @@ func (s *ApprovalRuleTemplate) SetRuleContentSha256(v string) *ApprovalRuleTempl return s } -// Returns information about a change in the approval state for a pull request. -type ApprovalStateChangedEventMetadata struct { - _ struct{} `type:"structure"` - - // The approval status for the pull request. - ApprovalStatus *string `locationName:"approvalStatus" type:"string" enum:"ApprovalState"` - - // The revision ID of the pull request when the approval state changed. - RevisionId *string `locationName:"revisionId" type:"string"` +// The content for the approval rule template is empty. You must provide some +// content for an approval rule template. The content cannot be null. +type ApprovalRuleTemplateContentRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ApprovalStateChangedEventMetadata) String() string { +func (s ApprovalRuleTemplateContentRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ApprovalStateChangedEventMetadata) GoString() string { +func (s ApprovalRuleTemplateContentRequiredException) GoString() string { return s.String() } -// SetApprovalStatus sets the ApprovalStatus field's value. -func (s *ApprovalStateChangedEventMetadata) SetApprovalStatus(v string) *ApprovalStateChangedEventMetadata { - s.ApprovalStatus = &v - return s +func newErrorApprovalRuleTemplateContentRequiredException(v protocol.ResponseMetadata) error { + return &ApprovalRuleTemplateContentRequiredException{ + respMetadata: v, + } } -// SetRevisionId sets the RevisionId field's value. -func (s *ApprovalStateChangedEventMetadata) SetRevisionId(v string) *ApprovalStateChangedEventMetadata { - s.RevisionId = &v - return s +// Code returns the exception type name. +func (s ApprovalRuleTemplateContentRequiredException) Code() string { + return "ApprovalRuleTemplateContentRequiredException" } -type AssociateApprovalRuleTemplateWithRepositoryInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s ApprovalRuleTemplateContentRequiredException) Message() string { + return "" +} - // The name for the approval rule template. - // - // ApprovalRuleTemplateName is a required field - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleTemplateContentRequiredException) OrigErr() error { + return nil +} - // The name of the repository that you want to associate with the template. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +func (s ApprovalRuleTemplateContentRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleTemplateContentRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleTemplateContentRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified approval rule template does not exist. Verify that the name +// is correct and that you are signed in to the AWS Region where the template +// was created, and then try again. +type ApprovalRuleTemplateDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s AssociateApprovalRuleTemplateWithRepositoryInput) String() string { +func (s ApprovalRuleTemplateDoesNotExistException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateApprovalRuleTemplateWithRepositoryInput) GoString() string { +func (s ApprovalRuleTemplateDoesNotExistException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *AssociateApprovalRuleTemplateWithRepositoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "AssociateApprovalRuleTemplateWithRepositoryInput"} - if s.ApprovalRuleTemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) - } - if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorApprovalRuleTemplateDoesNotExistException(v protocol.ResponseMetadata) error { + return &ApprovalRuleTemplateDoesNotExistException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s ApprovalRuleTemplateDoesNotExistException) Code() string { + return "ApprovalRuleTemplateDoesNotExistException" +} + +// Message returns the exception's message. +func (s ApprovalRuleTemplateDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleTemplateDoesNotExistException) OrigErr() error { return nil } -// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. -func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetApprovalRuleTemplateName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput { - s.ApprovalRuleTemplateName = &v - return s +func (s ApprovalRuleTemplateDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetRepositoryName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput { - s.RepositoryName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleTemplateDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode } -type AssociateApprovalRuleTemplateWithRepositoryOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleTemplateDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The approval rule template is associated with one or more repositories. You +// cannot delete a template that is associated with a repository. Remove all +// associations, and then try again. +type ApprovalRuleTemplateInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s AssociateApprovalRuleTemplateWithRepositoryOutput) String() string { +func (s ApprovalRuleTemplateInUseException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s AssociateApprovalRuleTemplateWithRepositoryOutput) GoString() string { +func (s ApprovalRuleTemplateInUseException) GoString() string { return s.String() } -// Returns information about errors in a BatchAssociateApprovalRuleTemplateWithRepositories -// operation. -type BatchAssociateApprovalRuleTemplateWithRepositoriesError struct { - _ struct{} `type:"structure"` +func newErrorApprovalRuleTemplateInUseException(v protocol.ResponseMetadata) error { + return &ApprovalRuleTemplateInUseException{ + respMetadata: v, + } +} - // An error code that specifies whether the repository name was not valid or - // not found. - ErrorCode *string `locationName:"errorCode" type:"string"` +// Code returns the exception type name. +func (s ApprovalRuleTemplateInUseException) Code() string { + return "ApprovalRuleTemplateInUseException" +} - // An error message that provides details about why the repository name was - // not found or not valid. - ErrorMessage *string `locationName:"errorMessage" type:"string"` +// Message returns the exception's message. +func (s ApprovalRuleTemplateInUseException) Message() string { + return "" +} - // The name of the repository where the association was not made. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleTemplateInUseException) OrigErr() error { + return nil +} + +func (s ApprovalRuleTemplateInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleTemplateInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleTemplateInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// You cannot create an approval rule template with that name because a template +// with that name already exists in this AWS Region for your AWS account. Approval +// rule template names must be unique. +type ApprovalRuleTemplateNameAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) String() string { +func (s ApprovalRuleTemplateNameAlreadyExistsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) GoString() string { +func (s ApprovalRuleTemplateNameAlreadyExistsException) GoString() string { return s.String() } -// SetErrorCode sets the ErrorCode field's value. -func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorCode(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError { - s.ErrorCode = &v - return s +func newErrorApprovalRuleTemplateNameAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ApprovalRuleTemplateNameAlreadyExistsException{ + respMetadata: v, + } } -// SetErrorMessage sets the ErrorMessage field's value. -func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorMessage(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError { - s.ErrorMessage = &v - return s +// Code returns the exception type name. +func (s ApprovalRuleTemplateNameAlreadyExistsException) Code() string { + return "ApprovalRuleTemplateNameAlreadyExistsException" } -// SetRepositoryName sets the RepositoryName field's value. -func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetRepositoryName(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError { - s.RepositoryName = &v - return s +// Message returns the exception's message. +func (s ApprovalRuleTemplateNameAlreadyExistsException) Message() string { + return "" } -type BatchAssociateApprovalRuleTemplateWithRepositoriesInput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleTemplateNameAlreadyExistsException) OrigErr() error { + return nil +} - // The name of the template you want to associate with one or more repositories. - // - // ApprovalRuleTemplateName is a required field - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +func (s ApprovalRuleTemplateNameAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleTemplateNameAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleTemplateNameAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// An approval rule template name is required, but was not specified. +type ApprovalRuleTemplateNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApprovalRuleTemplateNameRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalRuleTemplateNameRequiredException) GoString() string { + return s.String() +} + +func newErrorApprovalRuleTemplateNameRequiredException(v protocol.ResponseMetadata) error { + return &ApprovalRuleTemplateNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApprovalRuleTemplateNameRequiredException) Code() string { + return "ApprovalRuleTemplateNameRequiredException" +} + +// Message returns the exception's message. +func (s ApprovalRuleTemplateNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalRuleTemplateNameRequiredException) OrigErr() error { + return nil +} + +func (s ApprovalRuleTemplateNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalRuleTemplateNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalRuleTemplateNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about a change in the approval state for a pull request. +type ApprovalStateChangedEventMetadata struct { + _ struct{} `type:"structure"` + + // The approval status for the pull request. + ApprovalStatus *string `locationName:"approvalStatus" type:"string" enum:"ApprovalState"` + + // The revision ID of the pull request when the approval state changed. + RevisionId *string `locationName:"revisionId" type:"string"` +} + +// String returns the string representation +func (s ApprovalStateChangedEventMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalStateChangedEventMetadata) GoString() string { + return s.String() +} + +// SetApprovalStatus sets the ApprovalStatus field's value. +func (s *ApprovalStateChangedEventMetadata) SetApprovalStatus(v string) *ApprovalStateChangedEventMetadata { + s.ApprovalStatus = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *ApprovalStateChangedEventMetadata) SetRevisionId(v string) *ApprovalStateChangedEventMetadata { + s.RevisionId = &v + return s +} + +// An approval state is required, but was not specified. +type ApprovalStateRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApprovalStateRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalStateRequiredException) GoString() string { + return s.String() +} + +func newErrorApprovalStateRequiredException(v protocol.ResponseMetadata) error { + return &ApprovalStateRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApprovalStateRequiredException) Code() string { + return "ApprovalStateRequiredException" +} + +// Message returns the exception's message. +func (s ApprovalStateRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalStateRequiredException) OrigErr() error { + return nil +} + +func (s ApprovalStateRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalStateRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalStateRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +type AssociateApprovalRuleTemplateWithRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name for the approval rule template. + // + // ApprovalRuleTemplateName is a required field + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` + + // The name of the repository that you want to associate with the template. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s AssociateApprovalRuleTemplateWithRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateApprovalRuleTemplateWithRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *AssociateApprovalRuleTemplateWithRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "AssociateApprovalRuleTemplateWithRepositoryInput"} + if s.ApprovalRuleTemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) + } + if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. +func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetApprovalRuleTemplateName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput { + s.ApprovalRuleTemplateName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *AssociateApprovalRuleTemplateWithRepositoryInput) SetRepositoryName(v string) *AssociateApprovalRuleTemplateWithRepositoryInput { + s.RepositoryName = &v + return s +} + +type AssociateApprovalRuleTemplateWithRepositoryOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s AssociateApprovalRuleTemplateWithRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociateApprovalRuleTemplateWithRepositoryOutput) GoString() string { + return s.String() +} + +// The specified Amazon Resource Name (ARN) does not exist in the AWS account. +type AuthorDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AuthorDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthorDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorAuthorDoesNotExistException(v protocol.ResponseMetadata) error { + return &AuthorDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AuthorDoesNotExistException) Code() string { + return "AuthorDoesNotExistException" +} + +// Message returns the exception's message. +func (s AuthorDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AuthorDoesNotExistException) OrigErr() error { + return nil +} + +func (s AuthorDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AuthorDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AuthorDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about errors in a BatchAssociateApprovalRuleTemplateWithRepositories +// operation. +type BatchAssociateApprovalRuleTemplateWithRepositoriesError struct { + _ struct{} `type:"structure"` + + // An error code that specifies whether the repository name was not valid or + // not found. + ErrorCode *string `locationName:"errorCode" type:"string"` + + // An error message that provides details about why the repository name was + // not found or not valid. + ErrorMessage *string `locationName:"errorMessage" type:"string"` + + // The name of the repository where the association was not made. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +} + +// String returns the string representation +func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchAssociateApprovalRuleTemplateWithRepositoriesError) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorCode(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetErrorMessage(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError { + s.ErrorMessage = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *BatchAssociateApprovalRuleTemplateWithRepositoriesError) SetRepositoryName(v string) *BatchAssociateApprovalRuleTemplateWithRepositoriesError { + s.RepositoryName = &v + return s +} + +type BatchAssociateApprovalRuleTemplateWithRepositoriesInput struct { + _ struct{} `type:"structure"` + + // The name of the template you want to associate with one or more repositories. + // + // ApprovalRuleTemplateName is a required field + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` // The names of the repositories you want to associate with the template. // @@ -11511,20 +12132,174 @@ func (s *BatchGetRepositoriesOutput) SetRepositoriesNotFound(v []*string) *Batch return s } -// Returns information about a specific Git blob object. -type BlobMetadata struct { - _ struct{} `type:"structure"` +// The before commit ID and the after commit ID are the same, which is not valid. +// The before commit ID and the after commit ID must be different commit IDs. +type BeforeCommitIdAndAfterCommitIdAreSameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The full ID of the blob. - BlobId *string `locationName:"blobId" type:"string"` +// String returns the string representation +func (s BeforeCommitIdAndAfterCommitIdAreSameException) String() string { + return awsutil.Prettify(s) +} - // The file mode permissions of the blob. File mode permission codes include: - // - // * 100644 indicates read/write - // - // * 100755 indicates read/write/execute - // - // * 160000 indicates a submodule +// GoString returns the string representation +func (s BeforeCommitIdAndAfterCommitIdAreSameException) GoString() string { + return s.String() +} + +func newErrorBeforeCommitIdAndAfterCommitIdAreSameException(v protocol.ResponseMetadata) error { + return &BeforeCommitIdAndAfterCommitIdAreSameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BeforeCommitIdAndAfterCommitIdAreSameException) Code() string { + return "BeforeCommitIdAndAfterCommitIdAreSameException" +} + +// Message returns the exception's message. +func (s BeforeCommitIdAndAfterCommitIdAreSameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BeforeCommitIdAndAfterCommitIdAreSameException) OrigErr() error { + return nil +} + +func (s BeforeCommitIdAndAfterCommitIdAreSameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BeforeCommitIdAndAfterCommitIdAreSameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BeforeCommitIdAndAfterCommitIdAreSameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified blob does not exist. +type BlobIdDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BlobIdDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BlobIdDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorBlobIdDoesNotExistException(v protocol.ResponseMetadata) error { + return &BlobIdDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BlobIdDoesNotExistException) Code() string { + return "BlobIdDoesNotExistException" +} + +// Message returns the exception's message. +func (s BlobIdDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BlobIdDoesNotExistException) OrigErr() error { + return nil +} + +func (s BlobIdDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BlobIdDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BlobIdDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// A blob ID is required, but was not specified. +type BlobIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BlobIdRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BlobIdRequiredException) GoString() string { + return s.String() +} + +func newErrorBlobIdRequiredException(v protocol.ResponseMetadata) error { + return &BlobIdRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BlobIdRequiredException) Code() string { + return "BlobIdRequiredException" +} + +// Message returns the exception's message. +func (s BlobIdRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BlobIdRequiredException) OrigErr() error { + return nil +} + +func (s BlobIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BlobIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BlobIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about a specific Git blob object. +type BlobMetadata struct { + _ struct{} `type:"structure"` + + // The full ID of the blob. + BlobId *string `locationName:"blobId" type:"string"` + + // The file mode permissions of the blob. File mode permission codes include: + // + // * 100644 indicates read/write + // + // * 100755 indicates read/write/execute + // + // * 160000 indicates a submodule // // * 120000 indicates a symlink Mode *string `locationName:"mode" type:"string"` @@ -11561,6 +12336,57 @@ func (s *BlobMetadata) SetPath(v string) *BlobMetadata { return s } +// The specified branch does not exist. +type BranchDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BranchDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BranchDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorBranchDoesNotExistException(v protocol.ResponseMetadata) error { + return &BranchDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BranchDoesNotExistException) Code() string { + return "BranchDoesNotExistException" +} + +// Message returns the exception's message. +func (s BranchDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BranchDoesNotExistException) OrigErr() error { + return nil +} + +func (s BranchDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BranchDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BranchDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + // Returns information about a branch. type BranchInfo struct { _ struct{} `type:"structure"` @@ -11594,3055 +12420,10237 @@ func (s *BranchInfo) SetCommitId(v string) *BranchInfo { return s } -// Returns information about a specific comment. -type Comment struct { - _ struct{} `type:"structure"` +// The specified branch name already exists. +type BranchNameExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The Amazon Resource Name (ARN) of the person who posted the comment. - AuthorArn *string `locationName:"authorArn" type:"string"` +// String returns the string representation +func (s BranchNameExistsException) String() string { + return awsutil.Prettify(s) +} - // A unique, client-generated idempotency token that, when provided in a request, - // ensures the request cannot be repeated with a changed parameter. If a request - // is received with the same parameters and a token is included, the request - // returns information about the initial request that used that token. - ClientRequestToken *string `locationName:"clientRequestToken" type:"string"` +// GoString returns the string representation +func (s BranchNameExistsException) GoString() string { + return s.String() +} - // The system-generated comment ID. - CommentId *string `locationName:"commentId" type:"string"` +func newErrorBranchNameExistsException(v protocol.ResponseMetadata) error { + return &BranchNameExistsException{ + respMetadata: v, + } +} - // The content of the comment. - Content *string `locationName:"content" type:"string"` +// Code returns the exception type name. +func (s BranchNameExistsException) Code() string { + return "BranchNameExistsException" +} - // The date and time the comment was created, in timestamp format. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` +// Message returns the exception's message. +func (s BranchNameExistsException) Message() string { + return "" +} - // A Boolean value indicating whether the comment has been deleted. - Deleted *bool `locationName:"deleted" type:"boolean"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BranchNameExistsException) OrigErr() error { + return nil +} - // The ID of the comment for which this comment is a reply, if any. - InReplyTo *string `locationName:"inReplyTo" type:"string"` +func (s BranchNameExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The date and time the comment was most recently modified, in timestamp format. - LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"` +// Status code returns the HTTP status code for the request's response error. +func (s BranchNameExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BranchNameExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified branch name is not valid because it is a tag name. Enter the +// name of a branch in the repository. For a list of valid branch names, use +// ListBranches. +type BranchNameIsTagNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Comment) String() string { +func (s BranchNameIsTagNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Comment) GoString() string { +func (s BranchNameIsTagNameException) GoString() string { return s.String() } -// SetAuthorArn sets the AuthorArn field's value. -func (s *Comment) SetAuthorArn(v string) *Comment { - s.AuthorArn = &v - return s +func newErrorBranchNameIsTagNameException(v protocol.ResponseMetadata) error { + return &BranchNameIsTagNameException{ + respMetadata: v, + } } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *Comment) SetClientRequestToken(v string) *Comment { - s.ClientRequestToken = &v - return s +// Code returns the exception type name. +func (s BranchNameIsTagNameException) Code() string { + return "BranchNameIsTagNameException" } -// SetCommentId sets the CommentId field's value. -func (s *Comment) SetCommentId(v string) *Comment { - s.CommentId = &v - return s +// Message returns the exception's message. +func (s BranchNameIsTagNameException) Message() string { + return "" } -// SetContent sets the Content field's value. -func (s *Comment) SetContent(v string) *Comment { - s.Content = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BranchNameIsTagNameException) OrigErr() error { + return nil } -// SetCreationDate sets the CreationDate field's value. -func (s *Comment) SetCreationDate(v time.Time) *Comment { - s.CreationDate = &v - return s +func (s BranchNameIsTagNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetDeleted sets the Deleted field's value. -func (s *Comment) SetDeleted(v bool) *Comment { - s.Deleted = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s BranchNameIsTagNameException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetInReplyTo sets the InReplyTo field's value. -func (s *Comment) SetInReplyTo(v string) *Comment { - s.InReplyTo = &v - return s +// RequestID returns the service's response RequestID for request. +func (s BranchNameIsTagNameException) RequestID() string { + return s.respMetadata.RequestID } -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *Comment) SetLastModifiedDate(v time.Time) *Comment { - s.LastModifiedDate = &v - return s +// A branch name is required, but was not specified. +type BranchNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// Returns information about comments on the comparison between two commits. -type CommentsForComparedCommit struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s BranchNameRequiredException) String() string { + return awsutil.Prettify(s) +} - // The full blob ID of the commit used to establish the after of the comparison. - AfterBlobId *string `locationName:"afterBlobId" type:"string"` +// GoString returns the string representation +func (s BranchNameRequiredException) GoString() string { + return s.String() +} - // The full commit ID of the commit used to establish the after of the comparison. - AfterCommitId *string `locationName:"afterCommitId" type:"string"` +func newErrorBranchNameRequiredException(v protocol.ResponseMetadata) error { + return &BranchNameRequiredException{ + respMetadata: v, + } +} - // The full blob ID of the commit used to establish the before of the comparison. - BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` +// Code returns the exception type name. +func (s BranchNameRequiredException) Code() string { + return "BranchNameRequiredException" +} - // The full commit ID of the commit used to establish the before of the comparison. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` +// Message returns the exception's message. +func (s BranchNameRequiredException) Message() string { + return "" +} - // An array of comment objects. Each comment object contains information about - // a comment on the comparison between commits. - Comments []*Comment `locationName:"comments" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BranchNameRequiredException) OrigErr() error { + return nil +} - // Location information about the comment on the comparison, including the file - // name, line number, and whether the version of the file where the comment - // was made is BEFORE or AFTER. - Location *Location `locationName:"location" type:"structure"` +func (s BranchNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the repository that contains the compared commits. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s BranchNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BranchNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The approval rule cannot be deleted from the pull request because it was +// created by an approval rule template and applied to the pull request automatically. +type CannotDeleteApprovalRuleFromTemplateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CommentsForComparedCommit) String() string { +func (s CannotDeleteApprovalRuleFromTemplateException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CommentsForComparedCommit) GoString() string { +func (s CannotDeleteApprovalRuleFromTemplateException) GoString() string { return s.String() } -// SetAfterBlobId sets the AfterBlobId field's value. -func (s *CommentsForComparedCommit) SetAfterBlobId(v string) *CommentsForComparedCommit { - s.AfterBlobId = &v - return s +func newErrorCannotDeleteApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error { + return &CannotDeleteApprovalRuleFromTemplateException{ + respMetadata: v, + } } -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *CommentsForComparedCommit) SetAfterCommitId(v string) *CommentsForComparedCommit { - s.AfterCommitId = &v - return s +// Code returns the exception type name. +func (s CannotDeleteApprovalRuleFromTemplateException) Code() string { + return "CannotDeleteApprovalRuleFromTemplateException" } -// SetBeforeBlobId sets the BeforeBlobId field's value. -func (s *CommentsForComparedCommit) SetBeforeBlobId(v string) *CommentsForComparedCommit { - s.BeforeBlobId = &v - return s +// Message returns the exception's message. +func (s CannotDeleteApprovalRuleFromTemplateException) Message() string { + return "" } -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *CommentsForComparedCommit) SetBeforeCommitId(v string) *CommentsForComparedCommit { - s.BeforeCommitId = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CannotDeleteApprovalRuleFromTemplateException) OrigErr() error { + return nil } -// SetComments sets the Comments field's value. -func (s *CommentsForComparedCommit) SetComments(v []*Comment) *CommentsForComparedCommit { - s.Comments = v - return s +func (s CannotDeleteApprovalRuleFromTemplateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetLocation sets the Location field's value. -func (s *CommentsForComparedCommit) SetLocation(v *Location) *CommentsForComparedCommit { - s.Location = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s CannotDeleteApprovalRuleFromTemplateException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetRepositoryName sets the RepositoryName field's value. -func (s *CommentsForComparedCommit) SetRepositoryName(v string) *CommentsForComparedCommit { - s.RepositoryName = &v - return s +// RequestID returns the service's response RequestID for request. +func (s CannotDeleteApprovalRuleFromTemplateException) RequestID() string { + return s.respMetadata.RequestID } -// Returns information about comments on a pull request. -type CommentsForPullRequest struct { - _ struct{} `type:"structure"` +// The approval rule cannot be modified for the pull request because it was +// created by an approval rule template and applied to the pull request automatically. +type CannotModifyApprovalRuleFromTemplateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The full blob ID of the file on which you want to comment on the source commit. - AfterBlobId *string `locationName:"afterBlobId" type:"string"` +// String returns the string representation +func (s CannotModifyApprovalRuleFromTemplateException) String() string { + return awsutil.Prettify(s) +} - // The full commit ID of the commit that was the tip of the source branch at - // the time the comment was made. - AfterCommitId *string `locationName:"afterCommitId" type:"string"` +// GoString returns the string representation +func (s CannotModifyApprovalRuleFromTemplateException) GoString() string { + return s.String() +} - // The full blob ID of the file on which you want to comment on the destination - // commit. - BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` +func newErrorCannotModifyApprovalRuleFromTemplateException(v protocol.ResponseMetadata) error { + return &CannotModifyApprovalRuleFromTemplateException{ + respMetadata: v, + } +} - // The full commit ID of the commit that was the tip of the destination branch - // when the pull request was created. This commit is superceded by the after - // commit in the source branch when and if you merge the source branch into - // the destination branch. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` +// Code returns the exception type name. +func (s CannotModifyApprovalRuleFromTemplateException) Code() string { + return "CannotModifyApprovalRuleFromTemplateException" +} - // An array of comment objects. Each comment object contains information about - // a comment on the pull request. - Comments []*Comment `locationName:"comments" type:"list"` +// Message returns the exception's message. +func (s CannotModifyApprovalRuleFromTemplateException) Message() string { + return "" +} - // Location information about the comment on the pull request, including the - // file name, line number, and whether the version of the file where the comment - // was made is BEFORE (destination branch) or AFTER (source branch). - Location *Location `locationName:"location" type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CannotModifyApprovalRuleFromTemplateException) OrigErr() error { + return nil +} - // The system-generated ID of the pull request. - PullRequestId *string `locationName:"pullRequestId" type:"string"` +func (s CannotModifyApprovalRuleFromTemplateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the repository that contains the pull request. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s CannotModifyApprovalRuleFromTemplateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CannotModifyApprovalRuleFromTemplateException) RequestID() string { + return s.respMetadata.RequestID +} + +// A client request token is required. A client request token is an unique, +// client-generated idempotency token that, when provided in a request, ensures +// the request cannot be repeated with a changed parameter. If a request is +// received with the same parameters and a token is included, the request returns +// information about the initial request that used that token. +type ClientRequestTokenRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CommentsForPullRequest) String() string { +func (s ClientRequestTokenRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CommentsForPullRequest) GoString() string { +func (s ClientRequestTokenRequiredException) GoString() string { return s.String() } -// SetAfterBlobId sets the AfterBlobId field's value. -func (s *CommentsForPullRequest) SetAfterBlobId(v string) *CommentsForPullRequest { - s.AfterBlobId = &v - return s -} - -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *CommentsForPullRequest) SetAfterCommitId(v string) *CommentsForPullRequest { - s.AfterCommitId = &v - return s +func newErrorClientRequestTokenRequiredException(v protocol.ResponseMetadata) error { + return &ClientRequestTokenRequiredException{ + respMetadata: v, + } } -// SetBeforeBlobId sets the BeforeBlobId field's value. -func (s *CommentsForPullRequest) SetBeforeBlobId(v string) *CommentsForPullRequest { - s.BeforeBlobId = &v - return s +// Code returns the exception type name. +func (s ClientRequestTokenRequiredException) Code() string { + return "ClientRequestTokenRequiredException" } -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *CommentsForPullRequest) SetBeforeCommitId(v string) *CommentsForPullRequest { - s.BeforeCommitId = &v - return s +// Message returns the exception's message. +func (s ClientRequestTokenRequiredException) Message() string { + return "" } -// SetComments sets the Comments field's value. -func (s *CommentsForPullRequest) SetComments(v []*Comment) *CommentsForPullRequest { - s.Comments = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientRequestTokenRequiredException) OrigErr() error { + return nil } -// SetLocation sets the Location field's value. -func (s *CommentsForPullRequest) SetLocation(v *Location) *CommentsForPullRequest { - s.Location = v - return s +func (s ClientRequestTokenRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetPullRequestId sets the PullRequestId field's value. -func (s *CommentsForPullRequest) SetPullRequestId(v string) *CommentsForPullRequest { - s.PullRequestId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ClientRequestTokenRequiredException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetRepositoryName sets the RepositoryName field's value. -func (s *CommentsForPullRequest) SetRepositoryName(v string) *CommentsForPullRequest { - s.RepositoryName = &v - return s +// RequestID returns the service's response RequestID for request. +func (s ClientRequestTokenRequiredException) RequestID() string { + return s.respMetadata.RequestID } -// Returns information about a specific commit. -type Commit struct { +// Returns information about a specific comment. +type Comment struct { _ struct{} `type:"structure"` - // Any other data associated with the specified commit. - AdditionalData *string `locationName:"additionalData" type:"string"` + // The Amazon Resource Name (ARN) of the person who posted the comment. + AuthorArn *string `locationName:"authorArn" type:"string"` - // Information about the author of the specified commit. Information includes - // the date in timestamp format with GMT offset, the name of the author, and - // the email address for the author, as configured in Git. - Author *UserInfo `locationName:"author" type:"structure"` + // A unique, client-generated idempotency token that, when provided in a request, + // ensures the request cannot be repeated with a changed parameter. If a request + // is received with the same parameters and a token is included, the request + // returns information about the initial request that used that token. + ClientRequestToken *string `locationName:"clientRequestToken" type:"string"` - // The full SHA ID of the specified commit. - CommitId *string `locationName:"commitId" type:"string"` + // The system-generated comment ID. + CommentId *string `locationName:"commentId" type:"string"` - // Information about the person who committed the specified commit, also known - // as the committer. Information includes the date in timestamp format with - // GMT offset, the name of the committer, and the email address for the committer, - // as configured in Git. - // - // For more information about the difference between an author and a committer - // in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html) - // in Pro Git by Scott Chacon and Ben Straub. - Committer *UserInfo `locationName:"committer" type:"structure"` + // The content of the comment. + Content *string `locationName:"content" type:"string"` - // The commit message associated with the specified commit. - Message *string `locationName:"message" type:"string"` + // The date and time the comment was created, in timestamp format. + CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` - // A list of parent commits for the specified commit. Each parent commit ID - // is the full commit ID. - Parents []*string `locationName:"parents" type:"list"` + // A Boolean value indicating whether the comment has been deleted. + Deleted *bool `locationName:"deleted" type:"boolean"` - // Tree information for the specified commit. - TreeId *string `locationName:"treeId" type:"string"` + // The ID of the comment for which this comment is a reply, if any. + InReplyTo *string `locationName:"inReplyTo" type:"string"` + + // The date and time the comment was most recently modified, in timestamp format. + LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"` } // String returns the string representation -func (s Commit) String() string { +func (s Comment) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Commit) GoString() string { +func (s Comment) GoString() string { return s.String() } -// SetAdditionalData sets the AdditionalData field's value. -func (s *Commit) SetAdditionalData(v string) *Commit { - s.AdditionalData = &v +// SetAuthorArn sets the AuthorArn field's value. +func (s *Comment) SetAuthorArn(v string) *Comment { + s.AuthorArn = &v return s } -// SetAuthor sets the Author field's value. -func (s *Commit) SetAuthor(v *UserInfo) *Commit { - s.Author = v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *Comment) SetClientRequestToken(v string) *Comment { + s.ClientRequestToken = &v return s } -// SetCommitId sets the CommitId field's value. -func (s *Commit) SetCommitId(v string) *Commit { - s.CommitId = &v +// SetCommentId sets the CommentId field's value. +func (s *Comment) SetCommentId(v string) *Comment { + s.CommentId = &v return s } -// SetCommitter sets the Committer field's value. -func (s *Commit) SetCommitter(v *UserInfo) *Commit { - s.Committer = v +// SetContent sets the Content field's value. +func (s *Comment) SetContent(v string) *Comment { + s.Content = &v return s } -// SetMessage sets the Message field's value. -func (s *Commit) SetMessage(v string) *Commit { - s.Message = &v +// SetCreationDate sets the CreationDate field's value. +func (s *Comment) SetCreationDate(v time.Time) *Comment { + s.CreationDate = &v return s } -// SetParents sets the Parents field's value. -func (s *Commit) SetParents(v []*string) *Commit { - s.Parents = v +// SetDeleted sets the Deleted field's value. +func (s *Comment) SetDeleted(v bool) *Comment { + s.Deleted = &v return s } -// SetTreeId sets the TreeId field's value. -func (s *Commit) SetTreeId(v string) *Commit { - s.TreeId = &v +// SetInReplyTo sets the InReplyTo field's value. +func (s *Comment) SetInReplyTo(v string) *Comment { + s.InReplyTo = &v return s } -// Information about conflicts in a merge operation. -type Conflict struct { - _ struct{} `type:"structure"` - - // Metadata about a conflict in a merge operation. - ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure"` +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *Comment) SetLastModifiedDate(v time.Time) *Comment { + s.LastModifiedDate = &v + return s +} - // A list of hunks that contain the differences between files or lines causing - // the conflict. - MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list"` +// The comment is empty. You must provide some content for a comment. The content +// cannot be null. +type CommentContentRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Conflict) String() string { +func (s CommentContentRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Conflict) GoString() string { +func (s CommentContentRequiredException) GoString() string { return s.String() } -// SetConflictMetadata sets the ConflictMetadata field's value. -func (s *Conflict) SetConflictMetadata(v *ConflictMetadata) *Conflict { - s.ConflictMetadata = v - return s +func newErrorCommentContentRequiredException(v protocol.ResponseMetadata) error { + return &CommentContentRequiredException{ + respMetadata: v, + } } -// SetMergeHunks sets the MergeHunks field's value. -func (s *Conflict) SetMergeHunks(v []*MergeHunk) *Conflict { - s.MergeHunks = v - return s +// Code returns the exception type name. +func (s CommentContentRequiredException) Code() string { + return "CommentContentRequiredException" } -// Information about the metadata for a conflict in a merge operation. -type ConflictMetadata struct { - _ struct{} `type:"structure"` - - // A boolean value indicating whether there are conflicts in the content of - // a file. - ContentConflict *bool `locationName:"contentConflict" type:"boolean"` - - // A boolean value indicating whether there are conflicts in the file mode of - // a file. - FileModeConflict *bool `locationName:"fileModeConflict" type:"boolean"` - - // The file modes of the file in the source, destination, and base of the merge. - FileModes *FileModes `locationName:"fileModes" type:"structure"` - - // The path of the file that contains conflicts. - FilePath *string `locationName:"filePath" type:"string"` - - // The file sizes of the file in the source, destination, and base of the merge. - FileSizes *FileSizes `locationName:"fileSizes" type:"structure"` +// Message returns the exception's message. +func (s CommentContentRequiredException) Message() string { + return "" +} - // A boolean value (true or false) indicating whether the file is binary or - // textual in the source, destination, and base of the merge. - IsBinaryFile *IsBinaryFile `locationName:"isBinaryFile" type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommentContentRequiredException) OrigErr() error { + return nil +} - // Whether an add, modify, or delete operation caused the conflict between the - // source and destination of the merge. - MergeOperations *MergeOperations `locationName:"mergeOperations" type:"structure"` +func (s CommentContentRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The number of conflicts, including both hunk conflicts and metadata conflicts. - NumberOfConflicts *int64 `locationName:"numberOfConflicts" type:"integer"` +// Status code returns the HTTP status code for the request's response error. +func (s CommentContentRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} - // A boolean value (true or false) indicating whether there are conflicts between - // the branches in the object type of a file, folder, or submodule. - ObjectTypeConflict *bool `locationName:"objectTypeConflict" type:"boolean"` +// RequestID returns the service's response RequestID for request. +func (s CommentContentRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about any object type conflicts in a merge operation. - ObjectTypes *ObjectTypes `locationName:"objectTypes" type:"structure"` +// The comment is too large. Comments are limited to 1,000 characters. +type CommentContentSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ConflictMetadata) String() string { +func (s CommentContentSizeLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConflictMetadata) GoString() string { +func (s CommentContentSizeLimitExceededException) GoString() string { return s.String() } -// SetContentConflict sets the ContentConflict field's value. -func (s *ConflictMetadata) SetContentConflict(v bool) *ConflictMetadata { - s.ContentConflict = &v - return s +func newErrorCommentContentSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &CommentContentSizeLimitExceededException{ + respMetadata: v, + } } -// SetFileModeConflict sets the FileModeConflict field's value. -func (s *ConflictMetadata) SetFileModeConflict(v bool) *ConflictMetadata { - s.FileModeConflict = &v - return s +// Code returns the exception type name. +func (s CommentContentSizeLimitExceededException) Code() string { + return "CommentContentSizeLimitExceededException" } -// SetFileModes sets the FileModes field's value. -func (s *ConflictMetadata) SetFileModes(v *FileModes) *ConflictMetadata { - s.FileModes = v - return s -} - -// SetFilePath sets the FilePath field's value. -func (s *ConflictMetadata) SetFilePath(v string) *ConflictMetadata { - s.FilePath = &v - return s -} - -// SetFileSizes sets the FileSizes field's value. -func (s *ConflictMetadata) SetFileSizes(v *FileSizes) *ConflictMetadata { - s.FileSizes = v - return s -} - -// SetIsBinaryFile sets the IsBinaryFile field's value. -func (s *ConflictMetadata) SetIsBinaryFile(v *IsBinaryFile) *ConflictMetadata { - s.IsBinaryFile = v - return s +// Message returns the exception's message. +func (s CommentContentSizeLimitExceededException) Message() string { + return "" } -// SetMergeOperations sets the MergeOperations field's value. -func (s *ConflictMetadata) SetMergeOperations(v *MergeOperations) *ConflictMetadata { - s.MergeOperations = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommentContentSizeLimitExceededException) OrigErr() error { + return nil } -// SetNumberOfConflicts sets the NumberOfConflicts field's value. -func (s *ConflictMetadata) SetNumberOfConflicts(v int64) *ConflictMetadata { - s.NumberOfConflicts = &v - return s +func (s CommentContentSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetObjectTypeConflict sets the ObjectTypeConflict field's value. -func (s *ConflictMetadata) SetObjectTypeConflict(v bool) *ConflictMetadata { - s.ObjectTypeConflict = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s CommentContentSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetObjectTypes sets the ObjectTypes field's value. -func (s *ConflictMetadata) SetObjectTypes(v *ObjectTypes) *ConflictMetadata { - s.ObjectTypes = v - return s +// RequestID returns the service's response RequestID for request. +func (s CommentContentSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID } -// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use -// when resolving conflicts during a merge. -type ConflictResolution struct { - _ struct{} `type:"structure"` - - // Files to be deleted as part of the merge conflict resolution. - DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"` - - // Files to have content replaced as part of the merge conflict resolution. - ReplaceContents []*ReplaceContentEntry `locationName:"replaceContents" type:"list"` - - // File modes that are set as part of the merge conflict resolution. - SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"` +// This comment has already been deleted. You cannot edit or delete a deleted +// comment. +type CommentDeletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ConflictResolution) String() string { +func (s CommentDeletedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ConflictResolution) GoString() string { +func (s CommentDeletedException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ConflictResolution) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ConflictResolution"} - if s.DeleteFiles != nil { - for i, v := range s.DeleteFiles { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams)) - } - } - } - if s.ReplaceContents != nil { - for i, v := range s.ReplaceContents { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplaceContents", i), err.(request.ErrInvalidParams)) - } - } - } - if s.SetFileModes != nil { - for i, v := range s.SetFileModes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams)) - } - } - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorCommentDeletedException(v protocol.ResponseMetadata) error { + return &CommentDeletedException{ + respMetadata: v, } - return nil } -// SetDeleteFiles sets the DeleteFiles field's value. -func (s *ConflictResolution) SetDeleteFiles(v []*DeleteFileEntry) *ConflictResolution { - s.DeleteFiles = v - return s +// Code returns the exception type name. +func (s CommentDeletedException) Code() string { + return "CommentDeletedException" } -// SetReplaceContents sets the ReplaceContents field's value. -func (s *ConflictResolution) SetReplaceContents(v []*ReplaceContentEntry) *ConflictResolution { - s.ReplaceContents = v - return s +// Message returns the exception's message. +func (s CommentDeletedException) Message() string { + return "" } -// SetSetFileModes sets the SetFileModes field's value. -func (s *ConflictResolution) SetSetFileModes(v []*SetFileModeEntry) *ConflictResolution { - s.SetFileModes = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommentDeletedException) OrigErr() error { + return nil } -type CreateApprovalRuleTemplateInput struct { - _ struct{} `type:"structure"` +func (s CommentDeletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The content of the approval rule that is created on pull requests in associated - // repositories. If you specify one or more destination references (branches), - // approval rules are created in an associated repository only if their destination - // references (branches) match those specified in the template. - // - // When you create the content of the approval rule template, you can specify - // approvers in an approval pool in one of two ways: - // - // * CodeCommitApprovers: This option only requires an AWS account and a - // resource. It can be used for both IAM users and federated access users - // whose name matches the provided resource name. This is a very powerful - // option that offers a great deal of flexibility. For example, if you specify - // the AWS account 123456789012 and Mary_Major, all of the following are - // counted as approvals coming from that user: An IAM user in the account - // (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified - // in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major) - // This option does not recognize an active session of someone assuming the - // role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) - // unless you include a wildcard (*Mary_Major). - // - // * Fully qualified ARN: This option allows you to specify the fully qualified - // Amazon Resource Name (ARN) of the IAM user or role. - // - // For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers - // (https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html) - // in the IAM User Guide. - // - // ApprovalRuleTemplateContent is a required field - ApprovalRuleTemplateContent *string `locationName:"approvalRuleTemplateContent" min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s CommentDeletedException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The description of the approval rule template. Consider providing a description - // that explains what this template does and when it might be appropriate to - // associate it with repositories. - ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s CommentDeletedException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the approval rule template. Provide descriptive names, because - // this name is applied to the approval rules created automatically in associated - // repositories. - // - // ApprovalRuleTemplateName is a required field - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +// No comment exists with the provided ID. Verify that you have used the correct +// ID, and then try again. +type CommentDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateApprovalRuleTemplateInput) String() string { +func (s CommentDoesNotExistException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateApprovalRuleTemplateInput) GoString() string { +func (s CommentDoesNotExistException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateApprovalRuleTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateApprovalRuleTemplateInput"} - if s.ApprovalRuleTemplateContent == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateContent")) - } - if s.ApprovalRuleTemplateContent != nil && len(*s.ApprovalRuleTemplateContent) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateContent", 1)) - } - if s.ApprovalRuleTemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) - } - if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) +func newErrorCommentDoesNotExistException(v protocol.ResponseMetadata) error { + return &CommentDoesNotExistException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s CommentDoesNotExistException) Code() string { + return "CommentDoesNotExistException" } -// SetApprovalRuleTemplateContent sets the ApprovalRuleTemplateContent field's value. -func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateContent(v string) *CreateApprovalRuleTemplateInput { - s.ApprovalRuleTemplateContent = &v - return s +// Message returns the exception's message. +func (s CommentDoesNotExistException) Message() string { + return "" } -// SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value. -func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateDescription(v string) *CreateApprovalRuleTemplateInput { - s.ApprovalRuleTemplateDescription = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommentDoesNotExistException) OrigErr() error { + return nil } -// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. -func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *CreateApprovalRuleTemplateInput { - s.ApprovalRuleTemplateName = &v - return s +func (s CommentDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type CreateApprovalRuleTemplateOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s CommentDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The content and structure of the created approval rule template. - // - // ApprovalRuleTemplate is a required field - ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s CommentDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The comment ID is missing or null. A comment ID is required. +type CommentIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateApprovalRuleTemplateOutput) String() string { +func (s CommentIdRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateApprovalRuleTemplateOutput) GoString() string { +func (s CommentIdRequiredException) GoString() string { return s.String() } -// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value. -func (s *CreateApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *CreateApprovalRuleTemplateOutput { - s.ApprovalRuleTemplate = v - return s +func newErrorCommentIdRequiredException(v protocol.ResponseMetadata) error { + return &CommentIdRequiredException{ + respMetadata: v, + } } -// Represents the input of a create branch operation. -type CreateBranchInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s CommentIdRequiredException) Code() string { + return "CommentIdRequiredException" +} - // The name of the new branch to create. - // - // BranchName is a required field - BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` +// Message returns the exception's message. +func (s CommentIdRequiredException) Message() string { + return "" +} - // The ID of the commit to point the new branch to. - // - // CommitId is a required field - CommitId *string `locationName:"commitId" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommentIdRequiredException) OrigErr() error { + return nil +} - // The name of the repository in which you want to create the new branch. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +func (s CommentIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommentIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommentIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// You cannot modify or delete this comment. Only comment authors can modify +// or delete their comments. +type CommentNotCreatedByCallerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateBranchInput) String() string { +func (s CommentNotCreatedByCallerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateBranchInput) GoString() string { +func (s CommentNotCreatedByCallerException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateBranchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"} - if s.BranchName == nil { - invalidParams.Add(request.NewErrParamRequired("BranchName")) - } - if s.BranchName != nil && len(*s.BranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) - } - if s.CommitId == nil { - invalidParams.Add(request.NewErrParamRequired("CommitId")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorCommentNotCreatedByCallerException(v protocol.ResponseMetadata) error { + return &CommentNotCreatedByCallerException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s CommentNotCreatedByCallerException) Code() string { + return "CommentNotCreatedByCallerException" +} + +// Message returns the exception's message. +func (s CommentNotCreatedByCallerException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommentNotCreatedByCallerException) OrigErr() error { return nil } -// SetBranchName sets the BranchName field's value. -func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput { - s.BranchName = &v - return s +func (s CommentNotCreatedByCallerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetCommitId sets the CommitId field's value. -func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput { - s.CommitId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s CommentNotCreatedByCallerException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetRepositoryName sets the RepositoryName field's value. -func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput { +// RequestID returns the service's response RequestID for request. +func (s CommentNotCreatedByCallerException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about comments on the comparison between two commits. +type CommentsForComparedCommit struct { + _ struct{} `type:"structure"` + + // The full blob ID of the commit used to establish the after of the comparison. + AfterBlobId *string `locationName:"afterBlobId" type:"string"` + + // The full commit ID of the commit used to establish the after of the comparison. + AfterCommitId *string `locationName:"afterCommitId" type:"string"` + + // The full blob ID of the commit used to establish the before of the comparison. + BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` + + // The full commit ID of the commit used to establish the before of the comparison. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + + // An array of comment objects. Each comment object contains information about + // a comment on the comparison between commits. + Comments []*Comment `locationName:"comments" type:"list"` + + // Location information about the comment on the comparison, including the file + // name, line number, and whether the version of the file where the comment + // was made is BEFORE or AFTER. + Location *Location `locationName:"location" type:"structure"` + + // The name of the repository that contains the compared commits. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +} + +// String returns the string representation +func (s CommentsForComparedCommit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommentsForComparedCommit) GoString() string { + return s.String() +} + +// SetAfterBlobId sets the AfterBlobId field's value. +func (s *CommentsForComparedCommit) SetAfterBlobId(v string) *CommentsForComparedCommit { + s.AfterBlobId = &v + return s +} + +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *CommentsForComparedCommit) SetAfterCommitId(v string) *CommentsForComparedCommit { + s.AfterCommitId = &v + return s +} + +// SetBeforeBlobId sets the BeforeBlobId field's value. +func (s *CommentsForComparedCommit) SetBeforeBlobId(v string) *CommentsForComparedCommit { + s.BeforeBlobId = &v + return s +} + +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *CommentsForComparedCommit) SetBeforeCommitId(v string) *CommentsForComparedCommit { + s.BeforeCommitId = &v + return s +} + +// SetComments sets the Comments field's value. +func (s *CommentsForComparedCommit) SetComments(v []*Comment) *CommentsForComparedCommit { + s.Comments = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CommentsForComparedCommit) SetLocation(v *Location) *CommentsForComparedCommit { + s.Location = v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CommentsForComparedCommit) SetRepositoryName(v string) *CommentsForComparedCommit { s.RepositoryName = &v return s } -type CreateBranchOutput struct { +// Returns information about comments on a pull request. +type CommentsForPullRequest struct { _ struct{} `type:"structure"` + + // The full blob ID of the file on which you want to comment on the source commit. + AfterBlobId *string `locationName:"afterBlobId" type:"string"` + + // The full commit ID of the commit that was the tip of the source branch at + // the time the comment was made. + AfterCommitId *string `locationName:"afterCommitId" type:"string"` + + // The full blob ID of the file on which you want to comment on the destination + // commit. + BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` + + // The full commit ID of the commit that was the tip of the destination branch + // when the pull request was created. This commit is superceded by the after + // commit in the source branch when and if you merge the source branch into + // the destination branch. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + + // An array of comment objects. Each comment object contains information about + // a comment on the pull request. + Comments []*Comment `locationName:"comments" type:"list"` + + // Location information about the comment on the pull request, including the + // file name, line number, and whether the version of the file where the comment + // was made is BEFORE (destination branch) or AFTER (source branch). + Location *Location `locationName:"location" type:"structure"` + + // The system-generated ID of the pull request. + PullRequestId *string `locationName:"pullRequestId" type:"string"` + + // The name of the repository that contains the pull request. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` } // String returns the string representation -func (s CreateBranchOutput) String() string { +func (s CommentsForPullRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateBranchOutput) GoString() string { +func (s CommentsForPullRequest) GoString() string { return s.String() } -type CreateCommitInput struct { +// SetAfterBlobId sets the AfterBlobId field's value. +func (s *CommentsForPullRequest) SetAfterBlobId(v string) *CommentsForPullRequest { + s.AfterBlobId = &v + return s +} + +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *CommentsForPullRequest) SetAfterCommitId(v string) *CommentsForPullRequest { + s.AfterCommitId = &v + return s +} + +// SetBeforeBlobId sets the BeforeBlobId field's value. +func (s *CommentsForPullRequest) SetBeforeBlobId(v string) *CommentsForPullRequest { + s.BeforeBlobId = &v + return s +} + +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *CommentsForPullRequest) SetBeforeCommitId(v string) *CommentsForPullRequest { + s.BeforeCommitId = &v + return s +} + +// SetComments sets the Comments field's value. +func (s *CommentsForPullRequest) SetComments(v []*Comment) *CommentsForPullRequest { + s.Comments = v + return s +} + +// SetLocation sets the Location field's value. +func (s *CommentsForPullRequest) SetLocation(v *Location) *CommentsForPullRequest { + s.Location = v + return s +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *CommentsForPullRequest) SetPullRequestId(v string) *CommentsForPullRequest { + s.PullRequestId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CommentsForPullRequest) SetRepositoryName(v string) *CommentsForPullRequest { + s.RepositoryName = &v + return s +} + +// Returns information about a specific commit. +type Commit struct { _ struct{} `type:"structure"` - // The name of the author who created the commit. This information is used as - // both the author and committer for the commit. - AuthorName *string `locationName:"authorName" type:"string"` + // Any other data associated with the specified commit. + AdditionalData *string `locationName:"additionalData" type:"string"` - // The name of the branch where you create the commit. + // Information about the author of the specified commit. Information includes + // the date in timestamp format with GMT offset, the name of the author, and + // the email address for the author, as configured in Git. + Author *UserInfo `locationName:"author" type:"structure"` + + // The full SHA ID of the specified commit. + CommitId *string `locationName:"commitId" type:"string"` + + // Information about the person who committed the specified commit, also known + // as the committer. Information includes the date in timestamp format with + // GMT offset, the name of the committer, and the email address for the committer, + // as configured in Git. // - // BranchName is a required field - BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + // For more information about the difference between an author and a committer + // in Git, see Viewing the Commit History (http://git-scm.com/book/ch2-3.html) + // in Pro Git by Scott Chacon and Ben Straub. + Committer *UserInfo `locationName:"committer" type:"structure"` - // The commit message you want to include in the commit. Commit messages are - // limited to 256 KB. If no message is specified, a default message is used. - CommitMessage *string `locationName:"commitMessage" type:"string"` + // The commit message associated with the specified commit. + Message *string `locationName:"message" type:"string"` + + // A list of parent commits for the specified commit. Each parent commit ID + // is the full commit ID. + Parents []*string `locationName:"parents" type:"list"` + + // Tree information for the specified commit. + TreeId *string `locationName:"treeId" type:"string"` +} + +// String returns the string representation +func (s Commit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Commit) GoString() string { + return s.String() +} + +// SetAdditionalData sets the AdditionalData field's value. +func (s *Commit) SetAdditionalData(v string) *Commit { + s.AdditionalData = &v + return s +} + +// SetAuthor sets the Author field's value. +func (s *Commit) SetAuthor(v *UserInfo) *Commit { + s.Author = v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *Commit) SetCommitId(v string) *Commit { + s.CommitId = &v + return s +} + +// SetCommitter sets the Committer field's value. +func (s *Commit) SetCommitter(v *UserInfo) *Commit { + s.Committer = v + return s +} + +// SetMessage sets the Message field's value. +func (s *Commit) SetMessage(v string) *Commit { + s.Message = &v + return s +} + +// SetParents sets the Parents field's value. +func (s *Commit) SetParents(v []*string) *Commit { + s.Parents = v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *Commit) SetTreeId(v string) *Commit { + s.TreeId = &v + return s +} + +// The specified commit does not exist or no commit was specified, and the specified +// repository has no default branch. +type CommitDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CommitDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommitDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorCommitDoesNotExistException(v protocol.ResponseMetadata) error { + return &CommitDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CommitDoesNotExistException) Code() string { + return "CommitDoesNotExistException" +} + +// Message returns the exception's message. +func (s CommitDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommitDoesNotExistException) OrigErr() error { + return nil +} + +func (s CommitDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommitDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommitDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified commit ID does not exist. +type CommitIdDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CommitIdDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommitIdDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorCommitIdDoesNotExistException(v protocol.ResponseMetadata) error { + return &CommitIdDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CommitIdDoesNotExistException) Code() string { + return "CommitIdDoesNotExistException" +} + +// Message returns the exception's message. +func (s CommitIdDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommitIdDoesNotExistException) OrigErr() error { + return nil +} + +func (s CommitIdDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommitIdDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommitIdDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// A commit ID was not specified. +type CommitIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CommitIdRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommitIdRequiredException) GoString() string { + return s.String() +} + +func newErrorCommitIdRequiredException(v protocol.ResponseMetadata) error { + return &CommitIdRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CommitIdRequiredException) Code() string { + return "CommitIdRequiredException" +} + +// Message returns the exception's message. +func (s CommitIdRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommitIdRequiredException) OrigErr() error { + return nil +} + +func (s CommitIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommitIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommitIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of allowed commit IDs in a batch request is 100. Verify +// that your batch requests contains no more than 100 commit IDs, and then try +// again. +type CommitIdsLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CommitIdsLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommitIdsLimitExceededException) GoString() string { + return s.String() +} + +func newErrorCommitIdsLimitExceededException(v protocol.ResponseMetadata) error { + return &CommitIdsLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CommitIdsLimitExceededException) Code() string { + return "CommitIdsLimitExceededException" +} + +// Message returns the exception's message. +func (s CommitIdsLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommitIdsLimitExceededException) OrigErr() error { + return nil +} + +func (s CommitIdsLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommitIdsLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommitIdsLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A list of commit IDs is required, but was either not specified or the list +// was empty. +type CommitIdsListRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CommitIdsListRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommitIdsListRequiredException) GoString() string { + return s.String() +} + +func newErrorCommitIdsListRequiredException(v protocol.ResponseMetadata) error { + return &CommitIdsListRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CommitIdsListRequiredException) Code() string { + return "CommitIdsListRequiredException" +} + +// Message returns the exception's message. +func (s CommitIdsListRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommitIdsListRequiredException) OrigErr() error { + return nil +} + +func (s CommitIdsListRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommitIdsListRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommitIdsListRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The commit message is too long. Provide a shorter string. +type CommitMessageLengthExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CommitMessageLengthExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommitMessageLengthExceededException) GoString() string { + return s.String() +} + +func newErrorCommitMessageLengthExceededException(v protocol.ResponseMetadata) error { + return &CommitMessageLengthExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CommitMessageLengthExceededException) Code() string { + return "CommitMessageLengthExceededException" +} + +// Message returns the exception's message. +func (s CommitMessageLengthExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommitMessageLengthExceededException) OrigErr() error { + return nil +} + +func (s CommitMessageLengthExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommitMessageLengthExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommitMessageLengthExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A commit was not specified. +type CommitRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s CommitRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CommitRequiredException) GoString() string { + return s.String() +} + +func newErrorCommitRequiredException(v protocol.ResponseMetadata) error { + return &CommitRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CommitRequiredException) Code() string { + return "CommitRequiredException" +} + +// Message returns the exception's message. +func (s CommitRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CommitRequiredException) OrigErr() error { + return nil +} + +func (s CommitRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CommitRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CommitRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The merge cannot be completed because the target branch has been modified. +// Another user might have modified the target branch while the merge was in +// progress. Wait a few minutes, and then try again. +type ConcurrentReferenceUpdateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConcurrentReferenceUpdateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentReferenceUpdateException) GoString() string { + return s.String() +} + +func newErrorConcurrentReferenceUpdateException(v protocol.ResponseMetadata) error { + return &ConcurrentReferenceUpdateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentReferenceUpdateException) Code() string { + return "ConcurrentReferenceUpdateException" +} + +// Message returns the exception's message. +func (s ConcurrentReferenceUpdateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentReferenceUpdateException) OrigErr() error { + return nil +} + +func (s ConcurrentReferenceUpdateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentReferenceUpdateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentReferenceUpdateException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about conflicts in a merge operation. +type Conflict struct { + _ struct{} `type:"structure"` + + // Metadata about a conflict in a merge operation. + ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure"` + + // A list of hunks that contain the differences between files or lines causing + // the conflict. + MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list"` +} + +// String returns the string representation +func (s Conflict) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Conflict) GoString() string { + return s.String() +} + +// SetConflictMetadata sets the ConflictMetadata field's value. +func (s *Conflict) SetConflictMetadata(v *ConflictMetadata) *Conflict { + s.ConflictMetadata = v + return s +} + +// SetMergeHunks sets the MergeHunks field's value. +func (s *Conflict) SetMergeHunks(v []*MergeHunk) *Conflict { + s.MergeHunks = v + return s +} + +// Information about the metadata for a conflict in a merge operation. +type ConflictMetadata struct { + _ struct{} `type:"structure"` + + // A boolean value indicating whether there are conflicts in the content of + // a file. + ContentConflict *bool `locationName:"contentConflict" type:"boolean"` + + // A boolean value indicating whether there are conflicts in the file mode of + // a file. + FileModeConflict *bool `locationName:"fileModeConflict" type:"boolean"` + + // The file modes of the file in the source, destination, and base of the merge. + FileModes *FileModes `locationName:"fileModes" type:"structure"` + + // The path of the file that contains conflicts. + FilePath *string `locationName:"filePath" type:"string"` + + // The file sizes of the file in the source, destination, and base of the merge. + FileSizes *FileSizes `locationName:"fileSizes" type:"structure"` + + // A boolean value (true or false) indicating whether the file is binary or + // textual in the source, destination, and base of the merge. + IsBinaryFile *IsBinaryFile `locationName:"isBinaryFile" type:"structure"` + + // Whether an add, modify, or delete operation caused the conflict between the + // source and destination of the merge. + MergeOperations *MergeOperations `locationName:"mergeOperations" type:"structure"` + + // The number of conflicts, including both hunk conflicts and metadata conflicts. + NumberOfConflicts *int64 `locationName:"numberOfConflicts" type:"integer"` + + // A boolean value (true or false) indicating whether there are conflicts between + // the branches in the object type of a file, folder, or submodule. + ObjectTypeConflict *bool `locationName:"objectTypeConflict" type:"boolean"` + + // Information about any object type conflicts in a merge operation. + ObjectTypes *ObjectTypes `locationName:"objectTypes" type:"structure"` +} + +// String returns the string representation +func (s ConflictMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictMetadata) GoString() string { + return s.String() +} + +// SetContentConflict sets the ContentConflict field's value. +func (s *ConflictMetadata) SetContentConflict(v bool) *ConflictMetadata { + s.ContentConflict = &v + return s +} + +// SetFileModeConflict sets the FileModeConflict field's value. +func (s *ConflictMetadata) SetFileModeConflict(v bool) *ConflictMetadata { + s.FileModeConflict = &v + return s +} + +// SetFileModes sets the FileModes field's value. +func (s *ConflictMetadata) SetFileModes(v *FileModes) *ConflictMetadata { + s.FileModes = v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *ConflictMetadata) SetFilePath(v string) *ConflictMetadata { + s.FilePath = &v + return s +} + +// SetFileSizes sets the FileSizes field's value. +func (s *ConflictMetadata) SetFileSizes(v *FileSizes) *ConflictMetadata { + s.FileSizes = v + return s +} + +// SetIsBinaryFile sets the IsBinaryFile field's value. +func (s *ConflictMetadata) SetIsBinaryFile(v *IsBinaryFile) *ConflictMetadata { + s.IsBinaryFile = v + return s +} + +// SetMergeOperations sets the MergeOperations field's value. +func (s *ConflictMetadata) SetMergeOperations(v *MergeOperations) *ConflictMetadata { + s.MergeOperations = v + return s +} + +// SetNumberOfConflicts sets the NumberOfConflicts field's value. +func (s *ConflictMetadata) SetNumberOfConflicts(v int64) *ConflictMetadata { + s.NumberOfConflicts = &v + return s +} + +// SetObjectTypeConflict sets the ObjectTypeConflict field's value. +func (s *ConflictMetadata) SetObjectTypeConflict(v bool) *ConflictMetadata { + s.ObjectTypeConflict = &v + return s +} + +// SetObjectTypes sets the ObjectTypes field's value. +func (s *ConflictMetadata) SetObjectTypes(v *ObjectTypes) *ConflictMetadata { + s.ObjectTypes = v + return s +} + +// If AUTOMERGE is the conflict resolution strategy, a list of inputs to use +// when resolving conflicts during a merge. +type ConflictResolution struct { + _ struct{} `type:"structure"` + + // Files to be deleted as part of the merge conflict resolution. + DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"` + + // Files to have content replaced as part of the merge conflict resolution. + ReplaceContents []*ReplaceContentEntry `locationName:"replaceContents" type:"list"` + + // File modes that are set as part of the merge conflict resolution. + SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"` +} + +// String returns the string representation +func (s ConflictResolution) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictResolution) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ConflictResolution) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ConflictResolution"} + if s.DeleteFiles != nil { + for i, v := range s.DeleteFiles { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams)) + } + } + } + if s.ReplaceContents != nil { + for i, v := range s.ReplaceContents { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReplaceContents", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SetFileModes != nil { + for i, v := range s.SetFileModes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeleteFiles sets the DeleteFiles field's value. +func (s *ConflictResolution) SetDeleteFiles(v []*DeleteFileEntry) *ConflictResolution { + s.DeleteFiles = v + return s +} + +// SetReplaceContents sets the ReplaceContents field's value. +func (s *ConflictResolution) SetReplaceContents(v []*ReplaceContentEntry) *ConflictResolution { + s.ReplaceContents = v + return s +} + +// SetSetFileModes sets the SetFileModes field's value. +func (s *ConflictResolution) SetSetFileModes(v []*SetFileModeEntry) *ConflictResolution { + s.SetFileModes = v + return s +} + +type CreateApprovalRuleTemplateInput struct { + _ struct{} `type:"structure"` + + // The content of the approval rule that is created on pull requests in associated + // repositories. If you specify one or more destination references (branches), + // approval rules are created in an associated repository only if their destination + // references (branches) match those specified in the template. + // + // When you create the content of the approval rule template, you can specify + // approvers in an approval pool in one of two ways: + // + // * CodeCommitApprovers: This option only requires an AWS account and a + // resource. It can be used for both IAM users and federated access users + // whose name matches the provided resource name. This is a very powerful + // option that offers a great deal of flexibility. For example, if you specify + // the AWS account 123456789012 and Mary_Major, all of the following are + // counted as approvals coming from that user: An IAM user in the account + // (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified + // in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major) + // This option does not recognize an active session of someone assuming the + // role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) + // unless you include a wildcard (*Mary_Major). + // + // * Fully qualified ARN: This option allows you to specify the fully qualified + // Amazon Resource Name (ARN) of the IAM user or role. + // + // For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers + // (https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html) + // in the IAM User Guide. + // + // ApprovalRuleTemplateContent is a required field + ApprovalRuleTemplateContent *string `locationName:"approvalRuleTemplateContent" min:"1" type:"string" required:"true"` + + // The description of the approval rule template. Consider providing a description + // that explains what this template does and when it might be appropriate to + // associate it with repositories. + ApprovalRuleTemplateDescription *string `locationName:"approvalRuleTemplateDescription" type:"string"` + + // The name of the approval rule template. Provide descriptive names, because + // this name is applied to the approval rules created automatically in associated + // repositories. + // + // ApprovalRuleTemplateName is a required field + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateApprovalRuleTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateApprovalRuleTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateApprovalRuleTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateApprovalRuleTemplateInput"} + if s.ApprovalRuleTemplateContent == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateContent")) + } + if s.ApprovalRuleTemplateContent != nil && len(*s.ApprovalRuleTemplateContent) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateContent", 1)) + } + if s.ApprovalRuleTemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) + } + if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRuleTemplateContent sets the ApprovalRuleTemplateContent field's value. +func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateContent(v string) *CreateApprovalRuleTemplateInput { + s.ApprovalRuleTemplateContent = &v + return s +} + +// SetApprovalRuleTemplateDescription sets the ApprovalRuleTemplateDescription field's value. +func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateDescription(v string) *CreateApprovalRuleTemplateInput { + s.ApprovalRuleTemplateDescription = &v + return s +} + +// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. +func (s *CreateApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *CreateApprovalRuleTemplateInput { + s.ApprovalRuleTemplateName = &v + return s +} + +type CreateApprovalRuleTemplateOutput struct { + _ struct{} `type:"structure"` + + // The content and structure of the created approval rule template. + // + // ApprovalRuleTemplate is a required field + ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreateApprovalRuleTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateApprovalRuleTemplateOutput) GoString() string { + return s.String() +} + +// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value. +func (s *CreateApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *CreateApprovalRuleTemplateOutput { + s.ApprovalRuleTemplate = v + return s +} + +// Represents the input of a create branch operation. +type CreateBranchInput struct { + _ struct{} `type:"structure"` + + // The name of the new branch to create. + // + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + + // The ID of the commit to point the new branch to. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The name of the repository in which you want to create the new branch. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateBranchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBranchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateBranchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateBranchInput"} + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.CommitId == nil { + invalidParams.Add(request.NewErrParamRequired("CommitId")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranchName sets the BranchName field's value. +func (s *CreateBranchInput) SetBranchName(v string) *CreateBranchInput { + s.BranchName = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *CreateBranchInput) SetCommitId(v string) *CreateBranchInput { + s.CommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateBranchInput) SetRepositoryName(v string) *CreateBranchInput { + s.RepositoryName = &v + return s +} + +type CreateBranchOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s CreateBranchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateBranchOutput) GoString() string { + return s.String() +} + +type CreateCommitInput struct { + _ struct{} `type:"structure"` + + // The name of the author who created the commit. This information is used as + // both the author and committer for the commit. + AuthorName *string `locationName:"authorName" type:"string"` + + // The name of the branch where you create the commit. + // + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + + // The commit message you want to include in the commit. Commit messages are + // limited to 256 KB. If no message is specified, a default message is used. + CommitMessage *string `locationName:"commitMessage" type:"string"` + + // The files to delete in this commit. These files still exist in earlier commits. + DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"` + + // The email address of the person who created the commit. + Email *string `locationName:"email" type:"string"` + + // If the commit contains deletions, whether to keep a folder or folder structure + // if the changes leave the folders empty. If true, a ..gitkeep file is created + // for empty folders. The default is false. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + + // The ID of the commit that is the parent of the commit you create. Not required + // if this is an empty repository. + ParentCommitId *string `locationName:"parentCommitId" type:"string"` + + // The files to add or update in this commit. + PutFiles []*PutFileEntry `locationName:"putFiles" type:"list"` + + // The name of the repository where you create the commit. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The file modes to update for files in this commit. + SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"` +} + +// String returns the string representation +func (s CreateCommitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCommitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateCommitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateCommitInput"} + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.DeleteFiles != nil { + for i, v := range s.DeleteFiles { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams)) + } + } + } + if s.PutFiles != nil { + for i, v := range s.PutFiles { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PutFiles", i), err.(request.ErrInvalidParams)) + } + } + } + if s.SetFileModes != nil { + for i, v := range s.SetFileModes { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthorName sets the AuthorName field's value. +func (s *CreateCommitInput) SetAuthorName(v string) *CreateCommitInput { + s.AuthorName = &v + return s +} + +// SetBranchName sets the BranchName field's value. +func (s *CreateCommitInput) SetBranchName(v string) *CreateCommitInput { + s.BranchName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *CreateCommitInput) SetCommitMessage(v string) *CreateCommitInput { + s.CommitMessage = &v + return s +} + +// SetDeleteFiles sets the DeleteFiles field's value. +func (s *CreateCommitInput) SetDeleteFiles(v []*DeleteFileEntry) *CreateCommitInput { + s.DeleteFiles = v + return s +} + +// SetEmail sets the Email field's value. +func (s *CreateCommitInput) SetEmail(v string) *CreateCommitInput { + s.Email = &v + return s +} + +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *CreateCommitInput) SetKeepEmptyFolders(v bool) *CreateCommitInput { + s.KeepEmptyFolders = &v + return s +} + +// SetParentCommitId sets the ParentCommitId field's value. +func (s *CreateCommitInput) SetParentCommitId(v string) *CreateCommitInput { + s.ParentCommitId = &v + return s +} + +// SetPutFiles sets the PutFiles field's value. +func (s *CreateCommitInput) SetPutFiles(v []*PutFileEntry) *CreateCommitInput { + s.PutFiles = v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateCommitInput) SetRepositoryName(v string) *CreateCommitInput { + s.RepositoryName = &v + return s +} + +// SetSetFileModes sets the SetFileModes field's value. +func (s *CreateCommitInput) SetSetFileModes(v []*SetFileModeEntry) *CreateCommitInput { + s.SetFileModes = v + return s +} + +type CreateCommitOutput struct { + _ struct{} `type:"structure"` + + // The full commit ID of the commit that contains your committed file changes. + CommitId *string `locationName:"commitId" type:"string"` + + // The files added as part of the committed file changes. + FilesAdded []*FileMetadata `locationName:"filesAdded" type:"list"` + + // The files deleted as part of the committed file changes. + FilesDeleted []*FileMetadata `locationName:"filesDeleted" type:"list"` + + // The files updated as part of the commited file changes. + FilesUpdated []*FileMetadata `locationName:"filesUpdated" type:"list"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the commited file changes. + TreeId *string `locationName:"treeId" type:"string"` +} + +// String returns the string representation +func (s CreateCommitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateCommitOutput) GoString() string { + return s.String() +} + +// SetCommitId sets the CommitId field's value. +func (s *CreateCommitOutput) SetCommitId(v string) *CreateCommitOutput { + s.CommitId = &v + return s +} + +// SetFilesAdded sets the FilesAdded field's value. +func (s *CreateCommitOutput) SetFilesAdded(v []*FileMetadata) *CreateCommitOutput { + s.FilesAdded = v + return s +} + +// SetFilesDeleted sets the FilesDeleted field's value. +func (s *CreateCommitOutput) SetFilesDeleted(v []*FileMetadata) *CreateCommitOutput { + s.FilesDeleted = v + return s +} + +// SetFilesUpdated sets the FilesUpdated field's value. +func (s *CreateCommitOutput) SetFilesUpdated(v []*FileMetadata) *CreateCommitOutput { + s.FilesUpdated = v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *CreateCommitOutput) SetTreeId(v string) *CreateCommitOutput { + s.TreeId = &v + return s +} + +type CreatePullRequestApprovalRuleInput struct { + _ struct{} `type:"structure"` + + // The content of the approval rule, including the number of approvals needed + // and the structure of an approval pool defined for approvals, if any. For + // more information about approval pools, see the AWS CodeCommit User Guide. + // + // When you create the content of the approval rule, you can specify approvers + // in an approval pool in one of two ways: + // + // * CodeCommitApprovers: This option only requires an AWS account and a + // resource. It can be used for both IAM users and federated access users + // whose name matches the provided resource name. This is a very powerful + // option that offers a great deal of flexibility. For example, if you specify + // the AWS account 123456789012 and Mary_Major, all of the following would + // be counted as approvals coming from that user: An IAM user in the account + // (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified + // in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major) + // This option does not recognize an active session of someone assuming the + // role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) + // unless you include a wildcard (*Mary_Major). + // + // * Fully qualified ARN: This option allows you to specify the fully qualified + // Amazon Resource Name (ARN) of the IAM user or role. + // + // For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers + // (https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html) + // in the IAM User Guide. + // + // ApprovalRuleContent is a required field + ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string" required:"true"` + + // The name for the approval rule. + // + // ApprovalRuleName is a required field + ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"` + + // The system-generated ID of the pull request for which you want to create + // the approval rule. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreatePullRequestApprovalRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePullRequestApprovalRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePullRequestApprovalRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestApprovalRuleInput"} + if s.ApprovalRuleContent == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleContent")) + } + if s.ApprovalRuleContent != nil && len(*s.ApprovalRuleContent) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleContent", 1)) + } + if s.ApprovalRuleName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName")) + } + if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1)) + } + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRuleContent sets the ApprovalRuleContent field's value. +func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleContent(v string) *CreatePullRequestApprovalRuleInput { + s.ApprovalRuleContent = &v + return s +} + +// SetApprovalRuleName sets the ApprovalRuleName field's value. +func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *CreatePullRequestApprovalRuleInput { + s.ApprovalRuleName = &v + return s +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *CreatePullRequestApprovalRuleInput) SetPullRequestId(v string) *CreatePullRequestApprovalRuleInput { + s.PullRequestId = &v + return s +} + +type CreatePullRequestApprovalRuleOutput struct { + _ struct{} `type:"structure"` + + // Information about the created approval rule. + // + // ApprovalRule is a required field + ApprovalRule *ApprovalRule `locationName:"approvalRule" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreatePullRequestApprovalRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePullRequestApprovalRuleOutput) GoString() string { + return s.String() +} + +// SetApprovalRule sets the ApprovalRule field's value. +func (s *CreatePullRequestApprovalRuleOutput) SetApprovalRule(v *ApprovalRule) *CreatePullRequestApprovalRuleOutput { + s.ApprovalRule = v + return s +} + +type CreatePullRequestInput struct { + _ struct{} `type:"structure"` + + // A unique, client-generated idempotency token that, when provided in a request, + // ensures the request cannot be repeated with a changed parameter. If a request + // is received with the same parameters and a token is included, the request + // returns information about the initial request that used that token. + // + // The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, + // an idempotency token is created for you. + ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` + + // A description of the pull request. + Description *string `locationName:"description" type:"string"` + + // The targets for the pull request, including the source of the code to be + // reviewed (the source branch) and the destination where the creator of the + // pull request intends the code to be merged after the pull request is closed + // (the destination branch). + // + // Targets is a required field + Targets []*Target `locationName:"targets" type:"list" required:"true"` + + // The title of the pull request. This title is used to identify the pull request + // to other users in the repository. + // + // Title is a required field + Title *string `locationName:"title" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreatePullRequestInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePullRequestInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreatePullRequestInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestInput"} + if s.Targets == nil { + invalidParams.Add(request.NewErrParamRequired("Targets")) + } + if s.Title == nil { + invalidParams.Add(request.NewErrParamRequired("Title")) + } + if s.Targets != nil { + for i, v := range s.Targets { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *CreatePullRequestInput) SetClientRequestToken(v string) *CreatePullRequestInput { + s.ClientRequestToken = &v + return s +} + +// SetDescription sets the Description field's value. +func (s *CreatePullRequestInput) SetDescription(v string) *CreatePullRequestInput { + s.Description = &v + return s +} + +// SetTargets sets the Targets field's value. +func (s *CreatePullRequestInput) SetTargets(v []*Target) *CreatePullRequestInput { + s.Targets = v + return s +} + +// SetTitle sets the Title field's value. +func (s *CreatePullRequestInput) SetTitle(v string) *CreatePullRequestInput { + s.Title = &v + return s +} + +type CreatePullRequestOutput struct { + _ struct{} `type:"structure"` + + // Information about the newly created pull request. + // + // PullRequest is a required field + PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"` +} + +// String returns the string representation +func (s CreatePullRequestOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreatePullRequestOutput) GoString() string { + return s.String() +} + +// SetPullRequest sets the PullRequest field's value. +func (s *CreatePullRequestOutput) SetPullRequest(v *PullRequest) *CreatePullRequestOutput { + s.PullRequest = v + return s +} + +// Represents the input of a create repository operation. +type CreateRepositoryInput struct { + _ struct{} `type:"structure"` + + // A comment or description about the new repository. + // + // The description field for a repository accepts all HTML characters and all + // valid Unicode characters. Applications that do not HTML-encode the description + // and display it in a webpage can expose users to potentially malicious code. + // Make sure that you HTML-encode the description field in any application that + // uses this API to display the repository description on a webpage. + RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` + + // The name of the new repository to be created. + // + // The repository name must be unique across the calling AWS account. Repository + // names are limited to 100 alphanumeric, dash, and underscore characters, and + // cannot include certain characters. For more information about the limits + // on repository names, see Limits (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) + // in the AWS CodeCommit User Guide. The suffix .git is prohibited. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // One or more tag key-value pairs to use when tagging this repository. + Tags map[string]*string `locationName:"tags" type:"map"` +} + +// String returns the string representation +func (s CreateRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput { + s.RepositoryDescription = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput { + s.RepositoryName = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *CreateRepositoryInput) SetTags(v map[string]*string) *CreateRepositoryInput { + s.Tags = v + return s +} + +// Represents the output of a create repository operation. +type CreateRepositoryOutput struct { + _ struct{} `type:"structure"` + + // Information about the newly created repository. + RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"` +} + +// String returns the string representation +func (s CreateRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateRepositoryOutput) GoString() string { + return s.String() +} + +// SetRepositoryMetadata sets the RepositoryMetadata field's value. +func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput { + s.RepositoryMetadata = v + return s +} + +type CreateUnreferencedMergeCommitInput struct { + _ struct{} `type:"structure"` + + // The name of the author who created the unreferenced commit. This information + // is used as both the author and committer for the commit. + AuthorName *string `locationName:"authorName" type:"string"` + + // The commit message for the unreferenced commit. + CommitMessage *string `locationName:"commitMessage" type:"string"` + + // The level of conflict detail to use. If unspecified, the default FILE_LEVEL + // is used, which returns a not-mergeable result if the same file has differences + // in both branches. If LINE_LEVEL is specified, a conflict is considered not + // mergeable if the same file in both branches has differences on the same line. + ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + + // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use + // when resolving conflicts during a merge. + ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` + + // Specifies which branch to use when resolving conflicts, or whether to attempt + // automatically merging two versions of a file. The default is NONE, which + // requires any conflicts to be resolved manually before the merge operation + // is successful. + ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // DestinationCommitSpecifier is a required field + DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` + + // The email address for the person who created the unreferenced commit. + Email *string `locationName:"email" type:"string"` + + // If the commit contains deletions, whether to keep a folder or folder structure + // if the changes leave the folders empty. If this is specified as true, a .gitkeep + // file is created for empty folders. The default is false. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + + // The merge option or strategy you want to use to merge the code. + // + // MergeOption is a required field + MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"` + + // The name of the repository where you want to create the unreferenced merge + // commit. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // SourceCommitSpecifier is a required field + SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` +} + +// String returns the string representation +func (s CreateUnreferencedMergeCommitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUnreferencedMergeCommitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateUnreferencedMergeCommitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateUnreferencedMergeCommitInput"} + if s.DestinationCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) + } + if s.MergeOption == nil { + invalidParams.Add(request.NewErrParamRequired("MergeOption")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.SourceCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) + } + if s.ConflictResolution != nil { + if err := s.ConflictResolution.Validate(); err != nil { + invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAuthorName sets the AuthorName field's value. +func (s *CreateUnreferencedMergeCommitInput) SetAuthorName(v string) *CreateUnreferencedMergeCommitInput { + s.AuthorName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *CreateUnreferencedMergeCommitInput) SetCommitMessage(v string) *CreateUnreferencedMergeCommitInput { + s.CommitMessage = &v + return s +} + +// SetConflictDetailLevel sets the ConflictDetailLevel field's value. +func (s *CreateUnreferencedMergeCommitInput) SetConflictDetailLevel(v string) *CreateUnreferencedMergeCommitInput { + s.ConflictDetailLevel = &v + return s +} + +// SetConflictResolution sets the ConflictResolution field's value. +func (s *CreateUnreferencedMergeCommitInput) SetConflictResolution(v *ConflictResolution) *CreateUnreferencedMergeCommitInput { + s.ConflictResolution = v + return s +} + +// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. +func (s *CreateUnreferencedMergeCommitInput) SetConflictResolutionStrategy(v string) *CreateUnreferencedMergeCommitInput { + s.ConflictResolutionStrategy = &v + return s +} + +// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. +func (s *CreateUnreferencedMergeCommitInput) SetDestinationCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput { + s.DestinationCommitSpecifier = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *CreateUnreferencedMergeCommitInput) SetEmail(v string) *CreateUnreferencedMergeCommitInput { + s.Email = &v + return s +} + +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *CreateUnreferencedMergeCommitInput) SetKeepEmptyFolders(v bool) *CreateUnreferencedMergeCommitInput { + s.KeepEmptyFolders = &v + return s +} + +// SetMergeOption sets the MergeOption field's value. +func (s *CreateUnreferencedMergeCommitInput) SetMergeOption(v string) *CreateUnreferencedMergeCommitInput { + s.MergeOption = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *CreateUnreferencedMergeCommitInput) SetRepositoryName(v string) *CreateUnreferencedMergeCommitInput { + s.RepositoryName = &v + return s +} + +// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. +func (s *CreateUnreferencedMergeCommitInput) SetSourceCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput { + s.SourceCommitSpecifier = &v + return s +} + +type CreateUnreferencedMergeCommitOutput struct { + _ struct{} `type:"structure"` + + // The full commit ID of the commit that contains your merge results. + CommitId *string `locationName:"commitId" type:"string"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the merge results. + TreeId *string `locationName:"treeId" type:"string"` +} + +// String returns the string representation +func (s CreateUnreferencedMergeCommitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateUnreferencedMergeCommitOutput) GoString() string { + return s.String() +} + +// SetCommitId sets the CommitId field's value. +func (s *CreateUnreferencedMergeCommitOutput) SetCommitId(v string) *CreateUnreferencedMergeCommitOutput { + s.CommitId = &v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *CreateUnreferencedMergeCommitOutput) SetTreeId(v string) *CreateUnreferencedMergeCommitOutput { + s.TreeId = &v + return s +} + +// The specified branch is the default branch for the repository, and cannot +// be deleted. To delete this branch, you must first set another branch as the +// default branch. +type DefaultBranchCannotBeDeletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DefaultBranchCannotBeDeletedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DefaultBranchCannotBeDeletedException) GoString() string { + return s.String() +} + +func newErrorDefaultBranchCannotBeDeletedException(v protocol.ResponseMetadata) error { + return &DefaultBranchCannotBeDeletedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DefaultBranchCannotBeDeletedException) Code() string { + return "DefaultBranchCannotBeDeletedException" +} + +// Message returns the exception's message. +func (s DefaultBranchCannotBeDeletedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DefaultBranchCannotBeDeletedException) OrigErr() error { + return nil +} + +func (s DefaultBranchCannotBeDeletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DefaultBranchCannotBeDeletedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DefaultBranchCannotBeDeletedException) RequestID() string { + return s.respMetadata.RequestID +} + +type DeleteApprovalRuleTemplateInput struct { + _ struct{} `type:"structure"` + + // The name of the approval rule template to delete. + // + // ApprovalRuleTemplateName is a required field + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteApprovalRuleTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApprovalRuleTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteApprovalRuleTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteApprovalRuleTemplateInput"} + if s.ApprovalRuleTemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) + } + if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. +func (s *DeleteApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *DeleteApprovalRuleTemplateInput { + s.ApprovalRuleTemplateName = &v + return s +} + +type DeleteApprovalRuleTemplateOutput struct { + _ struct{} `type:"structure"` + + // The system-generated ID of the deleted approval rule template. If the template + // has been previously deleted, the only response is a 200 OK. + // + // ApprovalRuleTemplateId is a required field + ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteApprovalRuleTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteApprovalRuleTemplateOutput) GoString() string { + return s.String() +} + +// SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value. +func (s *DeleteApprovalRuleTemplateOutput) SetApprovalRuleTemplateId(v string) *DeleteApprovalRuleTemplateOutput { + s.ApprovalRuleTemplateId = &v + return s +} + +// Represents the input of a delete branch operation. +type DeleteBranchInput struct { + _ struct{} `type:"structure"` + + // The name of the branch to delete. + // + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + + // The name of the repository that contains the branch to be deleted. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteBranchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBranchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteBranchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"} + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranchName sets the BranchName field's value. +func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput { + s.BranchName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteBranchInput) SetRepositoryName(v string) *DeleteBranchInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a delete branch operation. +type DeleteBranchOutput struct { + _ struct{} `type:"structure"` + + // Information about the branch deleted by the operation, including the branch + // name and the commit ID that was the tip of the branch. + DeletedBranch *BranchInfo `locationName:"deletedBranch" type:"structure"` +} + +// String returns the string representation +func (s DeleteBranchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteBranchOutput) GoString() string { + return s.String() +} + +// SetDeletedBranch sets the DeletedBranch field's value. +func (s *DeleteBranchOutput) SetDeletedBranch(v *BranchInfo) *DeleteBranchOutput { + s.DeletedBranch = v + return s +} + +type DeleteCommentContentInput struct { + _ struct{} `type:"structure"` + + // The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit + // or GetCommentsForPullRequest. + // + // CommentId is a required field + CommentId *string `locationName:"commentId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteCommentContentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCommentContentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteCommentContentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteCommentContentInput"} + if s.CommentId == nil { + invalidParams.Add(request.NewErrParamRequired("CommentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommentId sets the CommentId field's value. +func (s *DeleteCommentContentInput) SetCommentId(v string) *DeleteCommentContentInput { + s.CommentId = &v + return s +} + +type DeleteCommentContentOutput struct { + _ struct{} `type:"structure"` + + // Information about the comment you just deleted. + Comment *Comment `locationName:"comment" type:"structure"` +} + +// String returns the string representation +func (s DeleteCommentContentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteCommentContentOutput) GoString() string { + return s.String() +} + +// SetComment sets the Comment field's value. +func (s *DeleteCommentContentOutput) SetComment(v *Comment) *DeleteCommentContentOutput { + s.Comment = v + return s +} + +// A file that is deleted as part of a commit. +type DeleteFileEntry struct { + _ struct{} `type:"structure"` + + // The full path of the file to be deleted, including the name of the file. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFileEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileEntry) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFileEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFileEntry"} + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFilePath sets the FilePath field's value. +func (s *DeleteFileEntry) SetFilePath(v string) *DeleteFileEntry { + s.FilePath = &v + return s +} + +type DeleteFileInput struct { + _ struct{} `type:"structure"` + + // The name of the branch where the commit that deletes the file is made. + // + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` + + // The commit message you want to include as part of deleting the file. Commit + // messages are limited to 256 KB. If no message is specified, a default message + // is used. + CommitMessage *string `locationName:"commitMessage" type:"string"` + + // The email address for the commit that deletes the file. If no email address + // is specified, the email address is left blank. + Email *string `locationName:"email" type:"string"` + + // The fully qualified path to the file that to be deleted, including the full + // name and extension of that file. For example, /examples/file.md is a fully + // qualified path to a file named file.md in a folder named examples. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // If a file is the only object in the folder or directory, specifies whether + // to delete the folder or directory that contains the file. By default, empty + // folders are deleted. This includes empty folders that are part of the directory + // structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and + // dir2 and dir3 are empty, deleting the last file in dir4 also deletes the + // empty folders dir4, dir3, and dir2. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + + // The name of the author of the commit that deletes the file. If no name is + // specified, the user's ARN is used as the author name and committer name. + Name *string `locationName:"name" type:"string"` + + // The ID of the commit that is the tip of the branch where you want to create + // the commit that deletes the file. This must be the HEAD commit for the branch. + // The commit that deletes the file is created from this commit ID. + // + // ParentCommitId is a required field + ParentCommitId *string `locationName:"parentCommitId" type:"string" required:"true"` + + // The name of the repository that contains the file to delete. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteFileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteFileInput"} + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) + } + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) + } + if s.ParentCommitId == nil { + invalidParams.Add(request.NewErrParamRequired("ParentCommitId")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranchName sets the BranchName field's value. +func (s *DeleteFileInput) SetBranchName(v string) *DeleteFileInput { + s.BranchName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *DeleteFileInput) SetCommitMessage(v string) *DeleteFileInput { + s.CommitMessage = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *DeleteFileInput) SetEmail(v string) *DeleteFileInput { + s.Email = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *DeleteFileInput) SetFilePath(v string) *DeleteFileInput { + s.FilePath = &v + return s +} + +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *DeleteFileInput) SetKeepEmptyFolders(v bool) *DeleteFileInput { + s.KeepEmptyFolders = &v + return s +} + +// SetName sets the Name field's value. +func (s *DeleteFileInput) SetName(v string) *DeleteFileInput { + s.Name = &v + return s +} + +// SetParentCommitId sets the ParentCommitId field's value. +func (s *DeleteFileInput) SetParentCommitId(v string) *DeleteFileInput { + s.ParentCommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteFileInput) SetRepositoryName(v string) *DeleteFileInput { + s.RepositoryName = &v + return s +} + +type DeleteFileOutput struct { + _ struct{} `type:"structure"` + + // The blob ID removed from the tree as part of deleting the file. + // + // BlobId is a required field + BlobId *string `locationName:"blobId" type:"string" required:"true"` + + // The full commit ID of the commit that contains the change that deletes the + // file. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The fully qualified path to the file to be deleted, including the full name + // and extension of that file. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the delete file change. + // + // TreeId is a required field + TreeId *string `locationName:"treeId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteFileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteFileOutput) GoString() string { + return s.String() +} + +// SetBlobId sets the BlobId field's value. +func (s *DeleteFileOutput) SetBlobId(v string) *DeleteFileOutput { + s.BlobId = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *DeleteFileOutput) SetCommitId(v string) *DeleteFileOutput { + s.CommitId = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *DeleteFileOutput) SetFilePath(v string) *DeleteFileOutput { + s.FilePath = &v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *DeleteFileOutput) SetTreeId(v string) *DeleteFileOutput { + s.TreeId = &v + return s +} + +type DeletePullRequestApprovalRuleInput struct { + _ struct{} `type:"structure"` + + // The name of the approval rule you want to delete. + // + // ApprovalRuleName is a required field + ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"` + + // The system-generated ID of the pull request that contains the approval rule + // you want to delete. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePullRequestApprovalRuleInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePullRequestApprovalRuleInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeletePullRequestApprovalRuleInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeletePullRequestApprovalRuleInput"} + if s.ApprovalRuleName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName")) + } + if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1)) + } + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRuleName sets the ApprovalRuleName field's value. +func (s *DeletePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *DeletePullRequestApprovalRuleInput { + s.ApprovalRuleName = &v + return s +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *DeletePullRequestApprovalRuleInput) SetPullRequestId(v string) *DeletePullRequestApprovalRuleInput { + s.PullRequestId = &v + return s +} + +type DeletePullRequestApprovalRuleOutput struct { + _ struct{} `type:"structure"` + + // The ID of the deleted approval rule. + // + // If the approval rule was deleted in an earlier API call, the response is + // 200 OK without content. + // + // ApprovalRuleId is a required field + ApprovalRuleId *string `locationName:"approvalRuleId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeletePullRequestApprovalRuleOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeletePullRequestApprovalRuleOutput) GoString() string { + return s.String() +} + +// SetApprovalRuleId sets the ApprovalRuleId field's value. +func (s *DeletePullRequestApprovalRuleOutput) SetApprovalRuleId(v string) *DeletePullRequestApprovalRuleOutput { + s.ApprovalRuleId = &v + return s +} + +// Represents the input of a delete repository operation. +type DeleteRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name of the repository to delete. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeleteRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeleteRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a delete repository operation. +type DeleteRepositoryOutput struct { + _ struct{} `type:"structure"` + + // The ID of the repository that was deleted. + RepositoryId *string `locationName:"repositoryId" type:"string"` +} + +// String returns the string representation +func (s DeleteRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteRepositoryOutput) GoString() string { + return s.String() +} + +// SetRepositoryId sets the RepositoryId field's value. +func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput { + s.RepositoryId = &v + return s +} + +type DescribeMergeConflictsInput struct { + _ struct{} `type:"structure"` + + // The level of conflict detail to use. If unspecified, the default FILE_LEVEL + // is used, which returns a not-mergeable result if the same file has differences + // in both branches. If LINE_LEVEL is specified, a conflict is considered not + // mergeable if the same file in both branches has differences on the same line. + ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + + // Specifies which branch to use when resolving conflicts, or whether to attempt + // automatically merging two versions of a file. The default is NONE, which + // requires any conflicts to be resolved manually before the merge operation + // is successful. + ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // DestinationCommitSpecifier is a required field + DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` + + // The path of the target files used to describe the conflicts. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The maximum number of merge hunks to include in the output. + MaxMergeHunks *int64 `locationName:"maxMergeHunks" type:"integer"` + + // The merge option or strategy you want to use to merge the code. + // + // MergeOption is a required field + MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"` + + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The name of the repository where you want to get information about a merge + // conflict. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // SourceCommitSpecifier is a required field + SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMergeConflictsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMergeConflictsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribeMergeConflictsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribeMergeConflictsInput"} + if s.DestinationCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) + } + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) + } + if s.MergeOption == nil { + invalidParams.Add(request.NewErrParamRequired("MergeOption")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.SourceCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConflictDetailLevel sets the ConflictDetailLevel field's value. +func (s *DescribeMergeConflictsInput) SetConflictDetailLevel(v string) *DescribeMergeConflictsInput { + s.ConflictDetailLevel = &v + return s +} + +// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. +func (s *DescribeMergeConflictsInput) SetConflictResolutionStrategy(v string) *DescribeMergeConflictsInput { + s.ConflictResolutionStrategy = &v + return s +} + +// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. +func (s *DescribeMergeConflictsInput) SetDestinationCommitSpecifier(v string) *DescribeMergeConflictsInput { + s.DestinationCommitSpecifier = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *DescribeMergeConflictsInput) SetFilePath(v string) *DescribeMergeConflictsInput { + s.FilePath = &v + return s +} + +// SetMaxMergeHunks sets the MaxMergeHunks field's value. +func (s *DescribeMergeConflictsInput) SetMaxMergeHunks(v int64) *DescribeMergeConflictsInput { + s.MaxMergeHunks = &v + return s +} + +// SetMergeOption sets the MergeOption field's value. +func (s *DescribeMergeConflictsInput) SetMergeOption(v string) *DescribeMergeConflictsInput { + s.MergeOption = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMergeConflictsInput) SetNextToken(v string) *DescribeMergeConflictsInput { + s.NextToken = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DescribeMergeConflictsInput) SetRepositoryName(v string) *DescribeMergeConflictsInput { + s.RepositoryName = &v + return s +} + +// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. +func (s *DescribeMergeConflictsInput) SetSourceCommitSpecifier(v string) *DescribeMergeConflictsInput { + s.SourceCommitSpecifier = &v + return s +} + +type DescribeMergeConflictsOutput struct { + _ struct{} `type:"structure"` + + // The commit ID of the merge base. + BaseCommitId *string `locationName:"baseCommitId" type:"string"` + + // Contains metadata about the conflicts found in the merge. + // + // ConflictMetadata is a required field + ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure" required:"true"` + + // The commit ID of the destination commit specifier that was used in the merge + // evaluation. + // + // DestinationCommitId is a required field + DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"` + + // A list of merge hunks of the differences between the files or lines. + // + // MergeHunks is a required field + MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list" required:"true"` + + // An enumeration token that can be used in a request to return the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The commit ID of the source commit specifier that was used in the merge evaluation. + // + // SourceCommitId is a required field + SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribeMergeConflictsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeMergeConflictsOutput) GoString() string { + return s.String() +} + +// SetBaseCommitId sets the BaseCommitId field's value. +func (s *DescribeMergeConflictsOutput) SetBaseCommitId(v string) *DescribeMergeConflictsOutput { + s.BaseCommitId = &v + return s +} + +// SetConflictMetadata sets the ConflictMetadata field's value. +func (s *DescribeMergeConflictsOutput) SetConflictMetadata(v *ConflictMetadata) *DescribeMergeConflictsOutput { + s.ConflictMetadata = v + return s +} + +// SetDestinationCommitId sets the DestinationCommitId field's value. +func (s *DescribeMergeConflictsOutput) SetDestinationCommitId(v string) *DescribeMergeConflictsOutput { + s.DestinationCommitId = &v + return s +} + +// SetMergeHunks sets the MergeHunks field's value. +func (s *DescribeMergeConflictsOutput) SetMergeHunks(v []*MergeHunk) *DescribeMergeConflictsOutput { + s.MergeHunks = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribeMergeConflictsOutput) SetNextToken(v string) *DescribeMergeConflictsOutput { + s.NextToken = &v + return s +} + +// SetSourceCommitId sets the SourceCommitId field's value. +func (s *DescribeMergeConflictsOutput) SetSourceCommitId(v string) *DescribeMergeConflictsOutput { + s.SourceCommitId = &v + return s +} + +type DescribePullRequestEventsInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the user whose actions resulted in the + // event. Examples include updating the pull request with more commits or changing + // the status of a pull request. + ActorArn *string `locationName:"actorArn" type:"string"` + + // A non-zero, non-negative integer used to limit the number of returned results. + // The default is 100 events, which is also the maximum number of events that + // can be returned in a result. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // Optional. The pull request event type about which you want to return information. + PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"` + + // The system-generated ID of the pull request. To get this ID, use ListPullRequests. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +} + +// String returns the string representation +func (s DescribePullRequestEventsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePullRequestEventsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DescribePullRequestEventsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DescribePullRequestEventsInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetActorArn sets the ActorArn field's value. +func (s *DescribePullRequestEventsInput) SetActorArn(v string) *DescribePullRequestEventsInput { + s.ActorArn = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *DescribePullRequestEventsInput) SetMaxResults(v int64) *DescribePullRequestEventsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePullRequestEventsInput) SetNextToken(v string) *DescribePullRequestEventsInput { + s.NextToken = &v + return s +} + +// SetPullRequestEventType sets the PullRequestEventType field's value. +func (s *DescribePullRequestEventsInput) SetPullRequestEventType(v string) *DescribePullRequestEventsInput { + s.PullRequestEventType = &v + return s +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *DescribePullRequestEventsInput) SetPullRequestId(v string) *DescribePullRequestEventsInput { + s.PullRequestId = &v + return s +} + +type DescribePullRequestEventsOutput struct { + _ struct{} `type:"structure"` + + // An enumeration token that can be used in a request to return the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // Information about the pull request events. + // + // PullRequestEvents is a required field + PullRequestEvents []*PullRequestEvent `locationName:"pullRequestEvents" type:"list" required:"true"` +} + +// String returns the string representation +func (s DescribePullRequestEventsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribePullRequestEventsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *DescribePullRequestEventsOutput) SetNextToken(v string) *DescribePullRequestEventsOutput { + s.NextToken = &v + return s +} + +// SetPullRequestEvents sets the PullRequestEvents field's value. +func (s *DescribePullRequestEventsOutput) SetPullRequestEvents(v []*PullRequestEvent) *DescribePullRequestEventsOutput { + s.PullRequestEvents = v + return s +} + +// Returns information about a set of differences for a commit specifier. +type Difference struct { + _ struct{} `type:"structure"` + + // Information about an afterBlob data type object, including the ID, the file + // mode permission code, and the path. + AfterBlob *BlobMetadata `locationName:"afterBlob" type:"structure"` + + // Information about a beforeBlob data type object, including the ID, the file + // mode permission code, and the path. + BeforeBlob *BlobMetadata `locationName:"beforeBlob" type:"structure"` + + // Whether the change type of the difference is an addition (A), deletion (D), + // or modification (M). + ChangeType *string `locationName:"changeType" type:"string" enum:"ChangeTypeEnum"` +} + +// String returns the string representation +func (s Difference) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Difference) GoString() string { + return s.String() +} + +// SetAfterBlob sets the AfterBlob field's value. +func (s *Difference) SetAfterBlob(v *BlobMetadata) *Difference { + s.AfterBlob = v + return s +} + +// SetBeforeBlob sets the BeforeBlob field's value. +func (s *Difference) SetBeforeBlob(v *BlobMetadata) *Difference { + s.BeforeBlob = v + return s +} + +// SetChangeType sets the ChangeType field's value. +func (s *Difference) SetChangeType(v string) *Difference { + s.ChangeType = &v + return s +} + +// A file cannot be added to the repository because the specified path name +// has the same name as a file that already exists in this repository. Either +// provide a different name for the file, or specify a different path for the +// file. +type DirectoryNameConflictsWithFileNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DirectoryNameConflictsWithFileNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryNameConflictsWithFileNameException) GoString() string { + return s.String() +} + +func newErrorDirectoryNameConflictsWithFileNameException(v protocol.ResponseMetadata) error { + return &DirectoryNameConflictsWithFileNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryNameConflictsWithFileNameException) Code() string { + return "DirectoryNameConflictsWithFileNameException" +} + +// Message returns the exception's message. +func (s DirectoryNameConflictsWithFileNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryNameConflictsWithFileNameException) OrigErr() error { + return nil +} + +func (s DirectoryNameConflictsWithFileNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryNameConflictsWithFileNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryNameConflictsWithFileNameException) RequestID() string { + return s.respMetadata.RequestID +} + +type DisassociateApprovalRuleTemplateFromRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name of the approval rule template to disassociate from a specified repository. + // + // ApprovalRuleTemplateName is a required field + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` + + // The name of the repository you want to disassociate from the template. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s DisassociateApprovalRuleTemplateFromRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateApprovalRuleTemplateFromRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DisassociateApprovalRuleTemplateFromRepositoryInput"} + if s.ApprovalRuleTemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) + } + if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. +func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetApprovalRuleTemplateName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput { + s.ApprovalRuleTemplateName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetRepositoryName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput { + s.RepositoryName = &v + return s +} + +type DisassociateApprovalRuleTemplateFromRepositoryOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) GoString() string { + return s.String() +} + +// An encryption integrity check failed. +type EncryptionIntegrityChecksFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s EncryptionIntegrityChecksFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionIntegrityChecksFailedException) GoString() string { + return s.String() +} + +func newErrorEncryptionIntegrityChecksFailedException(v protocol.ResponseMetadata) error { + return &EncryptionIntegrityChecksFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EncryptionIntegrityChecksFailedException) Code() string { + return "EncryptionIntegrityChecksFailedException" +} + +// Message returns the exception's message. +func (s EncryptionIntegrityChecksFailedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EncryptionIntegrityChecksFailedException) OrigErr() error { + return nil +} + +func (s EncryptionIntegrityChecksFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EncryptionIntegrityChecksFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EncryptionIntegrityChecksFailedException) RequestID() string { + return s.respMetadata.RequestID +} + +// An encryption key could not be accessed. +type EncryptionKeyAccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s EncryptionKeyAccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionKeyAccessDeniedException) GoString() string { + return s.String() +} + +func newErrorEncryptionKeyAccessDeniedException(v protocol.ResponseMetadata) error { + return &EncryptionKeyAccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EncryptionKeyAccessDeniedException) Code() string { + return "EncryptionKeyAccessDeniedException" +} + +// Message returns the exception's message. +func (s EncryptionKeyAccessDeniedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EncryptionKeyAccessDeniedException) OrigErr() error { + return nil +} + +func (s EncryptionKeyAccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EncryptionKeyAccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EncryptionKeyAccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The encryption key is disabled. +type EncryptionKeyDisabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s EncryptionKeyDisabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionKeyDisabledException) GoString() string { + return s.String() +} + +func newErrorEncryptionKeyDisabledException(v protocol.ResponseMetadata) error { + return &EncryptionKeyDisabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EncryptionKeyDisabledException) Code() string { + return "EncryptionKeyDisabledException" +} + +// Message returns the exception's message. +func (s EncryptionKeyDisabledException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EncryptionKeyDisabledException) OrigErr() error { + return nil +} + +func (s EncryptionKeyDisabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EncryptionKeyDisabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EncryptionKeyDisabledException) RequestID() string { + return s.respMetadata.RequestID +} + +// No encryption key was found. +type EncryptionKeyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s EncryptionKeyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionKeyNotFoundException) GoString() string { + return s.String() +} + +func newErrorEncryptionKeyNotFoundException(v protocol.ResponseMetadata) error { + return &EncryptionKeyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EncryptionKeyNotFoundException) Code() string { + return "EncryptionKeyNotFoundException" +} + +// Message returns the exception's message. +func (s EncryptionKeyNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EncryptionKeyNotFoundException) OrigErr() error { + return nil +} + +func (s EncryptionKeyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EncryptionKeyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EncryptionKeyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The encryption key is not available. +type EncryptionKeyUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s EncryptionKeyUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionKeyUnavailableException) GoString() string { + return s.String() +} + +func newErrorEncryptionKeyUnavailableException(v protocol.ResponseMetadata) error { + return &EncryptionKeyUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EncryptionKeyUnavailableException) Code() string { + return "EncryptionKeyUnavailableException" +} + +// Message returns the exception's message. +func (s EncryptionKeyUnavailableException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EncryptionKeyUnavailableException) OrigErr() error { + return nil +} + +func (s EncryptionKeyUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EncryptionKeyUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EncryptionKeyUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + +type EvaluatePullRequestApprovalRulesInput struct { + _ struct{} `type:"structure"` + + // The system-generated ID of the pull request you want to evaluate. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + + // The system-generated ID for the pull request revision. To retrieve the most + // recent revision ID for a pull request, use GetPullRequest. + // + // RevisionId is a required field + RevisionId *string `locationName:"revisionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s EvaluatePullRequestApprovalRulesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EvaluatePullRequestApprovalRulesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *EvaluatePullRequestApprovalRulesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "EvaluatePullRequestApprovalRulesInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + if s.RevisionId == nil { + invalidParams.Add(request.NewErrParamRequired("RevisionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *EvaluatePullRequestApprovalRulesInput) SetPullRequestId(v string) *EvaluatePullRequestApprovalRulesInput { + s.PullRequestId = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *EvaluatePullRequestApprovalRulesInput) SetRevisionId(v string) *EvaluatePullRequestApprovalRulesInput { + s.RevisionId = &v + return s +} + +type EvaluatePullRequestApprovalRulesOutput struct { + _ struct{} `type:"structure"` + + // The result of the evaluation, including the names of the rules whose conditions + // have been met (if any), the names of the rules whose conditions have not + // been met (if any), whether the pull request is in the approved state, and + // whether the pull request approval rule has been set aside by an override. + // + // Evaluation is a required field + Evaluation *Evaluation `locationName:"evaluation" type:"structure" required:"true"` +} + +// String returns the string representation +func (s EvaluatePullRequestApprovalRulesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EvaluatePullRequestApprovalRulesOutput) GoString() string { + return s.String() +} + +// SetEvaluation sets the Evaluation field's value. +func (s *EvaluatePullRequestApprovalRulesOutput) SetEvaluation(v *Evaluation) *EvaluatePullRequestApprovalRulesOutput { + s.Evaluation = v + return s +} + +// Returns information about the approval rules applied to a pull request and +// whether conditions have been met. +type Evaluation struct { + _ struct{} `type:"structure"` + + // The names of the approval rules that have not had their conditions met. + ApprovalRulesNotSatisfied []*string `locationName:"approvalRulesNotSatisfied" type:"list"` + + // The names of the approval rules that have had their conditions met. + ApprovalRulesSatisfied []*string `locationName:"approvalRulesSatisfied" type:"list"` + + // Whether the state of the pull request is approved. + Approved *bool `locationName:"approved" type:"boolean"` + + // Whether the approval rule requirements for the pull request have been overridden + // and no longer need to be met. + Overridden *bool `locationName:"overridden" type:"boolean"` +} + +// String returns the string representation +func (s Evaluation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Evaluation) GoString() string { + return s.String() +} + +// SetApprovalRulesNotSatisfied sets the ApprovalRulesNotSatisfied field's value. +func (s *Evaluation) SetApprovalRulesNotSatisfied(v []*string) *Evaluation { + s.ApprovalRulesNotSatisfied = v + return s +} + +// SetApprovalRulesSatisfied sets the ApprovalRulesSatisfied field's value. +func (s *Evaluation) SetApprovalRulesSatisfied(v []*string) *Evaluation { + s.ApprovalRulesSatisfied = v + return s +} + +// SetApproved sets the Approved field's value. +func (s *Evaluation) SetApproved(v bool) *Evaluation { + s.Approved = &v + return s +} + +// SetOverridden sets the Overridden field's value. +func (s *Evaluation) SetOverridden(v bool) *Evaluation { + s.Overridden = &v + return s +} + +// Returns information about a file in a repository. +type File struct { + _ struct{} `type:"structure"` + + // The fully qualified path to the file in the repository. + AbsolutePath *string `locationName:"absolutePath" type:"string"` + + // The blob ID that contains the file information. + BlobId *string `locationName:"blobId" type:"string"` + + // The extrapolated file mode permissions for the file. Valid values include + // EXECUTABLE and NORMAL. + FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` + + // The relative path of the file from the folder where the query originated. + RelativePath *string `locationName:"relativePath" type:"string"` +} + +// String returns the string representation +func (s File) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s File) GoString() string { + return s.String() +} + +// SetAbsolutePath sets the AbsolutePath field's value. +func (s *File) SetAbsolutePath(v string) *File { + s.AbsolutePath = &v + return s +} + +// SetBlobId sets the BlobId field's value. +func (s *File) SetBlobId(v string) *File { + s.BlobId = &v + return s +} + +// SetFileMode sets the FileMode field's value. +func (s *File) SetFileMode(v string) *File { + s.FileMode = &v + return s +} + +// SetRelativePath sets the RelativePath field's value. +func (s *File) SetRelativePath(v string) *File { + s.RelativePath = &v + return s +} + +// The commit cannot be created because both a source file and file content +// have been specified for the same file. You cannot provide both. Either specify +// a source file or provide the file content directly. +type FileContentAndSourceFileSpecifiedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileContentAndSourceFileSpecifiedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileContentAndSourceFileSpecifiedException) GoString() string { + return s.String() +} + +func newErrorFileContentAndSourceFileSpecifiedException(v protocol.ResponseMetadata) error { + return &FileContentAndSourceFileSpecifiedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileContentAndSourceFileSpecifiedException) Code() string { + return "FileContentAndSourceFileSpecifiedException" +} + +// Message returns the exception's message. +func (s FileContentAndSourceFileSpecifiedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileContentAndSourceFileSpecifiedException) OrigErr() error { + return nil +} + +func (s FileContentAndSourceFileSpecifiedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileContentAndSourceFileSpecifiedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileContentAndSourceFileSpecifiedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The file cannot be added because it is empty. Empty files cannot be added +// to the repository with this API. +type FileContentRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileContentRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileContentRequiredException) GoString() string { + return s.String() +} + +func newErrorFileContentRequiredException(v protocol.ResponseMetadata) error { + return &FileContentRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileContentRequiredException) Code() string { + return "FileContentRequiredException" +} + +// Message returns the exception's message. +func (s FileContentRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileContentRequiredException) OrigErr() error { + return nil +} + +func (s FileContentRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileContentRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileContentRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The file cannot be added because it is too large. The maximum file size is +// 6 MB, and the combined file content change size is 7 MB. Consider making +// these changes using a Git client. +type FileContentSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileContentSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileContentSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorFileContentSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &FileContentSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileContentSizeLimitExceededException) Code() string { + return "FileContentSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s FileContentSizeLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileContentSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s FileContentSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileContentSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileContentSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified file does not exist. Verify that you have used the correct +// file name, full path, and extension. +type FileDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorFileDoesNotExistException(v protocol.ResponseMetadata) error { + return &FileDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileDoesNotExistException) Code() string { + return "FileDoesNotExistException" +} + +// Message returns the exception's message. +func (s FileDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileDoesNotExistException) OrigErr() error { + return nil +} + +func (s FileDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The commit cannot be created because no files have been specified as added, +// updated, or changed (PutFile or DeleteFile) for the commit. +type FileEntryRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileEntryRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileEntryRequiredException) GoString() string { + return s.String() +} + +func newErrorFileEntryRequiredException(v protocol.ResponseMetadata) error { + return &FileEntryRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileEntryRequiredException) Code() string { + return "FileEntryRequiredException" +} + +// Message returns the exception's message. +func (s FileEntryRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileEntryRequiredException) OrigErr() error { + return nil +} + +func (s FileEntryRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileEntryRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileEntryRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// A file to be added, updated, or deleted as part of a commit. +type FileMetadata struct { + _ struct{} `type:"structure"` + + // The full path to the file to be added or updated, including the name of the + // file. + AbsolutePath *string `locationName:"absolutePath" type:"string"` + + // The blob ID that contains the file information. + BlobId *string `locationName:"blobId" type:"string"` + + // The extrapolated file mode permissions for the file. Valid values include + // EXECUTABLE and NORMAL. + FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` +} + +// String returns the string representation +func (s FileMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileMetadata) GoString() string { + return s.String() +} + +// SetAbsolutePath sets the AbsolutePath field's value. +func (s *FileMetadata) SetAbsolutePath(v string) *FileMetadata { + s.AbsolutePath = &v + return s +} + +// SetBlobId sets the BlobId field's value. +func (s *FileMetadata) SetBlobId(v string) *FileMetadata { + s.BlobId = &v + return s +} + +// SetFileMode sets the FileMode field's value. +func (s *FileMetadata) SetFileMode(v string) *FileMetadata { + s.FileMode = &v + return s +} + +// The commit cannot be created because no file mode has been specified. A file +// mode is required to update mode permissions for a file. +type FileModeRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileModeRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileModeRequiredException) GoString() string { + return s.String() +} + +func newErrorFileModeRequiredException(v protocol.ResponseMetadata) error { + return &FileModeRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileModeRequiredException) Code() string { + return "FileModeRequiredException" +} + +// Message returns the exception's message. +func (s FileModeRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileModeRequiredException) OrigErr() error { + return nil +} + +func (s FileModeRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileModeRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileModeRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about file modes in a merge or pull request. +type FileModes struct { + _ struct{} `type:"structure"` + + // The file mode of a file in the base of a merge or pull request. + Base *string `locationName:"base" type:"string" enum:"FileModeTypeEnum"` + + // The file mode of a file in the destination of a merge or pull request. + Destination *string `locationName:"destination" type:"string" enum:"FileModeTypeEnum"` + + // The file mode of a file in the source of a merge or pull request. + Source *string `locationName:"source" type:"string" enum:"FileModeTypeEnum"` +} + +// String returns the string representation +func (s FileModes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileModes) GoString() string { + return s.String() +} + +// SetBase sets the Base field's value. +func (s *FileModes) SetBase(v string) *FileModes { + s.Base = &v + return s +} + +// SetDestination sets the Destination field's value. +func (s *FileModes) SetDestination(v string) *FileModes { + s.Destination = &v + return s +} + +// SetSource sets the Source field's value. +func (s *FileModes) SetSource(v string) *FileModes { + s.Source = &v + return s +} + +// A file cannot be added to the repository because the specified file name +// has the same name as a directory in this repository. Either provide another +// name for the file, or add the file in a directory that does not match the +// file name. +type FileNameConflictsWithDirectoryNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileNameConflictsWithDirectoryNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileNameConflictsWithDirectoryNameException) GoString() string { + return s.String() +} + +func newErrorFileNameConflictsWithDirectoryNameException(v protocol.ResponseMetadata) error { + return &FileNameConflictsWithDirectoryNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileNameConflictsWithDirectoryNameException) Code() string { + return "FileNameConflictsWithDirectoryNameException" +} + +// Message returns the exception's message. +func (s FileNameConflictsWithDirectoryNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileNameConflictsWithDirectoryNameException) OrigErr() error { + return nil +} + +func (s FileNameConflictsWithDirectoryNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileNameConflictsWithDirectoryNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileNameConflictsWithDirectoryNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The commit cannot be created because a specified file path points to a submodule. +// Verify that the destination files have valid file paths that do not point +// to a submodule. +type FilePathConflictsWithSubmodulePathException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FilePathConflictsWithSubmodulePathException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FilePathConflictsWithSubmodulePathException) GoString() string { + return s.String() +} + +func newErrorFilePathConflictsWithSubmodulePathException(v protocol.ResponseMetadata) error { + return &FilePathConflictsWithSubmodulePathException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FilePathConflictsWithSubmodulePathException) Code() string { + return "FilePathConflictsWithSubmodulePathException" +} + +// Message returns the exception's message. +func (s FilePathConflictsWithSubmodulePathException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FilePathConflictsWithSubmodulePathException) OrigErr() error { + return nil +} + +func (s FilePathConflictsWithSubmodulePathException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FilePathConflictsWithSubmodulePathException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FilePathConflictsWithSubmodulePathException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about the size of files in a merge or pull request. +type FileSizes struct { + _ struct{} `type:"structure"` + + // The size of a file in the base of a merge or pull request. + Base *int64 `locationName:"base" type:"long"` + + // The size of a file in the destination of a merge or pull request. + Destination *int64 `locationName:"destination" type:"long"` + + // The size of a file in the source of a merge or pull request. + Source *int64 `locationName:"source" type:"long"` +} + +// String returns the string representation +func (s FileSizes) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileSizes) GoString() string { + return s.String() +} + +// SetBase sets the Base field's value. +func (s *FileSizes) SetBase(v int64) *FileSizes { + s.Base = &v + return s +} + +// SetDestination sets the Destination field's value. +func (s *FileSizes) SetDestination(v int64) *FileSizes { + s.Destination = &v + return s +} + +// SetSource sets the Source field's value. +func (s *FileSizes) SetSource(v int64) *FileSizes { + s.Source = &v + return s +} + +// The specified file exceeds the file size limit for AWS CodeCommit. For more +// information about limits in AWS CodeCommit, see AWS CodeCommit User Guide +// (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). +type FileTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FileTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileTooLargeException) GoString() string { + return s.String() +} + +func newErrorFileTooLargeException(v protocol.ResponseMetadata) error { + return &FileTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileTooLargeException) Code() string { + return "FileTooLargeException" +} + +// Message returns the exception's message. +func (s FileTooLargeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileTooLargeException) OrigErr() error { + return nil +} + +func (s FileTooLargeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about a folder in a repository. +type Folder struct { + _ struct{} `type:"structure"` + + // The fully qualified path of the folder in the repository. + AbsolutePath *string `locationName:"absolutePath" type:"string"` + + // The relative path of the specified folder from the folder where the query + // originated. + RelativePath *string `locationName:"relativePath" type:"string"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the folder. + TreeId *string `locationName:"treeId" type:"string"` +} + +// String returns the string representation +func (s Folder) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Folder) GoString() string { + return s.String() +} + +// SetAbsolutePath sets the AbsolutePath field's value. +func (s *Folder) SetAbsolutePath(v string) *Folder { + s.AbsolutePath = &v + return s +} + +// SetRelativePath sets the RelativePath field's value. +func (s *Folder) SetRelativePath(v string) *Folder { + s.RelativePath = &v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *Folder) SetTreeId(v string) *Folder { + s.TreeId = &v + return s +} + +// The commit cannot be created because at least one of the overall changes +// in the commit results in a folder whose contents exceed the limit of 6 MB. +// Either reduce the number and size of your changes, or split the changes across +// multiple folders. +type FolderContentSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FolderContentSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FolderContentSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorFolderContentSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &FolderContentSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FolderContentSizeLimitExceededException) Code() string { + return "FolderContentSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s FolderContentSizeLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FolderContentSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s FolderContentSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FolderContentSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FolderContentSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified folder does not exist. Either the folder name is not correct, +// or you did not enter the full path to the folder. +type FolderDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s FolderDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FolderDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorFolderDoesNotExistException(v protocol.ResponseMetadata) error { + return &FolderDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FolderDoesNotExistException) Code() string { + return "FolderDoesNotExistException" +} + +// Message returns the exception's message. +func (s FolderDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FolderDoesNotExistException) OrigErr() error { + return nil +} + +func (s FolderDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FolderDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FolderDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +type GetApprovalRuleTemplateInput struct { + _ struct{} `type:"structure"` + + // The name of the approval rule template for which you want to get information. + // + // ApprovalRuleTemplateName is a required field + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetApprovalRuleTemplateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApprovalRuleTemplateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApprovalRuleTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApprovalRuleTemplateInput"} + if s.ApprovalRuleTemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) + } + if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. +func (s *GetApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *GetApprovalRuleTemplateInput { + s.ApprovalRuleTemplateName = &v + return s +} + +type GetApprovalRuleTemplateOutput struct { + _ struct{} `type:"structure"` + + // The content and structure of the approval rule template. + // + // ApprovalRuleTemplate is a required field + ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetApprovalRuleTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApprovalRuleTemplateOutput) GoString() string { + return s.String() +} + +// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value. +func (s *GetApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *GetApprovalRuleTemplateOutput { + s.ApprovalRuleTemplate = v + return s +} + +// Represents the input of a get blob operation. +type GetBlobInput struct { + _ struct{} `type:"structure"` + + // The ID of the blob, which is its SHA-1 pointer. + // + // BlobId is a required field + BlobId *string `locationName:"blobId" type:"string" required:"true"` + + // The name of the repository that contains the blob. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetBlobInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBlobInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBlobInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBlobInput"} + if s.BlobId == nil { + invalidParams.Add(request.NewErrParamRequired("BlobId")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBlobId sets the BlobId field's value. +func (s *GetBlobInput) SetBlobId(v string) *GetBlobInput { + s.BlobId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetBlobInput) SetRepositoryName(v string) *GetBlobInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a get blob operation. +type GetBlobOutput struct { + _ struct{} `type:"structure"` + + // The content of the blob, usually a file. + // + // Content is automatically base64 encoded/decoded by the SDK. + // + // Content is a required field + Content []byte `locationName:"content" type:"blob" required:"true"` +} + +// String returns the string representation +func (s GetBlobOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBlobOutput) GoString() string { + return s.String() +} + +// SetContent sets the Content field's value. +func (s *GetBlobOutput) SetContent(v []byte) *GetBlobOutput { + s.Content = v + return s +} + +// Represents the input of a get branch operation. +type GetBranchInput struct { + _ struct{} `type:"structure"` + + // The name of the branch for which you want to retrieve information. + BranchName *string `locationName:"branchName" min:"1" type:"string"` + + // The name of the repository that contains the branch for which you want to + // retrieve information. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetBranchInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBranchInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetBranchInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"} + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranchName sets the BranchName field's value. +func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput { + s.BranchName = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a get branch operation. +type GetBranchOutput struct { + _ struct{} `type:"structure"` + + // The name of the branch. + Branch *BranchInfo `locationName:"branch" type:"structure"` +} + +// String returns the string representation +func (s GetBranchOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetBranchOutput) GoString() string { + return s.String() +} + +// SetBranch sets the Branch field's value. +func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput { + s.Branch = v + return s +} + +type GetCommentInput struct { + _ struct{} `type:"structure"` + + // The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit + // or GetCommentsForPullRequest. + // + // CommentId is a required field + CommentId *string `locationName:"commentId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetCommentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCommentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCommentInput"} + if s.CommentId == nil { + invalidParams.Add(request.NewErrParamRequired("CommentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommentId sets the CommentId field's value. +func (s *GetCommentInput) SetCommentId(v string) *GetCommentInput { + s.CommentId = &v + return s +} + +type GetCommentOutput struct { + _ struct{} `type:"structure"` + + // The contents of the comment. + Comment *Comment `locationName:"comment" type:"structure"` +} + +// String returns the string representation +func (s GetCommentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommentOutput) GoString() string { + return s.String() +} + +// SetComment sets the Comment field's value. +func (s *GetCommentOutput) SetComment(v *Comment) *GetCommentOutput { + s.Comment = v + return s +} + +type GetCommentsForComparedCommitInput struct { + _ struct{} `type:"structure"` + + // To establish the directionality of the comparison, the full commit ID of + // the after commit. + // + // AfterCommitId is a required field + AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"` + + // To establish the directionality of the comparison, the full commit ID of + // the before commit. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + + // A non-zero, non-negative integer used to limit the number of returned results. + // The default is 100 comments, but you can configure up to 500. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // An enumeration token that when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The name of the repository where you want to compare commits. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetCommentsForComparedCommitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommentsForComparedCommitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCommentsForComparedCommitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCommentsForComparedCommitInput"} + if s.AfterCommitId == nil { + invalidParams.Add(request.NewErrParamRequired("AfterCommitId")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *GetCommentsForComparedCommitInput) SetAfterCommitId(v string) *GetCommentsForComparedCommitInput { + s.AfterCommitId = &v + return s +} + +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *GetCommentsForComparedCommitInput) SetBeforeCommitId(v string) *GetCommentsForComparedCommitInput { + s.BeforeCommitId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetCommentsForComparedCommitInput) SetMaxResults(v int64) *GetCommentsForComparedCommitInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCommentsForComparedCommitInput) SetNextToken(v string) *GetCommentsForComparedCommitInput { + s.NextToken = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetCommentsForComparedCommitInput) SetRepositoryName(v string) *GetCommentsForComparedCommitInput { + s.RepositoryName = &v + return s +} + +type GetCommentsForComparedCommitOutput struct { + _ struct{} `type:"structure"` + + // A list of comment objects on the compared commit. + CommentsForComparedCommitData []*CommentsForComparedCommit `locationName:"commentsForComparedCommitData" type:"list"` + + // An enumeration token that can be used in a request to return the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s GetCommentsForComparedCommitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommentsForComparedCommitOutput) GoString() string { + return s.String() +} + +// SetCommentsForComparedCommitData sets the CommentsForComparedCommitData field's value. +func (s *GetCommentsForComparedCommitOutput) SetCommentsForComparedCommitData(v []*CommentsForComparedCommit) *GetCommentsForComparedCommitOutput { + s.CommentsForComparedCommitData = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCommentsForComparedCommitOutput) SetNextToken(v string) *GetCommentsForComparedCommitOutput { + s.NextToken = &v + return s +} + +type GetCommentsForPullRequestInput struct { + _ struct{} `type:"structure"` + + // The full commit ID of the commit in the source branch that was the tip of + // the branch at the time the comment was made. + AfterCommitId *string `locationName:"afterCommitId" type:"string"` + + // The full commit ID of the commit in the destination branch that was the tip + // of the branch at the time the pull request was created. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + + // A non-zero, non-negative integer used to limit the number of returned results. + // The default is 100 comments. You can return up to 500 comments with a single + // request. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The system-generated ID of the pull request. To get this ID, use ListPullRequests. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + + // The name of the repository that contains the pull request. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +} + +// String returns the string representation +func (s GetCommentsForPullRequestInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommentsForPullRequestInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCommentsForPullRequestInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCommentsForPullRequestInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *GetCommentsForPullRequestInput) SetAfterCommitId(v string) *GetCommentsForPullRequestInput { + s.AfterCommitId = &v + return s +} + +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *GetCommentsForPullRequestInput) SetBeforeCommitId(v string) *GetCommentsForPullRequestInput { + s.BeforeCommitId = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetCommentsForPullRequestInput) SetMaxResults(v int64) *GetCommentsForPullRequestInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCommentsForPullRequestInput) SetNextToken(v string) *GetCommentsForPullRequestInput { + s.NextToken = &v + return s +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *GetCommentsForPullRequestInput) SetPullRequestId(v string) *GetCommentsForPullRequestInput { + s.PullRequestId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetCommentsForPullRequestInput) SetRepositoryName(v string) *GetCommentsForPullRequestInput { + s.RepositoryName = &v + return s +} + +type GetCommentsForPullRequestOutput struct { + _ struct{} `type:"structure"` + + // An array of comment objects on the pull request. + CommentsForPullRequestData []*CommentsForPullRequest `locationName:"commentsForPullRequestData" type:"list"` + + // An enumeration token that can be used in a request to return the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` +} + +// String returns the string representation +func (s GetCommentsForPullRequestOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommentsForPullRequestOutput) GoString() string { + return s.String() +} + +// SetCommentsForPullRequestData sets the CommentsForPullRequestData field's value. +func (s *GetCommentsForPullRequestOutput) SetCommentsForPullRequestData(v []*CommentsForPullRequest) *GetCommentsForPullRequestOutput { + s.CommentsForPullRequestData = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetCommentsForPullRequestOutput) SetNextToken(v string) *GetCommentsForPullRequestOutput { + s.NextToken = &v + return s +} + +// Represents the input of a get commit operation. +type GetCommitInput struct { + _ struct{} `type:"structure"` + + // The commit ID. Commit IDs are the full SHA ID of the commit. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The name of the repository to which the commit was made. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetCommitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetCommitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"} + if s.CommitId == nil { + invalidParams.Add(request.NewErrParamRequired("CommitId")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommitId sets the CommitId field's value. +func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput { + s.CommitId = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a get commit operation. +type GetCommitOutput struct { + _ struct{} `type:"structure"` + + // A commit data type object that contains information about the specified commit. + // + // Commit is a required field + Commit *Commit `locationName:"commit" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetCommitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetCommitOutput) GoString() string { + return s.String() +} + +// SetCommit sets the Commit field's value. +func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput { + s.Commit = v + return s +} + +type GetDifferencesInput struct { + _ struct{} `type:"structure"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit. + // + // AfterCommitSpecifier is a required field + AfterCommitSpecifier *string `locationName:"afterCommitSpecifier" type:"string" required:"true"` + + // The file path in which to check differences. Limits the results to this path. + // Can also be used to specify the changed name of a directory or folder, if + // it has changed. If not specified, differences are shown for all paths. + AfterPath *string `locationName:"afterPath" type:"string"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, the full commit ID). Optional. If not specified, all + // changes before the afterCommitSpecifier value are shown. If you do not use + // beforeCommitSpecifier in your request, consider limiting the results with + // maxResults. + BeforeCommitSpecifier *string `locationName:"beforeCommitSpecifier" type:"string"` + + // The file path in which to check for differences. Limits the results to this + // path. Can also be used to specify the previous name of a directory or folder. + // If beforePath and afterPath are not specified, differences are shown for + // all paths. + BeforePath *string `locationName:"beforePath" type:"string"` + + // A non-zero, non-negative integer used to limit the number of returned results. + MaxResults *int64 `type:"integer"` + + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `type:"string"` + + // The name of the repository where you want to get differences. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDifferencesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDifferencesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDifferencesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDifferencesInput"} + if s.AfterCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("AfterCommitSpecifier")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value. +func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput { + s.AfterCommitSpecifier = &v + return s +} + +// SetAfterPath sets the AfterPath field's value. +func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput { + s.AfterPath = &v + return s +} + +// SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value. +func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput { + s.BeforeCommitSpecifier = &v + return s +} + +// SetBeforePath sets the BeforePath field's value. +func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput { + s.BeforePath = &v + return s +} + +// SetMaxResults sets the MaxResults field's value. +func (s *GetDifferencesInput) SetMaxResults(v int64) *GetDifferencesInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDifferencesInput) SetNextToken(v string) *GetDifferencesInput { + s.NextToken = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetDifferencesInput) SetRepositoryName(v string) *GetDifferencesInput { + s.RepositoryName = &v + return s +} + +type GetDifferencesOutput struct { + _ struct{} `type:"structure"` + + // A data type object that contains information about the differences, including + // whether the difference is added, modified, or deleted (A, D, M). + Differences []*Difference `locationName:"differences" type:"list"` + + // An enumeration token that can be used in a request to return the next batch + // of the results. + NextToken *string `type:"string"` +} + +// String returns the string representation +func (s GetDifferencesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDifferencesOutput) GoString() string { + return s.String() +} + +// SetDifferences sets the Differences field's value. +func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput { + s.Differences = v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput { + s.NextToken = &v + return s +} + +type GetFileInput struct { + _ struct{} `type:"structure"` + + // The fully quaified reference that identifies the commit that contains the + // file. For example, you can specify a full commit ID, a tag, a branch name, + // or a reference such as refs/heads/master. If none is provided, the head commit + // is used. + CommitSpecifier *string `locationName:"commitSpecifier" type:"string"` + + // The fully qualified path to the file, including the full name and extension + // of the file. For example, /examples/file.md is the fully qualified path to + // a file named file.md in a folder named examples. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The name of the repository that contains the file. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetFileInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFileInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFileInput"} + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommitSpecifier sets the CommitSpecifier field's value. +func (s *GetFileInput) SetCommitSpecifier(v string) *GetFileInput { + s.CommitSpecifier = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *GetFileInput) SetFilePath(v string) *GetFileInput { + s.FilePath = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetFileInput) SetRepositoryName(v string) *GetFileInput { + s.RepositoryName = &v + return s +} + +type GetFileOutput struct { + _ struct{} `type:"structure"` + + // The blob ID of the object that represents the file content. + // + // BlobId is a required field + BlobId *string `locationName:"blobId" type:"string" required:"true"` + + // The full commit ID of the commit that contains the content returned by GetFile. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The base-64 encoded binary data object that represents the content of the + // file. + // + // FileContent is automatically base64 encoded/decoded by the SDK. + // + // FileContent is a required field + FileContent []byte `locationName:"fileContent" type:"blob" required:"true"` + + // The extrapolated file mode permissions of the blob. Valid values include + // strings such as EXECUTABLE and not numeric values. + // + // The file mode permissions returned by this API are not the standard file + // mode permission values, such as 100644, but rather extrapolated values. See + // the supported return values. + // + // FileMode is a required field + FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"` + + // The fully qualified path to the specified file. Returns the name and extension + // of the file. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The size of the contents of the file, in bytes. + // + // FileSize is a required field + FileSize *int64 `locationName:"fileSize" type:"long" required:"true"` +} + +// String returns the string representation +func (s GetFileOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFileOutput) GoString() string { + return s.String() +} + +// SetBlobId sets the BlobId field's value. +func (s *GetFileOutput) SetBlobId(v string) *GetFileOutput { + s.BlobId = &v + return s +} + +// SetCommitId sets the CommitId field's value. +func (s *GetFileOutput) SetCommitId(v string) *GetFileOutput { + s.CommitId = &v + return s +} + +// SetFileContent sets the FileContent field's value. +func (s *GetFileOutput) SetFileContent(v []byte) *GetFileOutput { + s.FileContent = v + return s +} + +// SetFileMode sets the FileMode field's value. +func (s *GetFileOutput) SetFileMode(v string) *GetFileOutput { + s.FileMode = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *GetFileOutput) SetFilePath(v string) *GetFileOutput { + s.FilePath = &v + return s +} + +// SetFileSize sets the FileSize field's value. +func (s *GetFileOutput) SetFileSize(v int64) *GetFileOutput { + s.FileSize = &v + return s +} + +type GetFolderInput struct { + _ struct{} `type:"structure"` + + // A fully qualified reference used to identify a commit that contains the version + // of the folder's content to return. A fully qualified reference can be a commit + // ID, branch name, tag, or reference such as HEAD. If no specifier is provided, + // the folder content is returned as it exists in the HEAD commit. + CommitSpecifier *string `locationName:"commitSpecifier" type:"string"` + + // The fully qualified path to the folder whose contents are returned, including + // the folder name. For example, /examples is a fully-qualified path to a folder + // named examples that was created off of the root directory (/) of a repository. + // + // FolderPath is a required field + FolderPath *string `locationName:"folderPath" type:"string" required:"true"` + + // The name of the repository. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetFolderInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFolderInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetFolderInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetFolderInput"} + if s.FolderPath == nil { + invalidParams.Add(request.NewErrParamRequired("FolderPath")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCommitSpecifier sets the CommitSpecifier field's value. +func (s *GetFolderInput) SetCommitSpecifier(v string) *GetFolderInput { + s.CommitSpecifier = &v + return s +} + +// SetFolderPath sets the FolderPath field's value. +func (s *GetFolderInput) SetFolderPath(v string) *GetFolderInput { + s.FolderPath = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetFolderInput) SetRepositoryName(v string) *GetFolderInput { + s.RepositoryName = &v + return s +} + +type GetFolderOutput struct { + _ struct{} `type:"structure"` + + // The full commit ID used as a reference for the returned version of the folder + // content. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` + + // The list of files in the specified folder, if any. + Files []*File `locationName:"files" type:"list"` + + // The fully qualified path of the folder whose contents are returned. + // + // FolderPath is a required field + FolderPath *string `locationName:"folderPath" type:"string" required:"true"` + + // The list of folders that exist under the specified folder, if any. + SubFolders []*Folder `locationName:"subFolders" type:"list"` + + // The list of submodules in the specified folder, if any. + SubModules []*SubModule `locationName:"subModules" type:"list"` + + // The list of symbolic links to other files and folders in the specified folder, + // if any. + SymbolicLinks []*SymbolicLink `locationName:"symbolicLinks" type:"list"` + + // The full SHA-1 pointer of the tree information for the commit that contains + // the folder. + TreeId *string `locationName:"treeId" type:"string"` +} + +// String returns the string representation +func (s GetFolderOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetFolderOutput) GoString() string { + return s.String() +} + +// SetCommitId sets the CommitId field's value. +func (s *GetFolderOutput) SetCommitId(v string) *GetFolderOutput { + s.CommitId = &v + return s +} + +// SetFiles sets the Files field's value. +func (s *GetFolderOutput) SetFiles(v []*File) *GetFolderOutput { + s.Files = v + return s +} + +// SetFolderPath sets the FolderPath field's value. +func (s *GetFolderOutput) SetFolderPath(v string) *GetFolderOutput { + s.FolderPath = &v + return s +} + +// SetSubFolders sets the SubFolders field's value. +func (s *GetFolderOutput) SetSubFolders(v []*Folder) *GetFolderOutput { + s.SubFolders = v + return s +} + +// SetSubModules sets the SubModules field's value. +func (s *GetFolderOutput) SetSubModules(v []*SubModule) *GetFolderOutput { + s.SubModules = v + return s +} + +// SetSymbolicLinks sets the SymbolicLinks field's value. +func (s *GetFolderOutput) SetSymbolicLinks(v []*SymbolicLink) *GetFolderOutput { + s.SymbolicLinks = v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *GetFolderOutput) SetTreeId(v string) *GetFolderOutput { + s.TreeId = &v + return s +} + +type GetMergeCommitInput struct { + _ struct{} `type:"structure"` + + // The level of conflict detail to use. If unspecified, the default FILE_LEVEL + // is used, which returns a not-mergeable result if the same file has differences + // in both branches. If LINE_LEVEL is specified, a conflict is considered not + // mergeable if the same file in both branches has differences on the same line. + ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + + // Specifies which branch to use when resolving conflicts, or whether to attempt + // automatically merging two versions of a file. The default is NONE, which + // requires any conflicts to be resolved manually before the merge operation + // is successful. + ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // DestinationCommitSpecifier is a required field + DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` + + // The name of the repository that contains the merge commit about which you + // want to get information. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // SourceCommitSpecifier is a required field + SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMergeCommitInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMergeCommitInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMergeCommitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMergeCommitInput"} + if s.DestinationCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.SourceCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConflictDetailLevel sets the ConflictDetailLevel field's value. +func (s *GetMergeCommitInput) SetConflictDetailLevel(v string) *GetMergeCommitInput { + s.ConflictDetailLevel = &v + return s +} + +// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. +func (s *GetMergeCommitInput) SetConflictResolutionStrategy(v string) *GetMergeCommitInput { + s.ConflictResolutionStrategy = &v + return s +} + +// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. +func (s *GetMergeCommitInput) SetDestinationCommitSpecifier(v string) *GetMergeCommitInput { + s.DestinationCommitSpecifier = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetMergeCommitInput) SetRepositoryName(v string) *GetMergeCommitInput { + s.RepositoryName = &v + return s +} + +// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. +func (s *GetMergeCommitInput) SetSourceCommitSpecifier(v string) *GetMergeCommitInput { + s.SourceCommitSpecifier = &v + return s +} + +type GetMergeCommitOutput struct { + _ struct{} `type:"structure"` + + // The commit ID of the merge base. + BaseCommitId *string `locationName:"baseCommitId" type:"string"` + + // The commit ID of the destination commit specifier that was used in the merge + // evaluation. + DestinationCommitId *string `locationName:"destinationCommitId" type:"string"` + + // The commit ID for the merge commit created when the source branch was merged + // into the destination branch. If the fast-forward merge strategy was used, + // there is no merge commit. + MergedCommitId *string `locationName:"mergedCommitId" type:"string"` + + // The commit ID of the source commit specifier that was used in the merge evaluation. + SourceCommitId *string `locationName:"sourceCommitId" type:"string"` +} + +// String returns the string representation +func (s GetMergeCommitOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMergeCommitOutput) GoString() string { + return s.String() +} + +// SetBaseCommitId sets the BaseCommitId field's value. +func (s *GetMergeCommitOutput) SetBaseCommitId(v string) *GetMergeCommitOutput { + s.BaseCommitId = &v + return s +} + +// SetDestinationCommitId sets the DestinationCommitId field's value. +func (s *GetMergeCommitOutput) SetDestinationCommitId(v string) *GetMergeCommitOutput { + s.DestinationCommitId = &v + return s +} + +// SetMergedCommitId sets the MergedCommitId field's value. +func (s *GetMergeCommitOutput) SetMergedCommitId(v string) *GetMergeCommitOutput { + s.MergedCommitId = &v + return s +} + +// SetSourceCommitId sets the SourceCommitId field's value. +func (s *GetMergeCommitOutput) SetSourceCommitId(v string) *GetMergeCommitOutput { + s.SourceCommitId = &v + return s +} + +type GetMergeConflictsInput struct { + _ struct{} `type:"structure"` + + // The level of conflict detail to use. If unspecified, the default FILE_LEVEL + // is used, which returns a not-mergeable result if the same file has differences + // in both branches. If LINE_LEVEL is specified, a conflict is considered not + // mergeable if the same file in both branches has differences on the same line. + ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + + // Specifies which branch to use when resolving conflicts, or whether to attempt + // automatically merging two versions of a file. The default is NONE, which + // requires any conflicts to be resolved manually before the merge operation + // is successful. + ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // DestinationCommitSpecifier is a required field + DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` + + // The maximum number of files to include in the output. + MaxConflictFiles *int64 `locationName:"maxConflictFiles" type:"integer"` + + // The merge option or strategy you want to use to merge the code. + // + // MergeOption is a required field + MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"` + + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The name of the repository where the pull request was created. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // SourceCommitSpecifier is a required field + SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMergeConflictsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMergeConflictsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMergeConflictsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMergeConflictsInput"} + if s.DestinationCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) + } + if s.MergeOption == nil { + invalidParams.Add(request.NewErrParamRequired("MergeOption")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.SourceCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConflictDetailLevel sets the ConflictDetailLevel field's value. +func (s *GetMergeConflictsInput) SetConflictDetailLevel(v string) *GetMergeConflictsInput { + s.ConflictDetailLevel = &v + return s +} + +// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. +func (s *GetMergeConflictsInput) SetConflictResolutionStrategy(v string) *GetMergeConflictsInput { + s.ConflictResolutionStrategy = &v + return s +} + +// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. +func (s *GetMergeConflictsInput) SetDestinationCommitSpecifier(v string) *GetMergeConflictsInput { + s.DestinationCommitSpecifier = &v + return s +} + +// SetMaxConflictFiles sets the MaxConflictFiles field's value. +func (s *GetMergeConflictsInput) SetMaxConflictFiles(v int64) *GetMergeConflictsInput { + s.MaxConflictFiles = &v + return s +} + +// SetMergeOption sets the MergeOption field's value. +func (s *GetMergeConflictsInput) SetMergeOption(v string) *GetMergeConflictsInput { + s.MergeOption = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetMergeConflictsInput) SetNextToken(v string) *GetMergeConflictsInput { + s.NextToken = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetMergeConflictsInput) SetRepositoryName(v string) *GetMergeConflictsInput { + s.RepositoryName = &v + return s +} + +// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. +func (s *GetMergeConflictsInput) SetSourceCommitSpecifier(v string) *GetMergeConflictsInput { + s.SourceCommitSpecifier = &v + return s +} + +type GetMergeConflictsOutput struct { + _ struct{} `type:"structure"` + + // The commit ID of the merge base. + BaseCommitId *string `locationName:"baseCommitId" type:"string"` + + // A list of metadata for any conflicting files. If the specified merge strategy + // is FAST_FORWARD_MERGE, this list is always empty. + // + // ConflictMetadataList is a required field + ConflictMetadataList []*ConflictMetadata `locationName:"conflictMetadataList" type:"list" required:"true"` + + // The commit ID of the destination commit specifier that was used in the merge + // evaluation. + // + // DestinationCommitId is a required field + DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"` + + // A Boolean value that indicates whether the code is mergeable by the specified + // merge option. + // + // Mergeable is a required field + Mergeable *bool `locationName:"mergeable" type:"boolean" required:"true"` + + // An enumeration token that can be used in a request to return the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The commit ID of the source commit specifier that was used in the merge evaluation. + // + // SourceCommitId is a required field + SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMergeConflictsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMergeConflictsOutput) GoString() string { + return s.String() +} + +// SetBaseCommitId sets the BaseCommitId field's value. +func (s *GetMergeConflictsOutput) SetBaseCommitId(v string) *GetMergeConflictsOutput { + s.BaseCommitId = &v + return s +} + +// SetConflictMetadataList sets the ConflictMetadataList field's value. +func (s *GetMergeConflictsOutput) SetConflictMetadataList(v []*ConflictMetadata) *GetMergeConflictsOutput { + s.ConflictMetadataList = v + return s +} + +// SetDestinationCommitId sets the DestinationCommitId field's value. +func (s *GetMergeConflictsOutput) SetDestinationCommitId(v string) *GetMergeConflictsOutput { + s.DestinationCommitId = &v + return s +} + +// SetMergeable sets the Mergeable field's value. +func (s *GetMergeConflictsOutput) SetMergeable(v bool) *GetMergeConflictsOutput { + s.Mergeable = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *GetMergeConflictsOutput) SetNextToken(v string) *GetMergeConflictsOutput { + s.NextToken = &v + return s +} + +// SetSourceCommitId sets the SourceCommitId field's value. +func (s *GetMergeConflictsOutput) SetSourceCommitId(v string) *GetMergeConflictsOutput { + s.SourceCommitId = &v + return s +} + +type GetMergeOptionsInput struct { + _ struct{} `type:"structure"` + + // The level of conflict detail to use. If unspecified, the default FILE_LEVEL + // is used, which returns a not-mergeable result if the same file has differences + // in both branches. If LINE_LEVEL is specified, a conflict is considered not + // mergeable if the same file in both branches has differences on the same line. + ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + + // Specifies which branch to use when resolving conflicts, or whether to attempt + // automatically merging two versions of a file. The default is NONE, which + // requires any conflicts to be resolved manually before the merge operation + // is successful. + ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // DestinationCommitSpecifier is a required field + DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` + + // The name of the repository that contains the commits about which you want + // to get merge options. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The branch, tag, HEAD, or other fully qualified reference used to identify + // a commit (for example, a branch name or a full commit ID). + // + // SourceCommitSpecifier is a required field + SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMergeOptionsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMergeOptionsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetMergeOptionsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetMergeOptionsInput"} + if s.DestinationCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) + } + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + if s.SourceCommitSpecifier == nil { + invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConflictDetailLevel sets the ConflictDetailLevel field's value. +func (s *GetMergeOptionsInput) SetConflictDetailLevel(v string) *GetMergeOptionsInput { + s.ConflictDetailLevel = &v + return s +} + +// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. +func (s *GetMergeOptionsInput) SetConflictResolutionStrategy(v string) *GetMergeOptionsInput { + s.ConflictResolutionStrategy = &v + return s +} + +// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. +func (s *GetMergeOptionsInput) SetDestinationCommitSpecifier(v string) *GetMergeOptionsInput { + s.DestinationCommitSpecifier = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetMergeOptionsInput) SetRepositoryName(v string) *GetMergeOptionsInput { + s.RepositoryName = &v + return s +} + +// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. +func (s *GetMergeOptionsInput) SetSourceCommitSpecifier(v string) *GetMergeOptionsInput { + s.SourceCommitSpecifier = &v + return s +} + +type GetMergeOptionsOutput struct { + _ struct{} `type:"structure"` + + // The commit ID of the merge base. + // + // BaseCommitId is a required field + BaseCommitId *string `locationName:"baseCommitId" type:"string" required:"true"` + + // The commit ID of the destination commit specifier that was used in the merge + // evaluation. + // + // DestinationCommitId is a required field + DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"` + + // The merge option or strategy used to merge the code. + // + // MergeOptions is a required field + MergeOptions []*string `locationName:"mergeOptions" type:"list" required:"true"` + + // The commit ID of the source commit specifier that was used in the merge evaluation. + // + // SourceCommitId is a required field + SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetMergeOptionsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetMergeOptionsOutput) GoString() string { + return s.String() +} + +// SetBaseCommitId sets the BaseCommitId field's value. +func (s *GetMergeOptionsOutput) SetBaseCommitId(v string) *GetMergeOptionsOutput { + s.BaseCommitId = &v + return s +} + +// SetDestinationCommitId sets the DestinationCommitId field's value. +func (s *GetMergeOptionsOutput) SetDestinationCommitId(v string) *GetMergeOptionsOutput { + s.DestinationCommitId = &v + return s +} + +// SetMergeOptions sets the MergeOptions field's value. +func (s *GetMergeOptionsOutput) SetMergeOptions(v []*string) *GetMergeOptionsOutput { + s.MergeOptions = v + return s +} + +// SetSourceCommitId sets the SourceCommitId field's value. +func (s *GetMergeOptionsOutput) SetSourceCommitId(v string) *GetMergeOptionsOutput { + s.SourceCommitId = &v + return s +} + +type GetPullRequestApprovalStatesInput struct { + _ struct{} `type:"structure"` + + // The system-generated ID for the pull request. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + + // The system-generated ID for the pull request revision. + // + // RevisionId is a required field + RevisionId *string `locationName:"revisionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetPullRequestApprovalStatesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPullRequestApprovalStatesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPullRequestApprovalStatesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPullRequestApprovalStatesInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + if s.RevisionId == nil { + invalidParams.Add(request.NewErrParamRequired("RevisionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *GetPullRequestApprovalStatesInput) SetPullRequestId(v string) *GetPullRequestApprovalStatesInput { + s.PullRequestId = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *GetPullRequestApprovalStatesInput) SetRevisionId(v string) *GetPullRequestApprovalStatesInput { + s.RevisionId = &v + return s +} + +type GetPullRequestApprovalStatesOutput struct { + _ struct{} `type:"structure"` + + // Information about users who have approved the pull request. + Approvals []*Approval `locationName:"approvals" type:"list"` +} + +// String returns the string representation +func (s GetPullRequestApprovalStatesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPullRequestApprovalStatesOutput) GoString() string { + return s.String() +} + +// SetApprovals sets the Approvals field's value. +func (s *GetPullRequestApprovalStatesOutput) SetApprovals(v []*Approval) *GetPullRequestApprovalStatesOutput { + s.Approvals = v + return s +} + +type GetPullRequestInput struct { + _ struct{} `type:"structure"` + + // The system-generated ID of the pull request. To get this ID, use ListPullRequests. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetPullRequestInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPullRequestInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPullRequestInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPullRequestInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *GetPullRequestInput) SetPullRequestId(v string) *GetPullRequestInput { + s.PullRequestId = &v + return s +} + +type GetPullRequestOutput struct { + _ struct{} `type:"structure"` + + // Information about the specified pull request. + // + // PullRequest is a required field + PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetPullRequestOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPullRequestOutput) GoString() string { + return s.String() +} + +// SetPullRequest sets the PullRequest field's value. +func (s *GetPullRequestOutput) SetPullRequest(v *PullRequest) *GetPullRequestOutput { + s.PullRequest = v + return s +} + +type GetPullRequestOverrideStateInput struct { + _ struct{} `type:"structure"` + + // The ID of the pull request for which you want to get information about whether + // approval rules have been set aside (overridden). + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + + // The system-generated ID of the revision for the pull request. To retrieve + // the most recent revision ID, use GetPullRequest. + // + // RevisionId is a required field + RevisionId *string `locationName:"revisionId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetPullRequestOverrideStateInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPullRequestOverrideStateInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetPullRequestOverrideStateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetPullRequestOverrideStateInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + if s.RevisionId == nil { + invalidParams.Add(request.NewErrParamRequired("RevisionId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *GetPullRequestOverrideStateInput) SetPullRequestId(v string) *GetPullRequestOverrideStateInput { + s.PullRequestId = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *GetPullRequestOverrideStateInput) SetRevisionId(v string) *GetPullRequestOverrideStateInput { + s.RevisionId = &v + return s +} + +type GetPullRequestOverrideStateOutput struct { + _ struct{} `type:"structure"` + + // A Boolean value that indicates whether a pull request has had its rules set + // aside (TRUE) or whether all approval rules still apply (FALSE). + Overridden *bool `locationName:"overridden" type:"boolean"` + + // The Amazon Resource Name (ARN) of the user or identity that overrode the + // rules and their requirements for the pull request. + Overrider *string `locationName:"overrider" type:"string"` +} + +// String returns the string representation +func (s GetPullRequestOverrideStateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetPullRequestOverrideStateOutput) GoString() string { + return s.String() +} + +// SetOverridden sets the Overridden field's value. +func (s *GetPullRequestOverrideStateOutput) SetOverridden(v bool) *GetPullRequestOverrideStateOutput { + s.Overridden = &v + return s +} + +// SetOverrider sets the Overrider field's value. +func (s *GetPullRequestOverrideStateOutput) SetOverrider(v string) *GetPullRequestOverrideStateOutput { + s.Overrider = &v + return s +} + +// Represents the input of a get repository operation. +type GetRepositoryInput struct { + _ struct{} `type:"structure"` + + // The name of the repository to get information about. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetRepositoryInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRepositoryInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRepositoryInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a get repository operation. +type GetRepositoryOutput struct { + _ struct{} `type:"structure"` + + // Information about the repository. + RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"` +} + +// String returns the string representation +func (s GetRepositoryOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRepositoryOutput) GoString() string { + return s.String() +} + +// SetRepositoryMetadata sets the RepositoryMetadata field's value. +func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput { + s.RepositoryMetadata = v + return s +} + +// Represents the input of a get repository triggers operation. +type GetRepositoryTriggersInput struct { + _ struct{} `type:"structure"` + + // The name of the repository for which the trigger is configured. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetRepositoryTriggersInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRepositoryTriggersInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetRepositoryTriggersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetRepositoryTriggersInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput { + s.RepositoryName = &v + return s +} + +// Represents the output of a get repository triggers operation. +type GetRepositoryTriggersOutput struct { + _ struct{} `type:"structure"` + + // The system-generated unique ID for the trigger. + ConfigurationId *string `locationName:"configurationId" type:"string"` + + // The JSON block of configuration information for each trigger. + Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` +} + +// String returns the string representation +func (s GetRepositoryTriggersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetRepositoryTriggersOutput) GoString() string { + return s.String() +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput { + s.ConfigurationId = &v + return s +} + +// SetTriggers sets the Triggers field's value. +func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput { + s.Triggers = v + return s +} + +// The client request token is not valid. Either the token is not in a valid +// format, or the token has been used in a previous request and cannot be reused. +type IdempotencyParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IdempotencyParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotencyParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotencyParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotencyParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotencyParameterMismatchException) Code() string { + return "IdempotencyParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotencyParameterMismatchException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotencyParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotencyParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotencyParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotencyParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided +// the full ARN for the user who initiated the change for the pull request, +// and then try again. +type InvalidActorArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidActorArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidActorArnException) GoString() string { + return s.String() +} + +func newErrorInvalidActorArnException(v protocol.ResponseMetadata) error { + return &InvalidActorArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidActorArnException) Code() string { + return "InvalidActorArnException" +} + +// Message returns the exception's message. +func (s InvalidActorArnException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidActorArnException) OrigErr() error { + return nil +} + +func (s InvalidActorArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidActorArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidActorArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// The content for the approval rule is not valid. +type InvalidApprovalRuleContentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidApprovalRuleContentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApprovalRuleContentException) GoString() string { + return s.String() +} + +func newErrorInvalidApprovalRuleContentException(v protocol.ResponseMetadata) error { + return &InvalidApprovalRuleContentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApprovalRuleContentException) Code() string { + return "InvalidApprovalRuleContentException" +} + +// Message returns the exception's message. +func (s InvalidApprovalRuleContentException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApprovalRuleContentException) OrigErr() error { + return nil +} + +func (s InvalidApprovalRuleContentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApprovalRuleContentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApprovalRuleContentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The name for the approval rule is not valid. +type InvalidApprovalRuleNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidApprovalRuleNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApprovalRuleNameException) GoString() string { + return s.String() +} + +func newErrorInvalidApprovalRuleNameException(v protocol.ResponseMetadata) error { + return &InvalidApprovalRuleNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApprovalRuleNameException) Code() string { + return "InvalidApprovalRuleNameException" +} + +// Message returns the exception's message. +func (s InvalidApprovalRuleNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApprovalRuleNameException) OrigErr() error { + return nil +} + +func (s InvalidApprovalRuleNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApprovalRuleNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApprovalRuleNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The content of the approval rule template is not valid. +type InvalidApprovalRuleTemplateContentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidApprovalRuleTemplateContentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApprovalRuleTemplateContentException) GoString() string { + return s.String() +} + +func newErrorInvalidApprovalRuleTemplateContentException(v protocol.ResponseMetadata) error { + return &InvalidApprovalRuleTemplateContentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApprovalRuleTemplateContentException) Code() string { + return "InvalidApprovalRuleTemplateContentException" +} + +// Message returns the exception's message. +func (s InvalidApprovalRuleTemplateContentException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApprovalRuleTemplateContentException) OrigErr() error { + return nil +} + +func (s InvalidApprovalRuleTemplateContentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApprovalRuleTemplateContentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApprovalRuleTemplateContentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The description for the approval rule template is not valid because it exceeds +// the maximum characters allowed for a description. For more information about +// limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). +type InvalidApprovalRuleTemplateDescriptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidApprovalRuleTemplateDescriptionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApprovalRuleTemplateDescriptionException) GoString() string { + return s.String() +} + +func newErrorInvalidApprovalRuleTemplateDescriptionException(v protocol.ResponseMetadata) error { + return &InvalidApprovalRuleTemplateDescriptionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApprovalRuleTemplateDescriptionException) Code() string { + return "InvalidApprovalRuleTemplateDescriptionException" +} + +// Message returns the exception's message. +func (s InvalidApprovalRuleTemplateDescriptionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApprovalRuleTemplateDescriptionException) OrigErr() error { + return nil +} + +func (s InvalidApprovalRuleTemplateDescriptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApprovalRuleTemplateDescriptionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApprovalRuleTemplateDescriptionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The name of the approval rule template is not valid. Template names must +// be between 1 and 100 valid characters in length. For more information about +// limits in AWS CodeCommit, see AWS CodeCommit User Guide (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html). +type InvalidApprovalRuleTemplateNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidApprovalRuleTemplateNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApprovalRuleTemplateNameException) GoString() string { + return s.String() +} + +func newErrorInvalidApprovalRuleTemplateNameException(v protocol.ResponseMetadata) error { + return &InvalidApprovalRuleTemplateNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApprovalRuleTemplateNameException) Code() string { + return "InvalidApprovalRuleTemplateNameException" +} + +// Message returns the exception's message. +func (s InvalidApprovalRuleTemplateNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApprovalRuleTemplateNameException) OrigErr() error { + return nil +} + +func (s InvalidApprovalRuleTemplateNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApprovalRuleTemplateNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApprovalRuleTemplateNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The state for the approval is not valid. Valid values include APPROVE and +// REVOKE. +type InvalidApprovalStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidApprovalStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApprovalStateException) GoString() string { + return s.String() +} + +func newErrorInvalidApprovalStateException(v protocol.ResponseMetadata) error { + return &InvalidApprovalStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApprovalStateException) Code() string { + return "InvalidApprovalStateException" +} + +// Message returns the exception's message. +func (s InvalidApprovalStateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApprovalStateException) OrigErr() error { + return nil +} + +func (s InvalidApprovalStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApprovalStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApprovalStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Amazon Resource Name (ARN) is not valid. Make sure that you have provided +// the full ARN for the author of the pull request, and then try again. +type InvalidAuthorArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidAuthorArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAuthorArnException) GoString() string { + return s.String() +} + +func newErrorInvalidAuthorArnException(v protocol.ResponseMetadata) error { + return &InvalidAuthorArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAuthorArnException) Code() string { + return "InvalidAuthorArnException" +} + +// Message returns the exception's message. +func (s InvalidAuthorArnException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAuthorArnException) OrigErr() error { + return nil +} + +func (s InvalidAuthorArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAuthorArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAuthorArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified blob is not valid. +type InvalidBlobIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidBlobIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidBlobIdException) GoString() string { + return s.String() +} + +func newErrorInvalidBlobIdException(v protocol.ResponseMetadata) error { + return &InvalidBlobIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidBlobIdException) Code() string { + return "InvalidBlobIdException" +} + +// Message returns the exception's message. +func (s InvalidBlobIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidBlobIdException) OrigErr() error { + return nil +} + +func (s InvalidBlobIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidBlobIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidBlobIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified reference name is not valid. +type InvalidBranchNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidBranchNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidBranchNameException) GoString() string { + return s.String() +} + +func newErrorInvalidBranchNameException(v protocol.ResponseMetadata) error { + return &InvalidBranchNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidBranchNameException) Code() string { + return "InvalidBranchNameException" +} + +// Message returns the exception's message. +func (s InvalidBranchNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidBranchNameException) OrigErr() error { + return nil +} + +func (s InvalidBranchNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidBranchNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidBranchNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The client request token is not valid. +type InvalidClientRequestTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidClientRequestTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidClientRequestTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidClientRequestTokenException(v protocol.ResponseMetadata) error { + return &InvalidClientRequestTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidClientRequestTokenException) Code() string { + return "InvalidClientRequestTokenException" +} + +// Message returns the exception's message. +func (s InvalidClientRequestTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidClientRequestTokenException) OrigErr() error { + return nil +} + +func (s InvalidClientRequestTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidClientRequestTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidClientRequestTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The comment ID is not in a valid format. Make sure that you have provided +// the full comment ID. +type InvalidCommentIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidCommentIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCommentIdException) GoString() string { + return s.String() +} + +func newErrorInvalidCommentIdException(v protocol.ResponseMetadata) error { + return &InvalidCommentIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCommentIdException) Code() string { + return "InvalidCommentIdException" +} + +// Message returns the exception's message. +func (s InvalidCommentIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCommentIdException) OrigErr() error { + return nil +} + +func (s InvalidCommentIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCommentIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCommentIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified commit is not valid. +type InvalidCommitException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidCommitException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCommitException) GoString() string { + return s.String() +} + +func newErrorInvalidCommitException(v protocol.ResponseMetadata) error { + return &InvalidCommitException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCommitException) Code() string { + return "InvalidCommitException" +} + +// Message returns the exception's message. +func (s InvalidCommitException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCommitException) OrigErr() error { + return nil +} + +func (s InvalidCommitException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCommitException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCommitException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified commit ID is not valid. +type InvalidCommitIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidCommitIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCommitIdException) GoString() string { + return s.String() +} + +func newErrorInvalidCommitIdException(v protocol.ResponseMetadata) error { + return &InvalidCommitIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCommitIdException) Code() string { + return "InvalidCommitIdException" +} + +// Message returns the exception's message. +func (s InvalidCommitIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCommitIdException) OrigErr() error { + return nil +} + +func (s InvalidCommitIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCommitIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCommitIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified conflict detail level is not valid. +type InvalidConflictDetailLevelException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidConflictDetailLevelException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidConflictDetailLevelException) GoString() string { + return s.String() +} + +func newErrorInvalidConflictDetailLevelException(v protocol.ResponseMetadata) error { + return &InvalidConflictDetailLevelException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidConflictDetailLevelException) Code() string { + return "InvalidConflictDetailLevelException" +} + +// Message returns the exception's message. +func (s InvalidConflictDetailLevelException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidConflictDetailLevelException) OrigErr() error { + return nil +} + +func (s InvalidConflictDetailLevelException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidConflictDetailLevelException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidConflictDetailLevelException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified conflict resolution list is not valid. +type InvalidConflictResolutionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidConflictResolutionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidConflictResolutionException) GoString() string { + return s.String() +} + +func newErrorInvalidConflictResolutionException(v protocol.ResponseMetadata) error { + return &InvalidConflictResolutionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidConflictResolutionException) Code() string { + return "InvalidConflictResolutionException" +} + +// Message returns the exception's message. +func (s InvalidConflictResolutionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidConflictResolutionException) OrigErr() error { + return nil +} + +func (s InvalidConflictResolutionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidConflictResolutionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidConflictResolutionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified conflict resolution strategy is not valid. +type InvalidConflictResolutionStrategyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidConflictResolutionStrategyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidConflictResolutionStrategyException) GoString() string { + return s.String() +} + +func newErrorInvalidConflictResolutionStrategyException(v protocol.ResponseMetadata) error { + return &InvalidConflictResolutionStrategyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidConflictResolutionStrategyException) Code() string { + return "InvalidConflictResolutionStrategyException" +} + +// Message returns the exception's message. +func (s InvalidConflictResolutionStrategyException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidConflictResolutionStrategyException) OrigErr() error { + return nil +} + +func (s InvalidConflictResolutionStrategyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidConflictResolutionStrategyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidConflictResolutionStrategyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified continuation token is not valid. +type InvalidContinuationTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidContinuationTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidContinuationTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidContinuationTokenException(v protocol.ResponseMetadata) error { + return &InvalidContinuationTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidContinuationTokenException) Code() string { + return "InvalidContinuationTokenException" +} + +// Message returns the exception's message. +func (s InvalidContinuationTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidContinuationTokenException) OrigErr() error { + return nil +} + +func (s InvalidContinuationTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidContinuationTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidContinuationTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified deletion parameter is not valid. +type InvalidDeletionParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDeletionParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeletionParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidDeletionParameterException(v protocol.ResponseMetadata) error { + return &InvalidDeletionParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeletionParameterException) Code() string { + return "InvalidDeletionParameterException" +} + +// Message returns the exception's message. +func (s InvalidDeletionParameterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeletionParameterException) OrigErr() error { + return nil +} + +func (s InvalidDeletionParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeletionParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeletionParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pull request description is not valid. Descriptions cannot be more than +// 1,000 characters. +type InvalidDescriptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDescriptionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDescriptionException) GoString() string { + return s.String() +} - // The files to delete in this commit. These files still exist in earlier commits. - DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"` +func newErrorInvalidDescriptionException(v protocol.ResponseMetadata) error { + return &InvalidDescriptionException{ + respMetadata: v, + } +} - // The email address of the person who created the commit. - Email *string `locationName:"email" type:"string"` +// Code returns the exception type name. +func (s InvalidDescriptionException) Code() string { + return "InvalidDescriptionException" +} - // If the commit contains deletions, whether to keep a folder or folder structure - // if the changes leave the folders empty. If true, a ..gitkeep file is created - // for empty folders. The default is false. - KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` +// Message returns the exception's message. +func (s InvalidDescriptionException) Message() string { + return "" +} - // The ID of the commit that is the parent of the commit you create. Not required - // if this is an empty repository. - ParentCommitId *string `locationName:"parentCommitId" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDescriptionException) OrigErr() error { + return nil +} - // The files to add or update in this commit. - PutFiles []*PutFileEntry `locationName:"putFiles" type:"list"` +func (s InvalidDescriptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the repository where you create the commit. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDescriptionException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The file modes to update for files in this commit. - SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"` +// RequestID returns the service's response RequestID for request. +func (s InvalidDescriptionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The destination commit specifier is not valid. You must provide a valid branch +// name, tag, or full commit ID. +type InvalidDestinationCommitSpecifierException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateCommitInput) String() string { +func (s InvalidDestinationCommitSpecifierException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateCommitInput) GoString() string { +func (s InvalidDestinationCommitSpecifierException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateCommitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateCommitInput"} - if s.BranchName == nil { - invalidParams.Add(request.NewErrParamRequired("BranchName")) - } - if s.BranchName != nil && len(*s.BranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.DeleteFiles != nil { - for i, v := range s.DeleteFiles { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "DeleteFiles", i), err.(request.ErrInvalidParams)) - } - } - } - if s.PutFiles != nil { - for i, v := range s.PutFiles { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PutFiles", i), err.(request.ErrInvalidParams)) - } - } - } - if s.SetFileModes != nil { - for i, v := range s.SetFileModes { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "SetFileModes", i), err.(request.ErrInvalidParams)) - } - } +func newErrorInvalidDestinationCommitSpecifierException(v protocol.ResponseMetadata) error { + return &InvalidDestinationCommitSpecifierException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidDestinationCommitSpecifierException) Code() string { + return "InvalidDestinationCommitSpecifierException" } -// SetAuthorName sets the AuthorName field's value. -func (s *CreateCommitInput) SetAuthorName(v string) *CreateCommitInput { - s.AuthorName = &v - return s +// Message returns the exception's message. +func (s InvalidDestinationCommitSpecifierException) Message() string { + return "" } -// SetBranchName sets the BranchName field's value. -func (s *CreateCommitInput) SetBranchName(v string) *CreateCommitInput { - s.BranchName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDestinationCommitSpecifierException) OrigErr() error { + return nil } -// SetCommitMessage sets the CommitMessage field's value. -func (s *CreateCommitInput) SetCommitMessage(v string) *CreateCommitInput { - s.CommitMessage = &v - return s +func (s InvalidDestinationCommitSpecifierException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetDeleteFiles sets the DeleteFiles field's value. -func (s *CreateCommitInput) SetDeleteFiles(v []*DeleteFileEntry) *CreateCommitInput { - s.DeleteFiles = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDestinationCommitSpecifierException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetEmail sets the Email field's value. -func (s *CreateCommitInput) SetEmail(v string) *CreateCommitInput { - s.Email = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidDestinationCommitSpecifierException) RequestID() string { + return s.respMetadata.RequestID } -// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. -func (s *CreateCommitInput) SetKeepEmptyFolders(v bool) *CreateCommitInput { - s.KeepEmptyFolders = &v - return s +// The specified email address either contains one or more characters that are +// not allowed, or it exceeds the maximum number of characters allowed for an +// email address. +type InvalidEmailException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetParentCommitId sets the ParentCommitId field's value. -func (s *CreateCommitInput) SetParentCommitId(v string) *CreateCommitInput { - s.ParentCommitId = &v - return s +// String returns the string representation +func (s InvalidEmailException) String() string { + return awsutil.Prettify(s) } -// SetPutFiles sets the PutFiles field's value. -func (s *CreateCommitInput) SetPutFiles(v []*PutFileEntry) *CreateCommitInput { - s.PutFiles = v - return s +// GoString returns the string representation +func (s InvalidEmailException) GoString() string { + return s.String() } -// SetRepositoryName sets the RepositoryName field's value. -func (s *CreateCommitInput) SetRepositoryName(v string) *CreateCommitInput { - s.RepositoryName = &v - return s +func newErrorInvalidEmailException(v protocol.ResponseMetadata) error { + return &InvalidEmailException{ + respMetadata: v, + } } -// SetSetFileModes sets the SetFileModes field's value. -func (s *CreateCommitInput) SetSetFileModes(v []*SetFileModeEntry) *CreateCommitInput { - s.SetFileModes = v - return s +// Code returns the exception type name. +func (s InvalidEmailException) Code() string { + return "InvalidEmailException" } -type CreateCommitOutput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidEmailException) Message() string { + return "" +} - // The full commit ID of the commit that contains your committed file changes. - CommitId *string `locationName:"commitId" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEmailException) OrigErr() error { + return nil +} - // The files added as part of the committed file changes. - FilesAdded []*FileMetadata `locationName:"filesAdded" type:"list"` +func (s InvalidEmailException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The files deleted as part of the committed file changes. - FilesDeleted []*FileMetadata `locationName:"filesDeleted" type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEmailException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The files updated as part of the commited file changes. - FilesUpdated []*FileMetadata `locationName:"filesUpdated" type:"list"` +// RequestID returns the service's response RequestID for request. +func (s InvalidEmailException) RequestID() string { + return s.respMetadata.RequestID +} - // The full SHA-1 pointer of the tree information for the commit that contains - // the commited file changes. - TreeId *string `locationName:"treeId" type:"string"` +// The location of the file is not valid. Make sure that you include the file +// name and extension. +type InvalidFileLocationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateCommitOutput) String() string { +func (s InvalidFileLocationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateCommitOutput) GoString() string { +func (s InvalidFileLocationException) GoString() string { return s.String() } -// SetCommitId sets the CommitId field's value. -func (s *CreateCommitOutput) SetCommitId(v string) *CreateCommitOutput { - s.CommitId = &v - return s +func newErrorInvalidFileLocationException(v protocol.ResponseMetadata) error { + return &InvalidFileLocationException{ + respMetadata: v, + } } -// SetFilesAdded sets the FilesAdded field's value. -func (s *CreateCommitOutput) SetFilesAdded(v []*FileMetadata) *CreateCommitOutput { - s.FilesAdded = v - return s +// Code returns the exception type name. +func (s InvalidFileLocationException) Code() string { + return "InvalidFileLocationException" } -// SetFilesDeleted sets the FilesDeleted field's value. -func (s *CreateCommitOutput) SetFilesDeleted(v []*FileMetadata) *CreateCommitOutput { - s.FilesDeleted = v - return s +// Message returns the exception's message. +func (s InvalidFileLocationException) Message() string { + return "" } -// SetFilesUpdated sets the FilesUpdated field's value. -func (s *CreateCommitOutput) SetFilesUpdated(v []*FileMetadata) *CreateCommitOutput { - s.FilesUpdated = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFileLocationException) OrigErr() error { + return nil } -// SetTreeId sets the TreeId field's value. -func (s *CreateCommitOutput) SetTreeId(v string) *CreateCommitOutput { - s.TreeId = &v - return s +func (s InvalidFileLocationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type CreatePullRequestApprovalRuleInput struct { - _ struct{} `type:"structure"` - - // The content of the approval rule, including the number of approvals needed - // and the structure of an approval pool defined for approvals, if any. For - // more information about approval pools, see the AWS CodeCommit User Guide. - // - // When you create the content of the approval rule, you can specify approvers - // in an approval pool in one of two ways: - // - // * CodeCommitApprovers: This option only requires an AWS account and a - // resource. It can be used for both IAM users and federated access users - // whose name matches the provided resource name. This is a very powerful - // option that offers a great deal of flexibility. For example, if you specify - // the AWS account 123456789012 and Mary_Major, all of the following would - // be counted as approvals coming from that user: An IAM user in the account - // (arn:aws:iam::123456789012:user/Mary_Major) A federated user identified - // in IAM as Mary_Major (arn:aws:sts::123456789012:federated-user/Mary_Major) - // This option does not recognize an active session of someone assuming the - // role of CodeCommitReview with a role session name of Mary_Major (arn:aws:sts::123456789012:assumed-role/CodeCommitReview/Mary_Major) - // unless you include a wildcard (*Mary_Major). - // - // * Fully qualified ARN: This option allows you to specify the fully qualified - // Amazon Resource Name (ARN) of the IAM user or role. - // - // For more information about IAM ARNs, wildcards, and formats, see IAM Identifiers - // (https://docs.aws.amazon.com/iam/latest/UserGuide/reference_identifiers.html) - // in the IAM User Guide. - // - // ApprovalRuleContent is a required field - ApprovalRuleContent *string `locationName:"approvalRuleContent" min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFileLocationException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The name for the approval rule. - // - // ApprovalRuleName is a required field - ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidFileLocationException) RequestID() string { + return s.respMetadata.RequestID +} - // The system-generated ID of the pull request for which you want to create - // the approval rule. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +// The specified file mode permission is not valid. For a list of valid file +// mode permissions, see PutFile. +type InvalidFileModeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreatePullRequestApprovalRuleInput) String() string { +func (s InvalidFileModeException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePullRequestApprovalRuleInput) GoString() string { +func (s InvalidFileModeException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePullRequestApprovalRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestApprovalRuleInput"} - if s.ApprovalRuleContent == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleContent")) - } - if s.ApprovalRuleContent != nil && len(*s.ApprovalRuleContent) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleContent", 1)) - } - if s.ApprovalRuleName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName")) - } - if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1)) - } - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) +func newErrorInvalidFileModeException(v protocol.ResponseMetadata) error { + return &InvalidFileModeException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidFileModeException) Code() string { + return "InvalidFileModeException" } -// SetApprovalRuleContent sets the ApprovalRuleContent field's value. -func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleContent(v string) *CreatePullRequestApprovalRuleInput { - s.ApprovalRuleContent = &v - return s +// Message returns the exception's message. +func (s InvalidFileModeException) Message() string { + return "" } -// SetApprovalRuleName sets the ApprovalRuleName field's value. -func (s *CreatePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *CreatePullRequestApprovalRuleInput { - s.ApprovalRuleName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFileModeException) OrigErr() error { + return nil } -// SetPullRequestId sets the PullRequestId field's value. -func (s *CreatePullRequestApprovalRuleInput) SetPullRequestId(v string) *CreatePullRequestApprovalRuleInput { - s.PullRequestId = &v - return s +func (s InvalidFileModeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type CreatePullRequestApprovalRuleOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFileModeException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the created approval rule. - // - // ApprovalRule is a required field - ApprovalRule *ApprovalRule `locationName:"approvalRule" type:"structure" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidFileModeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The position is not valid. Make sure that the line number exists in the version +// of the file you want to comment on. +type InvalidFilePositionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreatePullRequestApprovalRuleOutput) String() string { +func (s InvalidFilePositionException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePullRequestApprovalRuleOutput) GoString() string { +func (s InvalidFilePositionException) GoString() string { return s.String() } -// SetApprovalRule sets the ApprovalRule field's value. -func (s *CreatePullRequestApprovalRuleOutput) SetApprovalRule(v *ApprovalRule) *CreatePullRequestApprovalRuleOutput { - s.ApprovalRule = v - return s +func newErrorInvalidFilePositionException(v protocol.ResponseMetadata) error { + return &InvalidFilePositionException{ + respMetadata: v, + } } -type CreatePullRequestInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidFilePositionException) Code() string { + return "InvalidFilePositionException" +} - // A unique, client-generated idempotency token that, when provided in a request, - // ensures the request cannot be repeated with a changed parameter. If a request - // is received with the same parameters and a token is included, the request - // returns information about the initial request that used that token. - // - // The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, - // an idempotency token is created for you. - ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` +// Message returns the exception's message. +func (s InvalidFilePositionException) Message() string { + return "" +} - // A description of the pull request. - Description *string `locationName:"description" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFilePositionException) OrigErr() error { + return nil +} - // The targets for the pull request, including the source of the code to be - // reviewed (the source branch) and the destination where the creator of the - // pull request intends the code to be merged after the pull request is closed - // (the destination branch). - // - // Targets is a required field - Targets []*Target `locationName:"targets" type:"list" required:"true"` +func (s InvalidFilePositionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The title of the pull request. This title is used to identify the pull request - // to other users in the repository. - // - // Title is a required field - Title *string `locationName:"title" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFilePositionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFilePositionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified value for the number of conflict files to return is not valid. +type InvalidMaxConflictFilesException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreatePullRequestInput) String() string { +func (s InvalidMaxConflictFilesException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePullRequestInput) GoString() string { +func (s InvalidMaxConflictFilesException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreatePullRequestInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreatePullRequestInput"} - if s.Targets == nil { - invalidParams.Add(request.NewErrParamRequired("Targets")) - } - if s.Title == nil { - invalidParams.Add(request.NewErrParamRequired("Title")) - } - if s.Targets != nil { - for i, v := range s.Targets { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Targets", i), err.(request.ErrInvalidParams)) - } - } +func newErrorInvalidMaxConflictFilesException(v protocol.ResponseMetadata) error { + return &InvalidMaxConflictFilesException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidMaxConflictFilesException) Code() string { + return "InvalidMaxConflictFilesException" } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *CreatePullRequestInput) SetClientRequestToken(v string) *CreatePullRequestInput { - s.ClientRequestToken = &v - return s +// Message returns the exception's message. +func (s InvalidMaxConflictFilesException) Message() string { + return "" } -// SetDescription sets the Description field's value. -func (s *CreatePullRequestInput) SetDescription(v string) *CreatePullRequestInput { - s.Description = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMaxConflictFilesException) OrigErr() error { + return nil } -// SetTargets sets the Targets field's value. -func (s *CreatePullRequestInput) SetTargets(v []*Target) *CreatePullRequestInput { - s.Targets = v - return s +func (s InvalidMaxConflictFilesException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTitle sets the Title field's value. -func (s *CreatePullRequestInput) SetTitle(v string) *CreatePullRequestInput { - s.Title = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMaxConflictFilesException) StatusCode() int { + return s.respMetadata.StatusCode } -type CreatePullRequestOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidMaxConflictFilesException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about the newly created pull request. - // - // PullRequest is a required field - PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"` +// The specified value for the number of merge hunks to return is not valid. +type InvalidMaxMergeHunksException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreatePullRequestOutput) String() string { +func (s InvalidMaxMergeHunksException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreatePullRequestOutput) GoString() string { +func (s InvalidMaxMergeHunksException) GoString() string { return s.String() } -// SetPullRequest sets the PullRequest field's value. -func (s *CreatePullRequestOutput) SetPullRequest(v *PullRequest) *CreatePullRequestOutput { - s.PullRequest = v - return s +func newErrorInvalidMaxMergeHunksException(v protocol.ResponseMetadata) error { + return &InvalidMaxMergeHunksException{ + respMetadata: v, + } } -// Represents the input of a create repository operation. -type CreateRepositoryInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidMaxMergeHunksException) Code() string { + return "InvalidMaxMergeHunksException" +} - // A comment or description about the new repository. - // - // The description field for a repository accepts all HTML characters and all - // valid Unicode characters. Applications that do not HTML-encode the description - // and display it in a webpage can expose users to potentially malicious code. - // Make sure that you HTML-encode the description field in any application that - // uses this API to display the repository description on a webpage. - RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` +// Message returns the exception's message. +func (s InvalidMaxMergeHunksException) Message() string { + return "" +} - // The name of the new repository to be created. - // - // The repository name must be unique across the calling AWS account. Repository - // names are limited to 100 alphanumeric, dash, and underscore characters, and - // cannot include certain characters. For more information about the limits - // on repository names, see Limits (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) - // in the AWS CodeCommit User Guide. The suffix .git is prohibited. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMaxMergeHunksException) OrigErr() error { + return nil +} - // One or more tag key-value pairs to use when tagging this repository. - Tags map[string]*string `locationName:"tags" type:"map"` +func (s InvalidMaxMergeHunksException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMaxMergeHunksException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidMaxMergeHunksException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified number of maximum results is not valid. +type InvalidMaxResultsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateRepositoryInput) String() string { +func (s InvalidMaxResultsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRepositoryInput) GoString() string { +func (s InvalidMaxResultsException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateRepositoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateRepositoryInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error { + return &InvalidMaxResultsException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidMaxResultsException) Code() string { + return "InvalidMaxResultsException" } -// SetRepositoryDescription sets the RepositoryDescription field's value. -func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput { - s.RepositoryDescription = &v - return s +// Message returns the exception's message. +func (s InvalidMaxResultsException) Message() string { + return "" } -// SetRepositoryName sets the RepositoryName field's value. -func (s *CreateRepositoryInput) SetRepositoryName(v string) *CreateRepositoryInput { - s.RepositoryName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMaxResultsException) OrigErr() error { + return nil } -// SetTags sets the Tags field's value. -func (s *CreateRepositoryInput) SetTags(v map[string]*string) *CreateRepositoryInput { - s.Tags = v - return s +func (s InvalidMaxResultsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the output of a create repository operation. -type CreateRepositoryOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMaxResultsException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the newly created repository. - RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidMaxResultsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified merge option is not valid for this operation. Not all merge +// strategies are supported for all operations. +type InvalidMergeOptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateRepositoryOutput) String() string { +func (s InvalidMergeOptionException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateRepositoryOutput) GoString() string { +func (s InvalidMergeOptionException) GoString() string { return s.String() } -// SetRepositoryMetadata sets the RepositoryMetadata field's value. -func (s *CreateRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *CreateRepositoryOutput { - s.RepositoryMetadata = v - return s +func newErrorInvalidMergeOptionException(v protocol.ResponseMetadata) error { + return &InvalidMergeOptionException{ + respMetadata: v, + } } -type CreateUnreferencedMergeCommitInput struct { - _ struct{} `type:"structure"` - - // The name of the author who created the unreferenced commit. This information - // is used as both the author and committer for the commit. - AuthorName *string `locationName:"authorName" type:"string"` - - // The commit message for the unreferenced commit. - CommitMessage *string `locationName:"commitMessage" type:"string"` - - // The level of conflict detail to use. If unspecified, the default FILE_LEVEL - // is used, which returns a not-mergeable result if the same file has differences - // in both branches. If LINE_LEVEL is specified, a conflict is considered not - // mergeable if the same file in both branches has differences on the same line. - ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` - - // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use - // when resolving conflicts during a merge. - ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` - - // Specifies which branch to use when resolving conflicts, or whether to attempt - // automatically merging two versions of a file. The default is NONE, which - // requires any conflicts to be resolved manually before the merge operation - // is successful. - ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` +// Code returns the exception type name. +func (s InvalidMergeOptionException) Code() string { + return "InvalidMergeOptionException" +} - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). - // - // DestinationCommitSpecifier is a required field - DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidMergeOptionException) Message() string { + return "" +} - // The email address for the person who created the unreferenced commit. - Email *string `locationName:"email" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMergeOptionException) OrigErr() error { + return nil +} - // If the commit contains deletions, whether to keep a folder or folder structure - // if the changes leave the folders empty. If this is specified as true, a .gitkeep - // file is created for empty folders. The default is false. - KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` +func (s InvalidMergeOptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The merge option or strategy you want to use to merge the code. - // - // MergeOption is a required field - MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMergeOptionException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The name of the repository where you want to create the unreferenced merge - // commit. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidMergeOptionException) RequestID() string { + return s.respMetadata.RequestID +} - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). - // - // SourceCommitSpecifier is a required field - SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` +// The specified sort order is not valid. +type InvalidOrderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateUnreferencedMergeCommitInput) String() string { +func (s InvalidOrderException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUnreferencedMergeCommitInput) GoString() string { +func (s InvalidOrderException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateUnreferencedMergeCommitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateUnreferencedMergeCommitInput"} - if s.DestinationCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) - } - if s.MergeOption == nil { - invalidParams.Add(request.NewErrParamRequired("MergeOption")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.SourceCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) - } - if s.ConflictResolution != nil { - if err := s.ConflictResolution.Validate(); err != nil { - invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInvalidOrderException(v protocol.ResponseMetadata) error { + return &InvalidOrderException{ + respMetadata: v, } +} + +// Code returns the exception type name. +func (s InvalidOrderException) Code() string { + return "InvalidOrderException" +} + +// Message returns the exception's message. +func (s InvalidOrderException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOrderException) OrigErr() error { return nil } -// SetAuthorName sets the AuthorName field's value. -func (s *CreateUnreferencedMergeCommitInput) SetAuthorName(v string) *CreateUnreferencedMergeCommitInput { - s.AuthorName = &v - return s +func (s InvalidOrderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetCommitMessage sets the CommitMessage field's value. -func (s *CreateUnreferencedMergeCommitInput) SetCommitMessage(v string) *CreateUnreferencedMergeCommitInput { - s.CommitMessage = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOrderException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *CreateUnreferencedMergeCommitInput) SetConflictDetailLevel(v string) *CreateUnreferencedMergeCommitInput { - s.ConflictDetailLevel = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidOrderException) RequestID() string { + return s.respMetadata.RequestID } -// SetConflictResolution sets the ConflictResolution field's value. -func (s *CreateUnreferencedMergeCommitInput) SetConflictResolution(v *ConflictResolution) *CreateUnreferencedMergeCommitInput { - s.ConflictResolution = v - return s +// The override status is not valid. Valid statuses are OVERRIDE and REVOKE. +type InvalidOverrideStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *CreateUnreferencedMergeCommitInput) SetConflictResolutionStrategy(v string) *CreateUnreferencedMergeCommitInput { - s.ConflictResolutionStrategy = &v - return s +// String returns the string representation +func (s InvalidOverrideStatusException) String() string { + return awsutil.Prettify(s) } -// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *CreateUnreferencedMergeCommitInput) SetDestinationCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput { - s.DestinationCommitSpecifier = &v - return s +// GoString returns the string representation +func (s InvalidOverrideStatusException) GoString() string { + return s.String() } -// SetEmail sets the Email field's value. -func (s *CreateUnreferencedMergeCommitInput) SetEmail(v string) *CreateUnreferencedMergeCommitInput { - s.Email = &v - return s +func newErrorInvalidOverrideStatusException(v protocol.ResponseMetadata) error { + return &InvalidOverrideStatusException{ + respMetadata: v, + } } -// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. -func (s *CreateUnreferencedMergeCommitInput) SetKeepEmptyFolders(v bool) *CreateUnreferencedMergeCommitInput { - s.KeepEmptyFolders = &v - return s +// Code returns the exception type name. +func (s InvalidOverrideStatusException) Code() string { + return "InvalidOverrideStatusException" } -// SetMergeOption sets the MergeOption field's value. -func (s *CreateUnreferencedMergeCommitInput) SetMergeOption(v string) *CreateUnreferencedMergeCommitInput { - s.MergeOption = &v - return s +// Message returns the exception's message. +func (s InvalidOverrideStatusException) Message() string { + return "" } -// SetRepositoryName sets the RepositoryName field's value. -func (s *CreateUnreferencedMergeCommitInput) SetRepositoryName(v string) *CreateUnreferencedMergeCommitInput { - s.RepositoryName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOverrideStatusException) OrigErr() error { + return nil } -// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *CreateUnreferencedMergeCommitInput) SetSourceCommitSpecifier(v string) *CreateUnreferencedMergeCommitInput { - s.SourceCommitSpecifier = &v - return s +func (s InvalidOverrideStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type CreateUnreferencedMergeCommitOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOverrideStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The full commit ID of the commit that contains your merge results. - CommitId *string `locationName:"commitId" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidOverrideStatusException) RequestID() string { + return s.respMetadata.RequestID +} - // The full SHA-1 pointer of the tree information for the commit that contains - // the merge results. - TreeId *string `locationName:"treeId" type:"string"` +// The parent commit ID is not valid. The commit ID cannot be empty, and must +// match the head commit ID for the branch of the repository where you want +// to add or update a file. +type InvalidParentCommitIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s CreateUnreferencedMergeCommitOutput) String() string { +func (s InvalidParentCommitIdException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateUnreferencedMergeCommitOutput) GoString() string { +func (s InvalidParentCommitIdException) GoString() string { return s.String() } -// SetCommitId sets the CommitId field's value. -func (s *CreateUnreferencedMergeCommitOutput) SetCommitId(v string) *CreateUnreferencedMergeCommitOutput { - s.CommitId = &v - return s +func newErrorInvalidParentCommitIdException(v protocol.ResponseMetadata) error { + return &InvalidParentCommitIdException{ + respMetadata: v, + } } -// SetTreeId sets the TreeId field's value. -func (s *CreateUnreferencedMergeCommitOutput) SetTreeId(v string) *CreateUnreferencedMergeCommitOutput { - s.TreeId = &v - return s +// Code returns the exception type name. +func (s InvalidParentCommitIdException) Code() string { + return "InvalidParentCommitIdException" } -type DeleteApprovalRuleTemplateInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidParentCommitIdException) Message() string { + return "" +} - // The name of the approval rule template to delete. - // - // ApprovalRuleTemplateName is a required field - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParentCommitIdException) OrigErr() error { + return nil +} + +func (s InvalidParentCommitIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParentCommitIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParentCommitIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified path is not valid. +type InvalidPathException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteApprovalRuleTemplateInput) String() string { +func (s InvalidPathException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteApprovalRuleTemplateInput) GoString() string { +func (s InvalidPathException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteApprovalRuleTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteApprovalRuleTemplateInput"} - if s.ApprovalRuleTemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) - } - if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) +func newErrorInvalidPathException(v protocol.ResponseMetadata) error { + return &InvalidPathException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidPathException) Code() string { + return "InvalidPathException" +} + +// Message returns the exception's message. +func (s InvalidPathException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPathException) OrigErr() error { return nil } -// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. -func (s *DeleteApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *DeleteApprovalRuleTemplateInput { - s.ApprovalRuleTemplateName = &v - return s +func (s InvalidPathException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type DeleteApprovalRuleTemplateOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPathException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The system-generated ID of the deleted approval rule template. If the template - // has been previously deleted, the only response is a 200 OK. - // - // ApprovalRuleTemplateId is a required field - ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidPathException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pull request event type is not valid. +type InvalidPullRequestEventTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteApprovalRuleTemplateOutput) String() string { +func (s InvalidPullRequestEventTypeException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteApprovalRuleTemplateOutput) GoString() string { +func (s InvalidPullRequestEventTypeException) GoString() string { return s.String() } -// SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value. -func (s *DeleteApprovalRuleTemplateOutput) SetApprovalRuleTemplateId(v string) *DeleteApprovalRuleTemplateOutput { - s.ApprovalRuleTemplateId = &v - return s +func newErrorInvalidPullRequestEventTypeException(v protocol.ResponseMetadata) error { + return &InvalidPullRequestEventTypeException{ + respMetadata: v, + } } -// Represents the input of a delete branch operation. -type DeleteBranchInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidPullRequestEventTypeException) Code() string { + return "InvalidPullRequestEventTypeException" +} - // The name of the branch to delete. - // - // BranchName is a required field - BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidPullRequestEventTypeException) Message() string { + return "" +} - // The name of the repository that contains the branch to be deleted. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPullRequestEventTypeException) OrigErr() error { + return nil +} + +func (s InvalidPullRequestEventTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPullRequestEventTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPullRequestEventTypeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pull request ID is not valid. Make sure that you have provided the full +// ID and that the pull request is in the specified repository, and then try +// again. +type InvalidPullRequestIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteBranchInput) String() string { +func (s InvalidPullRequestIdException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteBranchInput) GoString() string { +func (s InvalidPullRequestIdException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteBranchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteBranchInput"} - if s.BranchName == nil { - invalidParams.Add(request.NewErrParamRequired("BranchName")) - } - if s.BranchName != nil && len(*s.BranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorInvalidPullRequestIdException(v protocol.ResponseMetadata) error { + return &InvalidPullRequestIdException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidPullRequestIdException) Code() string { + return "InvalidPullRequestIdException" +} + +// Message returns the exception's message. +func (s InvalidPullRequestIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPullRequestIdException) OrigErr() error { return nil } -// SetBranchName sets the BranchName field's value. -func (s *DeleteBranchInput) SetBranchName(v string) *DeleteBranchInput { - s.BranchName = &v - return s +func (s InvalidPullRequestIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *DeleteBranchInput) SetRepositoryName(v string) *DeleteBranchInput { - s.RepositoryName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPullRequestIdException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents the output of a delete branch operation. -type DeleteBranchOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidPullRequestIdException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about the branch deleted by the operation, including the branch - // name and the commit ID that was the tip of the branch. - DeletedBranch *BranchInfo `locationName:"deletedBranch" type:"structure"` +// The pull request status is not valid. The only valid values are OPEN and +// CLOSED. +type InvalidPullRequestStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteBranchOutput) String() string { +func (s InvalidPullRequestStatusException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteBranchOutput) GoString() string { +func (s InvalidPullRequestStatusException) GoString() string { return s.String() } -// SetDeletedBranch sets the DeletedBranch field's value. -func (s *DeleteBranchOutput) SetDeletedBranch(v *BranchInfo) *DeleteBranchOutput { - s.DeletedBranch = v - return s +func newErrorInvalidPullRequestStatusException(v protocol.ResponseMetadata) error { + return &InvalidPullRequestStatusException{ + respMetadata: v, + } } -type DeleteCommentContentInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidPullRequestStatusException) Code() string { + return "InvalidPullRequestStatusException" +} - // The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit - // or GetCommentsForPullRequest. - // - // CommentId is a required field - CommentId *string `locationName:"commentId" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidPullRequestStatusException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPullRequestStatusException) OrigErr() error { + return nil +} + +func (s InvalidPullRequestStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPullRequestStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPullRequestStatusException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pull request status update is not valid. The only valid update is from +// OPEN to CLOSED. +type InvalidPullRequestStatusUpdateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteCommentContentInput) String() string { +func (s InvalidPullRequestStatusUpdateException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteCommentContentInput) GoString() string { +func (s InvalidPullRequestStatusUpdateException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteCommentContentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteCommentContentInput"} - if s.CommentId == nil { - invalidParams.Add(request.NewErrParamRequired("CommentId")) +func newErrorInvalidPullRequestStatusUpdateException(v protocol.ResponseMetadata) error { + return &InvalidPullRequestStatusUpdateException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidPullRequestStatusUpdateException) Code() string { + return "InvalidPullRequestStatusUpdateException" +} + +// Message returns the exception's message. +func (s InvalidPullRequestStatusUpdateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPullRequestStatusUpdateException) OrigErr() error { return nil } -// SetCommentId sets the CommentId field's value. -func (s *DeleteCommentContentInput) SetCommentId(v string) *DeleteCommentContentInput { - s.CommentId = &v - return s +func (s InvalidPullRequestStatusUpdateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPullRequestStatusUpdateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPullRequestStatusUpdateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified reference name format is not valid. Reference names must conform +// to the Git references format (for example, refs/heads/master). For more information, +// see Git Internals - Git References (https://git-scm.com/book/en/v2/Git-Internals-Git-References) +// or consult your Git documentation. +type InvalidReferenceNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidReferenceNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidReferenceNameException) GoString() string { + return s.String() +} + +func newErrorInvalidReferenceNameException(v protocol.ResponseMetadata) error { + return &InvalidReferenceNameException{ + respMetadata: v, + } } -type DeleteCommentContentOutput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidReferenceNameException) Code() string { + return "InvalidReferenceNameException" +} - // Information about the comment you just deleted. - Comment *Comment `locationName:"comment" type:"structure"` +// Message returns the exception's message. +func (s InvalidReferenceNameException) Message() string { + return "" } -// String returns the string representation -func (s DeleteCommentContentOutput) String() string { - return awsutil.Prettify(s) +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidReferenceNameException) OrigErr() error { + return nil } -// GoString returns the string representation -func (s DeleteCommentContentOutput) GoString() string { - return s.String() +func (s InvalidReferenceNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetComment sets the Comment field's value. -func (s *DeleteCommentContentOutput) SetComment(v *Comment) *DeleteCommentContentOutput { - s.Comment = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidReferenceNameException) StatusCode() int { + return s.respMetadata.StatusCode } -// A file that is deleted as part of a commit. -type DeleteFileEntry struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidReferenceNameException) RequestID() string { + return s.respMetadata.RequestID +} - // The full path of the file to be deleted, including the name of the file. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` +// Either the enum is not in a valid format, or the specified file version enum +// is not valid in respect to the current file version. +type InvalidRelativeFileVersionEnumException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteFileEntry) String() string { +func (s InvalidRelativeFileVersionEnumException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteFileEntry) GoString() string { +func (s InvalidRelativeFileVersionEnumException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFileEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFileEntry"} - if s.FilePath == nil { - invalidParams.Add(request.NewErrParamRequired("FilePath")) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInvalidRelativeFileVersionEnumException(v protocol.ResponseMetadata) error { + return &InvalidRelativeFileVersionEnumException{ + respMetadata: v, } - return nil } -// SetFilePath sets the FilePath field's value. -func (s *DeleteFileEntry) SetFilePath(v string) *DeleteFileEntry { - s.FilePath = &v - return s +// Code returns the exception type name. +func (s InvalidRelativeFileVersionEnumException) Code() string { + return "InvalidRelativeFileVersionEnumException" } -type DeleteFileInput struct { - _ struct{} `type:"structure"` - - // The name of the branch where the commit that deletes the file is made. - // - // BranchName is a required field - BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` - - // The commit message you want to include as part of deleting the file. Commit - // messages are limited to 256 KB. If no message is specified, a default message - // is used. - CommitMessage *string `locationName:"commitMessage" type:"string"` - - // The email address for the commit that deletes the file. If no email address - // is specified, the email address is left blank. - Email *string `locationName:"email" type:"string"` +// Message returns the exception's message. +func (s InvalidRelativeFileVersionEnumException) Message() string { + return "" +} - // The fully qualified path to the file that to be deleted, including the full - // name and extension of that file. For example, /examples/file.md is a fully - // qualified path to a file named file.md in a folder named examples. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRelativeFileVersionEnumException) OrigErr() error { + return nil +} - // If a file is the only object in the folder or directory, specifies whether - // to delete the folder or directory that contains the file. By default, empty - // folders are deleted. This includes empty folders that are part of the directory - // structure. For example, if the path to a file is dir1/dir2/dir3/dir4, and - // dir2 and dir3 are empty, deleting the last file in dir4 also deletes the - // empty folders dir4, dir3, and dir2. - KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` +func (s InvalidRelativeFileVersionEnumException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the author of the commit that deletes the file. If no name is - // specified, the user's ARN is used as the author name and committer name. - Name *string `locationName:"name" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRelativeFileVersionEnumException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The ID of the commit that is the tip of the branch where you want to create - // the commit that deletes the file. This must be the HEAD commit for the branch. - // The commit that deletes the file is created from this commit ID. - // - // ParentCommitId is a required field - ParentCommitId *string `locationName:"parentCommitId" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRelativeFileVersionEnumException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the repository that contains the file to delete. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// Automerge was specified for resolving the conflict, but the replacement type +// is not valid or content is missing. +type InvalidReplacementContentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteFileInput) String() string { +func (s InvalidReplacementContentException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteFileInput) GoString() string { +func (s InvalidReplacementContentException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteFileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteFileInput"} - if s.BranchName == nil { - invalidParams.Add(request.NewErrParamRequired("BranchName")) - } - if s.BranchName != nil && len(*s.BranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) - } - if s.FilePath == nil { - invalidParams.Add(request.NewErrParamRequired("FilePath")) - } - if s.ParentCommitId == nil { - invalidParams.Add(request.NewErrParamRequired("ParentCommitId")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorInvalidReplacementContentException(v protocol.ResponseMetadata) error { + return &InvalidReplacementContentException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidReplacementContentException) Code() string { + return "InvalidReplacementContentException" +} + +// Message returns the exception's message. +func (s InvalidReplacementContentException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidReplacementContentException) OrigErr() error { return nil } -// SetBranchName sets the BranchName field's value. -func (s *DeleteFileInput) SetBranchName(v string) *DeleteFileInput { - s.BranchName = &v - return s +func (s InvalidReplacementContentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetCommitMessage sets the CommitMessage field's value. -func (s *DeleteFileInput) SetCommitMessage(v string) *DeleteFileInput { - s.CommitMessage = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidReplacementContentException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetEmail sets the Email field's value. -func (s *DeleteFileInput) SetEmail(v string) *DeleteFileInput { - s.Email = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidReplacementContentException) RequestID() string { + return s.respMetadata.RequestID } -// SetFilePath sets the FilePath field's value. -func (s *DeleteFileInput) SetFilePath(v string) *DeleteFileInput { - s.FilePath = &v - return s +// Automerge was specified for resolving the conflict, but the specified replacement +// type is not valid. +type InvalidReplacementTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. -func (s *DeleteFileInput) SetKeepEmptyFolders(v bool) *DeleteFileInput { - s.KeepEmptyFolders = &v - return s +// String returns the string representation +func (s InvalidReplacementTypeException) String() string { + return awsutil.Prettify(s) } -// SetName sets the Name field's value. -func (s *DeleteFileInput) SetName(v string) *DeleteFileInput { - s.Name = &v - return s +// GoString returns the string representation +func (s InvalidReplacementTypeException) GoString() string { + return s.String() } -// SetParentCommitId sets the ParentCommitId field's value. -func (s *DeleteFileInput) SetParentCommitId(v string) *DeleteFileInput { - s.ParentCommitId = &v - return s +func newErrorInvalidReplacementTypeException(v protocol.ResponseMetadata) error { + return &InvalidReplacementTypeException{ + respMetadata: v, + } } -// SetRepositoryName sets the RepositoryName field's value. -func (s *DeleteFileInput) SetRepositoryName(v string) *DeleteFileInput { - s.RepositoryName = &v - return s +// Code returns the exception type name. +func (s InvalidReplacementTypeException) Code() string { + return "InvalidReplacementTypeException" } -type DeleteFileOutput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidReplacementTypeException) Message() string { + return "" +} - // The blob ID removed from the tree as part of deleting the file. - // - // BlobId is a required field - BlobId *string `locationName:"blobId" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidReplacementTypeException) OrigErr() error { + return nil +} - // The full commit ID of the commit that contains the change that deletes the - // file. - // - // CommitId is a required field - CommitId *string `locationName:"commitId" type:"string" required:"true"` +func (s InvalidReplacementTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The fully qualified path to the file to be deleted, including the full name - // and extension of that file. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidReplacementTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The full SHA-1 pointer of the tree information for the commit that contains - // the delete file change. - // - // TreeId is a required field - TreeId *string `locationName:"treeId" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidReplacementTypeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified repository description is not valid. +type InvalidRepositoryDescriptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteFileOutput) String() string { +func (s InvalidRepositoryDescriptionException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteFileOutput) GoString() string { +func (s InvalidRepositoryDescriptionException) GoString() string { return s.String() } -// SetBlobId sets the BlobId field's value. -func (s *DeleteFileOutput) SetBlobId(v string) *DeleteFileOutput { - s.BlobId = &v - return s +func newErrorInvalidRepositoryDescriptionException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryDescriptionException{ + respMetadata: v, + } } -// SetCommitId sets the CommitId field's value. -func (s *DeleteFileOutput) SetCommitId(v string) *DeleteFileOutput { - s.CommitId = &v - return s +// Code returns the exception type name. +func (s InvalidRepositoryDescriptionException) Code() string { + return "InvalidRepositoryDescriptionException" } -// SetFilePath sets the FilePath field's value. -func (s *DeleteFileOutput) SetFilePath(v string) *DeleteFileOutput { - s.FilePath = &v - return s +// Message returns the exception's message. +func (s InvalidRepositoryDescriptionException) Message() string { + return "" } -// SetTreeId sets the TreeId field's value. -func (s *DeleteFileOutput) SetTreeId(v string) *DeleteFileOutput { - s.TreeId = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryDescriptionException) OrigErr() error { + return nil } -type DeletePullRequestApprovalRuleInput struct { - _ struct{} `type:"structure"` +func (s InvalidRepositoryDescriptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the approval rule you want to delete. - // - // ApprovalRuleName is a required field - ApprovalRuleName *string `locationName:"approvalRuleName" min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryDescriptionException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The system-generated ID of the pull request that contains the approval rule - // you want to delete. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryDescriptionException) RequestID() string { + return s.respMetadata.RequestID +} + +// A specified repository name is not valid. +// +// This exception occurs only when a specified repository name is not valid. +// Other exceptions occur when a required repository parameter is missing, or +// when a specified repository does not exist. +type InvalidRepositoryNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeletePullRequestApprovalRuleInput) String() string { +func (s InvalidRepositoryNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeletePullRequestApprovalRuleInput) GoString() string { +func (s InvalidRepositoryNameException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeletePullRequestApprovalRuleInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeletePullRequestApprovalRuleInput"} - if s.ApprovalRuleName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleName")) - } - if s.ApprovalRuleName != nil && len(*s.ApprovalRuleName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleName", 1)) - } - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInvalidRepositoryNameException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryNameException{ + respMetadata: v, } - return nil } -// SetApprovalRuleName sets the ApprovalRuleName field's value. -func (s *DeletePullRequestApprovalRuleInput) SetApprovalRuleName(v string) *DeletePullRequestApprovalRuleInput { - s.ApprovalRuleName = &v - return s +// Code returns the exception type name. +func (s InvalidRepositoryNameException) Code() string { + return "InvalidRepositoryNameException" } -// SetPullRequestId sets the PullRequestId field's value. -func (s *DeletePullRequestApprovalRuleInput) SetPullRequestId(v string) *DeletePullRequestApprovalRuleInput { - s.PullRequestId = &v - return s +// Message returns the exception's message. +func (s InvalidRepositoryNameException) Message() string { + return "" } -type DeletePullRequestApprovalRuleOutput struct { - _ struct{} `type:"structure"` - - // The ID of the deleted approval rule. - // - // If the approval rule was deleted in an earlier API call, the response is - // 200 OK without content. - // - // ApprovalRuleId is a required field - ApprovalRuleId *string `locationName:"approvalRuleId" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryNameException) OrigErr() error { + return nil } -// String returns the string representation -func (s DeletePullRequestApprovalRuleOutput) String() string { - return awsutil.Prettify(s) +func (s InvalidRepositoryNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// GoString returns the string representation -func (s DeletePullRequestApprovalRuleOutput) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryNameException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetApprovalRuleId sets the ApprovalRuleId field's value. -func (s *DeletePullRequestApprovalRuleOutput) SetApprovalRuleId(v string) *DeletePullRequestApprovalRuleOutput { - s.ApprovalRuleId = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryNameException) RequestID() string { + return s.respMetadata.RequestID } -// Represents the input of a delete repository operation. -type DeleteRepositoryInput struct { - _ struct{} `type:"structure"` - - // The name of the repository to delete. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// One or more branch names specified for the trigger is not valid. +type InvalidRepositoryTriggerBranchNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteRepositoryInput) String() string { +func (s InvalidRepositoryTriggerBranchNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteRepositoryInput) GoString() string { +func (s InvalidRepositoryTriggerBranchNameException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeleteRepositoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeleteRepositoryInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorInvalidRepositoryTriggerBranchNameException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryTriggerBranchNameException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidRepositoryTriggerBranchNameException) Code() string { + return "InvalidRepositoryTriggerBranchNameException" +} + +// Message returns the exception's message. +func (s InvalidRepositoryTriggerBranchNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryTriggerBranchNameException) OrigErr() error { return nil } -// SetRepositoryName sets the RepositoryName field's value. -func (s *DeleteRepositoryInput) SetRepositoryName(v string) *DeleteRepositoryInput { - s.RepositoryName = &v - return s +func (s InvalidRepositoryTriggerBranchNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the output of a delete repository operation. -type DeleteRepositoryOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryTriggerBranchNameException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The ID of the repository that was deleted. - RepositoryId *string `locationName:"repositoryId" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryTriggerBranchNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The custom data provided for the trigger is not valid. +type InvalidRepositoryTriggerCustomDataException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeleteRepositoryOutput) String() string { +func (s InvalidRepositoryTriggerCustomDataException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeleteRepositoryOutput) GoString() string { +func (s InvalidRepositoryTriggerCustomDataException) GoString() string { return s.String() } -// SetRepositoryId sets the RepositoryId field's value. -func (s *DeleteRepositoryOutput) SetRepositoryId(v string) *DeleteRepositoryOutput { - s.RepositoryId = &v - return s +func newErrorInvalidRepositoryTriggerCustomDataException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryTriggerCustomDataException{ + respMetadata: v, + } } -type DescribeMergeConflictsInput struct { - _ struct{} `type:"structure"` - - // The level of conflict detail to use. If unspecified, the default FILE_LEVEL - // is used, which returns a not-mergeable result if the same file has differences - // in both branches. If LINE_LEVEL is specified, a conflict is considered not - // mergeable if the same file in both branches has differences on the same line. - ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` - - // Specifies which branch to use when resolving conflicts, or whether to attempt - // automatically merging two versions of a file. The default is NONE, which - // requires any conflicts to be resolved manually before the merge operation - // is successful. - ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` - - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). - // - // DestinationCommitSpecifier is a required field - DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` +// Code returns the exception type name. +func (s InvalidRepositoryTriggerCustomDataException) Code() string { + return "InvalidRepositoryTriggerCustomDataException" +} - // The path of the target files used to describe the conflicts. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidRepositoryTriggerCustomDataException) Message() string { + return "" +} - // The maximum number of merge hunks to include in the output. - MaxMergeHunks *int64 `locationName:"maxMergeHunks" type:"integer"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryTriggerCustomDataException) OrigErr() error { + return nil +} - // The merge option or strategy you want to use to merge the code. - // - // MergeOption is a required field - MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"` +func (s InvalidRepositoryTriggerCustomDataException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryTriggerCustomDataException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The name of the repository where you want to get information about a merge - // conflict. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryTriggerCustomDataException) RequestID() string { + return s.respMetadata.RequestID +} - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). - // - // SourceCommitSpecifier is a required field - SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` +// The Amazon Resource Name (ARN) for the trigger is not valid for the specified +// destination. The most common reason for this error is that the ARN does not +// meet the requirements for the service type. +type InvalidRepositoryTriggerDestinationArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DescribeMergeConflictsInput) String() string { +func (s InvalidRepositoryTriggerDestinationArnException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeMergeConflictsInput) GoString() string { +func (s InvalidRepositoryTriggerDestinationArnException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribeMergeConflictsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribeMergeConflictsInput"} - if s.DestinationCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) - } - if s.FilePath == nil { - invalidParams.Add(request.NewErrParamRequired("FilePath")) - } - if s.MergeOption == nil { - invalidParams.Add(request.NewErrParamRequired("MergeOption")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.SourceCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) +func newErrorInvalidRepositoryTriggerDestinationArnException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryTriggerDestinationArnException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidRepositoryTriggerDestinationArnException) Code() string { + return "InvalidRepositoryTriggerDestinationArnException" } -// SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *DescribeMergeConflictsInput) SetConflictDetailLevel(v string) *DescribeMergeConflictsInput { - s.ConflictDetailLevel = &v - return s +// Message returns the exception's message. +func (s InvalidRepositoryTriggerDestinationArnException) Message() string { + return "" } -// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *DescribeMergeConflictsInput) SetConflictResolutionStrategy(v string) *DescribeMergeConflictsInput { - s.ConflictResolutionStrategy = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryTriggerDestinationArnException) OrigErr() error { + return nil } -// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *DescribeMergeConflictsInput) SetDestinationCommitSpecifier(v string) *DescribeMergeConflictsInput { - s.DestinationCommitSpecifier = &v - return s +func (s InvalidRepositoryTriggerDestinationArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetFilePath sets the FilePath field's value. -func (s *DescribeMergeConflictsInput) SetFilePath(v string) *DescribeMergeConflictsInput { - s.FilePath = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryTriggerDestinationArnException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetMaxMergeHunks sets the MaxMergeHunks field's value. -func (s *DescribeMergeConflictsInput) SetMaxMergeHunks(v int64) *DescribeMergeConflictsInput { - s.MaxMergeHunks = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryTriggerDestinationArnException) RequestID() string { + return s.respMetadata.RequestID } -// SetMergeOption sets the MergeOption field's value. -func (s *DescribeMergeConflictsInput) SetMergeOption(v string) *DescribeMergeConflictsInput { - s.MergeOption = &v - return s +// One or more events specified for the trigger is not valid. Check to make +// sure that all events specified match the requirements for allowed events. +type InvalidRepositoryTriggerEventsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetNextToken sets the NextToken field's value. -func (s *DescribeMergeConflictsInput) SetNextToken(v string) *DescribeMergeConflictsInput { - s.NextToken = &v - return s +// String returns the string representation +func (s InvalidRepositoryTriggerEventsException) String() string { + return awsutil.Prettify(s) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *DescribeMergeConflictsInput) SetRepositoryName(v string) *DescribeMergeConflictsInput { - s.RepositoryName = &v - return s +// GoString returns the string representation +func (s InvalidRepositoryTriggerEventsException) GoString() string { + return s.String() } -// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *DescribeMergeConflictsInput) SetSourceCommitSpecifier(v string) *DescribeMergeConflictsInput { - s.SourceCommitSpecifier = &v - return s +func newErrorInvalidRepositoryTriggerEventsException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryTriggerEventsException{ + respMetadata: v, + } } -type DescribeMergeConflictsOutput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidRepositoryTriggerEventsException) Code() string { + return "InvalidRepositoryTriggerEventsException" +} - // The commit ID of the merge base. - BaseCommitId *string `locationName:"baseCommitId" type:"string"` +// Message returns the exception's message. +func (s InvalidRepositoryTriggerEventsException) Message() string { + return "" +} - // Contains metadata about the conflicts found in the merge. - // - // ConflictMetadata is a required field - ConflictMetadata *ConflictMetadata `locationName:"conflictMetadata" type:"structure" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryTriggerEventsException) OrigErr() error { + return nil +} - // The commit ID of the destination commit specifier that was used in the merge - // evaluation. - // - // DestinationCommitId is a required field - DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"` +func (s InvalidRepositoryTriggerEventsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A list of merge hunks of the differences between the files or lines. - // - // MergeHunks is a required field - MergeHunks []*MergeHunk `locationName:"mergeHunks" type:"list" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryTriggerEventsException) StatusCode() int { + return s.respMetadata.StatusCode +} - // An enumeration token that can be used in a request to return the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryTriggerEventsException) RequestID() string { + return s.respMetadata.RequestID +} - // The commit ID of the source commit specifier that was used in the merge evaluation. - // - // SourceCommitId is a required field - SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"` +// The name of the trigger is not valid. +type InvalidRepositoryTriggerNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DescribeMergeConflictsOutput) String() string { +func (s InvalidRepositoryTriggerNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribeMergeConflictsOutput) GoString() string { +func (s InvalidRepositoryTriggerNameException) GoString() string { return s.String() } -// SetBaseCommitId sets the BaseCommitId field's value. -func (s *DescribeMergeConflictsOutput) SetBaseCommitId(v string) *DescribeMergeConflictsOutput { - s.BaseCommitId = &v - return s +func newErrorInvalidRepositoryTriggerNameException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryTriggerNameException{ + respMetadata: v, + } } -// SetConflictMetadata sets the ConflictMetadata field's value. -func (s *DescribeMergeConflictsOutput) SetConflictMetadata(v *ConflictMetadata) *DescribeMergeConflictsOutput { - s.ConflictMetadata = v - return s +// Code returns the exception type name. +func (s InvalidRepositoryTriggerNameException) Code() string { + return "InvalidRepositoryTriggerNameException" } -// SetDestinationCommitId sets the DestinationCommitId field's value. -func (s *DescribeMergeConflictsOutput) SetDestinationCommitId(v string) *DescribeMergeConflictsOutput { - s.DestinationCommitId = &v - return s +// Message returns the exception's message. +func (s InvalidRepositoryTriggerNameException) Message() string { + return "" } -// SetMergeHunks sets the MergeHunks field's value. -func (s *DescribeMergeConflictsOutput) SetMergeHunks(v []*MergeHunk) *DescribeMergeConflictsOutput { - s.MergeHunks = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryTriggerNameException) OrigErr() error { + return nil } -// SetNextToken sets the NextToken field's value. -func (s *DescribeMergeConflictsOutput) SetNextToken(v string) *DescribeMergeConflictsOutput { - s.NextToken = &v - return s +func (s InvalidRepositoryTriggerNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSourceCommitId sets the SourceCommitId field's value. -func (s *DescribeMergeConflictsOutput) SetSourceCommitId(v string) *DescribeMergeConflictsOutput { - s.SourceCommitId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryTriggerNameException) StatusCode() int { + return s.respMetadata.StatusCode } -type DescribePullRequestEventsInput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryTriggerNameException) RequestID() string { + return s.respMetadata.RequestID +} - // The Amazon Resource Name (ARN) of the user whose actions resulted in the - // event. Examples include updating the pull request with more commits or changing - // the status of a pull request. - ActorArn *string `locationName:"actorArn" type:"string"` +// The AWS Region for the trigger target does not match the AWS Region for the +// repository. Triggers must be created in the same Region as the target for +// the trigger. +type InvalidRepositoryTriggerRegionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidRepositoryTriggerRegionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRepositoryTriggerRegionException) GoString() string { + return s.String() +} + +func newErrorInvalidRepositoryTriggerRegionException(v protocol.ResponseMetadata) error { + return &InvalidRepositoryTriggerRegionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRepositoryTriggerRegionException) Code() string { + return "InvalidRepositoryTriggerRegionException" +} + +// Message returns the exception's message. +func (s InvalidRepositoryTriggerRegionException) Message() string { + return "" +} - // A non-zero, non-negative integer used to limit the number of returned results. - // The default is 100 events, which is also the maximum number of events that - // can be returned in a result. - MaxResults *int64 `locationName:"maxResults" type:"integer"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRepositoryTriggerRegionException) OrigErr() error { + return nil +} - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +func (s InvalidRepositoryTriggerRegionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Optional. The pull request event type about which you want to return information. - PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRepositoryTriggerRegionException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The system-generated ID of the pull request. To get this ID, use ListPullRequests. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRepositoryTriggerRegionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The value for the resource ARN is not valid. For more information about resources +// in AWS CodeCommit, see CodeCommit Resources and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) +// in the AWS CodeCommit User Guide. +type InvalidResourceArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DescribePullRequestEventsInput) String() string { +func (s InvalidResourceArnException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribePullRequestEventsInput) GoString() string { +func (s InvalidResourceArnException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DescribePullRequestEventsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DescribePullRequestEventsInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInvalidResourceArnException(v protocol.ResponseMetadata) error { + return &InvalidResourceArnException{ + respMetadata: v, } - return nil } -// SetActorArn sets the ActorArn field's value. -func (s *DescribePullRequestEventsInput) SetActorArn(v string) *DescribePullRequestEventsInput { - s.ActorArn = &v - return s +// Code returns the exception type name. +func (s InvalidResourceArnException) Code() string { + return "InvalidResourceArnException" } -// SetMaxResults sets the MaxResults field's value. -func (s *DescribePullRequestEventsInput) SetMaxResults(v int64) *DescribePullRequestEventsInput { - s.MaxResults = &v - return s +// Message returns the exception's message. +func (s InvalidResourceArnException) Message() string { + return "" } -// SetNextToken sets the NextToken field's value. -func (s *DescribePullRequestEventsInput) SetNextToken(v string) *DescribePullRequestEventsInput { - s.NextToken = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceArnException) OrigErr() error { + return nil } -// SetPullRequestEventType sets the PullRequestEventType field's value. -func (s *DescribePullRequestEventsInput) SetPullRequestEventType(v string) *DescribePullRequestEventsInput { - s.PullRequestEventType = &v - return s +func (s InvalidResourceArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetPullRequestId sets the PullRequestId field's value. -func (s *DescribePullRequestEventsInput) SetPullRequestId(v string) *DescribePullRequestEventsInput { - s.PullRequestId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceArnException) StatusCode() int { + return s.respMetadata.StatusCode } -type DescribePullRequestEventsOutput struct { - _ struct{} `type:"structure"` - - // An enumeration token that can be used in a request to return the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceArnException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about the pull request events. - // - // PullRequestEvents is a required field - PullRequestEvents []*PullRequestEvent `locationName:"pullRequestEvents" type:"list" required:"true"` +// The revision ID is not valid. Use GetPullRequest to determine the value. +type InvalidRevisionIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DescribePullRequestEventsOutput) String() string { +func (s InvalidRevisionIdException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DescribePullRequestEventsOutput) GoString() string { +func (s InvalidRevisionIdException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *DescribePullRequestEventsOutput) SetNextToken(v string) *DescribePullRequestEventsOutput { - s.NextToken = &v - return s +func newErrorInvalidRevisionIdException(v protocol.ResponseMetadata) error { + return &InvalidRevisionIdException{ + respMetadata: v, + } } -// SetPullRequestEvents sets the PullRequestEvents field's value. -func (s *DescribePullRequestEventsOutput) SetPullRequestEvents(v []*PullRequestEvent) *DescribePullRequestEventsOutput { - s.PullRequestEvents = v - return s +// Code returns the exception type name. +func (s InvalidRevisionIdException) Code() string { + return "InvalidRevisionIdException" } -// Returns information about a set of differences for a commit specifier. -type Difference struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidRevisionIdException) Message() string { + return "" +} - // Information about an afterBlob data type object, including the ID, the file - // mode permission code, and the path. - AfterBlob *BlobMetadata `locationName:"afterBlob" type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRevisionIdException) OrigErr() error { + return nil +} - // Information about a beforeBlob data type object, including the ID, the file - // mode permission code, and the path. - BeforeBlob *BlobMetadata `locationName:"beforeBlob" type:"structure"` +func (s InvalidRevisionIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Whether the change type of the difference is an addition (A), deletion (D), - // or modification (M). - ChangeType *string `locationName:"changeType" type:"string" enum:"ChangeTypeEnum"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRevisionIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRevisionIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The SHA-256 hash signature for the rule content is not valid. +type InvalidRuleContentSha256Exception struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Difference) String() string { +func (s InvalidRuleContentSha256Exception) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Difference) GoString() string { +func (s InvalidRuleContentSha256Exception) GoString() string { return s.String() } -// SetAfterBlob sets the AfterBlob field's value. -func (s *Difference) SetAfterBlob(v *BlobMetadata) *Difference { - s.AfterBlob = v - return s +func newErrorInvalidRuleContentSha256Exception(v protocol.ResponseMetadata) error { + return &InvalidRuleContentSha256Exception{ + respMetadata: v, + } } -// SetBeforeBlob sets the BeforeBlob field's value. -func (s *Difference) SetBeforeBlob(v *BlobMetadata) *Difference { - s.BeforeBlob = v - return s +// Code returns the exception type name. +func (s InvalidRuleContentSha256Exception) Code() string { + return "InvalidRuleContentSha256Exception" } -// SetChangeType sets the ChangeType field's value. -func (s *Difference) SetChangeType(v string) *Difference { - s.ChangeType = &v - return s +// Message returns the exception's message. +func (s InvalidRuleContentSha256Exception) Message() string { + return "" } -type DisassociateApprovalRuleTemplateFromRepositoryInput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRuleContentSha256Exception) OrigErr() error { + return nil +} - // The name of the approval rule template to disassociate from a specified repository. - // - // ApprovalRuleTemplateName is a required field - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` +func (s InvalidRuleContentSha256Exception) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the repository you want to disassociate from the template. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRuleContentSha256Exception) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRuleContentSha256Exception) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified sort by value is not valid. +type InvalidSortByException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DisassociateApprovalRuleTemplateFromRepositoryInput) String() string { +func (s InvalidSortByException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateApprovalRuleTemplateFromRepositoryInput) GoString() string { +func (s InvalidSortByException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DisassociateApprovalRuleTemplateFromRepositoryInput"} - if s.ApprovalRuleTemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) - } - if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorInvalidSortByException(v protocol.ResponseMetadata) error { + return &InvalidSortByException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidSortByException) Code() string { + return "InvalidSortByException" +} + +// Message returns the exception's message. +func (s InvalidSortByException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSortByException) OrigErr() error { return nil } -// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. -func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetApprovalRuleTemplateName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput { - s.ApprovalRuleTemplateName = &v - return s +func (s InvalidSortByException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *DisassociateApprovalRuleTemplateFromRepositoryInput) SetRepositoryName(v string) *DisassociateApprovalRuleTemplateFromRepositoryInput { - s.RepositoryName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSortByException) StatusCode() int { + return s.respMetadata.StatusCode } -type DisassociateApprovalRuleTemplateFromRepositoryOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidSortByException) RequestID() string { + return s.respMetadata.RequestID +} + +// The source commit specifier is not valid. You must provide a valid branch +// name, tag, or full commit ID. +type InvalidSourceCommitSpecifierException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) String() string { +func (s InvalidSourceCommitSpecifierException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DisassociateApprovalRuleTemplateFromRepositoryOutput) GoString() string { +func (s InvalidSourceCommitSpecifierException) GoString() string { return s.String() } -type EvaluatePullRequestApprovalRulesInput struct { - _ struct{} `type:"structure"` +func newErrorInvalidSourceCommitSpecifierException(v protocol.ResponseMetadata) error { + return &InvalidSourceCommitSpecifierException{ + respMetadata: v, + } +} - // The system-generated ID of the pull request you want to evaluate. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +// Code returns the exception type name. +func (s InvalidSourceCommitSpecifierException) Code() string { + return "InvalidSourceCommitSpecifierException" +} - // The system-generated ID for the pull request revision. To retrieve the most - // recent revision ID for a pull request, use GetPullRequest. - // - // RevisionId is a required field - RevisionId *string `locationName:"revisionId" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidSourceCommitSpecifierException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSourceCommitSpecifierException) OrigErr() error { + return nil +} + +func (s InvalidSourceCommitSpecifierException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSourceCommitSpecifierException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSourceCommitSpecifierException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified tag is not valid. Key names cannot be prefixed with aws:. +type InvalidSystemTagUsageException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s EvaluatePullRequestApprovalRulesInput) String() string { +func (s InvalidSystemTagUsageException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EvaluatePullRequestApprovalRulesInput) GoString() string { +func (s InvalidSystemTagUsageException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *EvaluatePullRequestApprovalRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "EvaluatePullRequestApprovalRulesInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - if s.RevisionId == nil { - invalidParams.Add(request.NewErrParamRequired("RevisionId")) +func newErrorInvalidSystemTagUsageException(v protocol.ResponseMetadata) error { + return &InvalidSystemTagUsageException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidSystemTagUsageException) Code() string { + return "InvalidSystemTagUsageException" +} + +// Message returns the exception's message. +func (s InvalidSystemTagUsageException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSystemTagUsageException) OrigErr() error { return nil } -// SetPullRequestId sets the PullRequestId field's value. -func (s *EvaluatePullRequestApprovalRulesInput) SetPullRequestId(v string) *EvaluatePullRequestApprovalRulesInput { - s.PullRequestId = &v - return s +func (s InvalidSystemTagUsageException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRevisionId sets the RevisionId field's value. -func (s *EvaluatePullRequestApprovalRulesInput) SetRevisionId(v string) *EvaluatePullRequestApprovalRulesInput { - s.RevisionId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSystemTagUsageException) StatusCode() int { + return s.respMetadata.StatusCode } -type EvaluatePullRequestApprovalRulesOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidSystemTagUsageException) RequestID() string { + return s.respMetadata.RequestID +} - // The result of the evaluation, including the names of the rules whose conditions - // have been met (if any), the names of the rules whose conditions have not - // been met (if any), whether the pull request is in the approved state, and - // whether the pull request approval rule has been set aside by an override. - // - // Evaluation is a required field - Evaluation *Evaluation `locationName:"evaluation" type:"structure" required:"true"` +// The list of tags is not valid. +type InvalidTagKeysListException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s EvaluatePullRequestApprovalRulesOutput) String() string { +func (s InvalidTagKeysListException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EvaluatePullRequestApprovalRulesOutput) GoString() string { +func (s InvalidTagKeysListException) GoString() string { return s.String() } -// SetEvaluation sets the Evaluation field's value. -func (s *EvaluatePullRequestApprovalRulesOutput) SetEvaluation(v *Evaluation) *EvaluatePullRequestApprovalRulesOutput { - s.Evaluation = v - return s +func newErrorInvalidTagKeysListException(v protocol.ResponseMetadata) error { + return &InvalidTagKeysListException{ + respMetadata: v, + } } -// Returns information about the approval rules applied to a pull request and -// whether conditions have been met. -type Evaluation struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidTagKeysListException) Code() string { + return "InvalidTagKeysListException" +} - // The names of the approval rules that have not had their conditions met. - ApprovalRulesNotSatisfied []*string `locationName:"approvalRulesNotSatisfied" type:"list"` +// Message returns the exception's message. +func (s InvalidTagKeysListException) Message() string { + return "" +} - // The names of the approval rules that have had their conditions met. - ApprovalRulesSatisfied []*string `locationName:"approvalRulesSatisfied" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagKeysListException) OrigErr() error { + return nil +} - // Whether the state of the pull request is approved. - Approved *bool `locationName:"approved" type:"boolean"` +func (s InvalidTagKeysListException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Whether the approval rule requirements for the pull request have been overridden - // and no longer need to be met. - Overridden *bool `locationName:"overridden" type:"boolean"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagKeysListException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagKeysListException) RequestID() string { + return s.respMetadata.RequestID +} + +// The map of tags is not valid. +type InvalidTagsMapException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Evaluation) String() string { +func (s InvalidTagsMapException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Evaluation) GoString() string { +func (s InvalidTagsMapException) GoString() string { return s.String() } -// SetApprovalRulesNotSatisfied sets the ApprovalRulesNotSatisfied field's value. -func (s *Evaluation) SetApprovalRulesNotSatisfied(v []*string) *Evaluation { - s.ApprovalRulesNotSatisfied = v - return s +func newErrorInvalidTagsMapException(v protocol.ResponseMetadata) error { + return &InvalidTagsMapException{ + respMetadata: v, + } } -// SetApprovalRulesSatisfied sets the ApprovalRulesSatisfied field's value. -func (s *Evaluation) SetApprovalRulesSatisfied(v []*string) *Evaluation { - s.ApprovalRulesSatisfied = v - return s +// Code returns the exception type name. +func (s InvalidTagsMapException) Code() string { + return "InvalidTagsMapException" } -// SetApproved sets the Approved field's value. -func (s *Evaluation) SetApproved(v bool) *Evaluation { - s.Approved = &v - return s +// Message returns the exception's message. +func (s InvalidTagsMapException) Message() string { + return "" } -// SetOverridden sets the Overridden field's value. -func (s *Evaluation) SetOverridden(v bool) *Evaluation { - s.Overridden = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagsMapException) OrigErr() error { + return nil } -// Returns information about a file in a repository. -type File struct { - _ struct{} `type:"structure"` - - // The fully qualified path to the file in the repository. - AbsolutePath *string `locationName:"absolutePath" type:"string"` +func (s InvalidTagsMapException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The blob ID that contains the file information. - BlobId *string `locationName:"blobId" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagsMapException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The extrapolated file mode permissions for the file. Valid values include - // EXECUTABLE and NORMAL. - FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTagsMapException) RequestID() string { + return s.respMetadata.RequestID +} - // The relative path of the file from the folder where the query originated. - RelativePath *string `locationName:"relativePath" type:"string"` +// The specified target branch is not valid. +type InvalidTargetBranchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s File) String() string { +func (s InvalidTargetBranchException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s File) GoString() string { +func (s InvalidTargetBranchException) GoString() string { return s.String() } -// SetAbsolutePath sets the AbsolutePath field's value. -func (s *File) SetAbsolutePath(v string) *File { - s.AbsolutePath = &v - return s +func newErrorInvalidTargetBranchException(v protocol.ResponseMetadata) error { + return &InvalidTargetBranchException{ + respMetadata: v, + } } -// SetBlobId sets the BlobId field's value. -func (s *File) SetBlobId(v string) *File { - s.BlobId = &v - return s +// Code returns the exception type name. +func (s InvalidTargetBranchException) Code() string { + return "InvalidTargetBranchException" } -// SetFileMode sets the FileMode field's value. -func (s *File) SetFileMode(v string) *File { - s.FileMode = &v - return s +// Message returns the exception's message. +func (s InvalidTargetBranchException) Message() string { + return "" } -// SetRelativePath sets the RelativePath field's value. -func (s *File) SetRelativePath(v string) *File { - s.RelativePath = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTargetBranchException) OrigErr() error { + return nil } -// A file to be added, updated, or deleted as part of a commit. -type FileMetadata struct { - _ struct{} `type:"structure"` +func (s InvalidTargetBranchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The full path to the file to be added or updated, including the name of the - // file. - AbsolutePath *string `locationName:"absolutePath" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTargetBranchException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The blob ID that contains the file information. - BlobId *string `locationName:"blobId" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTargetBranchException) RequestID() string { + return s.respMetadata.RequestID +} - // The extrapolated file mode permissions for the file. Valid values include - // EXECUTABLE and NORMAL. - FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` +// The target for the pull request is not valid. A target must contain the full +// values for the repository name, source branch, and destination branch for +// the pull request. +type InvalidTargetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s FileMetadata) String() string { +func (s InvalidTargetException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FileMetadata) GoString() string { +func (s InvalidTargetException) GoString() string { return s.String() } -// SetAbsolutePath sets the AbsolutePath field's value. -func (s *FileMetadata) SetAbsolutePath(v string) *FileMetadata { - s.AbsolutePath = &v - return s +func newErrorInvalidTargetException(v protocol.ResponseMetadata) error { + return &InvalidTargetException{ + respMetadata: v, + } } -// SetBlobId sets the BlobId field's value. -func (s *FileMetadata) SetBlobId(v string) *FileMetadata { - s.BlobId = &v - return s +// Code returns the exception type name. +func (s InvalidTargetException) Code() string { + return "InvalidTargetException" } -// SetFileMode sets the FileMode field's value. -func (s *FileMetadata) SetFileMode(v string) *FileMetadata { - s.FileMode = &v - return s +// Message returns the exception's message. +func (s InvalidTargetException) Message() string { + return "" } -// Information about file modes in a merge or pull request. -type FileModes struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTargetException) OrigErr() error { + return nil +} - // The file mode of a file in the base of a merge or pull request. - Base *string `locationName:"base" type:"string" enum:"FileModeTypeEnum"` +func (s InvalidTargetException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The file mode of a file in the destination of a merge or pull request. - Destination *string `locationName:"destination" type:"string" enum:"FileModeTypeEnum"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTargetException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The file mode of a file in the source of a merge or pull request. - Source *string `locationName:"source" type:"string" enum:"FileModeTypeEnum"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTargetException) RequestID() string { + return s.respMetadata.RequestID +} + +// The targets for the pull request is not valid or not in a valid format. Targets +// are a list of target objects. Each target object must contain the full values +// for the repository name, source branch, and destination branch for a pull +// request. +type InvalidTargetsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s FileModes) String() string { +func (s InvalidTargetsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FileModes) GoString() string { +func (s InvalidTargetsException) GoString() string { return s.String() } -// SetBase sets the Base field's value. -func (s *FileModes) SetBase(v string) *FileModes { - s.Base = &v - return s +func newErrorInvalidTargetsException(v protocol.ResponseMetadata) error { + return &InvalidTargetsException{ + respMetadata: v, + } } -// SetDestination sets the Destination field's value. -func (s *FileModes) SetDestination(v string) *FileModes { - s.Destination = &v - return s +// Code returns the exception type name. +func (s InvalidTargetsException) Code() string { + return "InvalidTargetsException" } -// SetSource sets the Source field's value. -func (s *FileModes) SetSource(v string) *FileModes { - s.Source = &v - return s +// Message returns the exception's message. +func (s InvalidTargetsException) Message() string { + return "" } -// Information about the size of files in a merge or pull request. -type FileSizes struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTargetsException) OrigErr() error { + return nil +} - // The size of a file in the base of a merge or pull request. - Base *int64 `locationName:"base" type:"long"` +func (s InvalidTargetsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The size of a file in the destination of a merge or pull request. - Destination *int64 `locationName:"destination" type:"long"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTargetsException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The size of a file in the source of a merge or pull request. - Source *int64 `locationName:"source" type:"long"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTargetsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The title of the pull request is not valid. Pull request titles cannot exceed +// 100 characters in length. +type InvalidTitleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s FileSizes) String() string { +func (s InvalidTitleException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s FileSizes) GoString() string { +func (s InvalidTitleException) GoString() string { return s.String() } -// SetBase sets the Base field's value. -func (s *FileSizes) SetBase(v int64) *FileSizes { - s.Base = &v - return s +func newErrorInvalidTitleException(v protocol.ResponseMetadata) error { + return &InvalidTitleException{ + respMetadata: v, + } } -// SetDestination sets the Destination field's value. -func (s *FileSizes) SetDestination(v int64) *FileSizes { - s.Destination = &v - return s +// Code returns the exception type name. +func (s InvalidTitleException) Code() string { + return "InvalidTitleException" } -// SetSource sets the Source field's value. -func (s *FileSizes) SetSource(v int64) *FileSizes { - s.Source = &v - return s +// Message returns the exception's message. +func (s InvalidTitleException) Message() string { + return "" } -// Returns information about a folder in a repository. -type Folder struct { +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTitleException) OrigErr() error { + return nil +} + +func (s InvalidTitleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTitleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTitleException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about whether a file is binary or textual in a merge or pull +// request operation. +type IsBinaryFile struct { _ struct{} `type:"structure"` - // The fully qualified path of the folder in the repository. - AbsolutePath *string `locationName:"absolutePath" type:"string"` + // The binary or non-binary status of a file in the base of a merge or pull + // request. + Base *bool `locationName:"base" type:"boolean"` - // The relative path of the specified folder from the folder where the query - // originated. - RelativePath *string `locationName:"relativePath" type:"string"` + // The binary or non-binary status of a file in the destination of a merge or + // pull request. + Destination *bool `locationName:"destination" type:"boolean"` - // The full SHA-1 pointer of the tree information for the commit that contains - // the folder. - TreeId *string `locationName:"treeId" type:"string"` + // The binary or non-binary status of file in the source of a merge or pull + // request. + Source *bool `locationName:"source" type:"boolean"` } // String returns the string representation -func (s Folder) String() string { +func (s IsBinaryFile) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Folder) GoString() string { +func (s IsBinaryFile) GoString() string { return s.String() } -// SetAbsolutePath sets the AbsolutePath field's value. -func (s *Folder) SetAbsolutePath(v string) *Folder { - s.AbsolutePath = &v +// SetBase sets the Base field's value. +func (s *IsBinaryFile) SetBase(v bool) *IsBinaryFile { + s.Base = &v return s } -// SetRelativePath sets the RelativePath field's value. -func (s *Folder) SetRelativePath(v string) *Folder { - s.RelativePath = &v +// SetDestination sets the Destination field's value. +func (s *IsBinaryFile) SetDestination(v bool) *IsBinaryFile { + s.Destination = &v return s } -// SetTreeId sets the TreeId field's value. -func (s *Folder) SetTreeId(v string) *Folder { - s.TreeId = &v +// SetSource sets the Source field's value. +func (s *IsBinaryFile) SetSource(v bool) *IsBinaryFile { + s.Source = &v return s } -type GetApprovalRuleTemplateInput struct { +type ListApprovalRuleTemplatesInput struct { _ struct{} `type:"structure"` - // The name of the approval rule template for which you want to get information. - // - // ApprovalRuleTemplateName is a required field - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` + // A non-zero, non-negative integer used to limit the number of returned results. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s GetApprovalRuleTemplateInput) String() string { +func (s ListApprovalRuleTemplatesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApprovalRuleTemplateInput) GoString() string { +func (s ListApprovalRuleTemplatesInput) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetApprovalRuleTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetApprovalRuleTemplateInput"} - if s.ApprovalRuleTemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) - } - if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetMaxResults sets the MaxResults field's value. +func (s *ListApprovalRuleTemplatesInput) SetMaxResults(v int64) *ListApprovalRuleTemplatesInput { + s.MaxResults = &v + return s } -// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. -func (s *GetApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *GetApprovalRuleTemplateInput { - s.ApprovalRuleTemplateName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListApprovalRuleTemplatesInput) SetNextToken(v string) *ListApprovalRuleTemplatesInput { + s.NextToken = &v return s } -type GetApprovalRuleTemplateOutput struct { +type ListApprovalRuleTemplatesOutput struct { _ struct{} `type:"structure"` - // The content and structure of the approval rule template. - // - // ApprovalRuleTemplate is a required field - ApprovalRuleTemplate *ApprovalRuleTemplate `locationName:"approvalRuleTemplate" type:"structure" required:"true"` + // The names of all the approval rule templates found in the AWS Region for + // your AWS account. + ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"` + + // An enumeration token that allows the operation to batch the next results + // of the operation. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s GetApprovalRuleTemplateOutput) String() string { +func (s ListApprovalRuleTemplatesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApprovalRuleTemplateOutput) GoString() string { +func (s ListApprovalRuleTemplatesOutput) GoString() string { return s.String() } -// SetApprovalRuleTemplate sets the ApprovalRuleTemplate field's value. -func (s *GetApprovalRuleTemplateOutput) SetApprovalRuleTemplate(v *ApprovalRuleTemplate) *GetApprovalRuleTemplateOutput { - s.ApprovalRuleTemplate = v +// SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value. +func (s *ListApprovalRuleTemplatesOutput) SetApprovalRuleTemplateNames(v []*string) *ListApprovalRuleTemplatesOutput { + s.ApprovalRuleTemplateNames = v return s } -// Represents the input of a get blob operation. -type GetBlobInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListApprovalRuleTemplatesOutput) SetNextToken(v string) *ListApprovalRuleTemplatesOutput { + s.NextToken = &v + return s +} + +type ListAssociatedApprovalRuleTemplatesForRepositoryInput struct { _ struct{} `type:"structure"` - // The ID of the blob, which is its SHA-1 pointer. - // - // BlobId is a required field - BlobId *string `locationName:"blobId" type:"string" required:"true"` + // A non-zero, non-negative integer used to limit the number of returned results. + MaxResults *int64 `locationName:"maxResults" type:"integer"` - // The name of the repository that contains the blob. + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // The name of the repository for which you want to list all associated approval + // rule templates. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GetBlobInput) String() string { +func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBlobInput) GoString() string { +func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetBlobInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBlobInput"} - if s.BlobId == nil { - invalidParams.Add(request.NewErrParamRequired("BlobId")) - } +func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAssociatedApprovalRuleTemplatesForRepositoryInput"} if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) } @@ -14656,73 +22664,85 @@ func (s *GetBlobInput) Validate() error { return nil } -// SetBlobId sets the BlobId field's value. -func (s *GetBlobInput) SetBlobId(v string) *GetBlobInput { - s.BlobId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetMaxResults(v int64) *ListAssociatedApprovalRuleTemplatesForRepositoryInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput { + s.NextToken = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *GetBlobInput) SetRepositoryName(v string) *GetBlobInput { +func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetRepositoryName(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput { s.RepositoryName = &v return s } -// Represents the output of a get blob operation. -type GetBlobOutput struct { +type ListAssociatedApprovalRuleTemplatesForRepositoryOutput struct { _ struct{} `type:"structure"` - // The content of the blob, usually a file. - // - // Content is automatically base64 encoded/decoded by the SDK. - // - // Content is a required field - Content []byte `locationName:"content" type:"blob" required:"true"` + // The names of all approval rule templates associated with the repository. + ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"` + + // An enumeration token that allows the operation to batch the next results + // of the operation. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s GetBlobOutput) String() string { +func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBlobOutput) GoString() string { +func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) GoString() string { return s.String() } -// SetContent sets the Content field's value. -func (s *GetBlobOutput) SetContent(v []byte) *GetBlobOutput { - s.Content = v +// SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value. +func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetApprovalRuleTemplateNames(v []*string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput { + s.ApprovalRuleTemplateNames = v return s } -// Represents the input of a get branch operation. -type GetBranchInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput { + s.NextToken = &v + return s +} + +// Represents the input of a list branches operation. +type ListBranchesInput struct { _ struct{} `type:"structure"` - // The name of the branch for which you want to retrieve information. - BranchName *string `locationName:"branchName" min:"1" type:"string"` + // An enumeration token that allows the operation to batch the results. + NextToken *string `locationName:"nextToken" type:"string"` - // The name of the repository that contains the branch for which you want to - // retrieve information. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + // The name of the repository that contains the branches. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GetBranchInput) String() string { +func (s ListBranchesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBranchInput) GoString() string { +func (s ListBranchesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetBranchInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetBranchInput"} - if s.BranchName != nil && len(*s.BranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) +func (s *ListBranchesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) } if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) @@ -14734,67 +22754,94 @@ func (s *GetBranchInput) Validate() error { return nil } -// SetBranchName sets the BranchName field's value. -func (s *GetBranchInput) SetBranchName(v string) *GetBranchInput { - s.BranchName = &v +// SetNextToken sets the NextToken field's value. +func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput { + s.NextToken = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *GetBranchInput) SetRepositoryName(v string) *GetBranchInput { +func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput { s.RepositoryName = &v return s } -// Represents the output of a get branch operation. -type GetBranchOutput struct { +// Represents the output of a list branches operation. +type ListBranchesOutput struct { _ struct{} `type:"structure"` - // The name of the branch. - Branch *BranchInfo `locationName:"branch" type:"structure"` + // The list of branch names. + Branches []*string `locationName:"branches" type:"list"` + + // An enumeration token that returns the batch of the results. + NextToken *string `locationName:"nextToken" type:"string"` } // String returns the string representation -func (s GetBranchOutput) String() string { +func (s ListBranchesOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetBranchOutput) GoString() string { +func (s ListBranchesOutput) GoString() string { return s.String() } -// SetBranch sets the Branch field's value. -func (s *GetBranchOutput) SetBranch(v *BranchInfo) *GetBranchOutput { - s.Branch = v +// SetBranches sets the Branches field's value. +func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput { + s.Branches = v return s } -type GetCommentInput struct { +// SetNextToken sets the NextToken field's value. +func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput { + s.NextToken = &v + return s +} + +type ListPullRequestsInput struct { _ struct{} `type:"structure"` - // The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit - // or GetCommentsForPullRequest. + // Optional. The Amazon Resource Name (ARN) of the user who created the pull + // request. If used, this filters the results to pull requests created by that + // user. + AuthorArn *string `locationName:"authorArn" type:"string"` + + // A non-zero, non-negative integer used to limit the number of returned results. + MaxResults *int64 `locationName:"maxResults" type:"integer"` + + // An enumeration token that, when provided in a request, returns the next batch + // of the results. + NextToken *string `locationName:"nextToken" type:"string"` + + // Optional. The status of the pull request. If used, this refines the results + // to the pull requests that match the specified status. + PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"` + + // The name of the repository for which you want to list pull requests. // - // CommentId is a required field - CommentId *string `locationName:"commentId" type:"string" required:"true"` + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GetCommentInput) String() string { +func (s ListPullRequestsInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommentInput) GoString() string { +func (s ListPullRequestsInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetCommentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCommentInput"} - if s.CommentId == nil { - invalidParams.Add(request.NewErrParamRequired("CommentId")) +func (s *ListPullRequestsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListPullRequestsInput"} + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } if invalidParams.Len() > 0 { @@ -14803,83 +22850,106 @@ func (s *GetCommentInput) Validate() error { return nil } -// SetCommentId sets the CommentId field's value. -func (s *GetCommentInput) SetCommentId(v string) *GetCommentInput { - s.CommentId = &v +// SetAuthorArn sets the AuthorArn field's value. +func (s *ListPullRequestsInput) SetAuthorArn(v string) *ListPullRequestsInput { + s.AuthorArn = &v return s } -type GetCommentOutput struct { +// SetMaxResults sets the MaxResults field's value. +func (s *ListPullRequestsInput) SetMaxResults(v int64) *ListPullRequestsInput { + s.MaxResults = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListPullRequestsInput) SetNextToken(v string) *ListPullRequestsInput { + s.NextToken = &v + return s +} + +// SetPullRequestStatus sets the PullRequestStatus field's value. +func (s *ListPullRequestsInput) SetPullRequestStatus(v string) *ListPullRequestsInput { + s.PullRequestStatus = &v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *ListPullRequestsInput) SetRepositoryName(v string) *ListPullRequestsInput { + s.RepositoryName = &v + return s +} + +type ListPullRequestsOutput struct { _ struct{} `type:"structure"` - // The contents of the comment. - Comment *Comment `locationName:"comment" type:"structure"` + // An enumeration token that allows the operation to batch the next results + // of the operation. + NextToken *string `locationName:"nextToken" type:"string"` + + // The system-generated IDs of the pull requests. + // + // PullRequestIds is a required field + PullRequestIds []*string `locationName:"pullRequestIds" type:"list" required:"true"` } // String returns the string representation -func (s GetCommentOutput) String() string { +func (s ListPullRequestsOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommentOutput) GoString() string { +func (s ListPullRequestsOutput) GoString() string { return s.String() } -// SetComment sets the Comment field's value. -func (s *GetCommentOutput) SetComment(v *Comment) *GetCommentOutput { - s.Comment = v +// SetNextToken sets the NextToken field's value. +func (s *ListPullRequestsOutput) SetNextToken(v string) *ListPullRequestsOutput { + s.NextToken = &v return s } -type GetCommentsForComparedCommitInput struct { +// SetPullRequestIds sets the PullRequestIds field's value. +func (s *ListPullRequestsOutput) SetPullRequestIds(v []*string) *ListPullRequestsOutput { + s.PullRequestIds = v + return s +} + +type ListRepositoriesForApprovalRuleTemplateInput struct { _ struct{} `type:"structure"` - // To establish the directionality of the comparison, the full commit ID of - // the after commit. + // The name of the approval rule template for which you want to list repositories + // that are associated with that template. // - // AfterCommitId is a required field - AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"` - - // To establish the directionality of the comparison, the full commit ID of - // the before commit. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + // ApprovalRuleTemplateName is a required field + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` // A non-zero, non-negative integer used to limit the number of returned results. - // The default is 100 comments, but you can configure up to 500. MaxResults *int64 `locationName:"maxResults" type:"integer"` - // An enumeration token that when provided in a request, returns the next batch + // An enumeration token that, when provided in a request, returns the next batch // of the results. NextToken *string `locationName:"nextToken" type:"string"` - - // The name of the repository where you want to compare commits. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s GetCommentsForComparedCommitInput) String() string { +func (s ListRepositoriesForApprovalRuleTemplateInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommentsForComparedCommitInput) GoString() string { +func (s ListRepositoriesForApprovalRuleTemplateInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetCommentsForComparedCommitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCommentsForComparedCommitInput"} - if s.AfterCommitId == nil { - invalidParams.Add(request.NewErrParamRequired("AfterCommitId")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) +func (s *ListRepositoriesForApprovalRuleTemplateInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListRepositoriesForApprovalRuleTemplateInput"} + if s.ApprovalRuleTemplateName == nil { + invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) } if invalidParams.Len() > 0 { @@ -14888,116 +22958,168 @@ func (s *GetCommentsForComparedCommitInput) Validate() error { return nil } -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *GetCommentsForComparedCommitInput) SetAfterCommitId(v string) *GetCommentsForComparedCommitInput { - s.AfterCommitId = &v +// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. +func (s *ListRepositoriesForApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *ListRepositoriesForApprovalRuleTemplateInput { + s.ApprovalRuleTemplateName = &v return s } -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *GetCommentsForComparedCommitInput) SetBeforeCommitId(v string) *GetCommentsForComparedCommitInput { - s.BeforeCommitId = &v +// SetMaxResults sets the MaxResults field's value. +func (s *ListRepositoriesForApprovalRuleTemplateInput) SetMaxResults(v int64) *ListRepositoriesForApprovalRuleTemplateInput { + s.MaxResults = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetCommentsForComparedCommitInput) SetMaxResults(v int64) *GetCommentsForComparedCommitInput { - s.MaxResults = &v +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesForApprovalRuleTemplateInput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateInput { + s.NextToken = &v return s } +type ListRepositoriesForApprovalRuleTemplateOutput struct { + _ struct{} `type:"structure"` + + // An enumeration token that allows the operation to batch the next results + // of the operation. + NextToken *string `locationName:"nextToken" type:"string"` + + // A list of repository names that are associated with the specified approval + // rule template. + RepositoryNames []*string `locationName:"repositoryNames" type:"list"` +} + +// String returns the string representation +func (s ListRepositoriesForApprovalRuleTemplateOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRepositoriesForApprovalRuleTemplateOutput) GoString() string { + return s.String() +} + // SetNextToken sets the NextToken field's value. -func (s *GetCommentsForComparedCommitInput) SetNextToken(v string) *GetCommentsForComparedCommitInput { +func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateOutput { s.NextToken = &v return s } -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetCommentsForComparedCommitInput) SetRepositoryName(v string) *GetCommentsForComparedCommitInput { - s.RepositoryName = &v +// SetRepositoryNames sets the RepositoryNames field's value. +func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetRepositoryNames(v []*string) *ListRepositoriesForApprovalRuleTemplateOutput { + s.RepositoryNames = v return s } -type GetCommentsForComparedCommitOutput struct { +// Represents the input of a list repositories operation. +type ListRepositoriesInput struct { _ struct{} `type:"structure"` - // A list of comment objects on the compared commit. - CommentsForComparedCommitData []*CommentsForComparedCommit `locationName:"commentsForComparedCommitData" type:"list"` - - // An enumeration token that can be used in a request to return the next batch - // of the results. + // An enumeration token that allows the operation to batch the results of the + // operation. Batch sizes are 1,000 for list repository operations. When the + // client sends the token back to AWS CodeCommit, another page of 1,000 records + // is retrieved. NextToken *string `locationName:"nextToken" type:"string"` + + // The order in which to sort the results of a list repositories operation. + Order *string `locationName:"order" type:"string" enum:"OrderEnum"` + + // The criteria used to sort the results of a list repositories operation. + SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"` } // String returns the string representation -func (s GetCommentsForComparedCommitOutput) String() string { +func (s ListRepositoriesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommentsForComparedCommitOutput) GoString() string { +func (s ListRepositoriesInput) GoString() string { return s.String() } -// SetCommentsForComparedCommitData sets the CommentsForComparedCommitData field's value. -func (s *GetCommentsForComparedCommitOutput) SetCommentsForComparedCommitData(v []*CommentsForComparedCommit) *GetCommentsForComparedCommitOutput { - s.CommentsForComparedCommitData = v +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput { + s.NextToken = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetCommentsForComparedCommitOutput) SetNextToken(v string) *GetCommentsForComparedCommitOutput { - s.NextToken = &v +// SetOrder sets the Order field's value. +func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput { + s.Order = &v return s } -type GetCommentsForPullRequestInput struct { +// SetSortBy sets the SortBy field's value. +func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput { + s.SortBy = &v + return s +} + +// Represents the output of a list repositories operation. +type ListRepositoriesOutput struct { _ struct{} `type:"structure"` - // The full commit ID of the commit in the source branch that was the tip of - // the branch at the time the comment was made. - AfterCommitId *string `locationName:"afterCommitId" type:"string"` + // An enumeration token that allows the operation to batch the results of the + // operation. Batch sizes are 1,000 for list repository operations. When the + // client sends the token back to AWS CodeCommit, another page of 1,000 records + // is retrieved. + NextToken *string `locationName:"nextToken" type:"string"` - // The full commit ID of the commit in the destination branch that was the tip - // of the branch at the time the pull request was created. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + // Lists the repositories called by the list repositories operation. + Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"` +} - // A non-zero, non-negative integer used to limit the number of returned results. - // The default is 100 comments. You can return up to 500 comments with a single - // request. - MaxResults *int64 `locationName:"maxResults" type:"integer"` +// String returns the string representation +func (s ListRepositoriesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListRepositoriesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput { + s.NextToken = &v + return s +} + +// SetRepositories sets the Repositories field's value. +func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput { + s.Repositories = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` // An enumeration token that, when provided in a request, returns the next batch // of the results. NextToken *string `locationName:"nextToken" type:"string"` - // The system-generated ID of the pull request. To get this ID, use ListPullRequests. + // The Amazon Resource Name (ARN) of the resource for which you want to get + // information about tags, if any. // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` - - // The name of the repository that contains the pull request. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + // ResourceArn is a required field + ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` } // String returns the string representation -func (s GetCommentsForPullRequestInput) String() string { +func (s ListTagsForResourceInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommentsForPullRequestInput) GoString() string { +func (s ListTagsForResourceInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetCommentsForPullRequestInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCommentsForPullRequestInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) } if invalidParams.Len() > 0 { @@ -15006,636 +23128,676 @@ func (s *GetCommentsForPullRequestInput) Validate() error { return nil } -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *GetCommentsForPullRequestInput) SetAfterCommitId(v string) *GetCommentsForPullRequestInput { - s.AfterCommitId = &v +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { + s.NextToken = &v return s } -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *GetCommentsForPullRequestInput) SetBeforeCommitId(v string) *GetCommentsForPullRequestInput { - s.BeforeCommitId = &v +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *GetCommentsForPullRequestInput) SetMaxResults(v int64) *GetCommentsForPullRequestInput { - s.MaxResults = &v - return s +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // An enumeration token that allows the operation to batch the next results + // of the operation. + NextToken *string `locationName:"nextToken" type:"string"` + + // A list of tag key and value pairs associated with the specified resource. + Tags map[string]*string `locationName:"tags" type:"map"` } -// SetNextToken sets the NextToken field's value. -func (s *GetCommentsForPullRequestInput) SetNextToken(v string) *GetCommentsForPullRequestInput { - s.NextToken = &v - return s +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) } -// SetPullRequestId sets the PullRequestId field's value. -func (s *GetCommentsForPullRequestInput) SetPullRequestId(v string) *GetCommentsForPullRequestInput { - s.PullRequestId = &v +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { + s.NextToken = &v return s } -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetCommentsForPullRequestInput) SetRepositoryName(v string) *GetCommentsForPullRequestInput { - s.RepositoryName = &v +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { + s.Tags = v return s } -type GetCommentsForPullRequestOutput struct { +// Returns information about the location of a change or comment in the comparison +// between two commits or a pull request. +type Location struct { _ struct{} `type:"structure"` - // An array of comment objects on the pull request. - CommentsForPullRequestData []*CommentsForPullRequest `locationName:"commentsForPullRequestData" type:"list"` + // The name of the file being compared, including its extension and subdirectory, + // if any. + FilePath *string `locationName:"filePath" type:"string"` - // An enumeration token that can be used in a request to return the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` + // The position of a change in a compared file, in line number format. + FilePosition *int64 `locationName:"filePosition" type:"long"` + + // In a comparison of commits or a pull request, whether the change is in the + // before or after of that comparison. + RelativeFileVersion *string `locationName:"relativeFileVersion" type:"string" enum:"RelativeFileVersionEnum"` } // String returns the string representation -func (s GetCommentsForPullRequestOutput) String() string { +func (s Location) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommentsForPullRequestOutput) GoString() string { +func (s Location) GoString() string { return s.String() } -// SetCommentsForPullRequestData sets the CommentsForPullRequestData field's value. -func (s *GetCommentsForPullRequestOutput) SetCommentsForPullRequestData(v []*CommentsForPullRequest) *GetCommentsForPullRequestOutput { - s.CommentsForPullRequestData = v +// SetFilePath sets the FilePath field's value. +func (s *Location) SetFilePath(v string) *Location { + s.FilePath = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetCommentsForPullRequestOutput) SetNextToken(v string) *GetCommentsForPullRequestOutput { - s.NextToken = &v +// SetFilePosition sets the FilePosition field's value. +func (s *Location) SetFilePosition(v int64) *Location { + s.FilePosition = &v return s } -// Represents the input of a get commit operation. -type GetCommitInput struct { - _ struct{} `type:"structure"` - - // The commit ID. Commit IDs are the full SHA ID of the commit. - // - // CommitId is a required field - CommitId *string `locationName:"commitId" type:"string" required:"true"` +// SetRelativeFileVersion sets the RelativeFileVersion field's value. +func (s *Location) SetRelativeFileVersion(v string) *Location { + s.RelativeFileVersion = &v + return s +} - // The name of the repository to which the commit was made. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// The pull request cannot be merged automatically into the destination branch. +// You must manually merge the branches and resolve any conflicts. +type ManualMergeRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetCommitInput) String() string { +func (s ManualMergeRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommitInput) GoString() string { +func (s ManualMergeRequiredException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetCommitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetCommitInput"} - if s.CommitId == nil { - invalidParams.Add(request.NewErrParamRequired("CommitId")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorManualMergeRequiredException(v protocol.ResponseMetadata) error { + return &ManualMergeRequiredException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s ManualMergeRequiredException) Code() string { + return "ManualMergeRequiredException" +} + +// Message returns the exception's message. +func (s ManualMergeRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ManualMergeRequiredException) OrigErr() error { return nil } -// SetCommitId sets the CommitId field's value. -func (s *GetCommitInput) SetCommitId(v string) *GetCommitInput { - s.CommitId = &v - return s +func (s ManualMergeRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetCommitInput) SetRepositoryName(v string) *GetCommitInput { - s.RepositoryName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ManualMergeRequiredException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents the output of a get commit operation. -type GetCommitOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s ManualMergeRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // A commit data type object that contains information about the specified commit. - // - // Commit is a required field - Commit *Commit `locationName:"commit" type:"structure" required:"true"` +// The number of branches for the trigger was exceeded. +type MaximumBranchesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetCommitOutput) String() string { +func (s MaximumBranchesExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetCommitOutput) GoString() string { +func (s MaximumBranchesExceededException) GoString() string { return s.String() } -// SetCommit sets the Commit field's value. -func (s *GetCommitOutput) SetCommit(v *Commit) *GetCommitOutput { - s.Commit = v - return s +func newErrorMaximumBranchesExceededException(v protocol.ResponseMetadata) error { + return &MaximumBranchesExceededException{ + respMetadata: v, + } } -type GetDifferencesInput struct { - _ struct{} `type:"structure"` - - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit. - // - // AfterCommitSpecifier is a required field - AfterCommitSpecifier *string `locationName:"afterCommitSpecifier" type:"string" required:"true"` +// Code returns the exception type name. +func (s MaximumBranchesExceededException) Code() string { + return "MaximumBranchesExceededException" +} - // The file path in which to check differences. Limits the results to this path. - // Can also be used to specify the changed name of a directory or folder, if - // it has changed. If not specified, differences are shown for all paths. - AfterPath *string `locationName:"afterPath" type:"string"` +// Message returns the exception's message. +func (s MaximumBranchesExceededException) Message() string { + return "" +} - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, the full commit ID). Optional. If not specified, all - // changes before the afterCommitSpecifier value are shown. If you do not use - // beforeCommitSpecifier in your request, consider limiting the results with - // maxResults. - BeforeCommitSpecifier *string `locationName:"beforeCommitSpecifier" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumBranchesExceededException) OrigErr() error { + return nil +} - // The file path in which to check for differences. Limits the results to this - // path. Can also be used to specify the previous name of a directory or folder. - // If beforePath and afterPath are not specified, differences are shown for - // all paths. - BeforePath *string `locationName:"beforePath" type:"string"` +func (s MaximumBranchesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults *int64 `type:"integer"` +// Status code returns the HTTP status code for the request's response error. +func (s MaximumBranchesExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s MaximumBranchesExceededException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the repository where you want to get differences. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// The number of allowed conflict resolution entries was exceeded. +type MaximumConflictResolutionEntriesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDifferencesInput) String() string { +func (s MaximumConflictResolutionEntriesExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDifferencesInput) GoString() string { +func (s MaximumConflictResolutionEntriesExceededException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDifferencesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDifferencesInput"} - if s.AfterCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("AfterCommitSpecifier")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorMaximumConflictResolutionEntriesExceededException(v protocol.ResponseMetadata) error { + return &MaximumConflictResolutionEntriesExceededException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s MaximumConflictResolutionEntriesExceededException) Code() string { + return "MaximumConflictResolutionEntriesExceededException" +} + +// Message returns the exception's message. +func (s MaximumConflictResolutionEntriesExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumConflictResolutionEntriesExceededException) OrigErr() error { return nil } -// SetAfterCommitSpecifier sets the AfterCommitSpecifier field's value. -func (s *GetDifferencesInput) SetAfterCommitSpecifier(v string) *GetDifferencesInput { - s.AfterCommitSpecifier = &v - return s +func (s MaximumConflictResolutionEntriesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetAfterPath sets the AfterPath field's value. -func (s *GetDifferencesInput) SetAfterPath(v string) *GetDifferencesInput { - s.AfterPath = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s MaximumConflictResolutionEntriesExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetBeforeCommitSpecifier sets the BeforeCommitSpecifier field's value. -func (s *GetDifferencesInput) SetBeforeCommitSpecifier(v string) *GetDifferencesInput { - s.BeforeCommitSpecifier = &v - return s +// RequestID returns the service's response RequestID for request. +func (s MaximumConflictResolutionEntriesExceededException) RequestID() string { + return s.respMetadata.RequestID } -// SetBeforePath sets the BeforePath field's value. -func (s *GetDifferencesInput) SetBeforePath(v string) *GetDifferencesInput { - s.BeforePath = &v - return s +// The number of files to load exceeds the allowed limit. +type MaximumFileContentToLoadExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetMaxResults sets the MaxResults field's value. -func (s *GetDifferencesInput) SetMaxResults(v int64) *GetDifferencesInput { - s.MaxResults = &v - return s +// String returns the string representation +func (s MaximumFileContentToLoadExceededException) String() string { + return awsutil.Prettify(s) } -// SetNextToken sets the NextToken field's value. -func (s *GetDifferencesInput) SetNextToken(v string) *GetDifferencesInput { - s.NextToken = &v - return s +// GoString returns the string representation +func (s MaximumFileContentToLoadExceededException) GoString() string { + return s.String() } -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetDifferencesInput) SetRepositoryName(v string) *GetDifferencesInput { - s.RepositoryName = &v - return s +func newErrorMaximumFileContentToLoadExceededException(v protocol.ResponseMetadata) error { + return &MaximumFileContentToLoadExceededException{ + respMetadata: v, + } } -type GetDifferencesOutput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s MaximumFileContentToLoadExceededException) Code() string { + return "MaximumFileContentToLoadExceededException" +} - // A data type object that contains information about the differences, including - // whether the difference is added, modified, or deleted (A, D, M). - Differences []*Difference `locationName:"differences" type:"list"` +// Message returns the exception's message. +func (s MaximumFileContentToLoadExceededException) Message() string { + return "" +} - // An enumeration token that can be used in a request to return the next batch - // of the results. - NextToken *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumFileContentToLoadExceededException) OrigErr() error { + return nil +} + +func (s MaximumFileContentToLoadExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaximumFileContentToLoadExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaximumFileContentToLoadExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of specified files to change as part of this commit exceeds the +// maximum number of files that can be changed in a single commit. Consider +// using a Git client for these changes. +type MaximumFileEntriesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDifferencesOutput) String() string { +func (s MaximumFileEntriesExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDifferencesOutput) GoString() string { +func (s MaximumFileEntriesExceededException) GoString() string { return s.String() } -// SetDifferences sets the Differences field's value. -func (s *GetDifferencesOutput) SetDifferences(v []*Difference) *GetDifferencesOutput { - s.Differences = v - return s +func newErrorMaximumFileEntriesExceededException(v protocol.ResponseMetadata) error { + return &MaximumFileEntriesExceededException{ + respMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *GetDifferencesOutput) SetNextToken(v string) *GetDifferencesOutput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s MaximumFileEntriesExceededException) Code() string { + return "MaximumFileEntriesExceededException" } -type GetFileInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s MaximumFileEntriesExceededException) Message() string { + return "" +} - // The fully quaified reference that identifies the commit that contains the - // file. For example, you can specify a full commit ID, a tag, a branch name, - // or a reference such as refs/heads/master. If none is provided, the head commit - // is used. - CommitSpecifier *string `locationName:"commitSpecifier" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumFileEntriesExceededException) OrigErr() error { + return nil +} - // The fully qualified path to the file, including the full name and extension - // of the file. For example, /examples/file.md is the fully qualified path to - // a file named file.md in a folder named examples. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` +func (s MaximumFileEntriesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the repository that contains the file. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s MaximumFileEntriesExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaximumFileEntriesExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of items to compare between the source or destination branches +// and the merge base has exceeded the maximum allowed. +type MaximumItemsToCompareExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetFileInput) String() string { +func (s MaximumItemsToCompareExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFileInput) GoString() string { +func (s MaximumItemsToCompareExceededException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetFileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFileInput"} - if s.FilePath == nil { - invalidParams.Add(request.NewErrParamRequired("FilePath")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorMaximumItemsToCompareExceededException(v protocol.ResponseMetadata) error { + return &MaximumItemsToCompareExceededException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s MaximumItemsToCompareExceededException) Code() string { + return "MaximumItemsToCompareExceededException" +} + +// Message returns the exception's message. +func (s MaximumItemsToCompareExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumItemsToCompareExceededException) OrigErr() error { return nil } -// SetCommitSpecifier sets the CommitSpecifier field's value. -func (s *GetFileInput) SetCommitSpecifier(v string) *GetFileInput { - s.CommitSpecifier = &v - return s +func (s MaximumItemsToCompareExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaximumItemsToCompareExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaximumItemsToCompareExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of approvals required for the approval rule exceeds the maximum +// number allowed. +type MaximumNumberOfApprovalsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaximumNumberOfApprovalsExceededException) String() string { + return awsutil.Prettify(s) } -// SetFilePath sets the FilePath field's value. -func (s *GetFileInput) SetFilePath(v string) *GetFileInput { - s.FilePath = &v - return s +// GoString returns the string representation +func (s MaximumNumberOfApprovalsExceededException) GoString() string { + return s.String() } -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetFileInput) SetRepositoryName(v string) *GetFileInput { - s.RepositoryName = &v - return s +func newErrorMaximumNumberOfApprovalsExceededException(v protocol.ResponseMetadata) error { + return &MaximumNumberOfApprovalsExceededException{ + respMetadata: v, + } } -type GetFileOutput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s MaximumNumberOfApprovalsExceededException) Code() string { + return "MaximumNumberOfApprovalsExceededException" +} - // The blob ID of the object that represents the file content. - // - // BlobId is a required field - BlobId *string `locationName:"blobId" type:"string" required:"true"` +// Message returns the exception's message. +func (s MaximumNumberOfApprovalsExceededException) Message() string { + return "" +} - // The full commit ID of the commit that contains the content returned by GetFile. - // - // CommitId is a required field - CommitId *string `locationName:"commitId" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumNumberOfApprovalsExceededException) OrigErr() error { + return nil +} - // The base-64 encoded binary data object that represents the content of the - // file. - // - // FileContent is automatically base64 encoded/decoded by the SDK. - // - // FileContent is a required field - FileContent []byte `locationName:"fileContent" type:"blob" required:"true"` +func (s MaximumNumberOfApprovalsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The extrapolated file mode permissions of the blob. Valid values include - // strings such as EXECUTABLE and not numeric values. - // - // The file mode permissions returned by this API are not the standard file - // mode permission values, such as 100644, but rather extrapolated values. See - // the supported return values. - // - // FileMode is a required field - FileMode *string `locationName:"fileMode" type:"string" required:"true" enum:"FileModeTypeEnum"` +// Status code returns the HTTP status code for the request's response error. +func (s MaximumNumberOfApprovalsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The fully qualified path to the specified file. Returns the name and extension - // of the file. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s MaximumNumberOfApprovalsExceededException) RequestID() string { + return s.respMetadata.RequestID +} - // The size of the contents of the file, in bytes. - // - // FileSize is a required field - FileSize *int64 `locationName:"fileSize" type:"long" required:"true"` +// You cannot create the pull request because the repository has too many open +// pull requests. The maximum number of open pull requests for a repository +// is 1,000. Close one or more open pull requests, and then try again. +type MaximumOpenPullRequestsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetFileOutput) String() string { +func (s MaximumOpenPullRequestsExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFileOutput) GoString() string { +func (s MaximumOpenPullRequestsExceededException) GoString() string { return s.String() } -// SetBlobId sets the BlobId field's value. -func (s *GetFileOutput) SetBlobId(v string) *GetFileOutput { - s.BlobId = &v - return s +func newErrorMaximumOpenPullRequestsExceededException(v protocol.ResponseMetadata) error { + return &MaximumOpenPullRequestsExceededException{ + respMetadata: v, + } } -// SetCommitId sets the CommitId field's value. -func (s *GetFileOutput) SetCommitId(v string) *GetFileOutput { - s.CommitId = &v - return s +// Code returns the exception type name. +func (s MaximumOpenPullRequestsExceededException) Code() string { + return "MaximumOpenPullRequestsExceededException" } -// SetFileContent sets the FileContent field's value. -func (s *GetFileOutput) SetFileContent(v []byte) *GetFileOutput { - s.FileContent = v - return s +// Message returns the exception's message. +func (s MaximumOpenPullRequestsExceededException) Message() string { + return "" } -// SetFileMode sets the FileMode field's value. -func (s *GetFileOutput) SetFileMode(v string) *GetFileOutput { - s.FileMode = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumOpenPullRequestsExceededException) OrigErr() error { + return nil } -// SetFilePath sets the FilePath field's value. -func (s *GetFileOutput) SetFilePath(v string) *GetFileOutput { - s.FilePath = &v - return s +func (s MaximumOpenPullRequestsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetFileSize sets the FileSize field's value. -func (s *GetFileOutput) SetFileSize(v int64) *GetFileOutput { - s.FileSize = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s MaximumOpenPullRequestsExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -type GetFolderInput struct { - _ struct{} `type:"structure"` - - // A fully qualified reference used to identify a commit that contains the version - // of the folder's content to return. A fully qualified reference can be a commit - // ID, branch name, tag, or reference such as HEAD. If no specifier is provided, - // the folder content is returned as it exists in the HEAD commit. - CommitSpecifier *string `locationName:"commitSpecifier" type:"string"` - - // The fully qualified path to the folder whose contents are returned, including - // the folder name. For example, /examples is a fully-qualified path to a folder - // named examples that was created off of the root directory (/) of a repository. - // - // FolderPath is a required field - FolderPath *string `locationName:"folderPath" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s MaximumOpenPullRequestsExceededException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the repository. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// The maximum number of allowed repository names was exceeded. Currently, this +// number is 100. +type MaximumRepositoryNamesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetFolderInput) String() string { +func (s MaximumRepositoryNamesExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFolderInput) GoString() string { +func (s MaximumRepositoryNamesExceededException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetFolderInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetFolderInput"} - if s.FolderPath == nil { - invalidParams.Add(request.NewErrParamRequired("FolderPath")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorMaximumRepositoryNamesExceededException(v protocol.ResponseMetadata) error { + return &MaximumRepositoryNamesExceededException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s MaximumRepositoryNamesExceededException) Code() string { + return "MaximumRepositoryNamesExceededException" +} + +// Message returns the exception's message. +func (s MaximumRepositoryNamesExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumRepositoryNamesExceededException) OrigErr() error { return nil } -// SetCommitSpecifier sets the CommitSpecifier field's value. -func (s *GetFolderInput) SetCommitSpecifier(v string) *GetFolderInput { - s.CommitSpecifier = &v - return s +func (s MaximumRepositoryNamesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetFolderPath sets the FolderPath field's value. -func (s *GetFolderInput) SetFolderPath(v string) *GetFolderInput { - s.FolderPath = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s MaximumRepositoryNamesExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetFolderInput) SetRepositoryName(v string) *GetFolderInput { - s.RepositoryName = &v - return s +// RequestID returns the service's response RequestID for request. +func (s MaximumRepositoryNamesExceededException) RequestID() string { + return s.respMetadata.RequestID } -type GetFolderOutput struct { - _ struct{} `type:"structure"` +// The number of triggers allowed for the repository was exceeded. +type MaximumRepositoryTriggersExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The full commit ID used as a reference for the returned version of the folder - // content. - // - // CommitId is a required field - CommitId *string `locationName:"commitId" type:"string" required:"true"` +// String returns the string representation +func (s MaximumRepositoryTriggersExceededException) String() string { + return awsutil.Prettify(s) +} - // The list of files in the specified folder, if any. - Files []*File `locationName:"files" type:"list"` +// GoString returns the string representation +func (s MaximumRepositoryTriggersExceededException) GoString() string { + return s.String() +} - // The fully qualified path of the folder whose contents are returned. - // - // FolderPath is a required field - FolderPath *string `locationName:"folderPath" type:"string" required:"true"` +func newErrorMaximumRepositoryTriggersExceededException(v protocol.ResponseMetadata) error { + return &MaximumRepositoryTriggersExceededException{ + respMetadata: v, + } +} - // The list of folders that exist under the specified folder, if any. - SubFolders []*Folder `locationName:"subFolders" type:"list"` +// Code returns the exception type name. +func (s MaximumRepositoryTriggersExceededException) Code() string { + return "MaximumRepositoryTriggersExceededException" +} - // The list of submodules in the specified folder, if any. - SubModules []*SubModule `locationName:"subModules" type:"list"` +// Message returns the exception's message. +func (s MaximumRepositoryTriggersExceededException) Message() string { + return "" +} - // The list of symbolic links to other files and folders in the specified folder, - // if any. - SymbolicLinks []*SymbolicLink `locationName:"symbolicLinks" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumRepositoryTriggersExceededException) OrigErr() error { + return nil +} - // The full SHA-1 pointer of the tree information for the commit that contains - // the folder. - TreeId *string `locationName:"treeId" type:"string"` +func (s MaximumRepositoryTriggersExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaximumRepositoryTriggersExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaximumRepositoryTriggersExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of approval rule templates for a repository has been exceeded. +// You cannot associate more than 25 approval rule templates with a repository. +type MaximumRuleTemplatesAssociatedWithRepositoryException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetFolderOutput) String() string { +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetFolderOutput) GoString() string { +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) GoString() string { return s.String() } -// SetCommitId sets the CommitId field's value. -func (s *GetFolderOutput) SetCommitId(v string) *GetFolderOutput { - s.CommitId = &v - return s +func newErrorMaximumRuleTemplatesAssociatedWithRepositoryException(v protocol.ResponseMetadata) error { + return &MaximumRuleTemplatesAssociatedWithRepositoryException{ + respMetadata: v, + } } -// SetFiles sets the Files field's value. -func (s *GetFolderOutput) SetFiles(v []*File) *GetFolderOutput { - s.Files = v - return s +// Code returns the exception type name. +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) Code() string { + return "MaximumRuleTemplatesAssociatedWithRepositoryException" } -// SetFolderPath sets the FolderPath field's value. -func (s *GetFolderOutput) SetFolderPath(v string) *GetFolderOutput { - s.FolderPath = &v - return s +// Message returns the exception's message. +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) Message() string { + return "" } -// SetSubFolders sets the SubFolders field's value. -func (s *GetFolderOutput) SetSubFolders(v []*Folder) *GetFolderOutput { - s.SubFolders = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) OrigErr() error { + return nil } -// SetSubModules sets the SubModules field's value. -func (s *GetFolderOutput) SetSubModules(v []*SubModule) *GetFolderOutput { - s.SubModules = v - return s +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSymbolicLinks sets the SymbolicLinks field's value. -func (s *GetFolderOutput) SetSymbolicLinks(v []*SymbolicLink) *GetFolderOutput { - s.SymbolicLinks = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetTreeId sets the TreeId field's value. -func (s *GetFolderOutput) SetTreeId(v string) *GetFolderOutput { - s.TreeId = &v - return s +// RequestID returns the service's response RequestID for request. +func (s MaximumRuleTemplatesAssociatedWithRepositoryException) RequestID() string { + return s.respMetadata.RequestID } -type GetMergeCommitInput struct { +type MergeBranchesByFastForwardInput struct { _ struct{} `type:"structure"` - // The level of conflict detail to use. If unspecified, the default FILE_LEVEL - // is used, which returns a not-mergeable result if the same file has differences - // in both branches. If LINE_LEVEL is specified, a conflict is considered not - // mergeable if the same file in both branches has differences on the same line. - ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` - - // Specifies which branch to use when resolving conflicts, or whether to attempt - // automatically merging two versions of a file. The default is NONE, which - // requires any conflicts to be resolved manually before the merge operation - // is successful. - ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` - // The branch, tag, HEAD, or other fully qualified reference used to identify // a commit (for example, a branch name or a full commit ID). // // DestinationCommitSpecifier is a required field DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` - // The name of the repository that contains the merge commit about which you - // want to get information. + // The name of the repository where you want to merge two branches. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` @@ -15645,21 +23807,24 @@ type GetMergeCommitInput struct { // // SourceCommitSpecifier is a required field SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` + + // The branch where the merge is applied. + TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"` } // String returns the string representation -func (s GetMergeCommitInput) String() string { +func (s MergeBranchesByFastForwardInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMergeCommitInput) GoString() string { +func (s MergeBranchesByFastForwardInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetMergeCommitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMergeCommitInput"} +func (s *MergeBranchesByFastForwardInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByFastForwardInput"} if s.DestinationCommitSpecifier == nil { invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) } @@ -15672,6 +23837,9 @@ func (s *GetMergeCommitInput) Validate() error { if s.SourceCommitSpecifier == nil { invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) } + if s.TargetBranch != nil && len(*s.TargetBranch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1)) + } if invalidParams.Len() > 0 { return invalidParams @@ -15679,91 +23847,71 @@ func (s *GetMergeCommitInput) Validate() error { return nil } -// SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *GetMergeCommitInput) SetConflictDetailLevel(v string) *GetMergeCommitInput { - s.ConflictDetailLevel = &v - return s -} - -// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *GetMergeCommitInput) SetConflictResolutionStrategy(v string) *GetMergeCommitInput { - s.ConflictResolutionStrategy = &v - return s -} - // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *GetMergeCommitInput) SetDestinationCommitSpecifier(v string) *GetMergeCommitInput { +func (s *MergeBranchesByFastForwardInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByFastForwardInput { s.DestinationCommitSpecifier = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *GetMergeCommitInput) SetRepositoryName(v string) *GetMergeCommitInput { +func (s *MergeBranchesByFastForwardInput) SetRepositoryName(v string) *MergeBranchesByFastForwardInput { s.RepositoryName = &v return s } // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *GetMergeCommitInput) SetSourceCommitSpecifier(v string) *GetMergeCommitInput { +func (s *MergeBranchesByFastForwardInput) SetSourceCommitSpecifier(v string) *MergeBranchesByFastForwardInput { s.SourceCommitSpecifier = &v return s } -type GetMergeCommitOutput struct { - _ struct{} `type:"structure"` - - // The commit ID of the merge base. - BaseCommitId *string `locationName:"baseCommitId" type:"string"` +// SetTargetBranch sets the TargetBranch field's value. +func (s *MergeBranchesByFastForwardInput) SetTargetBranch(v string) *MergeBranchesByFastForwardInput { + s.TargetBranch = &v + return s +} - // The commit ID of the destination commit specifier that was used in the merge - // evaluation. - DestinationCommitId *string `locationName:"destinationCommitId" type:"string"` +type MergeBranchesByFastForwardOutput struct { + _ struct{} `type:"structure"` - // The commit ID for the merge commit created when the source branch was merged - // into the destination branch. If the fast-forward merge strategy was used, - // there is no merge commit. - MergedCommitId *string `locationName:"mergedCommitId" type:"string"` + // The commit ID of the merge in the destination or target branch. + CommitId *string `locationName:"commitId" type:"string"` - // The commit ID of the source commit specifier that was used in the merge evaluation. - SourceCommitId *string `locationName:"sourceCommitId" type:"string"` + // The tree ID of the merge in the destination or target branch. + TreeId *string `locationName:"treeId" type:"string"` } // String returns the string representation -func (s GetMergeCommitOutput) String() string { +func (s MergeBranchesByFastForwardOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMergeCommitOutput) GoString() string { +func (s MergeBranchesByFastForwardOutput) GoString() string { return s.String() } -// SetBaseCommitId sets the BaseCommitId field's value. -func (s *GetMergeCommitOutput) SetBaseCommitId(v string) *GetMergeCommitOutput { - s.BaseCommitId = &v +// SetCommitId sets the CommitId field's value. +func (s *MergeBranchesByFastForwardOutput) SetCommitId(v string) *MergeBranchesByFastForwardOutput { + s.CommitId = &v return s } -// SetDestinationCommitId sets the DestinationCommitId field's value. -func (s *GetMergeCommitOutput) SetDestinationCommitId(v string) *GetMergeCommitOutput { - s.DestinationCommitId = &v +// SetTreeId sets the TreeId field's value. +func (s *MergeBranchesByFastForwardOutput) SetTreeId(v string) *MergeBranchesByFastForwardOutput { + s.TreeId = &v return s } -// SetMergedCommitId sets the MergedCommitId field's value. -func (s *GetMergeCommitOutput) SetMergedCommitId(v string) *GetMergeCommitOutput { - s.MergedCommitId = &v - return s -} +type MergeBranchesBySquashInput struct { + _ struct{} `type:"structure"` -// SetSourceCommitId sets the SourceCommitId field's value. -func (s *GetMergeCommitOutput) SetSourceCommitId(v string) *GetMergeCommitOutput { - s.SourceCommitId = &v - return s -} + // The name of the author who created the commit. This information is used as + // both the author and committer for the commit. + AuthorName *string `locationName:"authorName" type:"string"` -type GetMergeConflictsInput struct { - _ struct{} `type:"structure"` + // The commit message for the merge. + CommitMessage *string `locationName:"commitMessage" type:"string"` // The level of conflict detail to use. If unspecified, the default FILE_LEVEL // is used, which returns a not-mergeable result if the same file has differences @@ -15771,6 +23919,10 @@ type GetMergeConflictsInput struct { // mergeable if the same file in both branches has differences on the same line. ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use + // when resolving conflicts during a merge. + ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` + // Specifies which branch to use when resolving conflicts, or whether to attempt // automatically merging two versions of a file. The default is NONE, which // requires any conflicts to be resolved manually before the merge operation @@ -15783,19 +23935,16 @@ type GetMergeConflictsInput struct { // DestinationCommitSpecifier is a required field DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` - // The maximum number of files to include in the output. - MaxConflictFiles *int64 `locationName:"maxConflictFiles" type:"integer"` - - // The merge option or strategy you want to use to merge the code. - // - // MergeOption is a required field - MergeOption *string `locationName:"mergeOption" type:"string" required:"true" enum:"MergeOptionTypeEnum"` + // The email address of the person merging the branches. This information is + // used in the commit information for the merge. + Email *string `locationName:"email" type:"string"` - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` + // If the commit contains deletions, whether to keep a folder or folder structure + // if the changes leave the folders empty. If this is specified as true, a .gitkeep + // file is created for empty folders. The default is false. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` - // The name of the repository where the pull request was created. + // The name of the repository where you want to merge two branches. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` @@ -15805,27 +23954,27 @@ type GetMergeConflictsInput struct { // // SourceCommitSpecifier is a required field SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` + + // The branch where the merge is applied. + TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"` } // String returns the string representation -func (s GetMergeConflictsInput) String() string { +func (s MergeBranchesBySquashInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMergeConflictsInput) GoString() string { +func (s MergeBranchesBySquashInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetMergeConflictsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMergeConflictsInput"} +func (s *MergeBranchesBySquashInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MergeBranchesBySquashInput"} if s.DestinationCommitSpecifier == nil { invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) } - if s.MergeOption == nil { - invalidParams.Add(request.NewErrParamRequired("MergeOption")) - } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) } @@ -15835,6 +23984,14 @@ func (s *GetMergeConflictsInput) Validate() error { if s.SourceCommitSpecifier == nil { invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) } + if s.TargetBranch != nil && len(*s.TargetBranch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1)) + } + if s.ConflictResolution != nil { + if err := s.ConflictResolution.Validate(); err != nil { + invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -15842,136 +23999,113 @@ func (s *GetMergeConflictsInput) Validate() error { return nil } +// SetAuthorName sets the AuthorName field's value. +func (s *MergeBranchesBySquashInput) SetAuthorName(v string) *MergeBranchesBySquashInput { + s.AuthorName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *MergeBranchesBySquashInput) SetCommitMessage(v string) *MergeBranchesBySquashInput { + s.CommitMessage = &v + return s +} + // SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *GetMergeConflictsInput) SetConflictDetailLevel(v string) *GetMergeConflictsInput { +func (s *MergeBranchesBySquashInput) SetConflictDetailLevel(v string) *MergeBranchesBySquashInput { s.ConflictDetailLevel = &v return s } +// SetConflictResolution sets the ConflictResolution field's value. +func (s *MergeBranchesBySquashInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesBySquashInput { + s.ConflictResolution = v + return s +} + // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *GetMergeConflictsInput) SetConflictResolutionStrategy(v string) *GetMergeConflictsInput { +func (s *MergeBranchesBySquashInput) SetConflictResolutionStrategy(v string) *MergeBranchesBySquashInput { s.ConflictResolutionStrategy = &v return s } // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *GetMergeConflictsInput) SetDestinationCommitSpecifier(v string) *GetMergeConflictsInput { +func (s *MergeBranchesBySquashInput) SetDestinationCommitSpecifier(v string) *MergeBranchesBySquashInput { s.DestinationCommitSpecifier = &v return s } -// SetMaxConflictFiles sets the MaxConflictFiles field's value. -func (s *GetMergeConflictsInput) SetMaxConflictFiles(v int64) *GetMergeConflictsInput { - s.MaxConflictFiles = &v - return s -} - -// SetMergeOption sets the MergeOption field's value. -func (s *GetMergeConflictsInput) SetMergeOption(v string) *GetMergeConflictsInput { - s.MergeOption = &v +// SetEmail sets the Email field's value. +func (s *MergeBranchesBySquashInput) SetEmail(v string) *MergeBranchesBySquashInput { + s.Email = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetMergeConflictsInput) SetNextToken(v string) *GetMergeConflictsInput { - s.NextToken = &v +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *MergeBranchesBySquashInput) SetKeepEmptyFolders(v bool) *MergeBranchesBySquashInput { + s.KeepEmptyFolders = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *GetMergeConflictsInput) SetRepositoryName(v string) *GetMergeConflictsInput { +func (s *MergeBranchesBySquashInput) SetRepositoryName(v string) *MergeBranchesBySquashInput { s.RepositoryName = &v return s } // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *GetMergeConflictsInput) SetSourceCommitSpecifier(v string) *GetMergeConflictsInput { +func (s *MergeBranchesBySquashInput) SetSourceCommitSpecifier(v string) *MergeBranchesBySquashInput { s.SourceCommitSpecifier = &v return s } -type GetMergeConflictsOutput struct { - _ struct{} `type:"structure"` - - // The commit ID of the merge base. - BaseCommitId *string `locationName:"baseCommitId" type:"string"` - - // A list of metadata for any conflicting files. If the specified merge strategy - // is FAST_FORWARD_MERGE, this list is always empty. - // - // ConflictMetadataList is a required field - ConflictMetadataList []*ConflictMetadata `locationName:"conflictMetadataList" type:"list" required:"true"` - - // The commit ID of the destination commit specifier that was used in the merge - // evaluation. - // - // DestinationCommitId is a required field - DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"` +// SetTargetBranch sets the TargetBranch field's value. +func (s *MergeBranchesBySquashInput) SetTargetBranch(v string) *MergeBranchesBySquashInput { + s.TargetBranch = &v + return s +} - // A Boolean value that indicates whether the code is mergeable by the specified - // merge option. - // - // Mergeable is a required field - Mergeable *bool `locationName:"mergeable" type:"boolean" required:"true"` +type MergeBranchesBySquashOutput struct { + _ struct{} `type:"structure"` - // An enumeration token that can be used in a request to return the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` + // The commit ID of the merge in the destination or target branch. + CommitId *string `locationName:"commitId" type:"string"` - // The commit ID of the source commit specifier that was used in the merge evaluation. - // - // SourceCommitId is a required field - SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"` + // The tree ID of the merge in the destination or target branch. + TreeId *string `locationName:"treeId" type:"string"` } // String returns the string representation -func (s GetMergeConflictsOutput) String() string { +func (s MergeBranchesBySquashOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMergeConflictsOutput) GoString() string { +func (s MergeBranchesBySquashOutput) GoString() string { return s.String() } -// SetBaseCommitId sets the BaseCommitId field's value. -func (s *GetMergeConflictsOutput) SetBaseCommitId(v string) *GetMergeConflictsOutput { - s.BaseCommitId = &v - return s -} - -// SetConflictMetadataList sets the ConflictMetadataList field's value. -func (s *GetMergeConflictsOutput) SetConflictMetadataList(v []*ConflictMetadata) *GetMergeConflictsOutput { - s.ConflictMetadataList = v - return s -} - -// SetDestinationCommitId sets the DestinationCommitId field's value. -func (s *GetMergeConflictsOutput) SetDestinationCommitId(v string) *GetMergeConflictsOutput { - s.DestinationCommitId = &v +// SetCommitId sets the CommitId field's value. +func (s *MergeBranchesBySquashOutput) SetCommitId(v string) *MergeBranchesBySquashOutput { + s.CommitId = &v return s } -// SetMergeable sets the Mergeable field's value. -func (s *GetMergeConflictsOutput) SetMergeable(v bool) *GetMergeConflictsOutput { - s.Mergeable = &v +// SetTreeId sets the TreeId field's value. +func (s *MergeBranchesBySquashOutput) SetTreeId(v string) *MergeBranchesBySquashOutput { + s.TreeId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *GetMergeConflictsOutput) SetNextToken(v string) *GetMergeConflictsOutput { - s.NextToken = &v - return s -} +type MergeBranchesByThreeWayInput struct { + _ struct{} `type:"structure"` -// SetSourceCommitId sets the SourceCommitId field's value. -func (s *GetMergeConflictsOutput) SetSourceCommitId(v string) *GetMergeConflictsOutput { - s.SourceCommitId = &v - return s -} + // The name of the author who created the commit. This information is used as + // both the author and committer for the commit. + AuthorName *string `locationName:"authorName" type:"string"` -type GetMergeOptionsInput struct { - _ struct{} `type:"structure"` + // The commit message to include in the commit information for the merge. + CommitMessage *string `locationName:"commitMessage" type:"string"` // The level of conflict detail to use. If unspecified, the default FILE_LEVEL // is used, which returns a not-mergeable result if the same file has differences @@ -15979,6 +24113,10 @@ type GetMergeOptionsInput struct { // mergeable if the same file in both branches has differences on the same line. ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use + // when resolving conflicts during a merge. + ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` + // Specifies which branch to use when resolving conflicts, or whether to attempt // automatically merging two versions of a file. The default is NONE, which // requires any conflicts to be resolved manually before the merge operation @@ -15991,8 +24129,16 @@ type GetMergeOptionsInput struct { // DestinationCommitSpecifier is a required field DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` - // The name of the repository that contains the commits about which you want - // to get merge options. + // The email address of the person merging the branches. This information is + // used in the commit information for the merge. + Email *string `locationName:"email" type:"string"` + + // If the commit contains deletions, whether to keep a folder or folder structure + // if the changes leave the folders empty. If true, a .gitkeep file is created + // for empty folders. The default is false. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + + // The name of the repository where you want to merge two branches. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` @@ -16002,21 +24148,24 @@ type GetMergeOptionsInput struct { // // SourceCommitSpecifier is a required field SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` + + // The branch where the merge is applied. + TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"` } // String returns the string representation -func (s GetMergeOptionsInput) String() string { +func (s MergeBranchesByThreeWayInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMergeOptionsInput) GoString() string { +func (s MergeBranchesByThreeWayInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetMergeOptionsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetMergeOptionsInput"} +func (s *MergeBranchesByThreeWayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByThreeWayInput"} if s.DestinationCommitSpecifier == nil { invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) } @@ -16029,6 +24178,14 @@ func (s *GetMergeOptionsInput) Validate() error { if s.SourceCommitSpecifier == nil { invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) } + if s.TargetBranch != nil && len(*s.TargetBranch) < 1 { + invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1)) + } + if s.ConflictResolution != nil { + if err := s.ConflictResolution.Validate(); err != nil { + invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -16036,267 +24193,381 @@ func (s *GetMergeOptionsInput) Validate() error { return nil } +// SetAuthorName sets the AuthorName field's value. +func (s *MergeBranchesByThreeWayInput) SetAuthorName(v string) *MergeBranchesByThreeWayInput { + s.AuthorName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *MergeBranchesByThreeWayInput) SetCommitMessage(v string) *MergeBranchesByThreeWayInput { + s.CommitMessage = &v + return s +} + // SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *GetMergeOptionsInput) SetConflictDetailLevel(v string) *GetMergeOptionsInput { +func (s *MergeBranchesByThreeWayInput) SetConflictDetailLevel(v string) *MergeBranchesByThreeWayInput { s.ConflictDetailLevel = &v return s } +// SetConflictResolution sets the ConflictResolution field's value. +func (s *MergeBranchesByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesByThreeWayInput { + s.ConflictResolution = v + return s +} + // SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *GetMergeOptionsInput) SetConflictResolutionStrategy(v string) *GetMergeOptionsInput { +func (s *MergeBranchesByThreeWayInput) SetConflictResolutionStrategy(v string) *MergeBranchesByThreeWayInput { s.ConflictResolutionStrategy = &v return s } // SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *GetMergeOptionsInput) SetDestinationCommitSpecifier(v string) *GetMergeOptionsInput { +func (s *MergeBranchesByThreeWayInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByThreeWayInput { s.DestinationCommitSpecifier = &v return s } +// SetEmail sets the Email field's value. +func (s *MergeBranchesByThreeWayInput) SetEmail(v string) *MergeBranchesByThreeWayInput { + s.Email = &v + return s +} + +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *MergeBranchesByThreeWayInput) SetKeepEmptyFolders(v bool) *MergeBranchesByThreeWayInput { + s.KeepEmptyFolders = &v + return s +} + // SetRepositoryName sets the RepositoryName field's value. -func (s *GetMergeOptionsInput) SetRepositoryName(v string) *GetMergeOptionsInput { +func (s *MergeBranchesByThreeWayInput) SetRepositoryName(v string) *MergeBranchesByThreeWayInput { s.RepositoryName = &v return s } // SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *GetMergeOptionsInput) SetSourceCommitSpecifier(v string) *GetMergeOptionsInput { +func (s *MergeBranchesByThreeWayInput) SetSourceCommitSpecifier(v string) *MergeBranchesByThreeWayInput { s.SourceCommitSpecifier = &v return s } -type GetMergeOptionsOutput struct { +// SetTargetBranch sets the TargetBranch field's value. +func (s *MergeBranchesByThreeWayInput) SetTargetBranch(v string) *MergeBranchesByThreeWayInput { + s.TargetBranch = &v + return s +} + +type MergeBranchesByThreeWayOutput struct { _ struct{} `type:"structure"` - // The commit ID of the merge base. - // - // BaseCommitId is a required field - BaseCommitId *string `locationName:"baseCommitId" type:"string" required:"true"` + // The commit ID of the merge in the destination or target branch. + CommitId *string `locationName:"commitId" type:"string"` - // The commit ID of the destination commit specifier that was used in the merge - // evaluation. - // - // DestinationCommitId is a required field - DestinationCommitId *string `locationName:"destinationCommitId" type:"string" required:"true"` + // The tree ID of the merge in the destination or target branch. + TreeId *string `locationName:"treeId" type:"string"` +} - // The merge option or strategy used to merge the code. - // - // MergeOptions is a required field - MergeOptions []*string `locationName:"mergeOptions" type:"list" required:"true"` +// String returns the string representation +func (s MergeBranchesByThreeWayOutput) String() string { + return awsutil.Prettify(s) +} - // The commit ID of the source commit specifier that was used in the merge evaluation. - // - // SourceCommitId is a required field - SourceCommitId *string `locationName:"sourceCommitId" type:"string" required:"true"` +// GoString returns the string representation +func (s MergeBranchesByThreeWayOutput) GoString() string { + return s.String() +} + +// SetCommitId sets the CommitId field's value. +func (s *MergeBranchesByThreeWayOutput) SetCommitId(v string) *MergeBranchesByThreeWayOutput { + s.CommitId = &v + return s +} + +// SetTreeId sets the TreeId field's value. +func (s *MergeBranchesByThreeWayOutput) SetTreeId(v string) *MergeBranchesByThreeWayOutput { + s.TreeId = &v + return s +} + +// Information about merge hunks in a merge or pull request operation. +type MergeHunk struct { + _ struct{} `type:"structure"` + + // Information about the merge hunk in the base of a merge or pull request. + Base *MergeHunkDetail `locationName:"base" type:"structure"` + + // Information about the merge hunk in the destination of a merge or pull request. + Destination *MergeHunkDetail `locationName:"destination" type:"structure"` + + // A Boolean value indicating whether a combination of hunks contains a conflict. + // Conflicts occur when the same file or the same lines in a file were modified + // in both the source and destination of a merge or pull request. Valid values + // include true, false, and null. True when the hunk represents a conflict and + // one or more files contains a line conflict. File mode conflicts in a merge + // do not set this to true. + IsConflict *bool `locationName:"isConflict" type:"boolean"` + + // Information about the merge hunk in the source of a merge or pull request. + Source *MergeHunkDetail `locationName:"source" type:"structure"` } // String returns the string representation -func (s GetMergeOptionsOutput) String() string { +func (s MergeHunk) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetMergeOptionsOutput) GoString() string { +func (s MergeHunk) GoString() string { return s.String() } -// SetBaseCommitId sets the BaseCommitId field's value. -func (s *GetMergeOptionsOutput) SetBaseCommitId(v string) *GetMergeOptionsOutput { - s.BaseCommitId = &v +// SetBase sets the Base field's value. +func (s *MergeHunk) SetBase(v *MergeHunkDetail) *MergeHunk { + s.Base = v return s } -// SetDestinationCommitId sets the DestinationCommitId field's value. -func (s *GetMergeOptionsOutput) SetDestinationCommitId(v string) *GetMergeOptionsOutput { - s.DestinationCommitId = &v +// SetDestination sets the Destination field's value. +func (s *MergeHunk) SetDestination(v *MergeHunkDetail) *MergeHunk { + s.Destination = v return s } -// SetMergeOptions sets the MergeOptions field's value. -func (s *GetMergeOptionsOutput) SetMergeOptions(v []*string) *GetMergeOptionsOutput { - s.MergeOptions = v +// SetIsConflict sets the IsConflict field's value. +func (s *MergeHunk) SetIsConflict(v bool) *MergeHunk { + s.IsConflict = &v return s } -// SetSourceCommitId sets the SourceCommitId field's value. -func (s *GetMergeOptionsOutput) SetSourceCommitId(v string) *GetMergeOptionsOutput { - s.SourceCommitId = &v +// SetSource sets the Source field's value. +func (s *MergeHunk) SetSource(v *MergeHunkDetail) *MergeHunk { + s.Source = v return s } -type GetPullRequestApprovalStatesInput struct { +// Information about the details of a merge hunk that contains a conflict in +// a merge or pull request operation. +type MergeHunkDetail struct { _ struct{} `type:"structure"` - // The system-generated ID for the pull request. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + // The end position of the hunk in the merge result. + EndLine *int64 `locationName:"endLine" type:"integer"` - // The system-generated ID for the pull request revision. - // - // RevisionId is a required field - RevisionId *string `locationName:"revisionId" type:"string" required:"true"` + // The base-64 encoded content of the hunk merged region that might contain + // a conflict. + HunkContent *string `locationName:"hunkContent" type:"string"` + + // The start position of the hunk in the merge result. + StartLine *int64 `locationName:"startLine" type:"integer"` } // String returns the string representation -func (s GetPullRequestApprovalStatesInput) String() string { +func (s MergeHunkDetail) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPullRequestApprovalStatesInput) GoString() string { +func (s MergeHunkDetail) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPullRequestApprovalStatesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPullRequestApprovalStatesInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - if s.RevisionId == nil { - invalidParams.Add(request.NewErrParamRequired("RevisionId")) - } +// SetEndLine sets the EndLine field's value. +func (s *MergeHunkDetail) SetEndLine(v int64) *MergeHunkDetail { + s.EndLine = &v + return s +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetHunkContent sets the HunkContent field's value. +func (s *MergeHunkDetail) SetHunkContent(v string) *MergeHunkDetail { + s.HunkContent = &v + return s } -// SetPullRequestId sets the PullRequestId field's value. -func (s *GetPullRequestApprovalStatesInput) SetPullRequestId(v string) *GetPullRequestApprovalStatesInput { - s.PullRequestId = &v +// SetStartLine sets the StartLine field's value. +func (s *MergeHunkDetail) SetStartLine(v int64) *MergeHunkDetail { + s.StartLine = &v + return s +} + +// Returns information about a merge or potential merge between a source reference +// and a destination reference in a pull request. +type MergeMetadata struct { + _ struct{} `type:"structure"` + + // A Boolean value indicating whether the merge has been made. + IsMerged *bool `locationName:"isMerged" type:"boolean"` + + // The commit ID for the merge commit, if any. + MergeCommitId *string `locationName:"mergeCommitId" type:"string"` + + // The merge strategy used in the merge. + MergeOption *string `locationName:"mergeOption" type:"string" enum:"MergeOptionTypeEnum"` + + // The Amazon Resource Name (ARN) of the user who merged the branches. + MergedBy *string `locationName:"mergedBy" type:"string"` +} + +// String returns the string representation +func (s MergeMetadata) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MergeMetadata) GoString() string { + return s.String() +} + +// SetIsMerged sets the IsMerged field's value. +func (s *MergeMetadata) SetIsMerged(v bool) *MergeMetadata { + s.IsMerged = &v + return s +} + +// SetMergeCommitId sets the MergeCommitId field's value. +func (s *MergeMetadata) SetMergeCommitId(v string) *MergeMetadata { + s.MergeCommitId = &v + return s +} + +// SetMergeOption sets the MergeOption field's value. +func (s *MergeMetadata) SetMergeOption(v string) *MergeMetadata { + s.MergeOption = &v return s } -// SetRevisionId sets the RevisionId field's value. -func (s *GetPullRequestApprovalStatesInput) SetRevisionId(v string) *GetPullRequestApprovalStatesInput { - s.RevisionId = &v +// SetMergedBy sets the MergedBy field's value. +func (s *MergeMetadata) SetMergedBy(v string) *MergeMetadata { + s.MergedBy = &v return s } -type GetPullRequestApprovalStatesOutput struct { +// Information about the file operation conflicts in a merge operation. +type MergeOperations struct { _ struct{} `type:"structure"` - // Information about users who have approved the pull request. - Approvals []*Approval `locationName:"approvals" type:"list"` + // The operation on a file in the destination of a merge or pull request. + Destination *string `locationName:"destination" type:"string" enum:"ChangeTypeEnum"` + + // The operation (add, modify, or delete) on a file in the source of a merge + // or pull request. + Source *string `locationName:"source" type:"string" enum:"ChangeTypeEnum"` } // String returns the string representation -func (s GetPullRequestApprovalStatesOutput) String() string { +func (s MergeOperations) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPullRequestApprovalStatesOutput) GoString() string { +func (s MergeOperations) GoString() string { return s.String() } -// SetApprovals sets the Approvals field's value. -func (s *GetPullRequestApprovalStatesOutput) SetApprovals(v []*Approval) *GetPullRequestApprovalStatesOutput { - s.Approvals = v +// SetDestination sets the Destination field's value. +func (s *MergeOperations) SetDestination(v string) *MergeOperations { + s.Destination = &v return s } -type GetPullRequestInput struct { - _ struct{} `type:"structure"` +// SetSource sets the Source field's value. +func (s *MergeOperations) SetSource(v string) *MergeOperations { + s.Source = &v + return s +} - // The system-generated ID of the pull request. To get this ID, use ListPullRequests. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` +// A merge option or stategy is required, and none was provided. +type MergeOptionRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetPullRequestInput) String() string { +func (s MergeOptionRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPullRequestInput) GoString() string { +func (s MergeOptionRequiredException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetPullRequestInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPullRequestInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorMergeOptionRequiredException(v protocol.ResponseMetadata) error { + return &MergeOptionRequiredException{ + respMetadata: v, } - return nil } -// SetPullRequestId sets the PullRequestId field's value. -func (s *GetPullRequestInput) SetPullRequestId(v string) *GetPullRequestInput { - s.PullRequestId = &v - return s +// Code returns the exception type name. +func (s MergeOptionRequiredException) Code() string { + return "MergeOptionRequiredException" } -type GetPullRequestOutput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s MergeOptionRequiredException) Message() string { + return "" +} - // Information about the specified pull request. - // - // PullRequest is a required field - PullRequest *PullRequest `locationName:"pullRequest" type:"structure" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MergeOptionRequiredException) OrigErr() error { + return nil } -// String returns the string representation -func (s GetPullRequestOutput) String() string { - return awsutil.Prettify(s) +func (s MergeOptionRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// GoString returns the string representation -func (s GetPullRequestOutput) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s MergeOptionRequiredException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetPullRequest sets the PullRequest field's value. -func (s *GetPullRequestOutput) SetPullRequest(v *PullRequest) *GetPullRequestOutput { - s.PullRequest = v - return s +// RequestID returns the service's response RequestID for request. +func (s MergeOptionRequiredException) RequestID() string { + return s.respMetadata.RequestID } -type GetPullRequestOverrideStateInput struct { +type MergePullRequestByFastForwardInput struct { _ struct{} `type:"structure"` - // The ID of the pull request for which you want to get information about whether - // approval rules have been set aside (overridden). + // The system-generated ID of the pull request. To get this ID, use ListPullRequests. // // PullRequestId is a required field PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` - // The system-generated ID of the revision for the pull request. To retrieve - // the most recent revision ID, use GetPullRequest. + // The name of the repository where the pull request was created. // - // RevisionId is a required field - RevisionId *string `locationName:"revisionId" type:"string" required:"true"` + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The full commit ID of the original or updated commit in the pull request + // source branch. Pass this value if you want an exception thrown if the current + // commit ID of the tip of the source branch does not match this commit ID. + SourceCommitId *string `locationName:"sourceCommitId" type:"string"` } // String returns the string representation -func (s GetPullRequestOverrideStateInput) String() string { +func (s MergePullRequestByFastForwardInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPullRequestOverrideStateInput) GoString() string { +func (s MergePullRequestByFastForwardInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetPullRequestOverrideStateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetPullRequestOverrideStateInput"} +func (s *MergePullRequestByFastForwardInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByFastForwardInput"} if s.PullRequestId == nil { invalidParams.Add(request.NewErrParamRequired("PullRequestId")) } - if s.RevisionId == nil { - invalidParams.Add(request.NewErrParamRequired("RevisionId")) + if s.RepositoryName == nil { + invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + } + if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } if invalidParams.Len() > 0 { @@ -16306,80 +24577,124 @@ func (s *GetPullRequestOverrideStateInput) Validate() error { } // SetPullRequestId sets the PullRequestId field's value. -func (s *GetPullRequestOverrideStateInput) SetPullRequestId(v string) *GetPullRequestOverrideStateInput { +func (s *MergePullRequestByFastForwardInput) SetPullRequestId(v string) *MergePullRequestByFastForwardInput { s.PullRequestId = &v return s } -// SetRevisionId sets the RevisionId field's value. -func (s *GetPullRequestOverrideStateInput) SetRevisionId(v string) *GetPullRequestOverrideStateInput { - s.RevisionId = &v +// SetRepositoryName sets the RepositoryName field's value. +func (s *MergePullRequestByFastForwardInput) SetRepositoryName(v string) *MergePullRequestByFastForwardInput { + s.RepositoryName = &v return s } -type GetPullRequestOverrideStateOutput struct { - _ struct{} `type:"structure"` +// SetSourceCommitId sets the SourceCommitId field's value. +func (s *MergePullRequestByFastForwardInput) SetSourceCommitId(v string) *MergePullRequestByFastForwardInput { + s.SourceCommitId = &v + return s +} - // A Boolean value that indicates whether a pull request has had its rules set - // aside (TRUE) or whether all approval rules still apply (FALSE). - Overridden *bool `locationName:"overridden" type:"boolean"` +type MergePullRequestByFastForwardOutput struct { + _ struct{} `type:"structure"` - // The Amazon Resource Name (ARN) of the user or identity that overrode the - // rules and their requirements for the pull request. - Overrider *string `locationName:"overrider" type:"string"` + // Information about the specified pull request, including the merge. + PullRequest *PullRequest `locationName:"pullRequest" type:"structure"` } // String returns the string representation -func (s GetPullRequestOverrideStateOutput) String() string { +func (s MergePullRequestByFastForwardOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetPullRequestOverrideStateOutput) GoString() string { +func (s MergePullRequestByFastForwardOutput) GoString() string { return s.String() } -// SetOverridden sets the Overridden field's value. -func (s *GetPullRequestOverrideStateOutput) SetOverridden(v bool) *GetPullRequestOverrideStateOutput { - s.Overridden = &v - return s -} - -// SetOverrider sets the Overrider field's value. -func (s *GetPullRequestOverrideStateOutput) SetOverrider(v string) *GetPullRequestOverrideStateOutput { - s.Overrider = &v +// SetPullRequest sets the PullRequest field's value. +func (s *MergePullRequestByFastForwardOutput) SetPullRequest(v *PullRequest) *MergePullRequestByFastForwardOutput { + s.PullRequest = v return s } -// Represents the input of a get repository operation. -type GetRepositoryInput struct { +type MergePullRequestBySquashInput struct { _ struct{} `type:"structure"` - // The name of the repository to get information about. + // The name of the author who created the commit. This information is used as + // both the author and committer for the commit. + AuthorName *string `locationName:"authorName" type:"string"` + + // The commit message to include in the commit information for the merge. + CommitMessage *string `locationName:"commitMessage" type:"string"` + + // The level of conflict detail to use. If unspecified, the default FILE_LEVEL + // is used, which returns a not-mergeable result if the same file has differences + // in both branches. If LINE_LEVEL is specified, a conflict is considered not + // mergeable if the same file in both branches has differences on the same line. + ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + + // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use + // when resolving conflicts during a merge. + ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` + + // Specifies which branch to use when resolving conflicts, or whether to attempt + // automatically merging two versions of a file. The default is NONE, which + // requires any conflicts to be resolved manually before the merge operation + // is successful. + ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + + // The email address of the person merging the branches. This information is + // used in the commit information for the merge. + Email *string `locationName:"email" type:"string"` + + // If the commit contains deletions, whether to keep a folder or folder structure + // if the changes leave the folders empty. If true, a .gitkeep file is created + // for empty folders. The default is false. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + + // The system-generated ID of the pull request. To get this ID, use ListPullRequests. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + + // The name of the repository where the pull request was created. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The full commit ID of the original or updated commit in the pull request + // source branch. Pass this value if you want an exception thrown if the current + // commit ID of the tip of the source branch does not match this commit ID. + SourceCommitId *string `locationName:"sourceCommitId" type:"string"` } // String returns the string representation -func (s GetRepositoryInput) String() string { +func (s MergePullRequestBySquashInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRepositoryInput) GoString() string { +func (s MergePullRequestBySquashInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetRepositoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRepositoryInput"} +func (s *MergePullRequestBySquashInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MergePullRequestBySquashInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) } if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } + if s.ConflictResolution != nil { + if err := s.ConflictResolution.Validate(); err != nil { + invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -16387,65 +24702,167 @@ func (s *GetRepositoryInput) Validate() error { return nil } +// SetAuthorName sets the AuthorName field's value. +func (s *MergePullRequestBySquashInput) SetAuthorName(v string) *MergePullRequestBySquashInput { + s.AuthorName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *MergePullRequestBySquashInput) SetCommitMessage(v string) *MergePullRequestBySquashInput { + s.CommitMessage = &v + return s +} + +// SetConflictDetailLevel sets the ConflictDetailLevel field's value. +func (s *MergePullRequestBySquashInput) SetConflictDetailLevel(v string) *MergePullRequestBySquashInput { + s.ConflictDetailLevel = &v + return s +} + +// SetConflictResolution sets the ConflictResolution field's value. +func (s *MergePullRequestBySquashInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestBySquashInput { + s.ConflictResolution = v + return s +} + +// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. +func (s *MergePullRequestBySquashInput) SetConflictResolutionStrategy(v string) *MergePullRequestBySquashInput { + s.ConflictResolutionStrategy = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *MergePullRequestBySquashInput) SetEmail(v string) *MergePullRequestBySquashInput { + s.Email = &v + return s +} + +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *MergePullRequestBySquashInput) SetKeepEmptyFolders(v bool) *MergePullRequestBySquashInput { + s.KeepEmptyFolders = &v + return s +} + +// SetPullRequestId sets the PullRequestId field's value. +func (s *MergePullRequestBySquashInput) SetPullRequestId(v string) *MergePullRequestBySquashInput { + s.PullRequestId = &v + return s +} + // SetRepositoryName sets the RepositoryName field's value. -func (s *GetRepositoryInput) SetRepositoryName(v string) *GetRepositoryInput { +func (s *MergePullRequestBySquashInput) SetRepositoryName(v string) *MergePullRequestBySquashInput { s.RepositoryName = &v return s } -// Represents the output of a get repository operation. -type GetRepositoryOutput struct { +// SetSourceCommitId sets the SourceCommitId field's value. +func (s *MergePullRequestBySquashInput) SetSourceCommitId(v string) *MergePullRequestBySquashInput { + s.SourceCommitId = &v + return s +} + +type MergePullRequestBySquashOutput struct { _ struct{} `type:"structure"` - // Information about the repository. - RepositoryMetadata *RepositoryMetadata `locationName:"repositoryMetadata" type:"structure"` + // Returns information about a pull request. + PullRequest *PullRequest `locationName:"pullRequest" type:"structure"` } // String returns the string representation -func (s GetRepositoryOutput) String() string { +func (s MergePullRequestBySquashOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRepositoryOutput) GoString() string { +func (s MergePullRequestBySquashOutput) GoString() string { return s.String() } -// SetRepositoryMetadata sets the RepositoryMetadata field's value. -func (s *GetRepositoryOutput) SetRepositoryMetadata(v *RepositoryMetadata) *GetRepositoryOutput { - s.RepositoryMetadata = v +// SetPullRequest sets the PullRequest field's value. +func (s *MergePullRequestBySquashOutput) SetPullRequest(v *PullRequest) *MergePullRequestBySquashOutput { + s.PullRequest = v return s } -// Represents the input of a get repository triggers operation. -type GetRepositoryTriggersInput struct { +type MergePullRequestByThreeWayInput struct { _ struct{} `type:"structure"` - // The name of the repository for which the trigger is configured. + // The name of the author who created the commit. This information is used as + // both the author and committer for the commit. + AuthorName *string `locationName:"authorName" type:"string"` + + // The commit message to include in the commit information for the merge. + CommitMessage *string `locationName:"commitMessage" type:"string"` + + // The level of conflict detail to use. If unspecified, the default FILE_LEVEL + // is used, which returns a not-mergeable result if the same file has differences + // in both branches. If LINE_LEVEL is specified, a conflict is considered not + // mergeable if the same file in both branches has differences on the same line. + ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + + // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use + // when resolving conflicts during a merge. + ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` + + // Specifies which branch to use when resolving conflicts, or whether to attempt + // automatically merging two versions of a file. The default is NONE, which + // requires any conflicts to be resolved manually before the merge operation + // is successful. + ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + + // The email address of the person merging the branches. This information is + // used in the commit information for the merge. + Email *string `locationName:"email" type:"string"` + + // If the commit contains deletions, whether to keep a folder or folder structure + // if the changes leave the folders empty. If true, a .gitkeep file is created + // for empty folders. The default is false. + KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + + // The system-generated ID of the pull request. To get this ID, use ListPullRequests. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + + // The name of the repository where the pull request was created. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The full commit ID of the original or updated commit in the pull request + // source branch. Pass this value if you want an exception thrown if the current + // commit ID of the tip of the source branch does not match this commit ID. + SourceCommitId *string `locationName:"sourceCommitId" type:"string"` } // String returns the string representation -func (s GetRepositoryTriggersInput) String() string { +func (s MergePullRequestByThreeWayInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetRepositoryTriggersInput) GoString() string { +func (s MergePullRequestByThreeWayInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *GetRepositoryTriggersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetRepositoryTriggersInput"} +func (s *MergePullRequestByThreeWayInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByThreeWayInput"} + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) } if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } + if s.ConflictResolution != nil { + if err := s.ConflictResolution.Validate(); err != nil { + invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -16453,487 +24870,574 @@ func (s *GetRepositoryTriggersInput) Validate() error { return nil } -// SetRepositoryName sets the RepositoryName field's value. -func (s *GetRepositoryTriggersInput) SetRepositoryName(v string) *GetRepositoryTriggersInput { - s.RepositoryName = &v +// SetAuthorName sets the AuthorName field's value. +func (s *MergePullRequestByThreeWayInput) SetAuthorName(v string) *MergePullRequestByThreeWayInput { + s.AuthorName = &v return s } -// Represents the output of a get repository triggers operation. -type GetRepositoryTriggersOutput struct { - _ struct{} `type:"structure"` +// SetCommitMessage sets the CommitMessage field's value. +func (s *MergePullRequestByThreeWayInput) SetCommitMessage(v string) *MergePullRequestByThreeWayInput { + s.CommitMessage = &v + return s +} - // The system-generated unique ID for the trigger. - ConfigurationId *string `locationName:"configurationId" type:"string"` +// SetConflictDetailLevel sets the ConflictDetailLevel field's value. +func (s *MergePullRequestByThreeWayInput) SetConflictDetailLevel(v string) *MergePullRequestByThreeWayInput { + s.ConflictDetailLevel = &v + return s +} - // The JSON block of configuration information for each trigger. - Triggers []*RepositoryTrigger `locationName:"triggers" type:"list"` +// SetConflictResolution sets the ConflictResolution field's value. +func (s *MergePullRequestByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestByThreeWayInput { + s.ConflictResolution = v + return s } -// String returns the string representation -func (s GetRepositoryTriggersOutput) String() string { - return awsutil.Prettify(s) +// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. +func (s *MergePullRequestByThreeWayInput) SetConflictResolutionStrategy(v string) *MergePullRequestByThreeWayInput { + s.ConflictResolutionStrategy = &v + return s } -// GoString returns the string representation -func (s GetRepositoryTriggersOutput) GoString() string { - return s.String() +// SetEmail sets the Email field's value. +func (s *MergePullRequestByThreeWayInput) SetEmail(v string) *MergePullRequestByThreeWayInput { + s.Email = &v + return s } -// SetConfigurationId sets the ConfigurationId field's value. -func (s *GetRepositoryTriggersOutput) SetConfigurationId(v string) *GetRepositoryTriggersOutput { - s.ConfigurationId = &v +// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. +func (s *MergePullRequestByThreeWayInput) SetKeepEmptyFolders(v bool) *MergePullRequestByThreeWayInput { + s.KeepEmptyFolders = &v return s } -// SetTriggers sets the Triggers field's value. -func (s *GetRepositoryTriggersOutput) SetTriggers(v []*RepositoryTrigger) *GetRepositoryTriggersOutput { - s.Triggers = v +// SetPullRequestId sets the PullRequestId field's value. +func (s *MergePullRequestByThreeWayInput) SetPullRequestId(v string) *MergePullRequestByThreeWayInput { + s.PullRequestId = &v return s } -// Information about whether a file is binary or textual in a merge or pull -// request operation. -type IsBinaryFile struct { - _ struct{} `type:"structure"` +// SetRepositoryName sets the RepositoryName field's value. +func (s *MergePullRequestByThreeWayInput) SetRepositoryName(v string) *MergePullRequestByThreeWayInput { + s.RepositoryName = &v + return s +} - // The binary or non-binary status of a file in the base of a merge or pull - // request. - Base *bool `locationName:"base" type:"boolean"` +// SetSourceCommitId sets the SourceCommitId field's value. +func (s *MergePullRequestByThreeWayInput) SetSourceCommitId(v string) *MergePullRequestByThreeWayInput { + s.SourceCommitId = &v + return s +} - // The binary or non-binary status of a file in the destination of a merge or - // pull request. - Destination *bool `locationName:"destination" type:"boolean"` +type MergePullRequestByThreeWayOutput struct { + _ struct{} `type:"structure"` - // The binary or non-binary status of file in the source of a merge or pull - // request. - Source *bool `locationName:"source" type:"boolean"` + // Returns information about a pull request. + PullRequest *PullRequest `locationName:"pullRequest" type:"structure"` } // String returns the string representation -func (s IsBinaryFile) String() string { +func (s MergePullRequestByThreeWayOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s IsBinaryFile) GoString() string { +func (s MergePullRequestByThreeWayOutput) GoString() string { return s.String() } -// SetBase sets the Base field's value. -func (s *IsBinaryFile) SetBase(v bool) *IsBinaryFile { - s.Base = &v +// SetPullRequest sets the PullRequest field's value. +func (s *MergePullRequestByThreeWayOutput) SetPullRequest(v *PullRequest) *MergePullRequestByThreeWayOutput { + s.PullRequest = v return s } -// SetDestination sets the Destination field's value. -func (s *IsBinaryFile) SetDestination(v bool) *IsBinaryFile { - s.Destination = &v - return s +// More than one conflict resolution entries exists for the conflict. A conflict +// can have only one conflict resolution entry. +type MultipleConflictResolutionEntriesException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetSource sets the Source field's value. -func (s *IsBinaryFile) SetSource(v bool) *IsBinaryFile { - s.Source = &v - return s +// String returns the string representation +func (s MultipleConflictResolutionEntriesException) String() string { + return awsutil.Prettify(s) } -type ListApprovalRuleTemplatesInput struct { - _ struct{} `type:"structure"` +// GoString returns the string representation +func (s MultipleConflictResolutionEntriesException) GoString() string { + return s.String() +} - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults *int64 `locationName:"maxResults" type:"integer"` +func newErrorMultipleConflictResolutionEntriesException(v protocol.ResponseMetadata) error { + return &MultipleConflictResolutionEntriesException{ + respMetadata: v, + } +} - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +// Code returns the exception type name. +func (s MultipleConflictResolutionEntriesException) Code() string { + return "MultipleConflictResolutionEntriesException" +} + +// Message returns the exception's message. +func (s MultipleConflictResolutionEntriesException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MultipleConflictResolutionEntriesException) OrigErr() error { + return nil +} + +func (s MultipleConflictResolutionEntriesException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MultipleConflictResolutionEntriesException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MultipleConflictResolutionEntriesException) RequestID() string { + return s.respMetadata.RequestID +} + +// You cannot include more than one repository in a pull request. Make sure +// you have specified only one repository name in your request, and then try +// again. +type MultipleRepositoriesInPullRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListApprovalRuleTemplatesInput) String() string { +func (s MultipleRepositoriesInPullRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListApprovalRuleTemplatesInput) GoString() string { +func (s MultipleRepositoriesInPullRequestException) GoString() string { return s.String() } -// SetMaxResults sets the MaxResults field's value. -func (s *ListApprovalRuleTemplatesInput) SetMaxResults(v int64) *ListApprovalRuleTemplatesInput { - s.MaxResults = &v - return s +func newErrorMultipleRepositoriesInPullRequestException(v protocol.ResponseMetadata) error { + return &MultipleRepositoriesInPullRequestException{ + respMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *ListApprovalRuleTemplatesInput) SetNextToken(v string) *ListApprovalRuleTemplatesInput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s MultipleRepositoriesInPullRequestException) Code() string { + return "MultipleRepositoriesInPullRequestException" } -type ListApprovalRuleTemplatesOutput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s MultipleRepositoriesInPullRequestException) Message() string { + return "" +} - // The names of all the approval rule templates found in the AWS Region for - // your AWS account. - ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MultipleRepositoriesInPullRequestException) OrigErr() error { + return nil +} - // An enumeration token that allows the operation to batch the next results - // of the operation. - NextToken *string `locationName:"nextToken" type:"string"` +func (s MultipleRepositoriesInPullRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MultipleRepositoriesInPullRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MultipleRepositoriesInPullRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The user name is not valid because it has exceeded the character limit for +// author names. +type NameLengthExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListApprovalRuleTemplatesOutput) String() string { +func (s NameLengthExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListApprovalRuleTemplatesOutput) GoString() string { +func (s NameLengthExceededException) GoString() string { return s.String() } -// SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value. -func (s *ListApprovalRuleTemplatesOutput) SetApprovalRuleTemplateNames(v []*string) *ListApprovalRuleTemplatesOutput { - s.ApprovalRuleTemplateNames = v - return s +func newErrorNameLengthExceededException(v protocol.ResponseMetadata) error { + return &NameLengthExceededException{ + respMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *ListApprovalRuleTemplatesOutput) SetNextToken(v string) *ListApprovalRuleTemplatesOutput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s NameLengthExceededException) Code() string { + return "NameLengthExceededException" +} + +// Message returns the exception's message. +func (s NameLengthExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NameLengthExceededException) OrigErr() error { + return nil } -type ListAssociatedApprovalRuleTemplatesForRepositoryInput struct { - _ struct{} `type:"structure"` +func (s NameLengthExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults *int64 `locationName:"maxResults" type:"integer"` +// Status code returns the HTTP status code for the request's response error. +func (s NameLengthExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s NameLengthExceededException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the repository for which you want to list all associated approval - // rule templates. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +// The commit cannot be created because no changes will be made to the repository +// as a result of this commit. A commit must contain at least one change. +type NoChangeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) String() string { +func (s NoChangeException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAssociatedApprovalRuleTemplatesForRepositoryInput) GoString() string { +func (s NoChangeException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAssociatedApprovalRuleTemplatesForRepositoryInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorNoChangeException(v protocol.ResponseMetadata) error { + return &NoChangeException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s NoChangeException) Code() string { + return "NoChangeException" } -// SetMaxResults sets the MaxResults field's value. -func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetMaxResults(v int64) *ListAssociatedApprovalRuleTemplatesForRepositoryInput { - s.MaxResults = &v - return s +// Message returns the exception's message. +func (s NoChangeException) Message() string { + return "" } -// SetNextToken sets the NextToken field's value. -func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput { - s.NextToken = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoChangeException) OrigErr() error { + return nil } -// SetRepositoryName sets the RepositoryName field's value. -func (s *ListAssociatedApprovalRuleTemplatesForRepositoryInput) SetRepositoryName(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryInput { - s.RepositoryName = &v - return s +func (s NoChangeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type ListAssociatedApprovalRuleTemplatesForRepositoryOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s NoChangeException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The names of all approval rule templates associated with the repository. - ApprovalRuleTemplateNames []*string `locationName:"approvalRuleTemplateNames" type:"list"` +// RequestID returns the service's response RequestID for request. +func (s NoChangeException) RequestID() string { + return s.respMetadata.RequestID +} - // An enumeration token that allows the operation to batch the next results - // of the operation. - NextToken *string `locationName:"nextToken" type:"string"` +// The maximum number of approval rule templates has been exceeded for this +// AWS Region. +type NumberOfRuleTemplatesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) String() string { +func (s NumberOfRuleTemplatesExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAssociatedApprovalRuleTemplatesForRepositoryOutput) GoString() string { +func (s NumberOfRuleTemplatesExceededException) GoString() string { return s.String() } -// SetApprovalRuleTemplateNames sets the ApprovalRuleTemplateNames field's value. -func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetApprovalRuleTemplateNames(v []*string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput { - s.ApprovalRuleTemplateNames = v - return s +func newErrorNumberOfRuleTemplatesExceededException(v protocol.ResponseMetadata) error { + return &NumberOfRuleTemplatesExceededException{ + respMetadata: v, + } } -// SetNextToken sets the NextToken field's value. -func (s *ListAssociatedApprovalRuleTemplatesForRepositoryOutput) SetNextToken(v string) *ListAssociatedApprovalRuleTemplatesForRepositoryOutput { - s.NextToken = &v - return s +// Code returns the exception type name. +func (s NumberOfRuleTemplatesExceededException) Code() string { + return "NumberOfRuleTemplatesExceededException" } -// Represents the input of a list branches operation. -type ListBranchesInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s NumberOfRuleTemplatesExceededException) Message() string { + return "" +} - // An enumeration token that allows the operation to batch the results. - NextToken *string `locationName:"nextToken" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NumberOfRuleTemplatesExceededException) OrigErr() error { + return nil +} - // The name of the repository that contains the branches. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +func (s NumberOfRuleTemplatesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NumberOfRuleTemplatesExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NumberOfRuleTemplatesExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The approval rule cannot be added. The pull request has the maximum number +// of approval rules associated with it. +type NumberOfRulesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListBranchesInput) String() string { +func (s NumberOfRulesExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBranchesInput) GoString() string { +func (s NumberOfRulesExceededException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListBranchesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListBranchesInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) +func newErrorNumberOfRulesExceededException(v protocol.ResponseMetadata) error { + return &NumberOfRulesExceededException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s NumberOfRulesExceededException) Code() string { + return "NumberOfRulesExceededException" +} + +// Message returns the exception's message. +func (s NumberOfRulesExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NumberOfRulesExceededException) OrigErr() error { return nil } -// SetNextToken sets the NextToken field's value. -func (s *ListBranchesInput) SetNextToken(v string) *ListBranchesInput { - s.NextToken = &v - return s +func (s NumberOfRulesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *ListBranchesInput) SetRepositoryName(v string) *ListBranchesInput { - s.RepositoryName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s NumberOfRulesExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents the output of a list branches operation. -type ListBranchesOutput struct { +// RequestID returns the service's response RequestID for request. +func (s NumberOfRulesExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about the type of an object in a merge operation. +type ObjectTypes struct { _ struct{} `type:"structure"` - // The list of branch names. - Branches []*string `locationName:"branches" type:"list"` + // The type of the object in the base commit of the merge. + Base *string `locationName:"base" type:"string" enum:"ObjectTypeEnum"` - // An enumeration token that returns the batch of the results. - NextToken *string `locationName:"nextToken" type:"string"` + // The type of the object in the destination branch. + Destination *string `locationName:"destination" type:"string" enum:"ObjectTypeEnum"` + + // The type of the object in the source branch. + Source *string `locationName:"source" type:"string" enum:"ObjectTypeEnum"` } // String returns the string representation -func (s ListBranchesOutput) String() string { +func (s ObjectTypes) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListBranchesOutput) GoString() string { +func (s ObjectTypes) GoString() string { return s.String() } -// SetBranches sets the Branches field's value. -func (s *ListBranchesOutput) SetBranches(v []*string) *ListBranchesOutput { - s.Branches = v +// SetBase sets the Base field's value. +func (s *ObjectTypes) SetBase(v string) *ObjectTypes { + s.Base = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListBranchesOutput) SetNextToken(v string) *ListBranchesOutput { - s.NextToken = &v +// SetDestination sets the Destination field's value. +func (s *ObjectTypes) SetDestination(v string) *ObjectTypes { + s.Destination = &v return s } -type ListPullRequestsInput struct { - _ struct{} `type:"structure"` - - // Optional. The Amazon Resource Name (ARN) of the user who created the pull - // request. If used, this filters the results to pull requests created by that - // user. - AuthorArn *string `locationName:"authorArn" type:"string"` - - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults *int64 `locationName:"maxResults" type:"integer"` +// SetSource sets the Source field's value. +func (s *ObjectTypes) SetSource(v string) *ObjectTypes { + s.Source = &v + return s +} - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +// Returns information about the template that created the approval rule for +// a pull request. +type OriginApprovalRuleTemplate struct { + _ struct{} `type:"structure"` - // Optional. The status of the pull request. If used, this refines the results - // to the pull requests that match the specified status. - PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"` + // The ID of the template that created the approval rule. + ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string"` - // The name of the repository for which you want to list pull requests. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + // The name of the template that created the approval rule. + ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string"` } // String returns the string representation -func (s ListPullRequestsInput) String() string { +func (s OriginApprovalRuleTemplate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListPullRequestsInput) GoString() string { +func (s OriginApprovalRuleTemplate) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListPullRequestsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListPullRequestsInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAuthorArn sets the AuthorArn field's value. -func (s *ListPullRequestsInput) SetAuthorArn(v string) *ListPullRequestsInput { - s.AuthorArn = &v +// SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value. +func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateId(v string) *OriginApprovalRuleTemplate { + s.ApprovalRuleTemplateId = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListPullRequestsInput) SetMaxResults(v int64) *ListPullRequestsInput { - s.MaxResults = &v +// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. +func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateName(v string) *OriginApprovalRuleTemplate { + s.ApprovalRuleTemplateName = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListPullRequestsInput) SetNextToken(v string) *ListPullRequestsInput { - s.NextToken = &v - return s +// The pull request has already had its approval rules set to override. +type OverrideAlreadySetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetPullRequestStatus sets the PullRequestStatus field's value. -func (s *ListPullRequestsInput) SetPullRequestStatus(v string) *ListPullRequestsInput { - s.PullRequestStatus = &v - return s +// String returns the string representation +func (s OverrideAlreadySetException) String() string { + return awsutil.Prettify(s) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *ListPullRequestsInput) SetRepositoryName(v string) *ListPullRequestsInput { - s.RepositoryName = &v - return s +// GoString returns the string representation +func (s OverrideAlreadySetException) GoString() string { + return s.String() } -type ListPullRequestsOutput struct { - _ struct{} `type:"structure"` +func newErrorOverrideAlreadySetException(v protocol.ResponseMetadata) error { + return &OverrideAlreadySetException{ + respMetadata: v, + } +} - // An enumeration token that allows the operation to batch the next results - // of the operation. - NextToken *string `locationName:"nextToken" type:"string"` +// Code returns the exception type name. +func (s OverrideAlreadySetException) Code() string { + return "OverrideAlreadySetException" +} - // The system-generated IDs of the pull requests. - // - // PullRequestIds is a required field - PullRequestIds []*string `locationName:"pullRequestIds" type:"list" required:"true"` +// Message returns the exception's message. +func (s OverrideAlreadySetException) Message() string { + return "" } -// String returns the string representation -func (s ListPullRequestsOutput) String() string { - return awsutil.Prettify(s) +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OverrideAlreadySetException) OrigErr() error { + return nil } -// GoString returns the string representation -func (s ListPullRequestsOutput) GoString() string { - return s.String() +func (s OverrideAlreadySetException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetNextToken sets the NextToken field's value. -func (s *ListPullRequestsOutput) SetNextToken(v string) *ListPullRequestsOutput { - s.NextToken = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s OverrideAlreadySetException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetPullRequestIds sets the PullRequestIds field's value. -func (s *ListPullRequestsOutput) SetPullRequestIds(v []*string) *ListPullRequestsOutput { - s.PullRequestIds = v - return s +// RequestID returns the service's response RequestID for request. +func (s OverrideAlreadySetException) RequestID() string { + return s.respMetadata.RequestID } -type ListRepositoriesForApprovalRuleTemplateInput struct { +type OverridePullRequestApprovalRulesInput struct { _ struct{} `type:"structure"` - // The name of the approval rule template for which you want to list repositories - // that are associated with that template. + // Whether you want to set aside approval rule requirements for the pull request + // (OVERRIDE) or revoke a previous override and apply approval rule requirements + // (REVOKE). REVOKE status is not stored. // - // ApprovalRuleTemplateName is a required field - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string" required:"true"` + // OverrideStatus is a required field + OverrideStatus *string `locationName:"overrideStatus" type:"string" required:"true" enum:"OverrideStatus"` - // A non-zero, non-negative integer used to limit the number of returned results. - MaxResults *int64 `locationName:"maxResults" type:"integer"` + // The system-generated ID of the pull request for which you want to override + // all approval rule requirements. To get this information, use GetPullRequest. + // + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` + // The system-generated ID of the most recent revision of the pull request. + // You cannot override approval rules for anything but the most recent revision + // of a pull request. To get the revision ID, use GetPullRequest. + // + // RevisionId is a required field + RevisionId *string `locationName:"revisionId" type:"string" required:"true"` } // String returns the string representation -func (s ListRepositoriesForApprovalRuleTemplateInput) String() string { +func (s OverridePullRequestApprovalRulesInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRepositoriesForApprovalRuleTemplateInput) GoString() string { +func (s OverridePullRequestApprovalRulesInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *ListRepositoriesForApprovalRuleTemplateInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListRepositoriesForApprovalRuleTemplateInput"} - if s.ApprovalRuleTemplateName == nil { - invalidParams.Add(request.NewErrParamRequired("ApprovalRuleTemplateName")) +func (s *OverridePullRequestApprovalRulesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "OverridePullRequestApprovalRulesInput"} + if s.OverrideStatus == nil { + invalidParams.Add(request.NewErrParamRequired("OverrideStatus")) } - if s.ApprovalRuleTemplateName != nil && len(*s.ApprovalRuleTemplateName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApprovalRuleTemplateName", 1)) + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) + } + if s.RevisionId == nil { + invalidParams.Add(request.NewErrParamRequired("RevisionId")) } if invalidParams.Len() > 0 { @@ -16942,305 +25446,403 @@ func (s *ListRepositoriesForApprovalRuleTemplateInput) Validate() error { return nil } -// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. -func (s *ListRepositoriesForApprovalRuleTemplateInput) SetApprovalRuleTemplateName(v string) *ListRepositoriesForApprovalRuleTemplateInput { - s.ApprovalRuleTemplateName = &v +// SetOverrideStatus sets the OverrideStatus field's value. +func (s *OverridePullRequestApprovalRulesInput) SetOverrideStatus(v string) *OverridePullRequestApprovalRulesInput { + s.OverrideStatus = &v return s } -// SetMaxResults sets the MaxResults field's value. -func (s *ListRepositoriesForApprovalRuleTemplateInput) SetMaxResults(v int64) *ListRepositoriesForApprovalRuleTemplateInput { - s.MaxResults = &v +// SetPullRequestId sets the PullRequestId field's value. +func (s *OverridePullRequestApprovalRulesInput) SetPullRequestId(v string) *OverridePullRequestApprovalRulesInput { + s.PullRequestId = &v return s } -// SetNextToken sets the NextToken field's value. -func (s *ListRepositoriesForApprovalRuleTemplateInput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateInput { - s.NextToken = &v +// SetRevisionId sets the RevisionId field's value. +func (s *OverridePullRequestApprovalRulesInput) SetRevisionId(v string) *OverridePullRequestApprovalRulesInput { + s.RevisionId = &v return s } -type ListRepositoriesForApprovalRuleTemplateOutput struct { +type OverridePullRequestApprovalRulesOutput struct { _ struct{} `type:"structure"` +} - // An enumeration token that allows the operation to batch the next results - // of the operation. - NextToken *string `locationName:"nextToken" type:"string"` +// String returns the string representation +func (s OverridePullRequestApprovalRulesOutput) String() string { + return awsutil.Prettify(s) +} - // A list of repository names that are associated with the specified approval - // rule template. - RepositoryNames []*string `locationName:"repositoryNames" type:"list"` +// GoString returns the string representation +func (s OverridePullRequestApprovalRulesOutput) GoString() string { + return s.String() +} + +// An override status is required, but no value was provided. Valid values include +// OVERRIDE and REVOKE. +type OverrideStatusRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListRepositoriesForApprovalRuleTemplateOutput) String() string { +func (s OverrideStatusRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRepositoriesForApprovalRuleTemplateOutput) GoString() string { +func (s OverrideStatusRequiredException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetNextToken(v string) *ListRepositoriesForApprovalRuleTemplateOutput { - s.NextToken = &v - return s +func newErrorOverrideStatusRequiredException(v protocol.ResponseMetadata) error { + return &OverrideStatusRequiredException{ + respMetadata: v, + } } -// SetRepositoryNames sets the RepositoryNames field's value. -func (s *ListRepositoriesForApprovalRuleTemplateOutput) SetRepositoryNames(v []*string) *ListRepositoriesForApprovalRuleTemplateOutput { - s.RepositoryNames = v - return s +// Code returns the exception type name. +func (s OverrideStatusRequiredException) Code() string { + return "OverrideStatusRequiredException" } -// Represents the input of a list repositories operation. -type ListRepositoriesInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s OverrideStatusRequiredException) Message() string { + return "" +} - // An enumeration token that allows the operation to batch the results of the - // operation. Batch sizes are 1,000 for list repository operations. When the - // client sends the token back to AWS CodeCommit, another page of 1,000 records - // is retrieved. - NextToken *string `locationName:"nextToken" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OverrideStatusRequiredException) OrigErr() error { + return nil +} - // The order in which to sort the results of a list repositories operation. - Order *string `locationName:"order" type:"string" enum:"OrderEnum"` +func (s OverrideStatusRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The criteria used to sort the results of a list repositories operation. - SortBy *string `locationName:"sortBy" type:"string" enum:"SortByEnum"` +// Status code returns the HTTP status code for the request's response error. +func (s OverrideStatusRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OverrideStatusRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The parent commit ID is not valid because it does not exist. The specified +// parent commit ID does not exist in the specified branch of the repository. +type ParentCommitDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListRepositoriesInput) String() string { +func (s ParentCommitDoesNotExistException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRepositoriesInput) GoString() string { +func (s ParentCommitDoesNotExistException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListRepositoriesInput) SetNextToken(v string) *ListRepositoriesInput { - s.NextToken = &v - return s +func newErrorParentCommitDoesNotExistException(v protocol.ResponseMetadata) error { + return &ParentCommitDoesNotExistException{ + respMetadata: v, + } } -// SetOrder sets the Order field's value. -func (s *ListRepositoriesInput) SetOrder(v string) *ListRepositoriesInput { - s.Order = &v - return s +// Code returns the exception type name. +func (s ParentCommitDoesNotExistException) Code() string { + return "ParentCommitDoesNotExistException" } -// SetSortBy sets the SortBy field's value. -func (s *ListRepositoriesInput) SetSortBy(v string) *ListRepositoriesInput { - s.SortBy = &v - return s +// Message returns the exception's message. +func (s ParentCommitDoesNotExistException) Message() string { + return "" } -// Represents the output of a list repositories operation. -type ListRepositoriesOutput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParentCommitDoesNotExistException) OrigErr() error { + return nil +} - // An enumeration token that allows the operation to batch the results of the - // operation. Batch sizes are 1,000 for list repository operations. When the - // client sends the token back to AWS CodeCommit, another page of 1,000 records - // is retrieved. - NextToken *string `locationName:"nextToken" type:"string"` +func (s ParentCommitDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Lists the repositories called by the list repositories operation. - Repositories []*RepositoryNameIdPair `locationName:"repositories" type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s ParentCommitDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParentCommitDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The file could not be added because the provided parent commit ID is not +// the current tip of the specified branch. To view the full commit ID of the +// current head of the branch, use GetBranch. +type ParentCommitIdOutdatedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListRepositoriesOutput) String() string { +func (s ParentCommitIdOutdatedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListRepositoriesOutput) GoString() string { +func (s ParentCommitIdOutdatedException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListRepositoriesOutput) SetNextToken(v string) *ListRepositoriesOutput { - s.NextToken = &v - return s +func newErrorParentCommitIdOutdatedException(v protocol.ResponseMetadata) error { + return &ParentCommitIdOutdatedException{ + respMetadata: v, + } } -// SetRepositories sets the Repositories field's value. -func (s *ListRepositoriesOutput) SetRepositories(v []*RepositoryNameIdPair) *ListRepositoriesOutput { - s.Repositories = v - return s +// Code returns the exception type name. +func (s ParentCommitIdOutdatedException) Code() string { + return "ParentCommitIdOutdatedException" } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s ParentCommitIdOutdatedException) Message() string { + return "" +} - // An enumeration token that, when provided in a request, returns the next batch - // of the results. - NextToken *string `locationName:"nextToken" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParentCommitIdOutdatedException) OrigErr() error { + return nil +} - // The Amazon Resource Name (ARN) of the resource for which you want to get - // information about tags, if any. - // - // ResourceArn is a required field - ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"` +func (s ParentCommitIdOutdatedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParentCommitIdOutdatedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParentCommitIdOutdatedException) RequestID() string { + return s.respMetadata.RequestID +} + +// A parent commit ID is required. To view the full commit ID of a branch in +// a repository, use GetBranch or a Git command (for example, git pull or git +// log). +type ParentCommitIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsForResourceInput) String() string { +func (s ParentCommitIdRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceInput) GoString() string { +func (s ParentCommitIdRequiredException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) +func newErrorParentCommitIdRequiredException(v protocol.ResponseMetadata) error { + return &ParentCommitIdRequiredException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s ParentCommitIdRequiredException) Code() string { + return "ParentCommitIdRequiredException" } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { - s.NextToken = &v - return s +// Message returns the exception's message. +func (s ParentCommitIdRequiredException) Message() string { + return "" } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParentCommitIdRequiredException) OrigErr() error { + return nil } -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` +func (s ParentCommitIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // An enumeration token that allows the operation to batch the next results - // of the operation. - NextToken *string `locationName:"nextToken" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s ParentCommitIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} - // A list of tag key and value pairs associated with the specified resource. - Tags map[string]*string `locationName:"tags" type:"map"` +// RequestID returns the service's response RequestID for request. +func (s ParentCommitIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified path does not exist. +type PathDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsForResourceOutput) String() string { +func (s PathDoesNotExistException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceOutput) GoString() string { +func (s PathDoesNotExistException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { - s.NextToken = &v - return s +func newErrorPathDoesNotExistException(v protocol.ResponseMetadata) error { + return &PathDoesNotExistException{ + respMetadata: v, + } } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { - s.Tags = v - return s +// Code returns the exception type name. +func (s PathDoesNotExistException) Code() string { + return "PathDoesNotExistException" } -// Returns information about the location of a change or comment in the comparison -// between two commits or a pull request. -type Location struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s PathDoesNotExistException) Message() string { + return "" +} - // The name of the file being compared, including its extension and subdirectory, - // if any. - FilePath *string `locationName:"filePath" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PathDoesNotExistException) OrigErr() error { + return nil +} - // The position of a change in a compared file, in line number format. - FilePosition *int64 `locationName:"filePosition" type:"long"` +func (s PathDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // In a comparison of commits or a pull request, whether the change is in the - // before or after of that comparison. - RelativeFileVersion *string `locationName:"relativeFileVersion" type:"string" enum:"RelativeFileVersionEnum"` +// Status code returns the HTTP status code for the request's response error. +func (s PathDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PathDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The folderPath for a location cannot be null. +type PathRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Location) String() string { +func (s PathRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Location) GoString() string { +func (s PathRequiredException) GoString() string { return s.String() } -// SetFilePath sets the FilePath field's value. -func (s *Location) SetFilePath(v string) *Location { - s.FilePath = &v - return s +func newErrorPathRequiredException(v protocol.ResponseMetadata) error { + return &PathRequiredException{ + respMetadata: v, + } } -// SetFilePosition sets the FilePosition field's value. -func (s *Location) SetFilePosition(v int64) *Location { - s.FilePosition = &v - return s +// Code returns the exception type name. +func (s PathRequiredException) Code() string { + return "PathRequiredException" } -// SetRelativeFileVersion sets the RelativeFileVersion field's value. -func (s *Location) SetRelativeFileVersion(v string) *Location { - s.RelativeFileVersion = &v - return s +// Message returns the exception's message. +func (s PathRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PathRequiredException) OrigErr() error { + return nil +} + +func (s PathRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PathRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PathRequiredException) RequestID() string { + return s.respMetadata.RequestID } -type MergeBranchesByFastForwardInput struct { +type PostCommentForComparedCommitInput struct { _ struct{} `type:"structure"` - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). + // To establish the directionality of the comparison, the full commit ID of + // the after commit. // - // DestinationCommitSpecifier is a required field - DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` + // AfterCommitId is a required field + AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"` - // The name of the repository where you want to merge two branches. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + // To establish the directionality of the comparison, the full commit ID of + // the before commit. Required for commenting on any commit unless that commit + // is the initial commit. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). + // A unique, client-generated idempotency token that, when provided in a request, + // ensures the request cannot be repeated with a changed parameter. If a request + // is received with the same parameters and a token is included, the request + // returns information about the initial request that used that token. + ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` + + // The content of the comment you want to make. // - // SourceCommitSpecifier is a required field - SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` + // Content is a required field + Content *string `locationName:"content" type:"string" required:"true"` - // The branch where the merge is applied. - TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"` + // The location of the comparison where you want to comment. + Location *Location `locationName:"location" type:"structure"` + + // The name of the repository where you want to post a comment on the comparison + // between commits. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s MergeBranchesByFastForwardInput) String() string { +func (s PostCommentForComparedCommitInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeBranchesByFastForwardInput) GoString() string { +func (s PostCommentForComparedCommitInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MergeBranchesByFastForwardInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByFastForwardInput"} - if s.DestinationCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) +func (s *PostCommentForComparedCommitInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PostCommentForComparedCommitInput"} + if s.AfterCommitId == nil { + invalidParams.Add(request.NewErrParamRequired("AfterCommitId")) + } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) @@ -17248,12 +25850,6 @@ func (s *MergeBranchesByFastForwardInput) Validate() error { if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } - if s.SourceCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) - } - if s.TargetBranch != nil && len(*s.TargetBranch) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1)) - } if invalidParams.Len() > 0 { return invalidParams @@ -17261,133 +25857,186 @@ func (s *MergeBranchesByFastForwardInput) Validate() error { return nil } -// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *MergeBranchesByFastForwardInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByFastForwardInput { - s.DestinationCommitSpecifier = &v +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *PostCommentForComparedCommitInput) SetAfterCommitId(v string) *PostCommentForComparedCommitInput { + s.AfterCommitId = &v return s } -// SetRepositoryName sets the RepositoryName field's value. -func (s *MergeBranchesByFastForwardInput) SetRepositoryName(v string) *MergeBranchesByFastForwardInput { - s.RepositoryName = &v +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *PostCommentForComparedCommitInput) SetBeforeCommitId(v string) *PostCommentForComparedCommitInput { + s.BeforeCommitId = &v return s } -// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *MergeBranchesByFastForwardInput) SetSourceCommitSpecifier(v string) *MergeBranchesByFastForwardInput { - s.SourceCommitSpecifier = &v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *PostCommentForComparedCommitInput) SetClientRequestToken(v string) *PostCommentForComparedCommitInput { + s.ClientRequestToken = &v return s } -// SetTargetBranch sets the TargetBranch field's value. -func (s *MergeBranchesByFastForwardInput) SetTargetBranch(v string) *MergeBranchesByFastForwardInput { - s.TargetBranch = &v +// SetContent sets the Content field's value. +func (s *PostCommentForComparedCommitInput) SetContent(v string) *PostCommentForComparedCommitInput { + s.Content = &v return s } -type MergeBranchesByFastForwardOutput struct { +// SetLocation sets the Location field's value. +func (s *PostCommentForComparedCommitInput) SetLocation(v *Location) *PostCommentForComparedCommitInput { + s.Location = v + return s +} + +// SetRepositoryName sets the RepositoryName field's value. +func (s *PostCommentForComparedCommitInput) SetRepositoryName(v string) *PostCommentForComparedCommitInput { + s.RepositoryName = &v + return s +} + +type PostCommentForComparedCommitOutput struct { _ struct{} `type:"structure"` - // The commit ID of the merge in the destination or target branch. - CommitId *string `locationName:"commitId" type:"string"` + // In the directionality you established, the blob ID of the after blob. + AfterBlobId *string `locationName:"afterBlobId" type:"string"` - // The tree ID of the merge in the destination or target branch. - TreeId *string `locationName:"treeId" type:"string"` + // In the directionality you established, the full commit ID of the after commit. + AfterCommitId *string `locationName:"afterCommitId" type:"string"` + + // In the directionality you established, the blob ID of the before blob. + BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` + + // In the directionality you established, the full commit ID of the before commit. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + + // The content of the comment you posted. + Comment *Comment `locationName:"comment" type:"structure"` + + // The location of the comment in the comparison between the two commits. + Location *Location `locationName:"location" type:"structure"` + + // The name of the repository where you posted a comment on the comparison between + // commits. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` } // String returns the string representation -func (s MergeBranchesByFastForwardOutput) String() string { +func (s PostCommentForComparedCommitOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeBranchesByFastForwardOutput) GoString() string { +func (s PostCommentForComparedCommitOutput) GoString() string { return s.String() } -// SetCommitId sets the CommitId field's value. -func (s *MergeBranchesByFastForwardOutput) SetCommitId(v string) *MergeBranchesByFastForwardOutput { - s.CommitId = &v +// SetAfterBlobId sets the AfterBlobId field's value. +func (s *PostCommentForComparedCommitOutput) SetAfterBlobId(v string) *PostCommentForComparedCommitOutput { + s.AfterBlobId = &v return s } -// SetTreeId sets the TreeId field's value. -func (s *MergeBranchesByFastForwardOutput) SetTreeId(v string) *MergeBranchesByFastForwardOutput { - s.TreeId = &v +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *PostCommentForComparedCommitOutput) SetAfterCommitId(v string) *PostCommentForComparedCommitOutput { + s.AfterCommitId = &v return s } -type MergeBranchesBySquashInput struct { - _ struct{} `type:"structure"` +// SetBeforeBlobId sets the BeforeBlobId field's value. +func (s *PostCommentForComparedCommitOutput) SetBeforeBlobId(v string) *PostCommentForComparedCommitOutput { + s.BeforeBlobId = &v + return s +} - // The name of the author who created the commit. This information is used as - // both the author and committer for the commit. - AuthorName *string `locationName:"authorName" type:"string"` +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *PostCommentForComparedCommitOutput) SetBeforeCommitId(v string) *PostCommentForComparedCommitOutput { + s.BeforeCommitId = &v + return s +} - // The commit message for the merge. - CommitMessage *string `locationName:"commitMessage" type:"string"` +// SetComment sets the Comment field's value. +func (s *PostCommentForComparedCommitOutput) SetComment(v *Comment) *PostCommentForComparedCommitOutput { + s.Comment = v + return s +} - // The level of conflict detail to use. If unspecified, the default FILE_LEVEL - // is used, which returns a not-mergeable result if the same file has differences - // in both branches. If LINE_LEVEL is specified, a conflict is considered not - // mergeable if the same file in both branches has differences on the same line. - ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` +// SetLocation sets the Location field's value. +func (s *PostCommentForComparedCommitOutput) SetLocation(v *Location) *PostCommentForComparedCommitOutput { + s.Location = v + return s +} - // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use - // when resolving conflicts during a merge. - ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` +// SetRepositoryName sets the RepositoryName field's value. +func (s *PostCommentForComparedCommitOutput) SetRepositoryName(v string) *PostCommentForComparedCommitOutput { + s.RepositoryName = &v + return s +} - // Specifies which branch to use when resolving conflicts, or whether to attempt - // automatically merging two versions of a file. The default is NONE, which - // requires any conflicts to be resolved manually before the merge operation - // is successful. - ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` +type PostCommentForPullRequestInput struct { + _ struct{} `type:"structure"` - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). + // The full commit ID of the commit in the source branch that is the current + // tip of the branch for the pull request when you post the comment. // - // DestinationCommitSpecifier is a required field - DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` + // AfterCommitId is a required field + AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"` - // The email address of the person merging the branches. This information is - // used in the commit information for the merge. - Email *string `locationName:"email" type:"string"` + // The full commit ID of the commit in the destination branch that was the tip + // of the branch at the time the pull request was created. + // + // BeforeCommitId is a required field + BeforeCommitId *string `locationName:"beforeCommitId" type:"string" required:"true"` - // If the commit contains deletions, whether to keep a folder or folder structure - // if the changes leave the folders empty. If this is specified as true, a .gitkeep - // file is created for empty folders. The default is false. - KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + // A unique, client-generated idempotency token that, when provided in a request, + // ensures the request cannot be repeated with a changed parameter. If a request + // is received with the same parameters and a token is included, the request + // returns information about the initial request that used that token. + ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` - // The name of the repository where you want to merge two branches. + // The content of your comment on the change. // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + // Content is a required field + Content *string `locationName:"content" type:"string" required:"true"` - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). + // The location of the change where you want to post your comment. If no location + // is provided, the comment is posted as a general comment on the pull request + // difference between the before commit ID and the after commit ID. + Location *Location `locationName:"location" type:"structure"` + + // The system-generated ID of the pull request. To get this ID, use ListPullRequests. // - // SourceCommitSpecifier is a required field - SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` + // PullRequestId is a required field + PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` - // The branch where the merge is applied. - TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"` + // The name of the repository where you want to post a comment on a pull request. + // + // RepositoryName is a required field + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s MergeBranchesBySquashInput) String() string { +func (s PostCommentForPullRequestInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeBranchesBySquashInput) GoString() string { +func (s PostCommentForPullRequestInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MergeBranchesBySquashInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergeBranchesBySquashInput"} - if s.DestinationCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) +func (s *PostCommentForPullRequestInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PostCommentForPullRequestInput"} + if s.AfterCommitId == nil { + invalidParams.Add(request.NewErrParamRequired("AfterCommitId")) + } + if s.BeforeCommitId == nil { + invalidParams.Add(request.NewErrParamRequired("BeforeCommitId")) + } + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) + } + if s.PullRequestId == nil { + invalidParams.Add(request.NewErrParamRequired("PullRequestId")) } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) @@ -17395,17 +26044,6 @@ func (s *MergeBranchesBySquashInput) Validate() error { if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } - if s.SourceCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) - } - if s.TargetBranch != nil && len(*s.TargetBranch) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1)) - } - if s.ConflictResolution != nil { - if err := s.ConflictResolution.Validate(); err != nil { - invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) - } - } if invalidParams.Len() > 0 { return invalidParams @@ -17413,1030 +26051,1078 @@ func (s *MergeBranchesBySquashInput) Validate() error { return nil } -// SetAuthorName sets the AuthorName field's value. -func (s *MergeBranchesBySquashInput) SetAuthorName(v string) *MergeBranchesBySquashInput { - s.AuthorName = &v - return s -} - -// SetCommitMessage sets the CommitMessage field's value. -func (s *MergeBranchesBySquashInput) SetCommitMessage(v string) *MergeBranchesBySquashInput { - s.CommitMessage = &v - return s -} - -// SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *MergeBranchesBySquashInput) SetConflictDetailLevel(v string) *MergeBranchesBySquashInput { - s.ConflictDetailLevel = &v +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *PostCommentForPullRequestInput) SetAfterCommitId(v string) *PostCommentForPullRequestInput { + s.AfterCommitId = &v return s } -// SetConflictResolution sets the ConflictResolution field's value. -func (s *MergeBranchesBySquashInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesBySquashInput { - s.ConflictResolution = v +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *PostCommentForPullRequestInput) SetBeforeCommitId(v string) *PostCommentForPullRequestInput { + s.BeforeCommitId = &v return s } -// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *MergeBranchesBySquashInput) SetConflictResolutionStrategy(v string) *MergeBranchesBySquashInput { - s.ConflictResolutionStrategy = &v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *PostCommentForPullRequestInput) SetClientRequestToken(v string) *PostCommentForPullRequestInput { + s.ClientRequestToken = &v return s } -// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *MergeBranchesBySquashInput) SetDestinationCommitSpecifier(v string) *MergeBranchesBySquashInput { - s.DestinationCommitSpecifier = &v +// SetContent sets the Content field's value. +func (s *PostCommentForPullRequestInput) SetContent(v string) *PostCommentForPullRequestInput { + s.Content = &v return s } -// SetEmail sets the Email field's value. -func (s *MergeBranchesBySquashInput) SetEmail(v string) *MergeBranchesBySquashInput { - s.Email = &v +// SetLocation sets the Location field's value. +func (s *PostCommentForPullRequestInput) SetLocation(v *Location) *PostCommentForPullRequestInput { + s.Location = v return s } -// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. -func (s *MergeBranchesBySquashInput) SetKeepEmptyFolders(v bool) *MergeBranchesBySquashInput { - s.KeepEmptyFolders = &v +// SetPullRequestId sets the PullRequestId field's value. +func (s *PostCommentForPullRequestInput) SetPullRequestId(v string) *PostCommentForPullRequestInput { + s.PullRequestId = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *MergeBranchesBySquashInput) SetRepositoryName(v string) *MergeBranchesBySquashInput { +func (s *PostCommentForPullRequestInput) SetRepositoryName(v string) *PostCommentForPullRequestInput { s.RepositoryName = &v return s } -// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *MergeBranchesBySquashInput) SetSourceCommitSpecifier(v string) *MergeBranchesBySquashInput { - s.SourceCommitSpecifier = &v - return s -} +type PostCommentForPullRequestOutput struct { + _ struct{} `type:"structure"` -// SetTargetBranch sets the TargetBranch field's value. -func (s *MergeBranchesBySquashInput) SetTargetBranch(v string) *MergeBranchesBySquashInput { - s.TargetBranch = &v - return s -} + // In the directionality of the pull request, the blob ID of the after blob. + AfterBlobId *string `locationName:"afterBlobId" type:"string"` -type MergeBranchesBySquashOutput struct { - _ struct{} `type:"structure"` + // The full commit ID of the commit in the destination branch where the pull + // request is merged. + AfterCommitId *string `locationName:"afterCommitId" type:"string"` - // The commit ID of the merge in the destination or target branch. - CommitId *string `locationName:"commitId" type:"string"` + // In the directionality of the pull request, the blob ID of the before blob. + BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` - // The tree ID of the merge in the destination or target branch. - TreeId *string `locationName:"treeId" type:"string"` + // The full commit ID of the commit in the source branch used to create the + // pull request, or in the case of an updated pull request, the full commit + // ID of the commit used to update the pull request. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + + // The content of the comment you posted. + Comment *Comment `locationName:"comment" type:"structure"` + + // The location of the change where you posted your comment. + Location *Location `locationName:"location" type:"structure"` + + // The system-generated ID of the pull request. + PullRequestId *string `locationName:"pullRequestId" type:"string"` + + // The name of the repository where you posted a comment on a pull request. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` } // String returns the string representation -func (s MergeBranchesBySquashOutput) String() string { +func (s PostCommentForPullRequestOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeBranchesBySquashOutput) GoString() string { +func (s PostCommentForPullRequestOutput) GoString() string { return s.String() } -// SetCommitId sets the CommitId field's value. -func (s *MergeBranchesBySquashOutput) SetCommitId(v string) *MergeBranchesBySquashOutput { - s.CommitId = &v +// SetAfterBlobId sets the AfterBlobId field's value. +func (s *PostCommentForPullRequestOutput) SetAfterBlobId(v string) *PostCommentForPullRequestOutput { + s.AfterBlobId = &v return s } -// SetTreeId sets the TreeId field's value. -func (s *MergeBranchesBySquashOutput) SetTreeId(v string) *MergeBranchesBySquashOutput { - s.TreeId = &v +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *PostCommentForPullRequestOutput) SetAfterCommitId(v string) *PostCommentForPullRequestOutput { + s.AfterCommitId = &v return s } -type MergeBranchesByThreeWayInput struct { - _ struct{} `type:"structure"` - - // The name of the author who created the commit. This information is used as - // both the author and committer for the commit. - AuthorName *string `locationName:"authorName" type:"string"` +// SetBeforeBlobId sets the BeforeBlobId field's value. +func (s *PostCommentForPullRequestOutput) SetBeforeBlobId(v string) *PostCommentForPullRequestOutput { + s.BeforeBlobId = &v + return s +} - // The commit message to include in the commit information for the merge. - CommitMessage *string `locationName:"commitMessage" type:"string"` +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *PostCommentForPullRequestOutput) SetBeforeCommitId(v string) *PostCommentForPullRequestOutput { + s.BeforeCommitId = &v + return s +} - // The level of conflict detail to use. If unspecified, the default FILE_LEVEL - // is used, which returns a not-mergeable result if the same file has differences - // in both branches. If LINE_LEVEL is specified, a conflict is considered not - // mergeable if the same file in both branches has differences on the same line. - ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` +// SetComment sets the Comment field's value. +func (s *PostCommentForPullRequestOutput) SetComment(v *Comment) *PostCommentForPullRequestOutput { + s.Comment = v + return s +} - // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use - // when resolving conflicts during a merge. - ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` +// SetLocation sets the Location field's value. +func (s *PostCommentForPullRequestOutput) SetLocation(v *Location) *PostCommentForPullRequestOutput { + s.Location = v + return s +} - // Specifies which branch to use when resolving conflicts, or whether to attempt - // automatically merging two versions of a file. The default is NONE, which - // requires any conflicts to be resolved manually before the merge operation - // is successful. - ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` +// SetPullRequestId sets the PullRequestId field's value. +func (s *PostCommentForPullRequestOutput) SetPullRequestId(v string) *PostCommentForPullRequestOutput { + s.PullRequestId = &v + return s +} - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). - // - // DestinationCommitSpecifier is a required field - DestinationCommitSpecifier *string `locationName:"destinationCommitSpecifier" type:"string" required:"true"` +// SetRepositoryName sets the RepositoryName field's value. +func (s *PostCommentForPullRequestOutput) SetRepositoryName(v string) *PostCommentForPullRequestOutput { + s.RepositoryName = &v + return s +} - // The email address of the person merging the branches. This information is - // used in the commit information for the merge. - Email *string `locationName:"email" type:"string"` +type PostCommentReplyInput struct { + _ struct{} `type:"structure"` - // If the commit contains deletions, whether to keep a folder or folder structure - // if the changes leave the folders empty. If true, a .gitkeep file is created - // for empty folders. The default is false. - KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + // A unique, client-generated idempotency token that, when provided in a request, + // ensures the request cannot be repeated with a changed parameter. If a request + // is received with the same parameters and a token is included, the request + // returns information about the initial request that used that token. + ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` - // The name of the repository where you want to merge two branches. + // The contents of your reply to a comment. // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + // Content is a required field + Content *string `locationName:"content" type:"string" required:"true"` - // The branch, tag, HEAD, or other fully qualified reference used to identify - // a commit (for example, a branch name or a full commit ID). + // The system-generated ID of the comment to which you want to reply. To get + // this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest. // - // SourceCommitSpecifier is a required field - SourceCommitSpecifier *string `locationName:"sourceCommitSpecifier" type:"string" required:"true"` - - // The branch where the merge is applied. - TargetBranch *string `locationName:"targetBranch" min:"1" type:"string"` + // InReplyTo is a required field + InReplyTo *string `locationName:"inReplyTo" type:"string" required:"true"` } // String returns the string representation -func (s MergeBranchesByThreeWayInput) String() string { +func (s PostCommentReplyInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeBranchesByThreeWayInput) GoString() string { +func (s PostCommentReplyInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *MergeBranchesByThreeWayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergeBranchesByThreeWayInput"} - if s.DestinationCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationCommitSpecifier")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.SourceCommitSpecifier == nil { - invalidParams.Add(request.NewErrParamRequired("SourceCommitSpecifier")) - } - if s.TargetBranch != nil && len(*s.TargetBranch) < 1 { - invalidParams.Add(request.NewErrParamMinLen("TargetBranch", 1)) +func (s *PostCommentReplyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PostCommentReplyInput"} + if s.Content == nil { + invalidParams.Add(request.NewErrParamRequired("Content")) } - if s.ConflictResolution != nil { - if err := s.ConflictResolution.Validate(); err != nil { - invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) - } + if s.InReplyTo == nil { + invalidParams.Add(request.NewErrParamRequired("InReplyTo")) } if invalidParams.Len() > 0 { return invalidParams - } - return nil -} - -// SetAuthorName sets the AuthorName field's value. -func (s *MergeBranchesByThreeWayInput) SetAuthorName(v string) *MergeBranchesByThreeWayInput { - s.AuthorName = &v - return s -} - -// SetCommitMessage sets the CommitMessage field's value. -func (s *MergeBranchesByThreeWayInput) SetCommitMessage(v string) *MergeBranchesByThreeWayInput { - s.CommitMessage = &v - return s -} - -// SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *MergeBranchesByThreeWayInput) SetConflictDetailLevel(v string) *MergeBranchesByThreeWayInput { - s.ConflictDetailLevel = &v - return s + } + return nil } -// SetConflictResolution sets the ConflictResolution field's value. -func (s *MergeBranchesByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergeBranchesByThreeWayInput { - s.ConflictResolution = v +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *PostCommentReplyInput) SetClientRequestToken(v string) *PostCommentReplyInput { + s.ClientRequestToken = &v return s } -// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *MergeBranchesByThreeWayInput) SetConflictResolutionStrategy(v string) *MergeBranchesByThreeWayInput { - s.ConflictResolutionStrategy = &v +// SetContent sets the Content field's value. +func (s *PostCommentReplyInput) SetContent(v string) *PostCommentReplyInput { + s.Content = &v return s } -// SetDestinationCommitSpecifier sets the DestinationCommitSpecifier field's value. -func (s *MergeBranchesByThreeWayInput) SetDestinationCommitSpecifier(v string) *MergeBranchesByThreeWayInput { - s.DestinationCommitSpecifier = &v +// SetInReplyTo sets the InReplyTo field's value. +func (s *PostCommentReplyInput) SetInReplyTo(v string) *PostCommentReplyInput { + s.InReplyTo = &v return s } -// SetEmail sets the Email field's value. -func (s *MergeBranchesByThreeWayInput) SetEmail(v string) *MergeBranchesByThreeWayInput { - s.Email = &v - return s -} +type PostCommentReplyOutput struct { + _ struct{} `type:"structure"` -// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. -func (s *MergeBranchesByThreeWayInput) SetKeepEmptyFolders(v bool) *MergeBranchesByThreeWayInput { - s.KeepEmptyFolders = &v - return s + // Information about the reply to a comment. + Comment *Comment `locationName:"comment" type:"structure"` } -// SetRepositoryName sets the RepositoryName field's value. -func (s *MergeBranchesByThreeWayInput) SetRepositoryName(v string) *MergeBranchesByThreeWayInput { - s.RepositoryName = &v - return s +// String returns the string representation +func (s PostCommentReplyOutput) String() string { + return awsutil.Prettify(s) } -// SetSourceCommitSpecifier sets the SourceCommitSpecifier field's value. -func (s *MergeBranchesByThreeWayInput) SetSourceCommitSpecifier(v string) *MergeBranchesByThreeWayInput { - s.SourceCommitSpecifier = &v - return s +// GoString returns the string representation +func (s PostCommentReplyOutput) GoString() string { + return s.String() } -// SetTargetBranch sets the TargetBranch field's value. -func (s *MergeBranchesByThreeWayInput) SetTargetBranch(v string) *MergeBranchesByThreeWayInput { - s.TargetBranch = &v +// SetComment sets the Comment field's value. +func (s *PostCommentReplyOutput) SetComment(v *Comment) *PostCommentReplyOutput { + s.Comment = v return s } -type MergeBranchesByThreeWayOutput struct { +// Returns information about a pull request. +type PullRequest struct { _ struct{} `type:"structure"` - // The commit ID of the merge in the destination or target branch. - CommitId *string `locationName:"commitId" type:"string"` + // The approval rules applied to the pull request. + ApprovalRules []*ApprovalRule `locationName:"approvalRules" type:"list"` - // The tree ID of the merge in the destination or target branch. - TreeId *string `locationName:"treeId" type:"string"` + // The Amazon Resource Name (ARN) of the user who created the pull request. + AuthorArn *string `locationName:"authorArn" type:"string"` + + // A unique, client-generated idempotency token that, when provided in a request, + // ensures the request cannot be repeated with a changed parameter. If a request + // is received with the same parameters and a token is included, the request + // returns information about the initial request that used that token. + ClientRequestToken *string `locationName:"clientRequestToken" type:"string"` + + // The date and time the pull request was originally created, in timestamp format. + CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` + + // The user-defined description of the pull request. This description can be + // used to clarify what should be reviewed and other details of the request. + Description *string `locationName:"description" type:"string"` + + // The day and time of the last user or system activity on the pull request, + // in timestamp format. + LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp"` + + // The system-generated ID of the pull request. + PullRequestId *string `locationName:"pullRequestId" type:"string"` + + // The status of the pull request. Pull request status can only change from + // OPEN to CLOSED. + PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"` + + // The targets of the pull request, including the source branch and destination + // branch for the pull request. + PullRequestTargets []*PullRequestTarget `locationName:"pullRequestTargets" type:"list"` + + // The system-generated revision ID for the pull request. + RevisionId *string `locationName:"revisionId" type:"string"` + + // The user-defined title of the pull request. This title is displayed in the + // list of pull requests to other repository users. + Title *string `locationName:"title" type:"string"` } // String returns the string representation -func (s MergeBranchesByThreeWayOutput) String() string { +func (s PullRequest) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeBranchesByThreeWayOutput) GoString() string { +func (s PullRequest) GoString() string { return s.String() } -// SetCommitId sets the CommitId field's value. -func (s *MergeBranchesByThreeWayOutput) SetCommitId(v string) *MergeBranchesByThreeWayOutput { - s.CommitId = &v +// SetApprovalRules sets the ApprovalRules field's value. +func (s *PullRequest) SetApprovalRules(v []*ApprovalRule) *PullRequest { + s.ApprovalRules = v return s } -// SetTreeId sets the TreeId field's value. -func (s *MergeBranchesByThreeWayOutput) SetTreeId(v string) *MergeBranchesByThreeWayOutput { - s.TreeId = &v +// SetAuthorArn sets the AuthorArn field's value. +func (s *PullRequest) SetAuthorArn(v string) *PullRequest { + s.AuthorArn = &v return s } -// Information about merge hunks in a merge or pull request operation. -type MergeHunk struct { - _ struct{} `type:"structure"` - - // Information about the merge hunk in the base of a merge or pull request. - Base *MergeHunkDetail `locationName:"base" type:"structure"` - - // Information about the merge hunk in the destination of a merge or pull request. - Destination *MergeHunkDetail `locationName:"destination" type:"structure"` - - // A Boolean value indicating whether a combination of hunks contains a conflict. - // Conflicts occur when the same file or the same lines in a file were modified - // in both the source and destination of a merge or pull request. Valid values - // include true, false, and null. True when the hunk represents a conflict and - // one or more files contains a line conflict. File mode conflicts in a merge - // do not set this to true. - IsConflict *bool `locationName:"isConflict" type:"boolean"` - - // Information about the merge hunk in the source of a merge or pull request. - Source *MergeHunkDetail `locationName:"source" type:"structure"` +// SetClientRequestToken sets the ClientRequestToken field's value. +func (s *PullRequest) SetClientRequestToken(v string) *PullRequest { + s.ClientRequestToken = &v + return s } -// String returns the string representation -func (s MergeHunk) String() string { - return awsutil.Prettify(s) +// SetCreationDate sets the CreationDate field's value. +func (s *PullRequest) SetCreationDate(v time.Time) *PullRequest { + s.CreationDate = &v + return s } -// GoString returns the string representation -func (s MergeHunk) GoString() string { - return s.String() +// SetDescription sets the Description field's value. +func (s *PullRequest) SetDescription(v string) *PullRequest { + s.Description = &v + return s } -// SetBase sets the Base field's value. -func (s *MergeHunk) SetBase(v *MergeHunkDetail) *MergeHunk { - s.Base = v +// SetLastActivityDate sets the LastActivityDate field's value. +func (s *PullRequest) SetLastActivityDate(v time.Time) *PullRequest { + s.LastActivityDate = &v return s } -// SetDestination sets the Destination field's value. -func (s *MergeHunk) SetDestination(v *MergeHunkDetail) *MergeHunk { - s.Destination = v +// SetPullRequestId sets the PullRequestId field's value. +func (s *PullRequest) SetPullRequestId(v string) *PullRequest { + s.PullRequestId = &v return s } -// SetIsConflict sets the IsConflict field's value. -func (s *MergeHunk) SetIsConflict(v bool) *MergeHunk { - s.IsConflict = &v +// SetPullRequestStatus sets the PullRequestStatus field's value. +func (s *PullRequest) SetPullRequestStatus(v string) *PullRequest { + s.PullRequestStatus = &v return s } -// SetSource sets the Source field's value. -func (s *MergeHunk) SetSource(v *MergeHunkDetail) *MergeHunk { - s.Source = v +// SetPullRequestTargets sets the PullRequestTargets field's value. +func (s *PullRequest) SetPullRequestTargets(v []*PullRequestTarget) *PullRequest { + s.PullRequestTargets = v return s } -// Information about the details of a merge hunk that contains a conflict in -// a merge or pull request operation. -type MergeHunkDetail struct { - _ struct{} `type:"structure"` - - // The end position of the hunk in the merge result. - EndLine *int64 `locationName:"endLine" type:"integer"` +// SetRevisionId sets the RevisionId field's value. +func (s *PullRequest) SetRevisionId(v string) *PullRequest { + s.RevisionId = &v + return s +} - // The base-64 encoded content of the hunk merged region that might contain - // a conflict. - HunkContent *string `locationName:"hunkContent" type:"string"` +// SetTitle sets the Title field's value. +func (s *PullRequest) SetTitle(v string) *PullRequest { + s.Title = &v + return s +} - // The start position of the hunk in the merge result. - StartLine *int64 `locationName:"startLine" type:"integer"` +// The pull request status cannot be updated because it is already closed. +type PullRequestAlreadyClosedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s MergeHunkDetail) String() string { +func (s PullRequestAlreadyClosedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeHunkDetail) GoString() string { +func (s PullRequestAlreadyClosedException) GoString() string { return s.String() } -// SetEndLine sets the EndLine field's value. -func (s *MergeHunkDetail) SetEndLine(v int64) *MergeHunkDetail { - s.EndLine = &v - return s +func newErrorPullRequestAlreadyClosedException(v protocol.ResponseMetadata) error { + return &PullRequestAlreadyClosedException{ + respMetadata: v, + } } -// SetHunkContent sets the HunkContent field's value. -func (s *MergeHunkDetail) SetHunkContent(v string) *MergeHunkDetail { - s.HunkContent = &v - return s +// Code returns the exception type name. +func (s PullRequestAlreadyClosedException) Code() string { + return "PullRequestAlreadyClosedException" } -// SetStartLine sets the StartLine field's value. -func (s *MergeHunkDetail) SetStartLine(v int64) *MergeHunkDetail { - s.StartLine = &v - return s +// Message returns the exception's message. +func (s PullRequestAlreadyClosedException) Message() string { + return "" } -// Returns information about a merge or potential merge between a source reference -// and a destination reference in a pull request. -type MergeMetadata struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PullRequestAlreadyClosedException) OrigErr() error { + return nil +} - // A Boolean value indicating whether the merge has been made. - IsMerged *bool `locationName:"isMerged" type:"boolean"` +func (s PullRequestAlreadyClosedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The commit ID for the merge commit, if any. - MergeCommitId *string `locationName:"mergeCommitId" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s PullRequestAlreadyClosedException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The merge strategy used in the merge. - MergeOption *string `locationName:"mergeOption" type:"string" enum:"MergeOptionTypeEnum"` +// RequestID returns the service's response RequestID for request. +func (s PullRequestAlreadyClosedException) RequestID() string { + return s.respMetadata.RequestID +} - // The Amazon Resource Name (ARN) of the user who merged the branches. - MergedBy *string `locationName:"mergedBy" type:"string"` +// The pull request cannot be merged because one or more approval rules applied +// to the pull request have conditions that have not been met. +type PullRequestApprovalRulesNotSatisfiedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s MergeMetadata) String() string { +func (s PullRequestApprovalRulesNotSatisfiedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeMetadata) GoString() string { +func (s PullRequestApprovalRulesNotSatisfiedException) GoString() string { return s.String() } -// SetIsMerged sets the IsMerged field's value. -func (s *MergeMetadata) SetIsMerged(v bool) *MergeMetadata { - s.IsMerged = &v - return s +func newErrorPullRequestApprovalRulesNotSatisfiedException(v protocol.ResponseMetadata) error { + return &PullRequestApprovalRulesNotSatisfiedException{ + respMetadata: v, + } } -// SetMergeCommitId sets the MergeCommitId field's value. -func (s *MergeMetadata) SetMergeCommitId(v string) *MergeMetadata { - s.MergeCommitId = &v - return s +// Code returns the exception type name. +func (s PullRequestApprovalRulesNotSatisfiedException) Code() string { + return "PullRequestApprovalRulesNotSatisfiedException" } -// SetMergeOption sets the MergeOption field's value. -func (s *MergeMetadata) SetMergeOption(v string) *MergeMetadata { - s.MergeOption = &v - return s +// Message returns the exception's message. +func (s PullRequestApprovalRulesNotSatisfiedException) Message() string { + return "" } -// SetMergedBy sets the MergedBy field's value. -func (s *MergeMetadata) SetMergedBy(v string) *MergeMetadata { - s.MergedBy = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PullRequestApprovalRulesNotSatisfiedException) OrigErr() error { + return nil } -// Information about the file operation conflicts in a merge operation. -type MergeOperations struct { - _ struct{} `type:"structure"` +func (s PullRequestApprovalRulesNotSatisfiedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PullRequestApprovalRulesNotSatisfiedException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The operation on a file in the destination of a merge or pull request. - Destination *string `locationName:"destination" type:"string" enum:"ChangeTypeEnum"` +// RequestID returns the service's response RequestID for request. +func (s PullRequestApprovalRulesNotSatisfiedException) RequestID() string { + return s.respMetadata.RequestID +} - // The operation (add, modify, or delete) on a file in the source of a merge - // or pull request. - Source *string `locationName:"source" type:"string" enum:"ChangeTypeEnum"` +// The approval cannot be applied because the user approving the pull request +// matches the user who created the pull request. You cannot approve a pull +// request that you created. +type PullRequestCannotBeApprovedByAuthorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s MergeOperations) String() string { +func (s PullRequestCannotBeApprovedByAuthorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergeOperations) GoString() string { +func (s PullRequestCannotBeApprovedByAuthorException) GoString() string { return s.String() } -// SetDestination sets the Destination field's value. -func (s *MergeOperations) SetDestination(v string) *MergeOperations { - s.Destination = &v - return s +func newErrorPullRequestCannotBeApprovedByAuthorException(v protocol.ResponseMetadata) error { + return &PullRequestCannotBeApprovedByAuthorException{ + respMetadata: v, + } } -// SetSource sets the Source field's value. -func (s *MergeOperations) SetSource(v string) *MergeOperations { - s.Source = &v - return s +// Code returns the exception type name. +func (s PullRequestCannotBeApprovedByAuthorException) Code() string { + return "PullRequestCannotBeApprovedByAuthorException" } -type MergePullRequestByFastForwardInput struct { +// Message returns the exception's message. +func (s PullRequestCannotBeApprovedByAuthorException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PullRequestCannotBeApprovedByAuthorException) OrigErr() error { + return nil +} + +func (s PullRequestCannotBeApprovedByAuthorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PullRequestCannotBeApprovedByAuthorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PullRequestCannotBeApprovedByAuthorException) RequestID() string { + return s.respMetadata.RequestID +} + +// Metadata about the pull request that is used when comparing the pull request +// source with its destination. +type PullRequestCreatedEventMetadata struct { _ struct{} `type:"structure"` - // The system-generated ID of the pull request. To get this ID, use ListPullRequests. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + // The commit ID of the tip of the branch specified as the destination branch + // when the pull request was created. + DestinationCommitId *string `locationName:"destinationCommitId" type:"string"` + + // The commit ID of the most recent commit that the source branch and the destination + // branch have in common. + MergeBase *string `locationName:"mergeBase" type:"string"` // The name of the repository where the pull request was created. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` - // The full commit ID of the original or updated commit in the pull request - // source branch. Pass this value if you want an exception thrown if the current - // commit ID of the tip of the source branch does not match this commit ID. + // The commit ID on the source branch used when the pull request was created. SourceCommitId *string `locationName:"sourceCommitId" type:"string"` } // String returns the string representation -func (s MergePullRequestByFastForwardInput) String() string { +func (s PullRequestCreatedEventMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergePullRequestByFastForwardInput) GoString() string { +func (s PullRequestCreatedEventMetadata) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MergePullRequestByFastForwardInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByFastForwardInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDestinationCommitId sets the DestinationCommitId field's value. +func (s *PullRequestCreatedEventMetadata) SetDestinationCommitId(v string) *PullRequestCreatedEventMetadata { + s.DestinationCommitId = &v + return s } -// SetPullRequestId sets the PullRequestId field's value. -func (s *MergePullRequestByFastForwardInput) SetPullRequestId(v string) *MergePullRequestByFastForwardInput { - s.PullRequestId = &v +// SetMergeBase sets the MergeBase field's value. +func (s *PullRequestCreatedEventMetadata) SetMergeBase(v string) *PullRequestCreatedEventMetadata { + s.MergeBase = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *MergePullRequestByFastForwardInput) SetRepositoryName(v string) *MergePullRequestByFastForwardInput { +func (s *PullRequestCreatedEventMetadata) SetRepositoryName(v string) *PullRequestCreatedEventMetadata { s.RepositoryName = &v return s } // SetSourceCommitId sets the SourceCommitId field's value. -func (s *MergePullRequestByFastForwardInput) SetSourceCommitId(v string) *MergePullRequestByFastForwardInput { +func (s *PullRequestCreatedEventMetadata) SetSourceCommitId(v string) *PullRequestCreatedEventMetadata { s.SourceCommitId = &v return s } -type MergePullRequestByFastForwardOutput struct { - _ struct{} `type:"structure"` - - // Information about the specified pull request, including the merge. - PullRequest *PullRequest `locationName:"pullRequest" type:"structure"` +// The pull request ID could not be found. Make sure that you have specified +// the correct repository name and pull request ID, and then try again. +type PullRequestDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s MergePullRequestByFastForwardOutput) String() string { +func (s PullRequestDoesNotExistException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergePullRequestByFastForwardOutput) GoString() string { +func (s PullRequestDoesNotExistException) GoString() string { return s.String() } -// SetPullRequest sets the PullRequest field's value. -func (s *MergePullRequestByFastForwardOutput) SetPullRequest(v *PullRequest) *MergePullRequestByFastForwardOutput { - s.PullRequest = v - return s +func newErrorPullRequestDoesNotExistException(v protocol.ResponseMetadata) error { + return &PullRequestDoesNotExistException{ + respMetadata: v, + } } -type MergePullRequestBySquashInput struct { +// Code returns the exception type name. +func (s PullRequestDoesNotExistException) Code() string { + return "PullRequestDoesNotExistException" +} + +// Message returns the exception's message. +func (s PullRequestDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PullRequestDoesNotExistException) OrigErr() error { + return nil +} + +func (s PullRequestDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PullRequestDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PullRequestDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about a pull request event. +type PullRequestEvent struct { _ struct{} `type:"structure"` - // The name of the author who created the commit. This information is used as - // both the author and committer for the commit. - AuthorName *string `locationName:"authorName" type:"string"` + // The Amazon Resource Name (ARN) of the user whose actions resulted in the + // event. Examples include updating the pull request with more commits or changing + // the status of a pull request. + ActorArn *string `locationName:"actorArn" type:"string"` - // The commit message to include in the commit information for the merge. - CommitMessage *string `locationName:"commitMessage" type:"string"` + // Information about a pull request event. + ApprovalRuleEventMetadata *ApprovalRuleEventMetadata `locationName:"approvalRuleEventMetadata" type:"structure"` - // The level of conflict detail to use. If unspecified, the default FILE_LEVEL - // is used, which returns a not-mergeable result if the same file has differences - // in both branches. If LINE_LEVEL is specified, a conflict is considered not - // mergeable if the same file in both branches has differences on the same line. - ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` + // Information about an approval rule override event for a pull request. + ApprovalRuleOverriddenEventMetadata *ApprovalRuleOverriddenEventMetadata `locationName:"approvalRuleOverriddenEventMetadata" type:"structure"` - // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use - // when resolving conflicts during a merge. - ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` + // Information about an approval state change for a pull request. + ApprovalStateChangedEventMetadata *ApprovalStateChangedEventMetadata `locationName:"approvalStateChangedEventMetadata" type:"structure"` - // Specifies which branch to use when resolving conflicts, or whether to attempt - // automatically merging two versions of a file. The default is NONE, which - // requires any conflicts to be resolved manually before the merge operation - // is successful. - ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` + // The day and time of the pull request event, in timestamp format. + EventDate *time.Time `locationName:"eventDate" type:"timestamp"` - // The email address of the person merging the branches. This information is - // used in the commit information for the merge. - Email *string `locationName:"email" type:"string"` + // Information about the source and destination branches for the pull request. + PullRequestCreatedEventMetadata *PullRequestCreatedEventMetadata `locationName:"pullRequestCreatedEventMetadata" type:"structure"` - // If the commit contains deletions, whether to keep a folder or folder structure - // if the changes leave the folders empty. If true, a .gitkeep file is created - // for empty folders. The default is false. - KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + // The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) + // or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)). + PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"` - // The system-generated ID of the pull request. To get this ID, use ListPullRequests. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + // The system-generated ID of the pull request. + PullRequestId *string `locationName:"pullRequestId" type:"string"` - // The name of the repository where the pull request was created. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + // Information about the change in mergability state for the pull request event. + PullRequestMergedStateChangedEventMetadata *PullRequestMergedStateChangedEventMetadata `locationName:"pullRequestMergedStateChangedEventMetadata" type:"structure"` - // The full commit ID of the original or updated commit in the pull request - // source branch. Pass this value if you want an exception thrown if the current - // commit ID of the tip of the source branch does not match this commit ID. - SourceCommitId *string `locationName:"sourceCommitId" type:"string"` + // Information about the updated source branch for the pull request event. + PullRequestSourceReferenceUpdatedEventMetadata *PullRequestSourceReferenceUpdatedEventMetadata `locationName:"pullRequestSourceReferenceUpdatedEventMetadata" type:"structure"` + + // Information about the change in status for the pull request event. + PullRequestStatusChangedEventMetadata *PullRequestStatusChangedEventMetadata `locationName:"pullRequestStatusChangedEventMetadata" type:"structure"` } // String returns the string representation -func (s MergePullRequestBySquashInput) String() string { +func (s PullRequestEvent) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergePullRequestBySquashInput) GoString() string { +func (s PullRequestEvent) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MergePullRequestBySquashInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergePullRequestBySquashInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.ConflictResolution != nil { - if err := s.ConflictResolution.Validate(); err != nil { - invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil -} - -// SetAuthorName sets the AuthorName field's value. -func (s *MergePullRequestBySquashInput) SetAuthorName(v string) *MergePullRequestBySquashInput { - s.AuthorName = &v +// SetActorArn sets the ActorArn field's value. +func (s *PullRequestEvent) SetActorArn(v string) *PullRequestEvent { + s.ActorArn = &v return s } -// SetCommitMessage sets the CommitMessage field's value. -func (s *MergePullRequestBySquashInput) SetCommitMessage(v string) *MergePullRequestBySquashInput { - s.CommitMessage = &v +// SetApprovalRuleEventMetadata sets the ApprovalRuleEventMetadata field's value. +func (s *PullRequestEvent) SetApprovalRuleEventMetadata(v *ApprovalRuleEventMetadata) *PullRequestEvent { + s.ApprovalRuleEventMetadata = v return s } -// SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *MergePullRequestBySquashInput) SetConflictDetailLevel(v string) *MergePullRequestBySquashInput { - s.ConflictDetailLevel = &v +// SetApprovalRuleOverriddenEventMetadata sets the ApprovalRuleOverriddenEventMetadata field's value. +func (s *PullRequestEvent) SetApprovalRuleOverriddenEventMetadata(v *ApprovalRuleOverriddenEventMetadata) *PullRequestEvent { + s.ApprovalRuleOverriddenEventMetadata = v return s } -// SetConflictResolution sets the ConflictResolution field's value. -func (s *MergePullRequestBySquashInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestBySquashInput { - s.ConflictResolution = v +// SetApprovalStateChangedEventMetadata sets the ApprovalStateChangedEventMetadata field's value. +func (s *PullRequestEvent) SetApprovalStateChangedEventMetadata(v *ApprovalStateChangedEventMetadata) *PullRequestEvent { + s.ApprovalStateChangedEventMetadata = v return s } -// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *MergePullRequestBySquashInput) SetConflictResolutionStrategy(v string) *MergePullRequestBySquashInput { - s.ConflictResolutionStrategy = &v +// SetEventDate sets the EventDate field's value. +func (s *PullRequestEvent) SetEventDate(v time.Time) *PullRequestEvent { + s.EventDate = &v return s } -// SetEmail sets the Email field's value. -func (s *MergePullRequestBySquashInput) SetEmail(v string) *MergePullRequestBySquashInput { - s.Email = &v +// SetPullRequestCreatedEventMetadata sets the PullRequestCreatedEventMetadata field's value. +func (s *PullRequestEvent) SetPullRequestCreatedEventMetadata(v *PullRequestCreatedEventMetadata) *PullRequestEvent { + s.PullRequestCreatedEventMetadata = v return s } -// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. -func (s *MergePullRequestBySquashInput) SetKeepEmptyFolders(v bool) *MergePullRequestBySquashInput { - s.KeepEmptyFolders = &v +// SetPullRequestEventType sets the PullRequestEventType field's value. +func (s *PullRequestEvent) SetPullRequestEventType(v string) *PullRequestEvent { + s.PullRequestEventType = &v return s } // SetPullRequestId sets the PullRequestId field's value. -func (s *MergePullRequestBySquashInput) SetPullRequestId(v string) *MergePullRequestBySquashInput { +func (s *PullRequestEvent) SetPullRequestId(v string) *PullRequestEvent { s.PullRequestId = &v return s } -// SetRepositoryName sets the RepositoryName field's value. -func (s *MergePullRequestBySquashInput) SetRepositoryName(v string) *MergePullRequestBySquashInput { - s.RepositoryName = &v +// SetPullRequestMergedStateChangedEventMetadata sets the PullRequestMergedStateChangedEventMetadata field's value. +func (s *PullRequestEvent) SetPullRequestMergedStateChangedEventMetadata(v *PullRequestMergedStateChangedEventMetadata) *PullRequestEvent { + s.PullRequestMergedStateChangedEventMetadata = v return s } -// SetSourceCommitId sets the SourceCommitId field's value. -func (s *MergePullRequestBySquashInput) SetSourceCommitId(v string) *MergePullRequestBySquashInput { - s.SourceCommitId = &v +// SetPullRequestSourceReferenceUpdatedEventMetadata sets the PullRequestSourceReferenceUpdatedEventMetadata field's value. +func (s *PullRequestEvent) SetPullRequestSourceReferenceUpdatedEventMetadata(v *PullRequestSourceReferenceUpdatedEventMetadata) *PullRequestEvent { + s.PullRequestSourceReferenceUpdatedEventMetadata = v return s } -type MergePullRequestBySquashOutput struct { - _ struct{} `type:"structure"` +// SetPullRequestStatusChangedEventMetadata sets the PullRequestStatusChangedEventMetadata field's value. +func (s *PullRequestEvent) SetPullRequestStatusChangedEventMetadata(v *PullRequestStatusChangedEventMetadata) *PullRequestEvent { + s.PullRequestStatusChangedEventMetadata = v + return s +} - // Returns information about a pull request. - PullRequest *PullRequest `locationName:"pullRequest" type:"structure"` +// A pull request ID is required, but none was provided. +type PullRequestIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s MergePullRequestBySquashOutput) String() string { +func (s PullRequestIdRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergePullRequestBySquashOutput) GoString() string { +func (s PullRequestIdRequiredException) GoString() string { return s.String() } -// SetPullRequest sets the PullRequest field's value. -func (s *MergePullRequestBySquashOutput) SetPullRequest(v *PullRequest) *MergePullRequestBySquashOutput { - s.PullRequest = v - return s +func newErrorPullRequestIdRequiredException(v protocol.ResponseMetadata) error { + return &PullRequestIdRequiredException{ + respMetadata: v, + } } -type MergePullRequestByThreeWayInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s PullRequestIdRequiredException) Code() string { + return "PullRequestIdRequiredException" +} - // The name of the author who created the commit. This information is used as - // both the author and committer for the commit. - AuthorName *string `locationName:"authorName" type:"string"` +// Message returns the exception's message. +func (s PullRequestIdRequiredException) Message() string { + return "" +} - // The commit message to include in the commit information for the merge. - CommitMessage *string `locationName:"commitMessage" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PullRequestIdRequiredException) OrigErr() error { + return nil +} - // The level of conflict detail to use. If unspecified, the default FILE_LEVEL - // is used, which returns a not-mergeable result if the same file has differences - // in both branches. If LINE_LEVEL is specified, a conflict is considered not - // mergeable if the same file in both branches has differences on the same line. - ConflictDetailLevel *string `locationName:"conflictDetailLevel" type:"string" enum:"ConflictDetailLevelTypeEnum"` +func (s PullRequestIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // If AUTOMERGE is the conflict resolution strategy, a list of inputs to use - // when resolving conflicts during a merge. - ConflictResolution *ConflictResolution `locationName:"conflictResolution" type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s PullRequestIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Specifies which branch to use when resolving conflicts, or whether to attempt - // automatically merging two versions of a file. The default is NONE, which - // requires any conflicts to be resolved manually before the merge operation - // is successful. - ConflictResolutionStrategy *string `locationName:"conflictResolutionStrategy" type:"string" enum:"ConflictResolutionStrategyTypeEnum"` +// RequestID returns the service's response RequestID for request. +func (s PullRequestIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // The email address of the person merging the branches. This information is - // used in the commit information for the merge. - Email *string `locationName:"email" type:"string"` +// Returns information about the change in the merge state for a pull request +// event. +type PullRequestMergedStateChangedEventMetadata struct { + _ struct{} `type:"structure"` - // If the commit contains deletions, whether to keep a folder or folder structure - // if the changes leave the folders empty. If true, a .gitkeep file is created - // for empty folders. The default is false. - KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` + // The name of the branch that the pull request is merged into. + DestinationReference *string `locationName:"destinationReference" type:"string"` - // The system-generated ID of the pull request. To get this ID, use ListPullRequests. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + // Information about the merge state change event. + MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"` // The name of the repository where the pull request was created. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` - - // The full commit ID of the original or updated commit in the pull request - // source branch. Pass this value if you want an exception thrown if the current - // commit ID of the tip of the source branch does not match this commit ID. - SourceCommitId *string `locationName:"sourceCommitId" type:"string"` + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` } // String returns the string representation -func (s MergePullRequestByThreeWayInput) String() string { +func (s PullRequestMergedStateChangedEventMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergePullRequestByThreeWayInput) GoString() string { +func (s PullRequestMergedStateChangedEventMetadata) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MergePullRequestByThreeWayInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MergePullRequestByThreeWayInput"} - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.ConflictResolution != nil { - if err := s.ConflictResolution.Validate(); err != nil { - invalidParams.AddNested("ConflictResolution", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// SetDestinationReference sets the DestinationReference field's value. +func (s *PullRequestMergedStateChangedEventMetadata) SetDestinationReference(v string) *PullRequestMergedStateChangedEventMetadata { + s.DestinationReference = &v + return s } -// SetAuthorName sets the AuthorName field's value. -func (s *MergePullRequestByThreeWayInput) SetAuthorName(v string) *MergePullRequestByThreeWayInput { - s.AuthorName = &v +// SetMergeMetadata sets the MergeMetadata field's value. +func (s *PullRequestMergedStateChangedEventMetadata) SetMergeMetadata(v *MergeMetadata) *PullRequestMergedStateChangedEventMetadata { + s.MergeMetadata = v return s } -// SetCommitMessage sets the CommitMessage field's value. -func (s *MergePullRequestByThreeWayInput) SetCommitMessage(v string) *MergePullRequestByThreeWayInput { - s.CommitMessage = &v +// SetRepositoryName sets the RepositoryName field's value. +func (s *PullRequestMergedStateChangedEventMetadata) SetRepositoryName(v string) *PullRequestMergedStateChangedEventMetadata { + s.RepositoryName = &v return s } -// SetConflictDetailLevel sets the ConflictDetailLevel field's value. -func (s *MergePullRequestByThreeWayInput) SetConflictDetailLevel(v string) *MergePullRequestByThreeWayInput { - s.ConflictDetailLevel = &v - return s +// Information about an update to the source branch of a pull request. +type PullRequestSourceReferenceUpdatedEventMetadata struct { + _ struct{} `type:"structure"` + + // The full commit ID of the commit in the source branch that was the tip of + // the branch at the time the pull request was updated. + AfterCommitId *string `locationName:"afterCommitId" type:"string"` + + // The full commit ID of the commit in the destination branch that was the tip + // of the branch at the time the pull request was updated. + BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + + // The commit ID of the most recent commit that the source branch and the destination + // branch have in common. + MergeBase *string `locationName:"mergeBase" type:"string"` + + // The name of the repository where the pull request was updated. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` } -// SetConflictResolution sets the ConflictResolution field's value. -func (s *MergePullRequestByThreeWayInput) SetConflictResolution(v *ConflictResolution) *MergePullRequestByThreeWayInput { - s.ConflictResolution = v - return s +// String returns the string representation +func (s PullRequestSourceReferenceUpdatedEventMetadata) String() string { + return awsutil.Prettify(s) } -// SetConflictResolutionStrategy sets the ConflictResolutionStrategy field's value. -func (s *MergePullRequestByThreeWayInput) SetConflictResolutionStrategy(v string) *MergePullRequestByThreeWayInput { - s.ConflictResolutionStrategy = &v - return s +// GoString returns the string representation +func (s PullRequestSourceReferenceUpdatedEventMetadata) GoString() string { + return s.String() } -// SetEmail sets the Email field's value. -func (s *MergePullRequestByThreeWayInput) SetEmail(v string) *MergePullRequestByThreeWayInput { - s.Email = &v +// SetAfterCommitId sets the AfterCommitId field's value. +func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetAfterCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata { + s.AfterCommitId = &v return s } -// SetKeepEmptyFolders sets the KeepEmptyFolders field's value. -func (s *MergePullRequestByThreeWayInput) SetKeepEmptyFolders(v bool) *MergePullRequestByThreeWayInput { - s.KeepEmptyFolders = &v +// SetBeforeCommitId sets the BeforeCommitId field's value. +func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetBeforeCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata { + s.BeforeCommitId = &v return s } -// SetPullRequestId sets the PullRequestId field's value. -func (s *MergePullRequestByThreeWayInput) SetPullRequestId(v string) *MergePullRequestByThreeWayInput { - s.PullRequestId = &v +// SetMergeBase sets the MergeBase field's value. +func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetMergeBase(v string) *PullRequestSourceReferenceUpdatedEventMetadata { + s.MergeBase = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *MergePullRequestByThreeWayInput) SetRepositoryName(v string) *MergePullRequestByThreeWayInput { +func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetRepositoryName(v string) *PullRequestSourceReferenceUpdatedEventMetadata { s.RepositoryName = &v return s } -// SetSourceCommitId sets the SourceCommitId field's value. -func (s *MergePullRequestByThreeWayInput) SetSourceCommitId(v string) *MergePullRequestByThreeWayInput { - s.SourceCommitId = &v - return s -} - -type MergePullRequestByThreeWayOutput struct { +// Information about a change to the status of a pull request. +type PullRequestStatusChangedEventMetadata struct { _ struct{} `type:"structure"` - // Returns information about a pull request. - PullRequest *PullRequest `locationName:"pullRequest" type:"structure"` + // The changed status of the pull request. + PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"` } // String returns the string representation -func (s MergePullRequestByThreeWayOutput) String() string { +func (s PullRequestStatusChangedEventMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MergePullRequestByThreeWayOutput) GoString() string { +func (s PullRequestStatusChangedEventMetadata) GoString() string { return s.String() } -// SetPullRequest sets the PullRequest field's value. -func (s *MergePullRequestByThreeWayOutput) SetPullRequest(v *PullRequest) *MergePullRequestByThreeWayOutput { - s.PullRequest = v +// SetPullRequestStatus sets the PullRequestStatus field's value. +func (s *PullRequestStatusChangedEventMetadata) SetPullRequestStatus(v string) *PullRequestStatusChangedEventMetadata { + s.PullRequestStatus = &v return s } -// Information about the type of an object in a merge operation. -type ObjectTypes struct { +// A pull request status is required, but none was provided. +type PullRequestStatusRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PullRequestStatusRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PullRequestStatusRequiredException) GoString() string { + return s.String() +} + +func newErrorPullRequestStatusRequiredException(v protocol.ResponseMetadata) error { + return &PullRequestStatusRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PullRequestStatusRequiredException) Code() string { + return "PullRequestStatusRequiredException" +} + +// Message returns the exception's message. +func (s PullRequestStatusRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PullRequestStatusRequiredException) OrigErr() error { + return nil +} + +func (s PullRequestStatusRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PullRequestStatusRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PullRequestStatusRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about a pull request target. +type PullRequestTarget struct { _ struct{} `type:"structure"` - // The type of the object in the base commit of the merge. - Base *string `locationName:"base" type:"string" enum:"ObjectTypeEnum"` + // The full commit ID that is the tip of the destination branch. This is the + // commit where the pull request was or will be merged. + DestinationCommit *string `locationName:"destinationCommit" type:"string"` - // The type of the object in the destination branch. - Destination *string `locationName:"destination" type:"string" enum:"ObjectTypeEnum"` + // The branch of the repository where the pull request changes are merged. Also + // known as the destination branch. + DestinationReference *string `locationName:"destinationReference" type:"string"` - // The type of the object in the source branch. - Source *string `locationName:"source" type:"string" enum:"ObjectTypeEnum"` + // The commit ID of the most recent commit that the source branch and the destination + // branch have in common. + MergeBase *string `locationName:"mergeBase" type:"string"` + + // Returns metadata about the state of the merge, including whether the merge + // has been made. + MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"` + + // The name of the repository that contains the pull request source and destination + // branches. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + + // The full commit ID of the tip of the source branch used to create the pull + // request. If the pull request branch is updated by a push while the pull request + // is open, the commit ID changes to reflect the new tip of the branch. + SourceCommit *string `locationName:"sourceCommit" type:"string"` + + // The branch of the repository that contains the changes for the pull request. + // Also known as the source branch. + SourceReference *string `locationName:"sourceReference" type:"string"` } // String returns the string representation -func (s ObjectTypes) String() string { +func (s PullRequestTarget) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ObjectTypes) GoString() string { +func (s PullRequestTarget) GoString() string { return s.String() } -// SetBase sets the Base field's value. -func (s *ObjectTypes) SetBase(v string) *ObjectTypes { - s.Base = &v +// SetDestinationCommit sets the DestinationCommit field's value. +func (s *PullRequestTarget) SetDestinationCommit(v string) *PullRequestTarget { + s.DestinationCommit = &v return s } -// SetDestination sets the Destination field's value. -func (s *ObjectTypes) SetDestination(v string) *ObjectTypes { - s.Destination = &v +// SetDestinationReference sets the DestinationReference field's value. +func (s *PullRequestTarget) SetDestinationReference(v string) *PullRequestTarget { + s.DestinationReference = &v return s } -// SetSource sets the Source field's value. -func (s *ObjectTypes) SetSource(v string) *ObjectTypes { - s.Source = &v +// SetMergeBase sets the MergeBase field's value. +func (s *PullRequestTarget) SetMergeBase(v string) *PullRequestTarget { + s.MergeBase = &v return s } -// Returns information about the template that created the approval rule for -// a pull request. -type OriginApprovalRuleTemplate struct { - _ struct{} `type:"structure"` - - // The ID of the template that created the approval rule. - ApprovalRuleTemplateId *string `locationName:"approvalRuleTemplateId" type:"string"` - - // The name of the template that created the approval rule. - ApprovalRuleTemplateName *string `locationName:"approvalRuleTemplateName" min:"1" type:"string"` -} - -// String returns the string representation -func (s OriginApprovalRuleTemplate) String() string { - return awsutil.Prettify(s) +// SetMergeMetadata sets the MergeMetadata field's value. +func (s *PullRequestTarget) SetMergeMetadata(v *MergeMetadata) *PullRequestTarget { + s.MergeMetadata = v + return s } -// GoString returns the string representation -func (s OriginApprovalRuleTemplate) GoString() string { - return s.String() +// SetRepositoryName sets the RepositoryName field's value. +func (s *PullRequestTarget) SetRepositoryName(v string) *PullRequestTarget { + s.RepositoryName = &v + return s } -// SetApprovalRuleTemplateId sets the ApprovalRuleTemplateId field's value. -func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateId(v string) *OriginApprovalRuleTemplate { - s.ApprovalRuleTemplateId = &v +// SetSourceCommit sets the SourceCommit field's value. +func (s *PullRequestTarget) SetSourceCommit(v string) *PullRequestTarget { + s.SourceCommit = &v return s } -// SetApprovalRuleTemplateName sets the ApprovalRuleTemplateName field's value. -func (s *OriginApprovalRuleTemplate) SetApprovalRuleTemplateName(v string) *OriginApprovalRuleTemplate { - s.ApprovalRuleTemplateName = &v +// SetSourceReference sets the SourceReference field's value. +func (s *PullRequestTarget) SetSourceReference(v string) *PullRequestTarget { + s.SourceReference = &v return s } -type OverridePullRequestApprovalRulesInput struct { +// Information about a file added or updated as part of a commit. +type PutFileEntry struct { _ struct{} `type:"structure"` - // Whether you want to set aside approval rule requirements for the pull request - // (OVERRIDE) or revoke a previous override and apply approval rule requirements - // (REVOKE). REVOKE status is not stored. + // The content of the file, if a source file is not specified. // - // OverrideStatus is a required field - OverrideStatus *string `locationName:"overrideStatus" type:"string" required:"true" enum:"OverrideStatus"` + // FileContent is automatically base64 encoded/decoded by the SDK. + FileContent []byte `locationName:"fileContent" type:"blob"` - // The system-generated ID of the pull request for which you want to override - // all approval rule requirements. To get this information, use GetPullRequest. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` + // The extrapolated file mode permissions for the file. Valid values include + // EXECUTABLE and NORMAL. + FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` - // The system-generated ID of the most recent revision of the pull request. - // You cannot override approval rules for anything but the most recent revision - // of a pull request. To get the revision ID, use GetPullRequest. + // The full path to the file in the repository, including the name of the file. // - // RevisionId is a required field - RevisionId *string `locationName:"revisionId" type:"string" required:"true"` + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The name and full path of the file that contains the changes you want to + // make as part of the commit, if you are not providing the file content directly. + SourceFile *SourceFileSpecifier `locationName:"sourceFile" type:"structure"` } // String returns the string representation -func (s OverridePullRequestApprovalRulesInput) String() string { +func (s PutFileEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OverridePullRequestApprovalRulesInput) GoString() string { +func (s PutFileEntry) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *OverridePullRequestApprovalRulesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "OverridePullRequestApprovalRulesInput"} - if s.OverrideStatus == nil { - invalidParams.Add(request.NewErrParamRequired("OverrideStatus")) - } - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) +func (s *PutFileEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutFileEntry"} + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) } - if s.RevisionId == nil { - invalidParams.Add(request.NewErrParamRequired("RevisionId")) + if s.SourceFile != nil { + if err := s.SourceFile.Validate(); err != nil { + invalidParams.AddNested("SourceFile", err.(request.ErrInvalidParams)) + } } if invalidParams.Len() > 0 { @@ -18445,91 +27131,160 @@ func (s *OverridePullRequestApprovalRulesInput) Validate() error { return nil } -// SetOverrideStatus sets the OverrideStatus field's value. -func (s *OverridePullRequestApprovalRulesInput) SetOverrideStatus(v string) *OverridePullRequestApprovalRulesInput { - s.OverrideStatus = &v +// SetFileContent sets the FileContent field's value. +func (s *PutFileEntry) SetFileContent(v []byte) *PutFileEntry { + s.FileContent = v return s } -// SetPullRequestId sets the PullRequestId field's value. -func (s *OverridePullRequestApprovalRulesInput) SetPullRequestId(v string) *OverridePullRequestApprovalRulesInput { - s.PullRequestId = &v +// SetFileMode sets the FileMode field's value. +func (s *PutFileEntry) SetFileMode(v string) *PutFileEntry { + s.FileMode = &v return s } -// SetRevisionId sets the RevisionId field's value. -func (s *OverridePullRequestApprovalRulesInput) SetRevisionId(v string) *OverridePullRequestApprovalRulesInput { - s.RevisionId = &v +// SetFilePath sets the FilePath field's value. +func (s *PutFileEntry) SetFilePath(v string) *PutFileEntry { + s.FilePath = &v return s } -type OverridePullRequestApprovalRulesOutput struct { - _ struct{} `type:"structure"` +// SetSourceFile sets the SourceFile field's value. +func (s *PutFileEntry) SetSourceFile(v *SourceFileSpecifier) *PutFileEntry { + s.SourceFile = v + return s +} + +// The commit cannot be created because one or more files specified in the commit +// reference both a file and a folder. +type PutFileEntryConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s OverridePullRequestApprovalRulesOutput) String() string { +func (s PutFileEntryConflictException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s OverridePullRequestApprovalRulesOutput) GoString() string { +func (s PutFileEntryConflictException) GoString() string { return s.String() } -type PostCommentForComparedCommitInput struct { +func newErrorPutFileEntryConflictException(v protocol.ResponseMetadata) error { + return &PutFileEntryConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PutFileEntryConflictException) Code() string { + return "PutFileEntryConflictException" +} + +// Message returns the exception's message. +func (s PutFileEntryConflictException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PutFileEntryConflictException) OrigErr() error { + return nil +} + +func (s PutFileEntryConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PutFileEntryConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PutFileEntryConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +type PutFileInput struct { _ struct{} `type:"structure"` - // To establish the directionality of the comparison, the full commit ID of - // the after commit. + // The name of the branch where you want to add or update the file. If this + // is an empty repository, this branch is created. // - // AfterCommitId is a required field - AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"` + // BranchName is a required field + BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` - // To establish the directionality of the comparison, the full commit ID of - // the before commit. Required for commenting on any commit unless that commit - // is the initial commit. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` + // A message about why this file was added or updated. Although it is optional, + // a message makes the commit history for your repository more useful. + CommitMessage *string `locationName:"commitMessage" type:"string"` - // A unique, client-generated idempotency token that, when provided in a request, - // ensures the request cannot be repeated with a changed parameter. If a request - // is received with the same parameters and a token is included, the request - // returns information about the initial request that used that token. - ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` + // An email address for the person adding or updating the file. + Email *string `locationName:"email" type:"string"` - // The content of the comment you want to make. + // The content of the file, in binary object format. // - // Content is a required field - Content *string `locationName:"content" type:"string" required:"true"` + // FileContent is automatically base64 encoded/decoded by the SDK. + // + // FileContent is a required field + FileContent []byte `locationName:"fileContent" type:"blob" required:"true"` - // The location of the comparison where you want to comment. - Location *Location `locationName:"location" type:"structure"` + // The file mode permissions of the blob. Valid file mode permissions are listed + // here. + FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` - // The name of the repository where you want to post a comment on the comparison - // between commits. + // The name of the file you want to add or update, including the relative path + // to the file in the repository. + // + // If the path does not currently exist in the repository, the path is created + // as part of adding the file. + // + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` + + // The name of the person adding or updating the file. Although it is optional, + // a name makes the commit history for your repository more useful. + Name *string `locationName:"name" type:"string"` + + // The full commit ID of the head commit in the branch where you want to add + // or update the file. If this is an empty repository, no commit ID is required. + // If this is not an empty repository, a commit ID is required. + // + // The commit ID must match the ID of the head commit at the time of the operation. + // Otherwise, an error occurs, and the file is not added or updated. + ParentCommitId *string `locationName:"parentCommitId" type:"string"` + + // The name of the repository where you want to add or update the file. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` } // String returns the string representation -func (s PostCommentForComparedCommitInput) String() string { +func (s PutFileInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PostCommentForComparedCommitInput) GoString() string { +func (s PutFileInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PostCommentForComparedCommitInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PostCommentForComparedCommitInput"} - if s.AfterCommitId == nil { - invalidParams.Add(request.NewErrParamRequired("AfterCommitId")) +func (s *PutFileInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutFileInput"} + if s.BranchName == nil { + invalidParams.Add(request.NewErrParamRequired("BranchName")) } - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) + if s.BranchName != nil && len(*s.BranchName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) + } + if s.FileContent == nil { + invalidParams.Add(request.NewErrParamRequired("FileContent")) + } + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) } if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) @@ -18538,199 +27293,161 @@ func (s *PostCommentForComparedCommitInput) Validate() error { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } - if invalidParams.Len() > 0 { - return invalidParams - } - return nil + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetBranchName sets the BranchName field's value. +func (s *PutFileInput) SetBranchName(v string) *PutFileInput { + s.BranchName = &v + return s +} + +// SetCommitMessage sets the CommitMessage field's value. +func (s *PutFileInput) SetCommitMessage(v string) *PutFileInput { + s.CommitMessage = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *PutFileInput) SetEmail(v string) *PutFileInput { + s.Email = &v + return s } -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *PostCommentForComparedCommitInput) SetAfterCommitId(v string) *PostCommentForComparedCommitInput { - s.AfterCommitId = &v +// SetFileContent sets the FileContent field's value. +func (s *PutFileInput) SetFileContent(v []byte) *PutFileInput { + s.FileContent = v return s } -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *PostCommentForComparedCommitInput) SetBeforeCommitId(v string) *PostCommentForComparedCommitInput { - s.BeforeCommitId = &v +// SetFileMode sets the FileMode field's value. +func (s *PutFileInput) SetFileMode(v string) *PutFileInput { + s.FileMode = &v return s } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *PostCommentForComparedCommitInput) SetClientRequestToken(v string) *PostCommentForComparedCommitInput { - s.ClientRequestToken = &v +// SetFilePath sets the FilePath field's value. +func (s *PutFileInput) SetFilePath(v string) *PutFileInput { + s.FilePath = &v return s } -// SetContent sets the Content field's value. -func (s *PostCommentForComparedCommitInput) SetContent(v string) *PostCommentForComparedCommitInput { - s.Content = &v +// SetName sets the Name field's value. +func (s *PutFileInput) SetName(v string) *PutFileInput { + s.Name = &v return s } -// SetLocation sets the Location field's value. -func (s *PostCommentForComparedCommitInput) SetLocation(v *Location) *PostCommentForComparedCommitInput { - s.Location = v +// SetParentCommitId sets the ParentCommitId field's value. +func (s *PutFileInput) SetParentCommitId(v string) *PutFileInput { + s.ParentCommitId = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *PostCommentForComparedCommitInput) SetRepositoryName(v string) *PostCommentForComparedCommitInput { +func (s *PutFileInput) SetRepositoryName(v string) *PutFileInput { s.RepositoryName = &v return s } -type PostCommentForComparedCommitOutput struct { +type PutFileOutput struct { _ struct{} `type:"structure"` - // In the directionality you established, the blob ID of the after blob. - AfterBlobId *string `locationName:"afterBlobId" type:"string"` - - // In the directionality you established, the full commit ID of the after commit. - AfterCommitId *string `locationName:"afterCommitId" type:"string"` - - // In the directionality you established, the blob ID of the before blob. - BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` - - // In the directionality you established, the full commit ID of the before commit. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` - - // The content of the comment you posted. - Comment *Comment `locationName:"comment" type:"structure"` + // The ID of the blob, which is its SHA-1 pointer. + // + // BlobId is a required field + BlobId *string `locationName:"blobId" type:"string" required:"true"` - // The location of the comment in the comparison between the two commits. - Location *Location `locationName:"location" type:"structure"` + // The full SHA ID of the commit that contains this file change. + // + // CommitId is a required field + CommitId *string `locationName:"commitId" type:"string" required:"true"` - // The name of the repository where you posted a comment on the comparison between - // commits. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` + // The full SHA-1 pointer of the tree information for the commit that contains + // this file change. + // + // TreeId is a required field + TreeId *string `locationName:"treeId" type:"string" required:"true"` } // String returns the string representation -func (s PostCommentForComparedCommitOutput) String() string { +func (s PutFileOutput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PostCommentForComparedCommitOutput) GoString() string { +func (s PutFileOutput) GoString() string { return s.String() } -// SetAfterBlobId sets the AfterBlobId field's value. -func (s *PostCommentForComparedCommitOutput) SetAfterBlobId(v string) *PostCommentForComparedCommitOutput { - s.AfterBlobId = &v - return s -} - -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *PostCommentForComparedCommitOutput) SetAfterCommitId(v string) *PostCommentForComparedCommitOutput { - s.AfterCommitId = &v - return s -} - -// SetBeforeBlobId sets the BeforeBlobId field's value. -func (s *PostCommentForComparedCommitOutput) SetBeforeBlobId(v string) *PostCommentForComparedCommitOutput { - s.BeforeBlobId = &v - return s -} - -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *PostCommentForComparedCommitOutput) SetBeforeCommitId(v string) *PostCommentForComparedCommitOutput { - s.BeforeCommitId = &v - return s -} - -// SetComment sets the Comment field's value. -func (s *PostCommentForComparedCommitOutput) SetComment(v *Comment) *PostCommentForComparedCommitOutput { - s.Comment = v +// SetBlobId sets the BlobId field's value. +func (s *PutFileOutput) SetBlobId(v string) *PutFileOutput { + s.BlobId = &v return s } -// SetLocation sets the Location field's value. -func (s *PostCommentForComparedCommitOutput) SetLocation(v *Location) *PostCommentForComparedCommitOutput { - s.Location = v +// SetCommitId sets the CommitId field's value. +func (s *PutFileOutput) SetCommitId(v string) *PutFileOutput { + s.CommitId = &v return s } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PostCommentForComparedCommitOutput) SetRepositoryName(v string) *PostCommentForComparedCommitOutput { - s.RepositoryName = &v +// SetTreeId sets the TreeId field's value. +func (s *PutFileOutput) SetTreeId(v string) *PutFileOutput { + s.TreeId = &v return s } -type PostCommentForPullRequestInput struct { +// Represents the input of a put repository triggers operation. +type PutRepositoryTriggersInput struct { _ struct{} `type:"structure"` - // The full commit ID of the commit in the source branch that is the current - // tip of the branch for the pull request when you post the comment. - // - // AfterCommitId is a required field - AfterCommitId *string `locationName:"afterCommitId" type:"string" required:"true"` - - // The full commit ID of the commit in the destination branch that was the tip - // of the branch at the time the pull request was created. - // - // BeforeCommitId is a required field - BeforeCommitId *string `locationName:"beforeCommitId" type:"string" required:"true"` - - // A unique, client-generated idempotency token that, when provided in a request, - // ensures the request cannot be repeated with a changed parameter. If a request - // is received with the same parameters and a token is included, the request - // returns information about the initial request that used that token. - ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` - - // The content of your comment on the change. - // - // Content is a required field - Content *string `locationName:"content" type:"string" required:"true"` - - // The location of the change where you want to post your comment. If no location - // is provided, the comment is posted as a general comment on the pull request - // difference between the before commit ID and the after commit ID. - Location *Location `locationName:"location" type:"structure"` - - // The system-generated ID of the pull request. To get this ID, use ListPullRequests. - // - // PullRequestId is a required field - PullRequestId *string `locationName:"pullRequestId" type:"string" required:"true"` - - // The name of the repository where you want to post a comment on a pull request. + // The name of the repository where you want to create or update the trigger. // // RepositoryName is a required field RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + + // The JSON block of configuration information for each trigger. + // + // Triggers is a required field + Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"` } // String returns the string representation -func (s PostCommentForPullRequestInput) String() string { +func (s PutRepositoryTriggersInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PostCommentForPullRequestInput) GoString() string { +func (s PutRepositoryTriggersInput) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PostCommentForPullRequestInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PostCommentForPullRequestInput"} - if s.AfterCommitId == nil { - invalidParams.Add(request.NewErrParamRequired("AfterCommitId")) - } - if s.BeforeCommitId == nil { - invalidParams.Add(request.NewErrParamRequired("BeforeCommitId")) - } - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) - } - if s.PullRequestId == nil { - invalidParams.Add(request.NewErrParamRequired("PullRequestId")) - } +func (s *PutRepositoryTriggersInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PutRepositoryTriggersInput"} if s.RepositoryName == nil { invalidParams.Add(request.NewErrParamRequired("RepositoryName")) } if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) } + if s.Triggers == nil { + invalidParams.Add(request.NewErrParamRequired("Triggers")) + } + if s.Triggers != nil { + for i, v := range s.Triggers { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams)) + } + } + } if invalidParams.Len() > 0 { return invalidParams @@ -18738,176 +27455,237 @@ func (s *PostCommentForPullRequestInput) Validate() error { return nil } -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *PostCommentForPullRequestInput) SetAfterCommitId(v string) *PostCommentForPullRequestInput { - s.AfterCommitId = &v +// SetRepositoryName sets the RepositoryName field's value. +func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput { + s.RepositoryName = &v return s } -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *PostCommentForPullRequestInput) SetBeforeCommitId(v string) *PostCommentForPullRequestInput { - s.BeforeCommitId = &v +// SetTriggers sets the Triggers field's value. +func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput { + s.Triggers = v + return s +} + +// Represents the output of a put repository triggers operation. +type PutRepositoryTriggersOutput struct { + _ struct{} `type:"structure"` + + // The system-generated unique ID for the create or update operation. + ConfigurationId *string `locationName:"configurationId" type:"string"` +} + +// String returns the string representation +func (s PutRepositoryTriggersOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutRepositoryTriggersOutput) GoString() string { + return s.String() +} + +// SetConfigurationId sets the ConfigurationId field's value. +func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput { + s.ConfigurationId = &v return s } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *PostCommentForPullRequestInput) SetClientRequestToken(v string) *PostCommentForPullRequestInput { - s.ClientRequestToken = &v - return s +// The specified reference does not exist. You must provide a full commit ID. +type ReferenceDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ReferenceDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReferenceDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorReferenceDoesNotExistException(v protocol.ResponseMetadata) error { + return &ReferenceDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReferenceDoesNotExistException) Code() string { + return "ReferenceDoesNotExistException" +} + +// Message returns the exception's message. +func (s ReferenceDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReferenceDoesNotExistException) OrigErr() error { + return nil +} + +func (s ReferenceDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetContent sets the Content field's value. -func (s *PostCommentForPullRequestInput) SetContent(v string) *PostCommentForPullRequestInput { - s.Content = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ReferenceDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetLocation sets the Location field's value. -func (s *PostCommentForPullRequestInput) SetLocation(v *Location) *PostCommentForPullRequestInput { - s.Location = v - return s +// RequestID returns the service's response RequestID for request. +func (s ReferenceDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID } -// SetPullRequestId sets the PullRequestId field's value. -func (s *PostCommentForPullRequestInput) SetPullRequestId(v string) *PostCommentForPullRequestInput { - s.PullRequestId = &v - return s +// A reference name is required, but none was provided. +type ReferenceNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PostCommentForPullRequestInput) SetRepositoryName(v string) *PostCommentForPullRequestInput { - s.RepositoryName = &v - return s +// String returns the string representation +func (s ReferenceNameRequiredException) String() string { + return awsutil.Prettify(s) } -type PostCommentForPullRequestOutput struct { - _ struct{} `type:"structure"` +// GoString returns the string representation +func (s ReferenceNameRequiredException) GoString() string { + return s.String() +} - // In the directionality of the pull request, the blob ID of the after blob. - AfterBlobId *string `locationName:"afterBlobId" type:"string"` +func newErrorReferenceNameRequiredException(v protocol.ResponseMetadata) error { + return &ReferenceNameRequiredException{ + respMetadata: v, + } +} - // The full commit ID of the commit in the destination branch where the pull - // request is merged. - AfterCommitId *string `locationName:"afterCommitId" type:"string"` +// Code returns the exception type name. +func (s ReferenceNameRequiredException) Code() string { + return "ReferenceNameRequiredException" +} - // In the directionality of the pull request, the blob ID of the before blob. - BeforeBlobId *string `locationName:"beforeBlobId" type:"string"` +// Message returns the exception's message. +func (s ReferenceNameRequiredException) Message() string { + return "" +} - // The full commit ID of the commit in the source branch used to create the - // pull request, or in the case of an updated pull request, the full commit - // ID of the commit used to update the pull request. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReferenceNameRequiredException) OrigErr() error { + return nil +} - // The content of the comment you posted. - Comment *Comment `locationName:"comment" type:"structure"` +func (s ReferenceNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The location of the change where you posted your comment. - Location *Location `locationName:"location" type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s ReferenceNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The system-generated ID of the pull request. - PullRequestId *string `locationName:"pullRequestId" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s ReferenceNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the repository where you posted a comment on a pull request. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// The specified reference is not a supported type. +type ReferenceTypeNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PostCommentForPullRequestOutput) String() string { +func (s ReferenceTypeNotSupportedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PostCommentForPullRequestOutput) GoString() string { +func (s ReferenceTypeNotSupportedException) GoString() string { return s.String() } -// SetAfterBlobId sets the AfterBlobId field's value. -func (s *PostCommentForPullRequestOutput) SetAfterBlobId(v string) *PostCommentForPullRequestOutput { - s.AfterBlobId = &v - return s -} - -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *PostCommentForPullRequestOutput) SetAfterCommitId(v string) *PostCommentForPullRequestOutput { - s.AfterCommitId = &v - return s +func newErrorReferenceTypeNotSupportedException(v protocol.ResponseMetadata) error { + return &ReferenceTypeNotSupportedException{ + respMetadata: v, + } } -// SetBeforeBlobId sets the BeforeBlobId field's value. -func (s *PostCommentForPullRequestOutput) SetBeforeBlobId(v string) *PostCommentForPullRequestOutput { - s.BeforeBlobId = &v - return s +// Code returns the exception type name. +func (s ReferenceTypeNotSupportedException) Code() string { + return "ReferenceTypeNotSupportedException" } -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *PostCommentForPullRequestOutput) SetBeforeCommitId(v string) *PostCommentForPullRequestOutput { - s.BeforeCommitId = &v - return s +// Message returns the exception's message. +func (s ReferenceTypeNotSupportedException) Message() string { + return "" } -// SetComment sets the Comment field's value. -func (s *PostCommentForPullRequestOutput) SetComment(v *Comment) *PostCommentForPullRequestOutput { - s.Comment = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReferenceTypeNotSupportedException) OrigErr() error { + return nil } -// SetLocation sets the Location field's value. -func (s *PostCommentForPullRequestOutput) SetLocation(v *Location) *PostCommentForPullRequestOutput { - s.Location = v - return s +func (s ReferenceTypeNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetPullRequestId sets the PullRequestId field's value. -func (s *PostCommentForPullRequestOutput) SetPullRequestId(v string) *PostCommentForPullRequestOutput { - s.PullRequestId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ReferenceTypeNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PostCommentForPullRequestOutput) SetRepositoryName(v string) *PostCommentForPullRequestOutput { - s.RepositoryName = &v - return s +// RequestID returns the service's response RequestID for request. +func (s ReferenceTypeNotSupportedException) RequestID() string { + return s.respMetadata.RequestID } -type PostCommentReplyInput struct { +// Information about a replacement content entry in the conflict of a merge +// or pull request operation. +type ReplaceContentEntry struct { _ struct{} `type:"structure"` - // A unique, client-generated idempotency token that, when provided in a request, - // ensures the request cannot be repeated with a changed parameter. If a request - // is received with the same parameters and a token is included, the request - // returns information about the initial request that used that token. - ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` + // The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT. + // + // Content is automatically base64 encoded/decoded by the SDK. + Content []byte `locationName:"content" type:"blob"` - // The contents of your reply to a comment. + // The file mode to apply during conflict resoltion. + FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` + + // The path of the conflicting file. // - // Content is a required field - Content *string `locationName:"content" type:"string" required:"true"` + // FilePath is a required field + FilePath *string `locationName:"filePath" type:"string" required:"true"` - // The system-generated ID of the comment to which you want to reply. To get - // this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest. + // The replacement type to use when determining how to resolve the conflict. // - // InReplyTo is a required field - InReplyTo *string `locationName:"inReplyTo" type:"string" required:"true"` + // ReplacementType is a required field + ReplacementType *string `locationName:"replacementType" type:"string" required:"true" enum:"ReplacementTypeEnum"` } // String returns the string representation -func (s PostCommentReplyInput) String() string { +func (s ReplaceContentEntry) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PostCommentReplyInput) GoString() string { +func (s ReplaceContentEntry) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PostCommentReplyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PostCommentReplyInput"} - if s.Content == nil { - invalidParams.Add(request.NewErrParamRequired("Content")) +func (s *ReplaceContentEntry) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReplaceContentEntry"} + if s.FilePath == nil { + invalidParams.Add(request.NewErrParamRequired("FilePath")) } - if s.InReplyTo == nil { - invalidParams.Add(request.NewErrParamRequired("InReplyTo")) + if s.ReplacementType == nil { + invalidParams.Add(request.NewErrParamRequired("ReplacementType")) } if invalidParams.Len() > 0 { @@ -18916,706 +27694,634 @@ func (s *PostCommentReplyInput) Validate() error { return nil } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *PostCommentReplyInput) SetClientRequestToken(v string) *PostCommentReplyInput { - s.ClientRequestToken = &v +// SetContent sets the Content field's value. +func (s *ReplaceContentEntry) SetContent(v []byte) *ReplaceContentEntry { + s.Content = v return s } -// SetContent sets the Content field's value. -func (s *PostCommentReplyInput) SetContent(v string) *PostCommentReplyInput { - s.Content = &v +// SetFileMode sets the FileMode field's value. +func (s *ReplaceContentEntry) SetFileMode(v string) *ReplaceContentEntry { + s.FileMode = &v return s } -// SetInReplyTo sets the InReplyTo field's value. -func (s *PostCommentReplyInput) SetInReplyTo(v string) *PostCommentReplyInput { - s.InReplyTo = &v +// SetFilePath sets the FilePath field's value. +func (s *ReplaceContentEntry) SetFilePath(v string) *ReplaceContentEntry { + s.FilePath = &v return s } -type PostCommentReplyOutput struct { - _ struct{} `type:"structure"` +// SetReplacementType sets the ReplacementType field's value. +func (s *ReplaceContentEntry) SetReplacementType(v string) *ReplaceContentEntry { + s.ReplacementType = &v + return s +} - // Information about the reply to a comment. - Comment *Comment `locationName:"comment" type:"structure"` +// USE_NEW_CONTENT was specified, but no replacement content has been provided. +type ReplacementContentRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PostCommentReplyOutput) String() string { +func (s ReplacementContentRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PostCommentReplyOutput) GoString() string { +func (s ReplacementContentRequiredException) GoString() string { return s.String() } -// SetComment sets the Comment field's value. -func (s *PostCommentReplyOutput) SetComment(v *Comment) *PostCommentReplyOutput { - s.Comment = v - return s +func newErrorReplacementContentRequiredException(v protocol.ResponseMetadata) error { + return &ReplacementContentRequiredException{ + respMetadata: v, + } } -// Returns information about a pull request. -type PullRequest struct { - _ struct{} `type:"structure"` - - // The approval rules applied to the pull request. - ApprovalRules []*ApprovalRule `locationName:"approvalRules" type:"list"` - - // The Amazon Resource Name (ARN) of the user who created the pull request. - AuthorArn *string `locationName:"authorArn" type:"string"` - - // A unique, client-generated idempotency token that, when provided in a request, - // ensures the request cannot be repeated with a changed parameter. If a request - // is received with the same parameters and a token is included, the request - // returns information about the initial request that used that token. - ClientRequestToken *string `locationName:"clientRequestToken" type:"string"` - - // The date and time the pull request was originally created, in timestamp format. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` - - // The user-defined description of the pull request. This description can be - // used to clarify what should be reviewed and other details of the request. - Description *string `locationName:"description" type:"string"` +// Code returns the exception type name. +func (s ReplacementContentRequiredException) Code() string { + return "ReplacementContentRequiredException" +} - // The day and time of the last user or system activity on the pull request, - // in timestamp format. - LastActivityDate *time.Time `locationName:"lastActivityDate" type:"timestamp"` +// Message returns the exception's message. +func (s ReplacementContentRequiredException) Message() string { + return "" +} - // The system-generated ID of the pull request. - PullRequestId *string `locationName:"pullRequestId" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplacementContentRequiredException) OrigErr() error { + return nil +} - // The status of the pull request. Pull request status can only change from - // OPEN to CLOSED. - PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"` +func (s ReplacementContentRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The targets of the pull request, including the source branch and destination - // branch for the pull request. - PullRequestTargets []*PullRequestTarget `locationName:"pullRequestTargets" type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s ReplacementContentRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The system-generated revision ID for the pull request. - RevisionId *string `locationName:"revisionId" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s ReplacementContentRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // The user-defined title of the pull request. This title is displayed in the - // list of pull requests to other repository users. - Title *string `locationName:"title" type:"string"` +// A replacement type is required. +type ReplacementTypeRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PullRequest) String() string { +func (s ReplacementTypeRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PullRequest) GoString() string { +func (s ReplacementTypeRequiredException) GoString() string { return s.String() } -// SetApprovalRules sets the ApprovalRules field's value. -func (s *PullRequest) SetApprovalRules(v []*ApprovalRule) *PullRequest { - s.ApprovalRules = v - return s +func newErrorReplacementTypeRequiredException(v protocol.ResponseMetadata) error { + return &ReplacementTypeRequiredException{ + respMetadata: v, + } } -// SetAuthorArn sets the AuthorArn field's value. -func (s *PullRequest) SetAuthorArn(v string) *PullRequest { - s.AuthorArn = &v - return s +// Code returns the exception type name. +func (s ReplacementTypeRequiredException) Code() string { + return "ReplacementTypeRequiredException" } -// SetClientRequestToken sets the ClientRequestToken field's value. -func (s *PullRequest) SetClientRequestToken(v string) *PullRequest { - s.ClientRequestToken = &v - return s +// Message returns the exception's message. +func (s ReplacementTypeRequiredException) Message() string { + return "" } -// SetCreationDate sets the CreationDate field's value. -func (s *PullRequest) SetCreationDate(v time.Time) *PullRequest { - s.CreationDate = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplacementTypeRequiredException) OrigErr() error { + return nil } -// SetDescription sets the Description field's value. -func (s *PullRequest) SetDescription(v string) *PullRequest { - s.Description = &v - return s +func (s ReplacementTypeRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetLastActivityDate sets the LastActivityDate field's value. -func (s *PullRequest) SetLastActivityDate(v time.Time) *PullRequest { - s.LastActivityDate = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ReplacementTypeRequiredException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetPullRequestId sets the PullRequestId field's value. -func (s *PullRequest) SetPullRequestId(v string) *PullRequest { - s.PullRequestId = &v - return s +// RequestID returns the service's response RequestID for request. +func (s ReplacementTypeRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified repository does not exist. +type RepositoryDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s RepositoryDoesNotExistException) String() string { + return awsutil.Prettify(s) } -// SetPullRequestStatus sets the PullRequestStatus field's value. -func (s *PullRequest) SetPullRequestStatus(v string) *PullRequest { - s.PullRequestStatus = &v - return s +// GoString returns the string representation +func (s RepositoryDoesNotExistException) GoString() string { + return s.String() } -// SetPullRequestTargets sets the PullRequestTargets field's value. -func (s *PullRequest) SetPullRequestTargets(v []*PullRequestTarget) *PullRequest { - s.PullRequestTargets = v - return s +func newErrorRepositoryDoesNotExistException(v protocol.ResponseMetadata) error { + return &RepositoryDoesNotExistException{ + respMetadata: v, + } } -// SetRevisionId sets the RevisionId field's value. -func (s *PullRequest) SetRevisionId(v string) *PullRequest { - s.RevisionId = &v - return s +// Code returns the exception type name. +func (s RepositoryDoesNotExistException) Code() string { + return "RepositoryDoesNotExistException" } -// SetTitle sets the Title field's value. -func (s *PullRequest) SetTitle(v string) *PullRequest { - s.Title = &v - return s +// Message returns the exception's message. +func (s RepositoryDoesNotExistException) Message() string { + return "" } -// Metadata about the pull request that is used when comparing the pull request -// source with its destination. -type PullRequestCreatedEventMetadata struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryDoesNotExistException) OrigErr() error { + return nil +} - // The commit ID of the tip of the branch specified as the destination branch - // when the pull request was created. - DestinationCommitId *string `locationName:"destinationCommitId" type:"string"` +func (s RepositoryDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The commit ID of the most recent commit that the source branch and the destination - // branch have in common. - MergeBase *string `locationName:"mergeBase" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The name of the repository where the pull request was created. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s RepositoryDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} - // The commit ID on the source branch used when the pull request was created. - SourceCommitId *string `locationName:"sourceCommitId" type:"string"` +// A repository resource limit was exceeded. +type RepositoryLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PullRequestCreatedEventMetadata) String() string { +func (s RepositoryLimitExceededException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PullRequestCreatedEventMetadata) GoString() string { +func (s RepositoryLimitExceededException) GoString() string { return s.String() } -// SetDestinationCommitId sets the DestinationCommitId field's value. -func (s *PullRequestCreatedEventMetadata) SetDestinationCommitId(v string) *PullRequestCreatedEventMetadata { - s.DestinationCommitId = &v - return s +func newErrorRepositoryLimitExceededException(v protocol.ResponseMetadata) error { + return &RepositoryLimitExceededException{ + respMetadata: v, + } } -// SetMergeBase sets the MergeBase field's value. -func (s *PullRequestCreatedEventMetadata) SetMergeBase(v string) *PullRequestCreatedEventMetadata { - s.MergeBase = &v - return s +// Code returns the exception type name. +func (s RepositoryLimitExceededException) Code() string { + return "RepositoryLimitExceededException" } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PullRequestCreatedEventMetadata) SetRepositoryName(v string) *PullRequestCreatedEventMetadata { - s.RepositoryName = &v - return s +// Message returns the exception's message. +func (s RepositoryLimitExceededException) Message() string { + return "" } -// SetSourceCommitId sets the SourceCommitId field's value. -func (s *PullRequestCreatedEventMetadata) SetSourceCommitId(v string) *PullRequestCreatedEventMetadata { - s.SourceCommitId = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryLimitExceededException) OrigErr() error { + return nil } -// Returns information about a pull request event. -type PullRequestEvent struct { - _ struct{} `type:"structure"` +func (s RepositoryLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The Amazon Resource Name (ARN) of the user whose actions resulted in the - // event. Examples include updating the pull request with more commits or changing - // the status of a pull request. - ActorArn *string `locationName:"actorArn" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about a pull request event. - ApprovalRuleEventMetadata *ApprovalRuleEventMetadata `locationName:"approvalRuleEventMetadata" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s RepositoryLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about an approval rule override event for a pull request. - ApprovalRuleOverriddenEventMetadata *ApprovalRuleOverriddenEventMetadata `locationName:"approvalRuleOverriddenEventMetadata" type:"structure"` +// Information about a repository. +type RepositoryMetadata struct { + _ struct{} `type:"structure"` - // Information about an approval state change for a pull request. - ApprovalStateChangedEventMetadata *ApprovalStateChangedEventMetadata `locationName:"approvalStateChangedEventMetadata" type:"structure"` + // The ID of the AWS account associated with the repository. + AccountId *string `locationName:"accountId" type:"string"` - // The day and time of the pull request event, in timestamp format. - EventDate *time.Time `locationName:"eventDate" type:"timestamp"` + // The Amazon Resource Name (ARN) of the repository. + Arn *string `type:"string"` - // Information about the source and destination branches for the pull request. - PullRequestCreatedEventMetadata *PullRequestCreatedEventMetadata `locationName:"pullRequestCreatedEventMetadata" type:"structure"` + // The URL to use for cloning the repository over HTTPS. + CloneUrlHttp *string `locationName:"cloneUrlHttp" type:"string"` - // The type of the pull request event (for example, a status change event (PULL_REQUEST_STATUS_CHANGED) - // or update event (PULL_REQUEST_SOURCE_REFERENCE_UPDATED)). - PullRequestEventType *string `locationName:"pullRequestEventType" type:"string" enum:"PullRequestEventType"` + // The URL to use for cloning the repository over SSH. + CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"` - // The system-generated ID of the pull request. - PullRequestId *string `locationName:"pullRequestId" type:"string"` + // The date and time the repository was created, in timestamp format. + CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` - // Information about the change in mergability state for the pull request event. - PullRequestMergedStateChangedEventMetadata *PullRequestMergedStateChangedEventMetadata `locationName:"pullRequestMergedStateChangedEventMetadata" type:"structure"` + // The repository's default branch name. + DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"` - // Information about the updated source branch for the pull request event. - PullRequestSourceReferenceUpdatedEventMetadata *PullRequestSourceReferenceUpdatedEventMetadata `locationName:"pullRequestSourceReferenceUpdatedEventMetadata" type:"structure"` + // The date and time the repository was last modified, in timestamp format. + LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"` - // Information about the change in status for the pull request event. - PullRequestStatusChangedEventMetadata *PullRequestStatusChangedEventMetadata `locationName:"pullRequestStatusChangedEventMetadata" type:"structure"` + // A comment or description about the repository. + RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` + + // The ID of the repository. + RepositoryId *string `locationName:"repositoryId" type:"string"` + + // The repository's name. + RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` } // String returns the string representation -func (s PullRequestEvent) String() string { +func (s RepositoryMetadata) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PullRequestEvent) GoString() string { +func (s RepositoryMetadata) GoString() string { return s.String() } -// SetActorArn sets the ActorArn field's value. -func (s *PullRequestEvent) SetActorArn(v string) *PullRequestEvent { - s.ActorArn = &v - return s -} - -// SetApprovalRuleEventMetadata sets the ApprovalRuleEventMetadata field's value. -func (s *PullRequestEvent) SetApprovalRuleEventMetadata(v *ApprovalRuleEventMetadata) *PullRequestEvent { - s.ApprovalRuleEventMetadata = v +// SetAccountId sets the AccountId field's value. +func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata { + s.AccountId = &v return s } -// SetApprovalRuleOverriddenEventMetadata sets the ApprovalRuleOverriddenEventMetadata field's value. -func (s *PullRequestEvent) SetApprovalRuleOverriddenEventMetadata(v *ApprovalRuleOverriddenEventMetadata) *PullRequestEvent { - s.ApprovalRuleOverriddenEventMetadata = v +// SetArn sets the Arn field's value. +func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata { + s.Arn = &v return s } -// SetApprovalStateChangedEventMetadata sets the ApprovalStateChangedEventMetadata field's value. -func (s *PullRequestEvent) SetApprovalStateChangedEventMetadata(v *ApprovalStateChangedEventMetadata) *PullRequestEvent { - s.ApprovalStateChangedEventMetadata = v +// SetCloneUrlHttp sets the CloneUrlHttp field's value. +func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata { + s.CloneUrlHttp = &v return s } -// SetEventDate sets the EventDate field's value. -func (s *PullRequestEvent) SetEventDate(v time.Time) *PullRequestEvent { - s.EventDate = &v +// SetCloneUrlSsh sets the CloneUrlSsh field's value. +func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata { + s.CloneUrlSsh = &v return s } -// SetPullRequestCreatedEventMetadata sets the PullRequestCreatedEventMetadata field's value. -func (s *PullRequestEvent) SetPullRequestCreatedEventMetadata(v *PullRequestCreatedEventMetadata) *PullRequestEvent { - s.PullRequestCreatedEventMetadata = v +// SetCreationDate sets the CreationDate field's value. +func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata { + s.CreationDate = &v return s } -// SetPullRequestEventType sets the PullRequestEventType field's value. -func (s *PullRequestEvent) SetPullRequestEventType(v string) *PullRequestEvent { - s.PullRequestEventType = &v +// SetDefaultBranch sets the DefaultBranch field's value. +func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata { + s.DefaultBranch = &v return s } -// SetPullRequestId sets the PullRequestId field's value. -func (s *PullRequestEvent) SetPullRequestId(v string) *PullRequestEvent { - s.PullRequestId = &v +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata { + s.LastModifiedDate = &v return s } -// SetPullRequestMergedStateChangedEventMetadata sets the PullRequestMergedStateChangedEventMetadata field's value. -func (s *PullRequestEvent) SetPullRequestMergedStateChangedEventMetadata(v *PullRequestMergedStateChangedEventMetadata) *PullRequestEvent { - s.PullRequestMergedStateChangedEventMetadata = v +// SetRepositoryDescription sets the RepositoryDescription field's value. +func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata { + s.RepositoryDescription = &v return s } -// SetPullRequestSourceReferenceUpdatedEventMetadata sets the PullRequestSourceReferenceUpdatedEventMetadata field's value. -func (s *PullRequestEvent) SetPullRequestSourceReferenceUpdatedEventMetadata(v *PullRequestSourceReferenceUpdatedEventMetadata) *PullRequestEvent { - s.PullRequestSourceReferenceUpdatedEventMetadata = v +// SetRepositoryId sets the RepositoryId field's value. +func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata { + s.RepositoryId = &v return s } -// SetPullRequestStatusChangedEventMetadata sets the PullRequestStatusChangedEventMetadata field's value. -func (s *PullRequestEvent) SetPullRequestStatusChangedEventMetadata(v *PullRequestStatusChangedEventMetadata) *PullRequestEvent { - s.PullRequestStatusChangedEventMetadata = v +// SetRepositoryName sets the RepositoryName field's value. +func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata { + s.RepositoryName = &v return s } -// Returns information about the change in the merge state for a pull request -// event. -type PullRequestMergedStateChangedEventMetadata struct { - _ struct{} `type:"structure"` - - // The name of the branch that the pull request is merged into. - DestinationReference *string `locationName:"destinationReference" type:"string"` - - // Information about the merge state change event. - MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"` - - // The name of the repository where the pull request was created. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// The specified repository name already exists. +type RepositoryNameExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PullRequestMergedStateChangedEventMetadata) String() string { +func (s RepositoryNameExistsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PullRequestMergedStateChangedEventMetadata) GoString() string { +func (s RepositoryNameExistsException) GoString() string { return s.String() } -// SetDestinationReference sets the DestinationReference field's value. -func (s *PullRequestMergedStateChangedEventMetadata) SetDestinationReference(v string) *PullRequestMergedStateChangedEventMetadata { - s.DestinationReference = &v - return s +func newErrorRepositoryNameExistsException(v protocol.ResponseMetadata) error { + return &RepositoryNameExistsException{ + respMetadata: v, + } } -// SetMergeMetadata sets the MergeMetadata field's value. -func (s *PullRequestMergedStateChangedEventMetadata) SetMergeMetadata(v *MergeMetadata) *PullRequestMergedStateChangedEventMetadata { - s.MergeMetadata = v - return s +// Code returns the exception type name. +func (s RepositoryNameExistsException) Code() string { + return "RepositoryNameExistsException" } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PullRequestMergedStateChangedEventMetadata) SetRepositoryName(v string) *PullRequestMergedStateChangedEventMetadata { - s.RepositoryName = &v - return s +// Message returns the exception's message. +func (s RepositoryNameExistsException) Message() string { + return "" } -// Information about an update to the source branch of a pull request. -type PullRequestSourceReferenceUpdatedEventMetadata struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryNameExistsException) OrigErr() error { + return nil +} - // The full commit ID of the commit in the source branch that was the tip of - // the branch at the time the pull request was updated. - AfterCommitId *string `locationName:"afterCommitId" type:"string"` +func (s RepositoryNameExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The full commit ID of the commit in the destination branch that was the tip - // of the branch at the time the pull request was updated. - BeforeCommitId *string `locationName:"beforeCommitId" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryNameExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The commit ID of the most recent commit that the source branch and the destination - // branch have in common. - MergeBase *string `locationName:"mergeBase" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s RepositoryNameExistsException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the repository where the pull request was updated. +// Information about a repository name and ID. +type RepositoryNameIdPair struct { + _ struct{} `type:"structure"` + + // The ID associated with the repository. + RepositoryId *string `locationName:"repositoryId" type:"string"` + + // The name associated with the repository. RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` } // String returns the string representation -func (s PullRequestSourceReferenceUpdatedEventMetadata) String() string { +func (s RepositoryNameIdPair) String() string { return awsutil.Prettify(s) } - -// GoString returns the string representation -func (s PullRequestSourceReferenceUpdatedEventMetadata) GoString() string { - return s.String() -} - -// SetAfterCommitId sets the AfterCommitId field's value. -func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetAfterCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata { - s.AfterCommitId = &v - return s -} - -// SetBeforeCommitId sets the BeforeCommitId field's value. -func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetBeforeCommitId(v string) *PullRequestSourceReferenceUpdatedEventMetadata { - s.BeforeCommitId = &v - return s + +// GoString returns the string representation +func (s RepositoryNameIdPair) GoString() string { + return s.String() } -// SetMergeBase sets the MergeBase field's value. -func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetMergeBase(v string) *PullRequestSourceReferenceUpdatedEventMetadata { - s.MergeBase = &v +// SetRepositoryId sets the RepositoryId field's value. +func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair { + s.RepositoryId = &v return s } // SetRepositoryName sets the RepositoryName field's value. -func (s *PullRequestSourceReferenceUpdatedEventMetadata) SetRepositoryName(v string) *PullRequestSourceReferenceUpdatedEventMetadata { +func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair { s.RepositoryName = &v return s } -// Information about a change to the status of a pull request. -type PullRequestStatusChangedEventMetadata struct { - _ struct{} `type:"structure"` - - // The changed status of the pull request. - PullRequestStatus *string `locationName:"pullRequestStatus" type:"string" enum:"PullRequestStatusEnum"` +// A repository name is required, but was not specified. +type RepositoryNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PullRequestStatusChangedEventMetadata) String() string { +func (s RepositoryNameRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PullRequestStatusChangedEventMetadata) GoString() string { +func (s RepositoryNameRequiredException) GoString() string { return s.String() } -// SetPullRequestStatus sets the PullRequestStatus field's value. -func (s *PullRequestStatusChangedEventMetadata) SetPullRequestStatus(v string) *PullRequestStatusChangedEventMetadata { - s.PullRequestStatus = &v - return s +func newErrorRepositoryNameRequiredException(v protocol.ResponseMetadata) error { + return &RepositoryNameRequiredException{ + respMetadata: v, + } } -// Returns information about a pull request target. -type PullRequestTarget struct { - _ struct{} `type:"structure"` - - // The full commit ID that is the tip of the destination branch. This is the - // commit where the pull request was or will be merged. - DestinationCommit *string `locationName:"destinationCommit" type:"string"` +// Code returns the exception type name. +func (s RepositoryNameRequiredException) Code() string { + return "RepositoryNameRequiredException" +} - // The branch of the repository where the pull request changes are merged. Also - // known as the destination branch. - DestinationReference *string `locationName:"destinationReference" type:"string"` +// Message returns the exception's message. +func (s RepositoryNameRequiredException) Message() string { + return "" +} - // The commit ID of the most recent commit that the source branch and the destination - // branch have in common. - MergeBase *string `locationName:"mergeBase" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryNameRequiredException) OrigErr() error { + return nil +} - // Returns metadata about the state of the merge, including whether the merge - // has been made. - MergeMetadata *MergeMetadata `locationName:"mergeMetadata" type:"structure"` +func (s RepositoryNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the repository that contains the pull request source and destination - // branches. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The full commit ID of the tip of the source branch used to create the pull - // request. If the pull request branch is updated by a push while the pull request - // is open, the commit ID changes to reflect the new tip of the branch. - SourceCommit *string `locationName:"sourceCommit" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s RepositoryNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // The branch of the repository that contains the changes for the pull request. - // Also known as the source branch. - SourceReference *string `locationName:"sourceReference" type:"string"` +// At least one repository name object is required, but was not specified. +type RepositoryNamesRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PullRequestTarget) String() string { +func (s RepositoryNamesRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PullRequestTarget) GoString() string { +func (s RepositoryNamesRequiredException) GoString() string { return s.String() } -// SetDestinationCommit sets the DestinationCommit field's value. -func (s *PullRequestTarget) SetDestinationCommit(v string) *PullRequestTarget { - s.DestinationCommit = &v - return s +func newErrorRepositoryNamesRequiredException(v protocol.ResponseMetadata) error { + return &RepositoryNamesRequiredException{ + respMetadata: v, + } } -// SetDestinationReference sets the DestinationReference field's value. -func (s *PullRequestTarget) SetDestinationReference(v string) *PullRequestTarget { - s.DestinationReference = &v - return s +// Code returns the exception type name. +func (s RepositoryNamesRequiredException) Code() string { + return "RepositoryNamesRequiredException" } -// SetMergeBase sets the MergeBase field's value. -func (s *PullRequestTarget) SetMergeBase(v string) *PullRequestTarget { - s.MergeBase = &v - return s +// Message returns the exception's message. +func (s RepositoryNamesRequiredException) Message() string { + return "" } -// SetMergeMetadata sets the MergeMetadata field's value. -func (s *PullRequestTarget) SetMergeMetadata(v *MergeMetadata) *PullRequestTarget { - s.MergeMetadata = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryNamesRequiredException) OrigErr() error { + return nil } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PullRequestTarget) SetRepositoryName(v string) *PullRequestTarget { - s.RepositoryName = &v - return s +func (s RepositoryNamesRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSourceCommit sets the SourceCommit field's value. -func (s *PullRequestTarget) SetSourceCommit(v string) *PullRequestTarget { - s.SourceCommit = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryNamesRequiredException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetSourceReference sets the SourceReference field's value. -func (s *PullRequestTarget) SetSourceReference(v string) *PullRequestTarget { - s.SourceReference = &v - return s +// RequestID returns the service's response RequestID for request. +func (s RepositoryNamesRequiredException) RequestID() string { + return s.respMetadata.RequestID } -// Information about a file added or updated as part of a commit. -type PutFileEntry struct { - _ struct{} `type:"structure"` - - // The content of the file, if a source file is not specified. - // - // FileContent is automatically base64 encoded/decoded by the SDK. - FileContent []byte `locationName:"fileContent" type:"blob"` - - // The extrapolated file mode permissions for the file. Valid values include - // EXECUTABLE and NORMAL. - FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` - - // The full path to the file in the repository, including the name of the file. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` - - // The name and full path of the file that contains the changes you want to - // make as part of the commit, if you are not providing the file content directly. - SourceFile *SourceFileSpecifier `locationName:"sourceFile" type:"structure"` +// The repository does not contain any pull requests with that pull request +// ID. Use GetPullRequest to verify the correct repository name for the pull +// request ID. +type RepositoryNotAssociatedWithPullRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PutFileEntry) String() string { +func (s RepositoryNotAssociatedWithPullRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutFileEntry) GoString() string { +func (s RepositoryNotAssociatedWithPullRequestException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutFileEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutFileEntry"} - if s.FilePath == nil { - invalidParams.Add(request.NewErrParamRequired("FilePath")) - } - if s.SourceFile != nil { - if err := s.SourceFile.Validate(); err != nil { - invalidParams.AddNested("SourceFile", err.(request.ErrInvalidParams)) - } +func newErrorRepositoryNotAssociatedWithPullRequestException(v protocol.ResponseMetadata) error { + return &RepositoryNotAssociatedWithPullRequestException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s RepositoryNotAssociatedWithPullRequestException) Code() string { + return "RepositoryNotAssociatedWithPullRequestException" } -// SetFileContent sets the FileContent field's value. -func (s *PutFileEntry) SetFileContent(v []byte) *PutFileEntry { - s.FileContent = v - return s +// Message returns the exception's message. +func (s RepositoryNotAssociatedWithPullRequestException) Message() string { + return "" } -// SetFileMode sets the FileMode field's value. -func (s *PutFileEntry) SetFileMode(v string) *PutFileEntry { - s.FileMode = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryNotAssociatedWithPullRequestException) OrigErr() error { + return nil } -// SetFilePath sets the FilePath field's value. -func (s *PutFileEntry) SetFilePath(v string) *PutFileEntry { - s.FilePath = &v - return s +func (s RepositoryNotAssociatedWithPullRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSourceFile sets the SourceFile field's value. -func (s *PutFileEntry) SetSourceFile(v *SourceFileSpecifier) *PutFileEntry { - s.SourceFile = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryNotAssociatedWithPullRequestException) StatusCode() int { + return s.respMetadata.StatusCode } -type PutFileInput struct { +// RequestID returns the service's response RequestID for request. +func (s RepositoryNotAssociatedWithPullRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about a trigger for a repository. +type RepositoryTrigger struct { _ struct{} `type:"structure"` - // The name of the branch where you want to add or update the file. If this - // is an empty repository, this branch is created. + // The branches to be included in the trigger configuration. If you specify + // an empty array, the trigger applies to all branches. // - // BranchName is a required field - BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` - - // A message about why this file was added or updated. Although it is optional, - // a message makes the commit history for your repository more useful. - CommitMessage *string `locationName:"commitMessage" type:"string"` + // Although no content is required in the array, you must include the array + // itself. + Branches []*string `locationName:"branches" type:"list"` - // An email address for the person adding or updating the file. - Email *string `locationName:"email" type:"string"` + // Any custom data associated with the trigger to be included in the information + // sent to the target of the trigger. + CustomData *string `locationName:"customData" type:"string"` - // The content of the file, in binary object format. - // - // FileContent is automatically base64 encoded/decoded by the SDK. + // The ARN of the resource that is the target for a trigger (for example, the + // ARN of a topic in Amazon SNS). // - // FileContent is a required field - FileContent []byte `locationName:"fileContent" type:"blob" required:"true"` - - // The file mode permissions of the blob. Valid file mode permissions are listed - // here. - FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` + // DestinationArn is a required field + DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"` - // The name of the file you want to add or update, including the relative path - // to the file in the repository. - // - // If the path does not currently exist in the repository, the path is created - // as part of adding the file. + // The repository events that cause the trigger to run actions in another service, + // such as sending a notification through Amazon SNS. // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` - - // The name of the person adding or updating the file. Although it is optional, - // a name makes the commit history for your repository more useful. - Name *string `locationName:"name" type:"string"` - - // The full commit ID of the head commit in the branch where you want to add - // or update the file. If this is an empty repository, no commit ID is required. - // If this is not an empty repository, a commit ID is required. + // The valid value "all" cannot be used with any other values. // - // The commit ID must match the ID of the head commit at the time of the operation. - // Otherwise, an error occurs, and the file is not added or updated. - ParentCommitId *string `locationName:"parentCommitId" type:"string"` + // Events is a required field + Events []*string `locationName:"events" type:"list" required:"true"` - // The name of the repository where you want to add or update the file. + // The name of the trigger. // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` + // Name is a required field + Name *string `locationName:"name" type:"string" required:"true"` } // String returns the string representation -func (s PutFileInput) String() string { +func (s RepositoryTrigger) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutFileInput) GoString() string { +func (s RepositoryTrigger) GoString() string { return s.String() } // Validate inspects the fields of the type to determine if they are valid. -func (s *PutFileInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutFileInput"} - if s.BranchName == nil { - invalidParams.Add(request.NewErrParamRequired("BranchName")) - } - if s.BranchName != nil && len(*s.BranchName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("BranchName", 1)) - } - if s.FileContent == nil { - invalidParams.Add(request.NewErrParamRequired("FileContent")) - } - if s.FilePath == nil { - invalidParams.Add(request.NewErrParamRequired("FilePath")) +func (s *RepositoryTrigger) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RepositoryTrigger"} + if s.DestinationArn == nil { + invalidParams.Add(request.NewErrParamRequired("DestinationArn")) } - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) + if s.Events == nil { + invalidParams.Add(request.NewErrParamRequired("Events")) } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) + if s.Name == nil { + invalidParams.Add(request.NewErrParamRequired("Name")) } if invalidParams.Len() > 0 { @@ -19624,535 +28330,640 @@ func (s *PutFileInput) Validate() error { return nil } -// SetBranchName sets the BranchName field's value. -func (s *PutFileInput) SetBranchName(v string) *PutFileInput { - s.BranchName = &v - return s -} - -// SetCommitMessage sets the CommitMessage field's value. -func (s *PutFileInput) SetCommitMessage(v string) *PutFileInput { - s.CommitMessage = &v - return s -} - -// SetEmail sets the Email field's value. -func (s *PutFileInput) SetEmail(v string) *PutFileInput { - s.Email = &v +// SetBranches sets the Branches field's value. +func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger { + s.Branches = v return s } -// SetFileContent sets the FileContent field's value. -func (s *PutFileInput) SetFileContent(v []byte) *PutFileInput { - s.FileContent = v +// SetCustomData sets the CustomData field's value. +func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger { + s.CustomData = &v return s } -// SetFileMode sets the FileMode field's value. -func (s *PutFileInput) SetFileMode(v string) *PutFileInput { - s.FileMode = &v +// SetDestinationArn sets the DestinationArn field's value. +func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger { + s.DestinationArn = &v return s } -// SetFilePath sets the FilePath field's value. -func (s *PutFileInput) SetFilePath(v string) *PutFileInput { - s.FilePath = &v +// SetEvents sets the Events field's value. +func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger { + s.Events = v return s } // SetName sets the Name field's value. -func (s *PutFileInput) SetName(v string) *PutFileInput { +func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger { s.Name = &v return s } -// SetParentCommitId sets the ParentCommitId field's value. -func (s *PutFileInput) SetParentCommitId(v string) *PutFileInput { - s.ParentCommitId = &v - return s +// At least one branch name is required, but was not specified in the trigger +// configuration. +type RepositoryTriggerBranchNameListRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PutFileInput) SetRepositoryName(v string) *PutFileInput { - s.RepositoryName = &v - return s +// String returns the string representation +func (s RepositoryTriggerBranchNameListRequiredException) String() string { + return awsutil.Prettify(s) } -type PutFileOutput struct { - _ struct{} `type:"structure"` +// GoString returns the string representation +func (s RepositoryTriggerBranchNameListRequiredException) GoString() string { + return s.String() +} - // The ID of the blob, which is its SHA-1 pointer. - // - // BlobId is a required field - BlobId *string `locationName:"blobId" type:"string" required:"true"` +func newErrorRepositoryTriggerBranchNameListRequiredException(v protocol.ResponseMetadata) error { + return &RepositoryTriggerBranchNameListRequiredException{ + respMetadata: v, + } +} - // The full SHA ID of the commit that contains this file change. - // - // CommitId is a required field - CommitId *string `locationName:"commitId" type:"string" required:"true"` +// Code returns the exception type name. +func (s RepositoryTriggerBranchNameListRequiredException) Code() string { + return "RepositoryTriggerBranchNameListRequiredException" +} - // The full SHA-1 pointer of the tree information for the commit that contains - // this file change. - // - // TreeId is a required field - TreeId *string `locationName:"treeId" type:"string" required:"true"` +// Message returns the exception's message. +func (s RepositoryTriggerBranchNameListRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryTriggerBranchNameListRequiredException) OrigErr() error { + return nil +} + +func (s RepositoryTriggerBranchNameListRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryTriggerBranchNameListRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RepositoryTriggerBranchNameListRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// A destination ARN for the target service for the trigger is required, but +// was not specified. +type RepositoryTriggerDestinationArnRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PutFileOutput) String() string { +func (s RepositoryTriggerDestinationArnRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutFileOutput) GoString() string { +func (s RepositoryTriggerDestinationArnRequiredException) GoString() string { return s.String() } -// SetBlobId sets the BlobId field's value. -func (s *PutFileOutput) SetBlobId(v string) *PutFileOutput { - s.BlobId = &v - return s +func newErrorRepositoryTriggerDestinationArnRequiredException(v protocol.ResponseMetadata) error { + return &RepositoryTriggerDestinationArnRequiredException{ + respMetadata: v, + } } -// SetCommitId sets the CommitId field's value. -func (s *PutFileOutput) SetCommitId(v string) *PutFileOutput { - s.CommitId = &v - return s +// Code returns the exception type name. +func (s RepositoryTriggerDestinationArnRequiredException) Code() string { + return "RepositoryTriggerDestinationArnRequiredException" } -// SetTreeId sets the TreeId field's value. -func (s *PutFileOutput) SetTreeId(v string) *PutFileOutput { - s.TreeId = &v - return s +// Message returns the exception's message. +func (s RepositoryTriggerDestinationArnRequiredException) Message() string { + return "" } -// Represents the input of a put repository triggers operation. -type PutRepositoryTriggersInput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryTriggerDestinationArnRequiredException) OrigErr() error { + return nil +} - // The name of the repository where you want to create or update the trigger. - // - // RepositoryName is a required field - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` +func (s RepositoryTriggerDestinationArnRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The JSON block of configuration information for each trigger. - // - // Triggers is a required field - Triggers []*RepositoryTrigger `locationName:"triggers" type:"list" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryTriggerDestinationArnRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RepositoryTriggerDestinationArnRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// At least one event for the trigger is required, but was not specified. +type RepositoryTriggerEventsListRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s PutRepositoryTriggersInput) String() string { +func (s RepositoryTriggerEventsListRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutRepositoryTriggersInput) GoString() string { +func (s RepositoryTriggerEventsListRequiredException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PutRepositoryTriggersInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PutRepositoryTriggersInput"} - if s.RepositoryName == nil { - invalidParams.Add(request.NewErrParamRequired("RepositoryName")) - } - if s.RepositoryName != nil && len(*s.RepositoryName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RepositoryName", 1)) - } - if s.Triggers == nil { - invalidParams.Add(request.NewErrParamRequired("Triggers")) - } - if s.Triggers != nil { - for i, v := range s.Triggers { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Triggers", i), err.(request.ErrInvalidParams)) - } - } +func newErrorRepositoryTriggerEventsListRequiredException(v protocol.ResponseMetadata) error { + return &RepositoryTriggerEventsListRequiredException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s RepositoryTriggerEventsListRequiredException) Code() string { + return "RepositoryTriggerEventsListRequiredException" +} + +// Message returns the exception's message. +func (s RepositoryTriggerEventsListRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryTriggerEventsListRequiredException) OrigErr() error { return nil } -// SetRepositoryName sets the RepositoryName field's value. -func (s *PutRepositoryTriggersInput) SetRepositoryName(v string) *PutRepositoryTriggersInput { - s.RepositoryName = &v - return s +func (s RepositoryTriggerEventsListRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTriggers sets the Triggers field's value. -func (s *PutRepositoryTriggersInput) SetTriggers(v []*RepositoryTrigger) *PutRepositoryTriggersInput { - s.Triggers = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryTriggerEventsListRequiredException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents the output of a put repository triggers operation. -type PutRepositoryTriggersOutput struct { +// RequestID returns the service's response RequestID for request. +func (s RepositoryTriggerEventsListRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// A trigger failed to run. +type RepositoryTriggerExecutionFailure struct { _ struct{} `type:"structure"` - // The system-generated unique ID for the create or update operation. - ConfigurationId *string `locationName:"configurationId" type:"string"` + // Message information about the trigger that did not run. + FailureMessage *string `locationName:"failureMessage" type:"string"` + + // The name of the trigger that did not run. + Trigger *string `locationName:"trigger" type:"string"` } // String returns the string representation -func (s PutRepositoryTriggersOutput) String() string { +func (s RepositoryTriggerExecutionFailure) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutRepositoryTriggersOutput) GoString() string { +func (s RepositoryTriggerExecutionFailure) GoString() string { return s.String() } -// SetConfigurationId sets the ConfigurationId field's value. -func (s *PutRepositoryTriggersOutput) SetConfigurationId(v string) *PutRepositoryTriggersOutput { - s.ConfigurationId = &v +// SetFailureMessage sets the FailureMessage field's value. +func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure { + s.FailureMessage = &v return s } -// Information about a replacement content entry in the conflict of a merge -// or pull request operation. -type ReplaceContentEntry struct { - _ struct{} `type:"structure"` +// SetTrigger sets the Trigger field's value. +func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure { + s.Trigger = &v + return s +} - // The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT. - // - // Content is automatically base64 encoded/decoded by the SDK. - Content []byte `locationName:"content" type:"blob"` +// A name for the trigger is required, but was not specified. +type RepositoryTriggerNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The file mode to apply during conflict resoltion. - FileMode *string `locationName:"fileMode" type:"string" enum:"FileModeTypeEnum"` +// String returns the string representation +func (s RepositoryTriggerNameRequiredException) String() string { + return awsutil.Prettify(s) +} - // The path of the conflicting file. - // - // FilePath is a required field - FilePath *string `locationName:"filePath" type:"string" required:"true"` +// GoString returns the string representation +func (s RepositoryTriggerNameRequiredException) GoString() string { + return s.String() +} - // The replacement type to use when determining how to resolve the conflict. - // - // ReplacementType is a required field - ReplacementType *string `locationName:"replacementType" type:"string" required:"true" enum:"ReplacementTypeEnum"` +func newErrorRepositoryTriggerNameRequiredException(v protocol.ResponseMetadata) error { + return &RepositoryTriggerNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RepositoryTriggerNameRequiredException) Code() string { + return "RepositoryTriggerNameRequiredException" +} + +// Message returns the exception's message. +func (s RepositoryTriggerNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryTriggerNameRequiredException) OrigErr() error { + return nil +} + +func (s RepositoryTriggerNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryTriggerNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RepositoryTriggerNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The list of triggers for the repository is required, but was not specified. +type RepositoryTriggersListRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ReplaceContentEntry) String() string { +func (s RepositoryTriggersListRequiredException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReplaceContentEntry) GoString() string { +func (s RepositoryTriggersListRequiredException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplaceContentEntry) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplaceContentEntry"} - if s.FilePath == nil { - invalidParams.Add(request.NewErrParamRequired("FilePath")) - } - if s.ReplacementType == nil { - invalidParams.Add(request.NewErrParamRequired("ReplacementType")) +func newErrorRepositoryTriggersListRequiredException(v protocol.ResponseMetadata) error { + return &RepositoryTriggersListRequiredException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s RepositoryTriggersListRequiredException) Code() string { + return "RepositoryTriggersListRequiredException" } -// SetContent sets the Content field's value. -func (s *ReplaceContentEntry) SetContent(v []byte) *ReplaceContentEntry { - s.Content = v - return s +// Message returns the exception's message. +func (s RepositoryTriggersListRequiredException) Message() string { + return "" } -// SetFileMode sets the FileMode field's value. -func (s *ReplaceContentEntry) SetFileMode(v string) *ReplaceContentEntry { - s.FileMode = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryTriggersListRequiredException) OrigErr() error { + return nil } -// SetFilePath sets the FilePath field's value. -func (s *ReplaceContentEntry) SetFilePath(v string) *ReplaceContentEntry { - s.FilePath = &v - return s +func (s RepositoryTriggersListRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetReplacementType sets the ReplacementType field's value. -func (s *ReplaceContentEntry) SetReplacementType(v string) *ReplaceContentEntry { - s.ReplacementType = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryTriggersListRequiredException) StatusCode() int { + return s.respMetadata.StatusCode } -// Information about a repository. -type RepositoryMetadata struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s RepositoryTriggersListRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // The ID of the AWS account associated with the repository. - AccountId *string `locationName:"accountId" type:"string"` +// A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. +// For a list of valid resources in AWS CodeCommit, see CodeCommit Resources +// and Operations (https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats) +// in the AWS CodeCommit User Guide. +type ResourceArnRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The Amazon Resource Name (ARN) of the repository. - Arn *string `type:"string"` +// String returns the string representation +func (s ResourceArnRequiredException) String() string { + return awsutil.Prettify(s) +} - // The URL to use for cloning the repository over HTTPS. - CloneUrlHttp *string `locationName:"cloneUrlHttp" type:"string"` +// GoString returns the string representation +func (s ResourceArnRequiredException) GoString() string { + return s.String() +} + +func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error { + return &ResourceArnRequiredException{ + respMetadata: v, + } +} - // The URL to use for cloning the repository over SSH. - CloneUrlSsh *string `locationName:"cloneUrlSsh" type:"string"` +// Code returns the exception type name. +func (s ResourceArnRequiredException) Code() string { + return "ResourceArnRequiredException" +} - // The date and time the repository was created, in timestamp format. - CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` +// Message returns the exception's message. +func (s ResourceArnRequiredException) Message() string { + return "" +} - // The repository's default branch name. - DefaultBranch *string `locationName:"defaultBranch" min:"1" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceArnRequiredException) OrigErr() error { + return nil +} - // The date and time the repository was last modified, in timestamp format. - LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"` +func (s ResourceArnRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A comment or description about the repository. - RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s ResourceArnRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The ID of the repository. - RepositoryId *string `locationName:"repositoryId" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s ResourceArnRequiredException) RequestID() string { + return s.respMetadata.RequestID +} - // The repository's name. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// The commit cannot be created because one of the changes specifies copying +// or moving a .gitkeep file. +type RestrictedSourceFileException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s RepositoryMetadata) String() string { +func (s RestrictedSourceFileException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RepositoryMetadata) GoString() string { +func (s RestrictedSourceFileException) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *RepositoryMetadata) SetAccountId(v string) *RepositoryMetadata { - s.AccountId = &v - return s +func newErrorRestrictedSourceFileException(v protocol.ResponseMetadata) error { + return &RestrictedSourceFileException{ + respMetadata: v, + } } -// SetArn sets the Arn field's value. -func (s *RepositoryMetadata) SetArn(v string) *RepositoryMetadata { - s.Arn = &v - return s +// Code returns the exception type name. +func (s RestrictedSourceFileException) Code() string { + return "RestrictedSourceFileException" } -// SetCloneUrlHttp sets the CloneUrlHttp field's value. -func (s *RepositoryMetadata) SetCloneUrlHttp(v string) *RepositoryMetadata { - s.CloneUrlHttp = &v - return s +// Message returns the exception's message. +func (s RestrictedSourceFileException) Message() string { + return "" } -// SetCloneUrlSsh sets the CloneUrlSsh field's value. -func (s *RepositoryMetadata) SetCloneUrlSsh(v string) *RepositoryMetadata { - s.CloneUrlSsh = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RestrictedSourceFileException) OrigErr() error { + return nil } -// SetCreationDate sets the CreationDate field's value. -func (s *RepositoryMetadata) SetCreationDate(v time.Time) *RepositoryMetadata { - s.CreationDate = &v - return s +func (s RestrictedSourceFileException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetDefaultBranch sets the DefaultBranch field's value. -func (s *RepositoryMetadata) SetDefaultBranch(v string) *RepositoryMetadata { - s.DefaultBranch = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s RestrictedSourceFileException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *RepositoryMetadata) SetLastModifiedDate(v time.Time) *RepositoryMetadata { - s.LastModifiedDate = &v - return s +// RequestID returns the service's response RequestID for request. +func (s RestrictedSourceFileException) RequestID() string { + return s.respMetadata.RequestID } -// SetRepositoryDescription sets the RepositoryDescription field's value. -func (s *RepositoryMetadata) SetRepositoryDescription(v string) *RepositoryMetadata { - s.RepositoryDescription = &v - return s +// A revision ID is required, but was not provided. +type RevisionIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetRepositoryId sets the RepositoryId field's value. -func (s *RepositoryMetadata) SetRepositoryId(v string) *RepositoryMetadata { - s.RepositoryId = &v - return s +// String returns the string representation +func (s RevisionIdRequiredException) String() string { + return awsutil.Prettify(s) } -// SetRepositoryName sets the RepositoryName field's value. -func (s *RepositoryMetadata) SetRepositoryName(v string) *RepositoryMetadata { - s.RepositoryName = &v - return s +// GoString returns the string representation +func (s RevisionIdRequiredException) GoString() string { + return s.String() } -// Information about a repository name and ID. -type RepositoryNameIdPair struct { - _ struct{} `type:"structure"` +func newErrorRevisionIdRequiredException(v protocol.ResponseMetadata) error { + return &RevisionIdRequiredException{ + respMetadata: v, + } +} - // The ID associated with the repository. - RepositoryId *string `locationName:"repositoryId" type:"string"` +// Code returns the exception type name. +func (s RevisionIdRequiredException) Code() string { + return "RevisionIdRequiredException" +} - // The name associated with the repository. - RepositoryName *string `locationName:"repositoryName" min:"1" type:"string"` +// Message returns the exception's message. +func (s RevisionIdRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RevisionIdRequiredException) OrigErr() error { + return nil +} + +func (s RevisionIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RevisionIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RevisionIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The revision ID provided in the request does not match the current revision +// ID. Use GetPullRequest to retrieve the current revision ID. +type RevisionNotCurrentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s RepositoryNameIdPair) String() string { +func (s RevisionNotCurrentException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RepositoryNameIdPair) GoString() string { +func (s RevisionNotCurrentException) GoString() string { return s.String() } -// SetRepositoryId sets the RepositoryId field's value. -func (s *RepositoryNameIdPair) SetRepositoryId(v string) *RepositoryNameIdPair { - s.RepositoryId = &v - return s +func newErrorRevisionNotCurrentException(v protocol.ResponseMetadata) error { + return &RevisionNotCurrentException{ + respMetadata: v, + } } -// SetRepositoryName sets the RepositoryName field's value. -func (s *RepositoryNameIdPair) SetRepositoryName(v string) *RepositoryNameIdPair { - s.RepositoryName = &v - return s +// Code returns the exception type name. +func (s RevisionNotCurrentException) Code() string { + return "RevisionNotCurrentException" } -// Information about a trigger for a repository. -type RepositoryTrigger struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s RevisionNotCurrentException) Message() string { + return "" +} - // The branches to be included in the trigger configuration. If you specify - // an empty array, the trigger applies to all branches. - // - // Although no content is required in the array, you must include the array - // itself. - Branches []*string `locationName:"branches" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RevisionNotCurrentException) OrigErr() error { + return nil +} - // Any custom data associated with the trigger to be included in the information - // sent to the target of the trigger. - CustomData *string `locationName:"customData" type:"string"` +func (s RevisionNotCurrentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The ARN of the resource that is the target for a trigger (for example, the - // ARN of a topic in Amazon SNS). - // - // DestinationArn is a required field - DestinationArn *string `locationName:"destinationArn" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s RevisionNotCurrentException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The repository events that cause the trigger to run actions in another service, - // such as sending a notification through Amazon SNS. - // - // The valid value "all" cannot be used with any other values. - // - // Events is a required field - Events []*string `locationName:"events" type:"list" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s RevisionNotCurrentException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the trigger. - // - // Name is a required field - Name *string `locationName:"name" type:"string" required:"true"` +// The file was not added or updated because the content of the file is exactly +// the same as the content of that file in the repository and branch that you +// specified. +type SameFileContentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s RepositoryTrigger) String() string { +func (s SameFileContentException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RepositoryTrigger) GoString() string { +func (s SameFileContentException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RepositoryTrigger) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RepositoryTrigger"} - if s.DestinationArn == nil { - invalidParams.Add(request.NewErrParamRequired("DestinationArn")) - } - if s.Events == nil { - invalidParams.Add(request.NewErrParamRequired("Events")) - } - if s.Name == nil { - invalidParams.Add(request.NewErrParamRequired("Name")) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorSameFileContentException(v protocol.ResponseMetadata) error { + return &SameFileContentException{ + respMetadata: v, } - return nil } -// SetBranches sets the Branches field's value. -func (s *RepositoryTrigger) SetBranches(v []*string) *RepositoryTrigger { - s.Branches = v - return s +// Code returns the exception type name. +func (s SameFileContentException) Code() string { + return "SameFileContentException" } -// SetCustomData sets the CustomData field's value. -func (s *RepositoryTrigger) SetCustomData(v string) *RepositoryTrigger { - s.CustomData = &v - return s +// Message returns the exception's message. +func (s SameFileContentException) Message() string { + return "" } -// SetDestinationArn sets the DestinationArn field's value. -func (s *RepositoryTrigger) SetDestinationArn(v string) *RepositoryTrigger { - s.DestinationArn = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SameFileContentException) OrigErr() error { + return nil } -// SetEvents sets the Events field's value. -func (s *RepositoryTrigger) SetEvents(v []*string) *RepositoryTrigger { - s.Events = v - return s +func (s SameFileContentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetName sets the Name field's value. -func (s *RepositoryTrigger) SetName(v string) *RepositoryTrigger { - s.Name = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s SameFileContentException) StatusCode() int { + return s.respMetadata.StatusCode } -// A trigger failed to run. -type RepositoryTriggerExecutionFailure struct { - _ struct{} `type:"structure"` - - // Message information about the trigger that did not run. - FailureMessage *string `locationName:"failureMessage" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s SameFileContentException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the trigger that did not run. - Trigger *string `locationName:"trigger" type:"string"` +// The commit cannot be created because one or more changes in this commit duplicate +// actions in the same file path. For example, you cannot make the same delete +// request to the same file in the same file path twice, or make a delete request +// and a move request to the same file as part of the same commit. +type SamePathRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s RepositoryTriggerExecutionFailure) String() string { +func (s SamePathRequestException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RepositoryTriggerExecutionFailure) GoString() string { +func (s SamePathRequestException) GoString() string { return s.String() } -// SetFailureMessage sets the FailureMessage field's value. -func (s *RepositoryTriggerExecutionFailure) SetFailureMessage(v string) *RepositoryTriggerExecutionFailure { - s.FailureMessage = &v - return s +func newErrorSamePathRequestException(v protocol.ResponseMetadata) error { + return &SamePathRequestException{ + respMetadata: v, + } } -// SetTrigger sets the Trigger field's value. -func (s *RepositoryTriggerExecutionFailure) SetTrigger(v string) *RepositoryTriggerExecutionFailure { - s.Trigger = &v - return s +// Code returns the exception type name. +func (s SamePathRequestException) Code() string { + return "SamePathRequestException" +} + +// Message returns the exception's message. +func (s SamePathRequestException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SamePathRequestException) OrigErr() error { + return nil +} + +func (s SamePathRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SamePathRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SamePathRequestException) RequestID() string { + return s.respMetadata.RequestID } // Information about the file mode changes. @@ -20190,22 +29001,126 @@ func (s *SetFileModeEntry) Validate() error { invalidParams.Add(request.NewErrParamRequired("FilePath")) } - if invalidParams.Len() > 0 { - return invalidParams + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFileMode sets the FileMode field's value. +func (s *SetFileModeEntry) SetFileMode(v string) *SetFileModeEntry { + s.FileMode = &v + return s +} + +// SetFilePath sets the FilePath field's value. +func (s *SetFileModeEntry) SetFilePath(v string) *SetFileModeEntry { + s.FilePath = &v + return s +} + +// The source branch and destination branch for the pull request are the same. +// You must specify different branches for the source and destination. +type SourceAndDestinationAreSameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SourceAndDestinationAreSameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceAndDestinationAreSameException) GoString() string { + return s.String() +} + +func newErrorSourceAndDestinationAreSameException(v protocol.ResponseMetadata) error { + return &SourceAndDestinationAreSameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SourceAndDestinationAreSameException) Code() string { + return "SourceAndDestinationAreSameException" +} + +// Message returns the exception's message. +func (s SourceAndDestinationAreSameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SourceAndDestinationAreSameException) OrigErr() error { + return nil +} + +func (s SourceAndDestinationAreSameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SourceAndDestinationAreSameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SourceAndDestinationAreSameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The commit cannot be created because no source files or file content have +// been specified for the commit. +type SourceFileOrContentRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SourceFileOrContentRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceFileOrContentRequiredException) GoString() string { + return s.String() +} + +func newErrorSourceFileOrContentRequiredException(v protocol.ResponseMetadata) error { + return &SourceFileOrContentRequiredException{ + respMetadata: v, } +} + +// Code returns the exception type name. +func (s SourceFileOrContentRequiredException) Code() string { + return "SourceFileOrContentRequiredException" +} + +// Message returns the exception's message. +func (s SourceFileOrContentRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SourceFileOrContentRequiredException) OrigErr() error { return nil } -// SetFileMode sets the FileMode field's value. -func (s *SetFileModeEntry) SetFileMode(v string) *SetFileModeEntry { - s.FileMode = &v - return s +func (s SourceFileOrContentRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetFilePath sets the FilePath field's value. -func (s *SetFileModeEntry) SetFilePath(v string) *SetFileModeEntry { - s.FilePath = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s SourceFileOrContentRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SourceFileOrContentRequiredException) RequestID() string { + return s.respMetadata.RequestID } // Information about a source file that is part of changes made in a commit. @@ -20351,6 +29266,108 @@ func (s *SymbolicLink) SetRelativePath(v string) *SymbolicLink { return s } +// A list of tag keys is required. The list cannot be empty or null. +type TagKeysListRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagKeysListRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagKeysListRequiredException) GoString() string { + return s.String() +} + +func newErrorTagKeysListRequiredException(v protocol.ResponseMetadata) error { + return &TagKeysListRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagKeysListRequiredException) Code() string { + return "TagKeysListRequiredException" +} + +// Message returns the exception's message. +func (s TagKeysListRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagKeysListRequiredException) OrigErr() error { + return nil +} + +func (s TagKeysListRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagKeysListRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagKeysListRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The tag policy is not valid. +type TagPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagPolicyException) GoString() string { + return s.String() +} + +func newErrorTagPolicyException(v protocol.ResponseMetadata) error { + return &TagPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagPolicyException) Code() string { + return "TagPolicyException" +} + +// Message returns the exception's message. +func (s TagPolicyException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagPolicyException) OrigErr() error { + return nil +} + +func (s TagPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -20418,6 +29435,57 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// A map of tags is required. +type TagsMapRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagsMapRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagsMapRequiredException) GoString() string { + return s.String() +} + +func newErrorTagsMapRequiredException(v protocol.ResponseMetadata) error { + return &TagsMapRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagsMapRequiredException) Code() string { + return "TagsMapRequiredException" +} + +// Message returns the exception's message. +func (s TagsMapRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagsMapRequiredException) OrigErr() error { + return nil +} + +func (s TagsMapRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagsMapRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagsMapRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + // Returns information about a target for a pull request. type Target struct { _ struct{} `type:"structure"` @@ -20485,6 +29553,110 @@ func (s *Target) SetSourceReference(v string) *Target { return s } +// A pull request target is required. It cannot be empty or null. A pull request +// target must contain the full values for the repository name, source branch, +// and destination branch for the pull request. +type TargetRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TargetRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetRequiredException) GoString() string { + return s.String() +} + +func newErrorTargetRequiredException(v protocol.ResponseMetadata) error { + return &TargetRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TargetRequiredException) Code() string { + return "TargetRequiredException" +} + +// Message returns the exception's message. +func (s TargetRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TargetRequiredException) OrigErr() error { + return nil +} + +func (s TargetRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TargetRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TargetRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// An array of target objects is required. It cannot be empty or null. +type TargetsRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TargetsRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetsRequiredException) GoString() string { + return s.String() +} + +func newErrorTargetsRequiredException(v protocol.ResponseMetadata) error { + return &TargetsRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TargetsRequiredException) Code() string { + return "TargetsRequiredException" +} + +// Message returns the exception's message. +func (s TargetsRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TargetsRequiredException) OrigErr() error { + return nil +} + +func (s TargetsRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TargetsRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TargetsRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a test repository triggers operation. type TestRepositoryTriggersInput struct { _ struct{} `type:"structure"` @@ -20586,6 +29758,214 @@ func (s *TestRepositoryTriggersOutput) SetSuccessfulExecutions(v []*string) *Tes return s } +// The tip of the source branch in the destination repository does not match +// the tip of the source branch specified in your request. The pull request +// might have been updated. Make sure that you have the latest changes. +type TipOfSourceReferenceIsDifferentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TipOfSourceReferenceIsDifferentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TipOfSourceReferenceIsDifferentException) GoString() string { + return s.String() +} + +func newErrorTipOfSourceReferenceIsDifferentException(v protocol.ResponseMetadata) error { + return &TipOfSourceReferenceIsDifferentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TipOfSourceReferenceIsDifferentException) Code() string { + return "TipOfSourceReferenceIsDifferentException" +} + +// Message returns the exception's message. +func (s TipOfSourceReferenceIsDifferentException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TipOfSourceReferenceIsDifferentException) OrigErr() error { + return nil +} + +func (s TipOfSourceReferenceIsDifferentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TipOfSourceReferenceIsDifferentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TipOfSourceReferenceIsDifferentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The divergence between the tips of the provided commit specifiers is too +// great to determine whether there might be any merge conflicts. Locally compare +// the specifiers using git diff or a diff tool. +type TipsDivergenceExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TipsDivergenceExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TipsDivergenceExceededException) GoString() string { + return s.String() +} + +func newErrorTipsDivergenceExceededException(v protocol.ResponseMetadata) error { + return &TipsDivergenceExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TipsDivergenceExceededException) Code() string { + return "TipsDivergenceExceededException" +} + +// Message returns the exception's message. +func (s TipsDivergenceExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TipsDivergenceExceededException) OrigErr() error { + return nil +} + +func (s TipsDivergenceExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TipsDivergenceExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TipsDivergenceExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A pull request title is required. It cannot be empty or null. +type TitleRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TitleRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TitleRequiredException) GoString() string { + return s.String() +} + +func newErrorTitleRequiredException(v protocol.ResponseMetadata) error { + return &TitleRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TitleRequiredException) Code() string { + return "TitleRequiredException" +} + +// Message returns the exception's message. +func (s TitleRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TitleRequiredException) OrigErr() error { + return nil +} + +func (s TitleRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TitleRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TitleRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of tags for an AWS CodeCommit resource has been exceeded. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/codecommit/errors.go b/service/codecommit/errors.go index 8240d5162f6..030dd1c47bf 100644 --- a/service/codecommit/errors.go +++ b/service/codecommit/errors.go @@ -2,6 +2,10 @@ package codecommit +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeActorDoesNotExistException for service response error code @@ -1239,3 +1243,187 @@ const ( // The maximum number of tags for an AWS CodeCommit resource has been exceeded. ErrCodeTooManyTagsException = "TooManyTagsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ActorDoesNotExistException": newErrorActorDoesNotExistException, + "ApprovalRuleContentRequiredException": newErrorApprovalRuleContentRequiredException, + "ApprovalRuleDoesNotExistException": newErrorApprovalRuleDoesNotExistException, + "ApprovalRuleNameAlreadyExistsException": newErrorApprovalRuleNameAlreadyExistsException, + "ApprovalRuleNameRequiredException": newErrorApprovalRuleNameRequiredException, + "ApprovalRuleTemplateContentRequiredException": newErrorApprovalRuleTemplateContentRequiredException, + "ApprovalRuleTemplateDoesNotExistException": newErrorApprovalRuleTemplateDoesNotExistException, + "ApprovalRuleTemplateInUseException": newErrorApprovalRuleTemplateInUseException, + "ApprovalRuleTemplateNameAlreadyExistsException": newErrorApprovalRuleTemplateNameAlreadyExistsException, + "ApprovalRuleTemplateNameRequiredException": newErrorApprovalRuleTemplateNameRequiredException, + "ApprovalStateRequiredException": newErrorApprovalStateRequiredException, + "AuthorDoesNotExistException": newErrorAuthorDoesNotExistException, + "BeforeCommitIdAndAfterCommitIdAreSameException": newErrorBeforeCommitIdAndAfterCommitIdAreSameException, + "BlobIdDoesNotExistException": newErrorBlobIdDoesNotExistException, + "BlobIdRequiredException": newErrorBlobIdRequiredException, + "BranchDoesNotExistException": newErrorBranchDoesNotExistException, + "BranchNameExistsException": newErrorBranchNameExistsException, + "BranchNameIsTagNameException": newErrorBranchNameIsTagNameException, + "BranchNameRequiredException": newErrorBranchNameRequiredException, + "CannotDeleteApprovalRuleFromTemplateException": newErrorCannotDeleteApprovalRuleFromTemplateException, + "CannotModifyApprovalRuleFromTemplateException": newErrorCannotModifyApprovalRuleFromTemplateException, + "ClientRequestTokenRequiredException": newErrorClientRequestTokenRequiredException, + "CommentContentRequiredException": newErrorCommentContentRequiredException, + "CommentContentSizeLimitExceededException": newErrorCommentContentSizeLimitExceededException, + "CommentDeletedException": newErrorCommentDeletedException, + "CommentDoesNotExistException": newErrorCommentDoesNotExistException, + "CommentIdRequiredException": newErrorCommentIdRequiredException, + "CommentNotCreatedByCallerException": newErrorCommentNotCreatedByCallerException, + "CommitDoesNotExistException": newErrorCommitDoesNotExistException, + "CommitIdDoesNotExistException": newErrorCommitIdDoesNotExistException, + "CommitIdRequiredException": newErrorCommitIdRequiredException, + "CommitIdsLimitExceededException": newErrorCommitIdsLimitExceededException, + "CommitIdsListRequiredException": newErrorCommitIdsListRequiredException, + "CommitMessageLengthExceededException": newErrorCommitMessageLengthExceededException, + "CommitRequiredException": newErrorCommitRequiredException, + "ConcurrentReferenceUpdateException": newErrorConcurrentReferenceUpdateException, + "DefaultBranchCannotBeDeletedException": newErrorDefaultBranchCannotBeDeletedException, + "DirectoryNameConflictsWithFileNameException": newErrorDirectoryNameConflictsWithFileNameException, + "EncryptionIntegrityChecksFailedException": newErrorEncryptionIntegrityChecksFailedException, + "EncryptionKeyAccessDeniedException": newErrorEncryptionKeyAccessDeniedException, + "EncryptionKeyDisabledException": newErrorEncryptionKeyDisabledException, + "EncryptionKeyNotFoundException": newErrorEncryptionKeyNotFoundException, + "EncryptionKeyUnavailableException": newErrorEncryptionKeyUnavailableException, + "FileContentAndSourceFileSpecifiedException": newErrorFileContentAndSourceFileSpecifiedException, + "FileContentRequiredException": newErrorFileContentRequiredException, + "FileContentSizeLimitExceededException": newErrorFileContentSizeLimitExceededException, + "FileDoesNotExistException": newErrorFileDoesNotExistException, + "FileEntryRequiredException": newErrorFileEntryRequiredException, + "FileModeRequiredException": newErrorFileModeRequiredException, + "FileNameConflictsWithDirectoryNameException": newErrorFileNameConflictsWithDirectoryNameException, + "FilePathConflictsWithSubmodulePathException": newErrorFilePathConflictsWithSubmodulePathException, + "FileTooLargeException": newErrorFileTooLargeException, + "FolderContentSizeLimitExceededException": newErrorFolderContentSizeLimitExceededException, + "FolderDoesNotExistException": newErrorFolderDoesNotExistException, + "IdempotencyParameterMismatchException": newErrorIdempotencyParameterMismatchException, + "InvalidActorArnException": newErrorInvalidActorArnException, + "InvalidApprovalRuleContentException": newErrorInvalidApprovalRuleContentException, + "InvalidApprovalRuleNameException": newErrorInvalidApprovalRuleNameException, + "InvalidApprovalRuleTemplateContentException": newErrorInvalidApprovalRuleTemplateContentException, + "InvalidApprovalRuleTemplateDescriptionException": newErrorInvalidApprovalRuleTemplateDescriptionException, + "InvalidApprovalRuleTemplateNameException": newErrorInvalidApprovalRuleTemplateNameException, + "InvalidApprovalStateException": newErrorInvalidApprovalStateException, + "InvalidAuthorArnException": newErrorInvalidAuthorArnException, + "InvalidBlobIdException": newErrorInvalidBlobIdException, + "InvalidBranchNameException": newErrorInvalidBranchNameException, + "InvalidClientRequestTokenException": newErrorInvalidClientRequestTokenException, + "InvalidCommentIdException": newErrorInvalidCommentIdException, + "InvalidCommitException": newErrorInvalidCommitException, + "InvalidCommitIdException": newErrorInvalidCommitIdException, + "InvalidConflictDetailLevelException": newErrorInvalidConflictDetailLevelException, + "InvalidConflictResolutionException": newErrorInvalidConflictResolutionException, + "InvalidConflictResolutionStrategyException": newErrorInvalidConflictResolutionStrategyException, + "InvalidContinuationTokenException": newErrorInvalidContinuationTokenException, + "InvalidDeletionParameterException": newErrorInvalidDeletionParameterException, + "InvalidDescriptionException": newErrorInvalidDescriptionException, + "InvalidDestinationCommitSpecifierException": newErrorInvalidDestinationCommitSpecifierException, + "InvalidEmailException": newErrorInvalidEmailException, + "InvalidFileLocationException": newErrorInvalidFileLocationException, + "InvalidFileModeException": newErrorInvalidFileModeException, + "InvalidFilePositionException": newErrorInvalidFilePositionException, + "InvalidMaxConflictFilesException": newErrorInvalidMaxConflictFilesException, + "InvalidMaxMergeHunksException": newErrorInvalidMaxMergeHunksException, + "InvalidMaxResultsException": newErrorInvalidMaxResultsException, + "InvalidMergeOptionException": newErrorInvalidMergeOptionException, + "InvalidOrderException": newErrorInvalidOrderException, + "InvalidOverrideStatusException": newErrorInvalidOverrideStatusException, + "InvalidParentCommitIdException": newErrorInvalidParentCommitIdException, + "InvalidPathException": newErrorInvalidPathException, + "InvalidPullRequestEventTypeException": newErrorInvalidPullRequestEventTypeException, + "InvalidPullRequestIdException": newErrorInvalidPullRequestIdException, + "InvalidPullRequestStatusException": newErrorInvalidPullRequestStatusException, + "InvalidPullRequestStatusUpdateException": newErrorInvalidPullRequestStatusUpdateException, + "InvalidReferenceNameException": newErrorInvalidReferenceNameException, + "InvalidRelativeFileVersionEnumException": newErrorInvalidRelativeFileVersionEnumException, + "InvalidReplacementContentException": newErrorInvalidReplacementContentException, + "InvalidReplacementTypeException": newErrorInvalidReplacementTypeException, + "InvalidRepositoryDescriptionException": newErrorInvalidRepositoryDescriptionException, + "InvalidRepositoryNameException": newErrorInvalidRepositoryNameException, + "InvalidRepositoryTriggerBranchNameException": newErrorInvalidRepositoryTriggerBranchNameException, + "InvalidRepositoryTriggerCustomDataException": newErrorInvalidRepositoryTriggerCustomDataException, + "InvalidRepositoryTriggerDestinationArnException": newErrorInvalidRepositoryTriggerDestinationArnException, + "InvalidRepositoryTriggerEventsException": newErrorInvalidRepositoryTriggerEventsException, + "InvalidRepositoryTriggerNameException": newErrorInvalidRepositoryTriggerNameException, + "InvalidRepositoryTriggerRegionException": newErrorInvalidRepositoryTriggerRegionException, + "InvalidResourceArnException": newErrorInvalidResourceArnException, + "InvalidRevisionIdException": newErrorInvalidRevisionIdException, + "InvalidRuleContentSha256Exception": newErrorInvalidRuleContentSha256Exception, + "InvalidSortByException": newErrorInvalidSortByException, + "InvalidSourceCommitSpecifierException": newErrorInvalidSourceCommitSpecifierException, + "InvalidSystemTagUsageException": newErrorInvalidSystemTagUsageException, + "InvalidTagKeysListException": newErrorInvalidTagKeysListException, + "InvalidTagsMapException": newErrorInvalidTagsMapException, + "InvalidTargetBranchException": newErrorInvalidTargetBranchException, + "InvalidTargetException": newErrorInvalidTargetException, + "InvalidTargetsException": newErrorInvalidTargetsException, + "InvalidTitleException": newErrorInvalidTitleException, + "ManualMergeRequiredException": newErrorManualMergeRequiredException, + "MaximumBranchesExceededException": newErrorMaximumBranchesExceededException, + "MaximumConflictResolutionEntriesExceededException": newErrorMaximumConflictResolutionEntriesExceededException, + "MaximumFileContentToLoadExceededException": newErrorMaximumFileContentToLoadExceededException, + "MaximumFileEntriesExceededException": newErrorMaximumFileEntriesExceededException, + "MaximumItemsToCompareExceededException": newErrorMaximumItemsToCompareExceededException, + "MaximumNumberOfApprovalsExceededException": newErrorMaximumNumberOfApprovalsExceededException, + "MaximumOpenPullRequestsExceededException": newErrorMaximumOpenPullRequestsExceededException, + "MaximumRepositoryNamesExceededException": newErrorMaximumRepositoryNamesExceededException, + "MaximumRepositoryTriggersExceededException": newErrorMaximumRepositoryTriggersExceededException, + "MaximumRuleTemplatesAssociatedWithRepositoryException": newErrorMaximumRuleTemplatesAssociatedWithRepositoryException, + "MergeOptionRequiredException": newErrorMergeOptionRequiredException, + "MultipleConflictResolutionEntriesException": newErrorMultipleConflictResolutionEntriesException, + "MultipleRepositoriesInPullRequestException": newErrorMultipleRepositoriesInPullRequestException, + "NameLengthExceededException": newErrorNameLengthExceededException, + "NoChangeException": newErrorNoChangeException, + "NumberOfRuleTemplatesExceededException": newErrorNumberOfRuleTemplatesExceededException, + "NumberOfRulesExceededException": newErrorNumberOfRulesExceededException, + "OverrideAlreadySetException": newErrorOverrideAlreadySetException, + "OverrideStatusRequiredException": newErrorOverrideStatusRequiredException, + "ParentCommitDoesNotExistException": newErrorParentCommitDoesNotExistException, + "ParentCommitIdOutdatedException": newErrorParentCommitIdOutdatedException, + "ParentCommitIdRequiredException": newErrorParentCommitIdRequiredException, + "PathDoesNotExistException": newErrorPathDoesNotExistException, + "PathRequiredException": newErrorPathRequiredException, + "PullRequestAlreadyClosedException": newErrorPullRequestAlreadyClosedException, + "PullRequestApprovalRulesNotSatisfiedException": newErrorPullRequestApprovalRulesNotSatisfiedException, + "PullRequestCannotBeApprovedByAuthorException": newErrorPullRequestCannotBeApprovedByAuthorException, + "PullRequestDoesNotExistException": newErrorPullRequestDoesNotExistException, + "PullRequestIdRequiredException": newErrorPullRequestIdRequiredException, + "PullRequestStatusRequiredException": newErrorPullRequestStatusRequiredException, + "PutFileEntryConflictException": newErrorPutFileEntryConflictException, + "ReferenceDoesNotExistException": newErrorReferenceDoesNotExistException, + "ReferenceNameRequiredException": newErrorReferenceNameRequiredException, + "ReferenceTypeNotSupportedException": newErrorReferenceTypeNotSupportedException, + "ReplacementContentRequiredException": newErrorReplacementContentRequiredException, + "ReplacementTypeRequiredException": newErrorReplacementTypeRequiredException, + "RepositoryDoesNotExistException": newErrorRepositoryDoesNotExistException, + "RepositoryLimitExceededException": newErrorRepositoryLimitExceededException, + "RepositoryNameExistsException": newErrorRepositoryNameExistsException, + "RepositoryNameRequiredException": newErrorRepositoryNameRequiredException, + "RepositoryNamesRequiredException": newErrorRepositoryNamesRequiredException, + "RepositoryNotAssociatedWithPullRequestException": newErrorRepositoryNotAssociatedWithPullRequestException, + "RepositoryTriggerBranchNameListRequiredException": newErrorRepositoryTriggerBranchNameListRequiredException, + "RepositoryTriggerDestinationArnRequiredException": newErrorRepositoryTriggerDestinationArnRequiredException, + "RepositoryTriggerEventsListRequiredException": newErrorRepositoryTriggerEventsListRequiredException, + "RepositoryTriggerNameRequiredException": newErrorRepositoryTriggerNameRequiredException, + "RepositoryTriggersListRequiredException": newErrorRepositoryTriggersListRequiredException, + "ResourceArnRequiredException": newErrorResourceArnRequiredException, + "RestrictedSourceFileException": newErrorRestrictedSourceFileException, + "RevisionIdRequiredException": newErrorRevisionIdRequiredException, + "RevisionNotCurrentException": newErrorRevisionNotCurrentException, + "SameFileContentException": newErrorSameFileContentException, + "SamePathRequestException": newErrorSamePathRequestException, + "SourceAndDestinationAreSameException": newErrorSourceAndDestinationAreSameException, + "SourceFileOrContentRequiredException": newErrorSourceFileOrContentRequiredException, + "TagKeysListRequiredException": newErrorTagKeysListRequiredException, + "TagPolicyException": newErrorTagPolicyException, + "TagsMapRequiredException": newErrorTagsMapRequiredException, + "TargetRequiredException": newErrorTargetRequiredException, + "TargetsRequiredException": newErrorTargetsRequiredException, + "TipOfSourceReferenceIsDifferentException": newErrorTipOfSourceReferenceIsDifferentException, + "TipsDivergenceExceededException": newErrorTipsDivergenceExceededException, + "TitleRequiredException": newErrorTitleRequiredException, + "TooManyTagsException": newErrorTooManyTagsException, +} diff --git a/service/codecommit/service.go b/service/codecommit/service.go index b1a9e98bc13..2cb50a48562 100644 --- a/service/codecommit/service.go +++ b/service/codecommit/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codedeploy/api.go b/service/codedeploy/api.go index daa280bc127..12bd6690c00 100644 --- a/service/codedeploy/api.go +++ b/service/codedeploy/api.go @@ -3,6 +3,7 @@ package codedeploy import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,27 +67,27 @@ func (c *CodeDeploy) AddTagsToOnPremisesInstancesRequest(input *AddTagsToOnPremi // See the AWS API reference guide for AWS CodeDeploy's // API operation AddTagsToOnPremisesInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" +// Returned Error Types: +// * InstanceNameRequiredException // An on-premises instance name was not specified. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // -// * ErrCodeTagRequiredException "TagRequiredException" +// * TagRequiredException // A tag was not specified. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The tag was specified in an invalid format. // -// * ErrCodeTagLimitExceededException "TagLimitExceededException" +// * TagLimitExceededException // The maximum allowed number of tags was exceeded. // -// * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException" +// * InstanceLimitExceededException // The maximum number of allowed on-premises instances in a single call was // exceeded. // -// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException" +// * InstanceNotRegisteredException // The specified on-premises instance is not registered. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/AddTagsToOnPremisesInstances @@ -165,23 +166,23 @@ func (c *CodeDeploy) BatchGetApplicationRevisionsRequest(input *BatchGetApplicat // See the AWS API reference guide for AWS CodeDeploy's // API operation BatchGetApplicationRevisions for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// Returned Error Types: +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeRevisionRequiredException "RevisionRequiredException" +// * RevisionRequiredException // The revision ID was not specified. // -// * ErrCodeInvalidRevisionException "InvalidRevisionException" +// * InvalidRevisionException // The revision was specified in an invalid format. // -// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" +// * BatchLimitExceededException // The maximum number of names or IDs allowed for this request (100) was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplicationRevisions @@ -260,17 +261,17 @@ func (c *CodeDeploy) BatchGetApplicationsRequest(input *BatchGetApplicationsInpu // See the AWS API reference guide for AWS CodeDeploy's // API operation BatchGetApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" +// * BatchLimitExceededException // The maximum number of names or IDs allowed for this request (100) was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetApplications @@ -348,26 +349,26 @@ func (c *CodeDeploy) BatchGetDeploymentGroupsRequest(input *BatchGetDeploymentGr // See the AWS API reference guide for AWS CodeDeploy's // API operation BatchGetDeploymentGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" +// * DeploymentGroupNameRequiredException // The deployment group name was not specified. // -// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" +// * InvalidDeploymentGroupNameException // The deployment group name was specified in an invalid format. // -// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" +// * BatchLimitExceededException // The maximum number of names or IDs allowed for this request (100) was exceeded. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentGroups @@ -456,26 +457,26 @@ func (c *CodeDeploy) BatchGetDeploymentInstancesRequest(input *BatchGetDeploymen // See the AWS API reference guide for AWS CodeDeploy's // API operation BatchGetDeploymentInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException" +// * InstanceIdRequiredException // The instance ID was not specified. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // -// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" +// * BatchLimitExceededException // The maximum number of names or IDs allowed for this request (100) was exceeded. // -// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// * InvalidComputePlatformException // The computePlatform is invalid. The computePlatform should be Lambda or Server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeploymentInstances @@ -568,29 +569,29 @@ func (c *CodeDeploy) BatchGetDeploymentTargetsRequest(input *BatchGetDeploymentT // See the AWS API reference guide for AWS CodeDeploy's // API operation BatchGetDeploymentTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// Returned Error Types: +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" +// * DeploymentNotStartedException // The specified deployment has not started. // -// * ErrCodeDeploymentTargetIdRequiredException "DeploymentTargetIdRequiredException" +// * DeploymentTargetIdRequiredException // A deployment target ID was not provided. // -// * ErrCodeInvalidDeploymentTargetIdException "InvalidDeploymentTargetIdException" +// * InvalidDeploymentTargetIdException // The target ID provided was not valid. // -// * ErrCodeDeploymentTargetDoesNotExistException "DeploymentTargetDoesNotExistException" +// * DeploymentTargetDoesNotExistException // The provided target ID does not belong to the attempted deployment. // -// * ErrCodeDeploymentTargetListSizeExceededException "DeploymentTargetListSizeExceededException" +// * DeploymentTargetListSizeExceededException // The maximum number of targets that can be associated with an Amazon ECS or // AWS Lambda deployment was exceeded. The target list of both types of deployments // must have exactly one item. This exception does not apply to EC2/On-premises @@ -672,14 +673,14 @@ func (c *CodeDeploy) BatchGetDeploymentsRequest(input *BatchGetDeploymentsInput) // See the AWS API reference guide for AWS CodeDeploy's // API operation BatchGetDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" +// * BatchLimitExceededException // The maximum number of names or IDs allowed for this request (100) was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetDeployments @@ -758,14 +759,14 @@ func (c *CodeDeploy) BatchGetOnPremisesInstancesRequest(input *BatchGetOnPremise // See the AWS API reference guide for AWS CodeDeploy's // API operation BatchGetOnPremisesInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" +// Returned Error Types: +// * InstanceNameRequiredException // An on-premises instance name was not specified. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // -// * ErrCodeBatchLimitExceededException "BatchLimitExceededException" +// * BatchLimitExceededException // The maximum number of names or IDs allowed for this request (100) was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/BatchGetOnPremisesInstances @@ -849,29 +850,29 @@ func (c *CodeDeploy) ContinueDeploymentRequest(input *ContinueDeploymentInput) ( // See the AWS API reference guide for AWS CodeDeploy's // API operation ContinueDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException" +// * DeploymentAlreadyCompletedException // The deployment is already complete. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeDeploymentIsNotInReadyStateException "DeploymentIsNotInReadyStateException" +// * DeploymentIsNotInReadyStateException // The deployment does not have a status of Ready and can't continue yet. // -// * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException" +// * UnsupportedActionForDeploymentTypeException // A call was submitted that is not supported for the specified deployment type. // -// * ErrCodeInvalidDeploymentWaitTypeException "InvalidDeploymentWaitTypeException" +// * InvalidDeploymentWaitTypeException // The wait type is invalid. // -// * ErrCodeInvalidDeploymentStatusException "InvalidDeploymentStatusException" +// * InvalidDeploymentStatusException // The specified deployment status doesn't exist or cannot be determined. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ContinueDeployment @@ -949,24 +950,24 @@ func (c *CodeDeploy) CreateApplicationRequest(input *CreateApplicationInput) (re // See the AWS API reference guide for AWS CodeDeploy's // API operation CreateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException" +// * ApplicationAlreadyExistsException // An application with the specified name with the IAM user or AWS account already // exists. // -// * ErrCodeApplicationLimitExceededException "ApplicationLimitExceededException" +// * ApplicationLimitExceededException // More applications were attempted to be created than are allowed. // -// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// * InvalidComputePlatformException // The computePlatform is invalid. The computePlatform should be Lambda or Server. // -// * ErrCodeInvalidTagsToAddException "InvalidTagsToAddException" +// * InvalidTagsToAddException // The specified tags are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateApplication @@ -1044,47 +1045,47 @@ func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req // See the AWS API reference guide for AWS CodeDeploy's // API operation CreateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" +// * DeploymentGroupNameRequiredException // The deployment group name was not specified. // -// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" +// * InvalidDeploymentGroupNameException // The deployment group name was specified in an invalid format. // -// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// * DeploymentGroupDoesNotExistException // The named deployment group with the IAM user or AWS account does not exist. // -// * ErrCodeRevisionRequiredException "RevisionRequiredException" +// * RevisionRequiredException // The revision ID was not specified. // -// * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException" +// * RevisionDoesNotExistException // The named revision does not exist with the IAM user or AWS account. // -// * ErrCodeInvalidRevisionException "InvalidRevisionException" +// * InvalidRevisionException // The revision was specified in an invalid format. // -// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" +// * InvalidDeploymentConfigNameException // The deployment configuration name was specified in an invalid format. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // -// * ErrCodeDescriptionTooLongException "DescriptionTooLongException" +// * DescriptionTooLongException // The description is too long. // -// * ErrCodeDeploymentLimitExceededException "DeploymentLimitExceededException" +// * DeploymentLimitExceededException // The number of allowed deployments was exceeded. // -// * ErrCodeInvalidTargetInstancesException "InvalidTargetInstancesException" +// * InvalidTargetInstancesException // The target instance configuration is invalid. Possible causes include: // // * Configuration data for target instances was entered for an in-place @@ -1096,40 +1097,40 @@ func (c *CodeDeploy) CreateDeploymentRequest(input *CreateDeploymentInput) (req // // * A specified tag is not currently applied to any instances. // -// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException" +// * InvalidAutoRollbackConfigException // The automatic rollback configuration was specified in an invalid format. // For example, automatic rollback is enabled, but an invalid triggering event // type or no event types were listed. // -// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException" +// * InvalidLoadBalancerInfoException // An invalid load balancer name, or no load balancer name, was specified. // -// * ErrCodeInvalidFileExistsBehaviorException "InvalidFileExistsBehaviorException" +// * InvalidFileExistsBehaviorException // An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy // handles files or directories that already exist in a deployment target location, // but weren't part of the previous successful deployment. Valid values include // "DISALLOW," "OVERWRITE," and "RETAIN." // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Amazon EC2 Auto Scaling. // -// * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException" +// * InvalidAutoScalingGroupException // The Auto Scaling group was specified in an invalid format or does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An API function was called too frequently. // -// * ErrCodeInvalidUpdateOutdatedInstancesOnlyValueException "InvalidUpdateOutdatedInstancesOnlyValueException" +// * InvalidUpdateOutdatedInstancesOnlyValueException // The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments, // false is expected. For EC2/On-premises deployments, true or false is expected. // -// * ErrCodeInvalidIgnoreApplicationStopFailuresValueException "InvalidIgnoreApplicationStopFailuresValueException" +// * InvalidIgnoreApplicationStopFailuresValueException // The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments, // false is expected. For EC2/On-premises deployments, true or false is expected. // -// * ErrCodeInvalidGitHubAccountTokenException "InvalidGitHubAccountTokenException" +// * InvalidGitHubAccountTokenException // The GitHub token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeployment @@ -1207,27 +1208,27 @@ func (c *CodeDeploy) CreateDeploymentConfigRequest(input *CreateDeploymentConfig // See the AWS API reference guide for AWS CodeDeploy's // API operation CreateDeploymentConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" +// Returned Error Types: +// * InvalidDeploymentConfigNameException // The deployment configuration name was specified in an invalid format. // -// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException" +// * DeploymentConfigNameRequiredException // The deployment configuration name was not specified. // -// * ErrCodeDeploymentConfigAlreadyExistsException "DeploymentConfigAlreadyExistsException" +// * DeploymentConfigAlreadyExistsException // A deployment configuration with the specified name with the IAM user or AWS // account already exists . // -// * ErrCodeInvalidMinimumHealthyHostValueException "InvalidMinimumHealthyHostValueException" +// * InvalidMinimumHealthyHostValueException // The minimum healthy instance value was specified in an invalid format. // -// * ErrCodeDeploymentConfigLimitExceededException "DeploymentConfigLimitExceededException" +// * DeploymentConfigLimitExceededException // The deployment configurations limit was exceeded. // -// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// * InvalidComputePlatformException // The computePlatform is invalid. The computePlatform should be Lambda or Server. // -// * ErrCodeInvalidTrafficRoutingConfigurationException "InvalidTrafficRoutingConfigurationException" +// * InvalidTrafficRoutingConfigurationException // The configuration that specifies how traffic is routed during a deployment // is invalid. // @@ -1306,62 +1307,62 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn // See the AWS API reference guide for AWS CodeDeploy's // API operation CreateDeploymentGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" +// * DeploymentGroupNameRequiredException // The deployment group name was not specified. // -// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" +// * InvalidDeploymentGroupNameException // The deployment group name was specified in an invalid format. // -// * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException" +// * DeploymentGroupAlreadyExistsException // A deployment group with the specified name with the IAM user or AWS account // already exists. // -// * ErrCodeInvalidEC2TagException "InvalidEC2TagException" +// * InvalidEC2TagException // The tag was specified in an invalid format. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The tag was specified in an invalid format. // -// * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException" +// * InvalidAutoScalingGroupException // The Auto Scaling group was specified in an invalid format or does not exist. // -// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" +// * InvalidDeploymentConfigNameException // The deployment configuration name was specified in an invalid format. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // -// * ErrCodeRoleRequiredException "RoleRequiredException" +// * RoleRequiredException // The role ID was not specified. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Amazon EC2 Auto Scaling. // -// * ErrCodeDeploymentGroupLimitExceededException "DeploymentGroupLimitExceededException" +// * DeploymentGroupLimitExceededException // The deployment groups limit was exceeded. // -// * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException" +// * LifecycleHookLimitExceededException // The limit for lifecycle hooks was exceeded. // -// * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException" +// * InvalidTriggerConfigException // The trigger was specified in an invalid format. // -// * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException" +// * TriggerTargetsLimitExceededException // The maximum allowed number of triggers was exceeded. // -// * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException" +// * InvalidAlarmConfigException // The format of the alarm configuration is invalid. Possible causes include: // // * The alarm list is null. @@ -1374,56 +1375,56 @@ func (c *CodeDeploy) CreateDeploymentGroupRequest(input *CreateDeploymentGroupIn // // * The alarm configuration is enabled, but the alarm list is empty. // -// * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException" +// * AlarmsLimitExceededException // The maximum number of alarms for a deployment group (10) was exceeded. // -// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException" +// * InvalidAutoRollbackConfigException // The automatic rollback configuration was specified in an invalid format. // For example, automatic rollback is enabled, but an invalid triggering event // type or no event types were listed. // -// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException" +// * InvalidLoadBalancerInfoException // An invalid load balancer name, or no load balancer name, was specified. // -// * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException" +// * InvalidDeploymentStyleException // An invalid deployment style was specified. Valid deployment types include // "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" // and "WITHOUT_TRAFFIC_CONTROL." // -// * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException" +// * InvalidBlueGreenDeploymentConfigurationException // The configuration for the blue/green deployment group was provided in an // invalid format. For information about deployment configuration format, see // CreateDeploymentConfig. // -// * ErrCodeInvalidEC2TagCombinationException "InvalidEC2TagCombinationException" +// * InvalidEC2TagCombinationException // A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but // only one of these data types can be used in a single call. // -// * ErrCodeInvalidOnPremisesTagCombinationException "InvalidOnPremisesTagCombinationException" +// * InvalidOnPremisesTagCombinationException // A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, // but only one of these data types can be used in a single call. // -// * ErrCodeTagSetListLimitExceededException "TagSetListLimitExceededException" +// * TagSetListLimitExceededException // The number of tag groups included in the tag set list exceeded the maximum // allowed limit of 3. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input was specified in an invalid format. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An API function was called too frequently. // -// * ErrCodeInvalidECSServiceException "InvalidECSServiceException" +// * InvalidECSServiceException // The Amazon ECS service identifier is not valid. // -// * ErrCodeInvalidTargetGroupPairException "InvalidTargetGroupPairException" +// * InvalidTargetGroupPairException // A target group pair associated with this deployment is not valid. // -// * ErrCodeECSServiceMappingLimitExceededException "ECSServiceMappingLimitExceededException" +// * ECSServiceMappingLimitExceededException // The Amazon ECS service is associated with more than one deployment groups. // An Amazon ECS service can be associated with only one deployment group. // -// * ErrCodeInvalidTagsToAddException "InvalidTagsToAddException" +// * InvalidTagsToAddException // The specified tags are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/CreateDeploymentGroup @@ -1502,14 +1503,14 @@ func (c *CodeDeploy) DeleteApplicationRequest(input *DeleteApplicationInput) (re // See the AWS API reference guide for AWS CodeDeploy's // API operation DeleteApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Amazon EC2 Auto Scaling. @@ -1593,17 +1594,17 @@ func (c *CodeDeploy) DeleteDeploymentConfigRequest(input *DeleteDeploymentConfig // See the AWS API reference guide for AWS CodeDeploy's // API operation DeleteDeploymentConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" +// Returned Error Types: +// * InvalidDeploymentConfigNameException // The deployment configuration name was specified in an invalid format. // -// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException" +// * DeploymentConfigNameRequiredException // The deployment configuration name was not specified. // -// * ErrCodeDeploymentConfigInUseException "DeploymentConfigInUseException" +// * DeploymentConfigInUseException // The deployment configuration is still in use. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // An invalid operation was detected. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteDeploymentConfig @@ -1681,20 +1682,20 @@ func (c *CodeDeploy) DeleteDeploymentGroupRequest(input *DeleteDeploymentGroupIn // See the AWS API reference guide for AWS CodeDeploy's // API operation DeleteDeploymentGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" +// * DeploymentGroupNameRequiredException // The deployment group name was not specified. // -// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" +// * InvalidDeploymentGroupNameException // The deployment group name was specified in an invalid format. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Amazon EC2 Auto Scaling. @@ -1774,20 +1775,20 @@ func (c *CodeDeploy) DeleteGitHubAccountTokenRequest(input *DeleteGitHubAccountT // See the AWS API reference guide for AWS CodeDeploy's // API operation DeleteGitHubAccountToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeGitHubAccountTokenNameRequiredException "GitHubAccountTokenNameRequiredException" +// Returned Error Types: +// * GitHubAccountTokenNameRequiredException // The call is missing a required GitHub account connection name. // -// * ErrCodeGitHubAccountTokenDoesNotExistException "GitHubAccountTokenDoesNotExistException" +// * GitHubAccountTokenDoesNotExistException // No GitHub account connection exists with the named specified in the call. // -// * ErrCodeInvalidGitHubAccountTokenNameException "InvalidGitHubAccountTokenNameException" +// * InvalidGitHubAccountTokenNameException // The format of the specified GitHub account connection name is invalid. // -// * ErrCodeResourceValidationException "ResourceValidationException" +// * ResourceValidationException // The specified resource could not be validated. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The API used does not support the deployment. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeleteGitHubAccountToken @@ -1866,11 +1867,11 @@ func (c *CodeDeploy) DeregisterOnPremisesInstanceRequest(input *DeregisterOnPrem // See the AWS API reference guide for AWS CodeDeploy's // API operation DeregisterOnPremisesInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" +// Returned Error Types: +// * InstanceNameRequiredException // An on-premises instance name was not specified. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/DeregisterOnPremisesInstance @@ -1948,14 +1949,14 @@ func (c *CodeDeploy) GetApplicationRequest(input *GetApplicationInput) (req *req // See the AWS API reference guide for AWS CodeDeploy's // API operation GetApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplication @@ -2033,23 +2034,23 @@ func (c *CodeDeploy) GetApplicationRevisionRequest(input *GetApplicationRevision // See the AWS API reference guide for AWS CodeDeploy's // API operation GetApplicationRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// Returned Error Types: +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeRevisionDoesNotExistException "RevisionDoesNotExistException" +// * RevisionDoesNotExistException // The named revision does not exist with the IAM user or AWS account. // -// * ErrCodeRevisionRequiredException "RevisionRequiredException" +// * RevisionRequiredException // The revision ID was not specified. // -// * ErrCodeInvalidRevisionException "InvalidRevisionException" +// * InvalidRevisionException // The revision was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevision @@ -2132,14 +2133,14 @@ func (c *CodeDeploy) GetDeploymentRequest(input *GetDeploymentInput) (req *reque // See the AWS API reference guide for AWS CodeDeploy's // API operation GetDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeployment @@ -2217,17 +2218,17 @@ func (c *CodeDeploy) GetDeploymentConfigRequest(input *GetDeploymentConfigInput) // See the AWS API reference guide for AWS CodeDeploy's // API operation GetDeploymentConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" +// Returned Error Types: +// * InvalidDeploymentConfigNameException // The deployment configuration name was specified in an invalid format. // -// * ErrCodeDeploymentConfigNameRequiredException "DeploymentConfigNameRequiredException" +// * DeploymentConfigNameRequiredException // The deployment configuration name was not specified. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // -// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// * InvalidComputePlatformException // The computePlatform is invalid. The computePlatform should be Lambda or Server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentConfig @@ -2305,26 +2306,26 @@ func (c *CodeDeploy) GetDeploymentGroupRequest(input *GetDeploymentGroupInput) ( // See the AWS API reference guide for AWS CodeDeploy's // API operation GetDeploymentGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" +// * DeploymentGroupNameRequiredException // The deployment group name was not specified. // -// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" +// * InvalidDeploymentGroupNameException // The deployment group name was specified in an invalid format. // -// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// * DeploymentGroupDoesNotExistException // The named deployment group with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentGroup @@ -2407,26 +2408,26 @@ func (c *CodeDeploy) GetDeploymentInstanceRequest(input *GetDeploymentInstanceIn // See the AWS API reference guide for AWS CodeDeploy's // API operation GetDeploymentInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeInstanceIdRequiredException "InstanceIdRequiredException" +// * InstanceIdRequiredException // The instance ID was not specified. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeInstanceDoesNotExistException "InstanceDoesNotExistException" +// * InstanceDoesNotExistException // The specified instance does not exist in the deployment group. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // -// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// * InvalidComputePlatformException // The computePlatform is invalid. The computePlatform should be Lambda or Server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentInstance @@ -2508,29 +2509,29 @@ func (c *CodeDeploy) GetDeploymentTargetRequest(input *GetDeploymentTargetInput) // See the AWS API reference guide for AWS CodeDeploy's // API operation GetDeploymentTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// Returned Error Types: +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" +// * DeploymentNotStartedException // The specified deployment has not started. // -// * ErrCodeDeploymentTargetIdRequiredException "DeploymentTargetIdRequiredException" +// * DeploymentTargetIdRequiredException // A deployment target ID was not provided. // -// * ErrCodeInvalidDeploymentTargetIdException "InvalidDeploymentTargetIdException" +// * InvalidDeploymentTargetIdException // The target ID provided was not valid. // -// * ErrCodeDeploymentTargetDoesNotExistException "DeploymentTargetDoesNotExistException" +// * DeploymentTargetDoesNotExistException // The provided target ID does not belong to the attempted deployment. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetDeploymentTarget @@ -2608,14 +2609,14 @@ func (c *CodeDeploy) GetOnPremisesInstanceRequest(input *GetOnPremisesInstanceIn // See the AWS API reference guide for AWS CodeDeploy's // API operation GetOnPremisesInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" +// Returned Error Types: +// * InstanceNameRequiredException // An on-premises instance name was not specified. // -// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException" +// * InstanceNotRegisteredException // The specified on-premises instance is not registered. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetOnPremisesInstance @@ -2699,36 +2700,36 @@ func (c *CodeDeploy) ListApplicationRevisionsRequest(input *ListApplicationRevis // See the AWS API reference guide for AWS CodeDeploy's // API operation ListApplicationRevisions for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// Returned Error Types: +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeInvalidSortByException "InvalidSortByException" +// * InvalidSortByException // The column name to sort by is either not present or was specified in an invalid // format. // -// * ErrCodeInvalidSortOrderException "InvalidSortOrderException" +// * InvalidSortOrderException // The sort order was specified in an invalid format. // -// * ErrCodeInvalidBucketNameFilterException "InvalidBucketNameFilterException" +// * InvalidBucketNameFilterException // The bucket name either doesn't exist or was specified in an invalid format. // -// * ErrCodeInvalidKeyPrefixFilterException "InvalidKeyPrefixFilterException" +// * InvalidKeyPrefixFilterException // The specified key prefix filter was specified in an invalid format. // -// * ErrCodeBucketNameFilterRequiredException "BucketNameFilterRequiredException" +// * BucketNameFilterRequiredException // A bucket name is required, but was not provided. // -// * ErrCodeInvalidDeployedStateFilterException "InvalidDeployedStateFilterException" +// * InvalidDeployedStateFilterException // The deployed state filter was specified in an invalid format. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplicationRevisions @@ -2864,8 +2865,8 @@ func (c *CodeDeploy) ListApplicationsRequest(input *ListApplicationsInput) (req // See the AWS API reference guide for AWS CodeDeploy's // API operation ListApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The next token was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListApplications @@ -3001,8 +3002,8 @@ func (c *CodeDeploy) ListDeploymentConfigsRequest(input *ListDeploymentConfigsIn // See the AWS API reference guide for AWS CodeDeploy's // API operation ListDeploymentConfigs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The next token was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentConfigs @@ -3139,17 +3140,17 @@ func (c *CodeDeploy) ListDeploymentGroupsRequest(input *ListDeploymentGroupsInpu // See the AWS API reference guide for AWS CodeDeploy's // API operation ListDeploymentGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentGroups @@ -3295,38 +3296,38 @@ func (c *CodeDeploy) ListDeploymentInstancesRequest(input *ListDeploymentInstanc // See the AWS API reference guide for AWS CodeDeploy's // API operation ListDeploymentInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" +// * DeploymentNotStartedException // The specified deployment has not started. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeInvalidInstanceStatusException "InvalidInstanceStatusException" +// * InvalidInstanceStatusException // The specified instance status does not exist. // -// * ErrCodeInvalidInstanceTypeException "InvalidInstanceTypeException" +// * InvalidInstanceTypeException // An invalid instance type was specified for instances in a blue/green deployment. // Valid values include "Blue" for an original environment and "Green" for a // replacement environment. // -// * ErrCodeInvalidDeploymentInstanceTypeException "InvalidDeploymentInstanceTypeException" +// * InvalidDeploymentInstanceTypeException // An instance type was specified for an in-place deployment. Instance types // are supported for blue/green deployments only. // -// * ErrCodeInvalidTargetFilterNameException "InvalidTargetFilterNameException" +// * InvalidTargetFilterNameException // The target filter name is invalid. // -// * ErrCodeInvalidComputePlatformException "InvalidComputePlatformException" +// * InvalidComputePlatformException // The computePlatform is invalid. The computePlatform should be Lambda or Server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeploymentInstances @@ -3464,31 +3465,31 @@ func (c *CodeDeploy) ListDeploymentTargetsRequest(input *ListDeploymentTargetsIn // See the AWS API reference guide for AWS CodeDeploy's // API operation ListDeploymentTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" +// * DeploymentNotStartedException // The specified deployment has not started. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeInvalidInstanceStatusException "InvalidInstanceStatusException" +// * InvalidInstanceStatusException // The specified instance status does not exist. // -// * ErrCodeInvalidInstanceTypeException "InvalidInstanceTypeException" +// * InvalidInstanceTypeException // An invalid instance type was specified for instances in a blue/green deployment. // Valid values include "Blue" for an original environment and "Green" for a // replacement environment. // -// * ErrCodeInvalidDeploymentInstanceTypeException "InvalidDeploymentInstanceTypeException" +// * InvalidDeploymentInstanceTypeException // An instance type was specified for an in-place deployment. Instance types // are supported for blue/green deployments only. // @@ -3574,32 +3575,32 @@ func (c *CodeDeploy) ListDeploymentsRequest(input *ListDeploymentsInput) (req *r // See the AWS API reference guide for AWS CodeDeploy's // API operation ListDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" +// * InvalidDeploymentGroupNameException // The deployment group name was specified in an invalid format. // -// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// * DeploymentGroupDoesNotExistException // The named deployment group with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" +// * DeploymentGroupNameRequiredException // The deployment group name was not specified. // -// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" +// * InvalidTimeRangeException // The specified time range was specified in an invalid format. // -// * ErrCodeInvalidDeploymentStatusException "InvalidDeploymentStatusException" +// * InvalidDeploymentStatusException // The specified deployment status doesn't exist or cannot be determined. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListDeployments @@ -3729,14 +3730,14 @@ func (c *CodeDeploy) ListGitHubAccountTokenNamesRequest(input *ListGitHubAccount // See the AWS API reference guide for AWS CodeDeploy's // API operation ListGitHubAccountTokenNames for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The next token was specified in an invalid format. // -// * ErrCodeResourceValidationException "ResourceValidationException" +// * ResourceValidationException // The specified resource could not be validated. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The API used does not support the deployment. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListGitHubAccountTokenNames @@ -3818,14 +3819,14 @@ func (c *CodeDeploy) ListOnPremisesInstancesRequest(input *ListOnPremisesInstanc // See the AWS API reference guide for AWS CodeDeploy's // API operation ListOnPremisesInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRegistrationStatusException "InvalidRegistrationStatusException" +// Returned Error Types: +// * InvalidRegistrationStatusException // The registration status was specified in an invalid format. // -// * ErrCodeInvalidTagFilterException "InvalidTagFilterException" +// * InvalidTagFilterException // The tag filter was specified in an invalid format. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListOnPremisesInstances @@ -3904,15 +3905,15 @@ func (c *CodeDeploy) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS CodeDeploy's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeArnNotSupportedException "ArnNotSupportedException" +// Returned Error Types: +// * ArnNotSupportedException // The specified ARN is not supported. For example, it might be an ARN for a // resource that is not expected. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The specified ARN is not in a valid format. // -// * ErrCodeResourceArnRequiredException "ResourceArnRequiredException" +// * ResourceArnRequiredException // The ARN of a resource is required, but was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/ListTagsForResource @@ -3992,28 +3993,28 @@ func (c *CodeDeploy) PutLifecycleEventHookExecutionStatusRequest(input *PutLifec // See the AWS API reference guide for AWS CodeDeploy's // API operation PutLifecycleEventHookExecutionStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidLifecycleEventHookExecutionStatusException "InvalidLifecycleEventHookExecutionStatusException" +// Returned Error Types: +// * InvalidLifecycleEventHookExecutionStatusException // The result of a Lambda validation function that verifies a lifecycle event // is invalid. It should return Succeeded or Failed. // -// * ErrCodeInvalidLifecycleEventHookExecutionIdException "InvalidLifecycleEventHookExecutionIdException" +// * InvalidLifecycleEventHookExecutionIdException // A lifecycle event hook is invalid. Review the hooks section in your AppSpec // file to ensure the lifecycle events and hooks functions are valid. // -// * ErrCodeLifecycleEventAlreadyCompletedException "LifecycleEventAlreadyCompletedException" +// * LifecycleEventAlreadyCompletedException // An attempt to return the status of an already completed lifecycle event occurred. // -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException" +// * UnsupportedActionForDeploymentTypeException // A call was submitted that is not supported for the specified deployment type. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/PutLifecycleEventHookExecutionStatus @@ -4092,23 +4093,23 @@ func (c *CodeDeploy) RegisterApplicationRevisionRequest(input *RegisterApplicati // See the AWS API reference guide for AWS CodeDeploy's // API operation RegisterApplicationRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// Returned Error Types: +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeDescriptionTooLongException "DescriptionTooLongException" +// * DescriptionTooLongException // The description is too long. // -// * ErrCodeRevisionRequiredException "RevisionRequiredException" +// * RevisionRequiredException // The revision ID was not specified. // -// * ErrCodeInvalidRevisionException "InvalidRevisionException" +// * InvalidRevisionException // The revision was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RegisterApplicationRevision @@ -4190,37 +4191,37 @@ func (c *CodeDeploy) RegisterOnPremisesInstanceRequest(input *RegisterOnPremises // See the AWS API reference guide for AWS CodeDeploy's // API operation RegisterOnPremisesInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNameAlreadyRegisteredException "InstanceNameAlreadyRegisteredException" +// Returned Error Types: +// * InstanceNameAlreadyRegisteredException // The specified on-premises instance name is already registered. // -// * ErrCodeIamArnRequiredException "IamArnRequiredException" +// * IamArnRequiredException // No IAM ARN was included in the request. You must use an IAM session ARN or // IAM user ARN in the request. // -// * ErrCodeIamSessionArnAlreadyRegisteredException "IamSessionArnAlreadyRegisteredException" +// * IamSessionArnAlreadyRegisteredException // The request included an IAM session ARN that has already been used to register // a different instance. // -// * ErrCodeIamUserArnAlreadyRegisteredException "IamUserArnAlreadyRegisteredException" +// * IamUserArnAlreadyRegisteredException // The specified IAM user ARN is already registered with an on-premises instance. // -// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" +// * InstanceNameRequiredException // An on-premises instance name was not specified. // -// * ErrCodeIamUserArnRequiredException "IamUserArnRequiredException" +// * IamUserArnRequiredException // An IAM user ARN was not specified. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // -// * ErrCodeInvalidIamSessionArnException "InvalidIamSessionArnException" +// * InvalidIamSessionArnException // The IAM session ARN was specified in an invalid format. // -// * ErrCodeInvalidIamUserArnException "InvalidIamUserArnException" +// * InvalidIamUserArnException // The IAM user ARN was specified in an invalid format. // -// * ErrCodeMultipleIamArnsProvidedException "MultipleIamArnsProvidedException" +// * MultipleIamArnsProvidedException // Both an IAM user ARN and an IAM session ARN were included in the request. // Use only one ARN type. // @@ -4300,27 +4301,27 @@ func (c *CodeDeploy) RemoveTagsFromOnPremisesInstancesRequest(input *RemoveTagsF // See the AWS API reference guide for AWS CodeDeploy's // API operation RemoveTagsFromOnPremisesInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNameRequiredException "InstanceNameRequiredException" +// Returned Error Types: +// * InstanceNameRequiredException // An on-premises instance name was not specified. // -// * ErrCodeInvalidInstanceNameException "InvalidInstanceNameException" +// * InvalidInstanceNameException // The on-premises instance name was specified in an invalid format. // -// * ErrCodeTagRequiredException "TagRequiredException" +// * TagRequiredException // A tag was not specified. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The tag was specified in an invalid format. // -// * ErrCodeTagLimitExceededException "TagLimitExceededException" +// * TagLimitExceededException // The maximum allowed number of tags was exceeded. // -// * ErrCodeInstanceLimitExceededException "InstanceLimitExceededException" +// * InstanceLimitExceededException // The maximum number of allowed on-premises instances in a single call was // exceeded. // -// * ErrCodeInstanceNotRegisteredException "InstanceNotRegisteredException" +// * InstanceNotRegisteredException // The specified on-premises instance is not registered. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/RemoveTagsFromOnPremisesInstances @@ -4405,23 +4406,23 @@ func (c *CodeDeploy) SkipWaitTimeForInstanceTerminationRequest(input *SkipWaitTi // See the AWS API reference guide for AWS CodeDeploy's // API operation SkipWaitTimeForInstanceTermination for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException" +// * DeploymentAlreadyCompletedException // The deployment is already complete. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // -// * ErrCodeDeploymentNotStartedException "DeploymentNotStartedException" +// * DeploymentNotStartedException // The specified deployment has not started. // -// * ErrCodeUnsupportedActionForDeploymentTypeException "UnsupportedActionForDeploymentTypeException" +// * UnsupportedActionForDeploymentTypeException // A call was submitted that is not supported for the specified deployment type. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/SkipWaitTimeForInstanceTermination @@ -4503,20 +4504,20 @@ func (c *CodeDeploy) StopDeploymentRequest(input *StopDeploymentInput) (req *req // See the AWS API reference guide for AWS CodeDeploy's // API operation StopDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeploymentIdRequiredException "DeploymentIdRequiredException" +// Returned Error Types: +// * DeploymentIdRequiredException // At least one deployment ID must be specified. // -// * ErrCodeDeploymentDoesNotExistException "DeploymentDoesNotExistException" +// * DeploymentDoesNotExistException // The deployment with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// * DeploymentGroupDoesNotExistException // The named deployment group with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentAlreadyCompletedException "DeploymentAlreadyCompletedException" +// * DeploymentAlreadyCompletedException // The deployment is already complete. // -// * ErrCodeInvalidDeploymentIdException "InvalidDeploymentIdException" +// * InvalidDeploymentIdException // At least one of the deployment IDs was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/StopDeployment @@ -4596,30 +4597,30 @@ func (c *CodeDeploy) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for AWS CodeDeploy's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceArnRequiredException "ResourceArnRequiredException" +// Returned Error Types: +// * ResourceArnRequiredException // The ARN of a resource is required, but was not found. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// * DeploymentGroupDoesNotExistException // The named deployment group with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // -// * ErrCodeTagRequiredException "TagRequiredException" +// * TagRequiredException // A tag was not specified. // -// * ErrCodeInvalidTagsToAddException "InvalidTagsToAddException" +// * InvalidTagsToAddException // The specified tags are not valid. // -// * ErrCodeArnNotSupportedException "ArnNotSupportedException" +// * ArnNotSupportedException // The specified ARN is not supported. For example, it might be an ARN for a // resource that is not expected. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The specified ARN is not in a valid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/TagResource @@ -4700,30 +4701,30 @@ func (c *CodeDeploy) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for AWS CodeDeploy's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceArnRequiredException "ResourceArnRequiredException" +// Returned Error Types: +// * ResourceArnRequiredException // The ARN of a resource is required, but was not found. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// * DeploymentGroupDoesNotExistException // The named deployment group with the IAM user or AWS account does not exist. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // -// * ErrCodeTagRequiredException "TagRequiredException" +// * TagRequiredException // A tag was not specified. // -// * ErrCodeInvalidTagsToAddException "InvalidTagsToAddException" +// * InvalidTagsToAddException // The specified tags are not valid. // -// * ErrCodeArnNotSupportedException "ArnNotSupportedException" +// * ArnNotSupportedException // The specified ARN is not supported. For example, it might be an ARN for a // resource that is not expected. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The specified ARN is not in a valid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UntagResource @@ -4802,18 +4803,18 @@ func (c *CodeDeploy) UpdateApplicationRequest(input *UpdateApplicationInput) (re // See the AWS API reference guide for AWS CodeDeploy's // API operation UpdateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationAlreadyExistsException "ApplicationAlreadyExistsException" +// * ApplicationAlreadyExistsException // An application with the specified name with the IAM user or AWS account already // exists. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/UpdateApplication @@ -4891,59 +4892,59 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn // See the AWS API reference guide for AWS CodeDeploy's // API operation UpdateDeploymentGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeApplicationNameRequiredException "ApplicationNameRequiredException" +// Returned Error Types: +// * ApplicationNameRequiredException // The minimum number of required application names was not specified. // -// * ErrCodeInvalidApplicationNameException "InvalidApplicationNameException" +// * InvalidApplicationNameException // The application name was specified in an invalid format. // -// * ErrCodeApplicationDoesNotExistException "ApplicationDoesNotExistException" +// * ApplicationDoesNotExistException // The application does not exist with the IAM user or AWS account. // -// * ErrCodeInvalidDeploymentGroupNameException "InvalidDeploymentGroupNameException" +// * InvalidDeploymentGroupNameException // The deployment group name was specified in an invalid format. // -// * ErrCodeDeploymentGroupAlreadyExistsException "DeploymentGroupAlreadyExistsException" +// * DeploymentGroupAlreadyExistsException // A deployment group with the specified name with the IAM user or AWS account // already exists. // -// * ErrCodeDeploymentGroupNameRequiredException "DeploymentGroupNameRequiredException" +// * DeploymentGroupNameRequiredException // The deployment group name was not specified. // -// * ErrCodeDeploymentGroupDoesNotExistException "DeploymentGroupDoesNotExistException" +// * DeploymentGroupDoesNotExistException // The named deployment group with the IAM user or AWS account does not exist. // -// * ErrCodeInvalidEC2TagException "InvalidEC2TagException" +// * InvalidEC2TagException // The tag was specified in an invalid format. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The tag was specified in an invalid format. // -// * ErrCodeInvalidAutoScalingGroupException "InvalidAutoScalingGroupException" +// * InvalidAutoScalingGroupException // The Auto Scaling group was specified in an invalid format or does not exist. // -// * ErrCodeInvalidDeploymentConfigNameException "InvalidDeploymentConfigNameException" +// * InvalidDeploymentConfigNameException // The deployment configuration name was specified in an invalid format. // -// * ErrCodeDeploymentConfigDoesNotExistException "DeploymentConfigDoesNotExistException" +// * DeploymentConfigDoesNotExistException // The deployment configuration does not exist with the IAM user or AWS account. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // The service role ARN was specified in an invalid format. Or, if an Auto Scaling // group was specified, the specified service role does not grant the appropriate // permissions to Amazon EC2 Auto Scaling. // -// * ErrCodeLifecycleHookLimitExceededException "LifecycleHookLimitExceededException" +// * LifecycleHookLimitExceededException // The limit for lifecycle hooks was exceeded. // -// * ErrCodeInvalidTriggerConfigException "InvalidTriggerConfigException" +// * InvalidTriggerConfigException // The trigger was specified in an invalid format. // -// * ErrCodeTriggerTargetsLimitExceededException "TriggerTargetsLimitExceededException" +// * TriggerTargetsLimitExceededException // The maximum allowed number of triggers was exceeded. // -// * ErrCodeInvalidAlarmConfigException "InvalidAlarmConfigException" +// * InvalidAlarmConfigException // The format of the alarm configuration is invalid. Possible causes include: // // * The alarm list is null. @@ -4956,52 +4957,52 @@ func (c *CodeDeploy) UpdateDeploymentGroupRequest(input *UpdateDeploymentGroupIn // // * The alarm configuration is enabled, but the alarm list is empty. // -// * ErrCodeAlarmsLimitExceededException "AlarmsLimitExceededException" +// * AlarmsLimitExceededException // The maximum number of alarms for a deployment group (10) was exceeded. // -// * ErrCodeInvalidAutoRollbackConfigException "InvalidAutoRollbackConfigException" +// * InvalidAutoRollbackConfigException // The automatic rollback configuration was specified in an invalid format. // For example, automatic rollback is enabled, but an invalid triggering event // type or no event types were listed. // -// * ErrCodeInvalidLoadBalancerInfoException "InvalidLoadBalancerInfoException" +// * InvalidLoadBalancerInfoException // An invalid load balancer name, or no load balancer name, was specified. // -// * ErrCodeInvalidDeploymentStyleException "InvalidDeploymentStyleException" +// * InvalidDeploymentStyleException // An invalid deployment style was specified. Valid deployment types include // "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" // and "WITHOUT_TRAFFIC_CONTROL." // -// * ErrCodeInvalidBlueGreenDeploymentConfigurationException "InvalidBlueGreenDeploymentConfigurationException" +// * InvalidBlueGreenDeploymentConfigurationException // The configuration for the blue/green deployment group was provided in an // invalid format. For information about deployment configuration format, see // CreateDeploymentConfig. // -// * ErrCodeInvalidEC2TagCombinationException "InvalidEC2TagCombinationException" +// * InvalidEC2TagCombinationException // A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but // only one of these data types can be used in a single call. // -// * ErrCodeInvalidOnPremisesTagCombinationException "InvalidOnPremisesTagCombinationException" +// * InvalidOnPremisesTagCombinationException // A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, // but only one of these data types can be used in a single call. // -// * ErrCodeTagSetListLimitExceededException "TagSetListLimitExceededException" +// * TagSetListLimitExceededException // The number of tag groups included in the tag set list exceeded the maximum // allowed limit of 3. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input was specified in an invalid format. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An API function was called too frequently. // -// * ErrCodeInvalidECSServiceException "InvalidECSServiceException" +// * InvalidECSServiceException // The Amazon ECS service identifier is not valid. // -// * ErrCodeInvalidTargetGroupPairException "InvalidTargetGroupPairException" +// * InvalidTargetGroupPairException // A target group pair associated with this deployment is not valid. // -// * ErrCodeECSServiceMappingLimitExceededException "ECSServiceMappingLimitExceededException" +// * ECSServiceMappingLimitExceededException // The Amazon ECS service is associated with more than one deployment groups. // An Amazon ECS service can be associated with only one deployment group. // @@ -5173,6 +5174,57 @@ func (s *AlarmConfiguration) SetIgnorePollAlarmFailure(v bool) *AlarmConfigurati return s } +// The maximum number of alarms for a deployment group (10) was exceeded. +type AlarmsLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AlarmsLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlarmsLimitExceededException) GoString() string { + return s.String() +} + +func newErrorAlarmsLimitExceededException(v protocol.ResponseMetadata) error { + return &AlarmsLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlarmsLimitExceededException) Code() string { + return "AlarmsLimitExceededException" +} + +// Message returns the exception's message. +func (s AlarmsLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlarmsLimitExceededException) OrigErr() error { + return nil +} + +func (s AlarmsLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlarmsLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlarmsLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // A revision for an AWS Lambda or Amazon ECS deployment that is a YAML-formatted // or JSON-formatted string. For AWS Lambda and Amazon ECS deployments, the // revision is the same as the AppSpec file. This method replaces the deprecated @@ -5220,6 +5272,109 @@ func (s *AppSpecContent) SetSha256(v string) *AppSpecContent { return s } +// An application with the specified name with the IAM user or AWS account already +// exists. +type ApplicationAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApplicationAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorApplicationAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ApplicationAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApplicationAlreadyExistsException) Code() string { + return "ApplicationAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ApplicationAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApplicationAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ApplicationAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApplicationAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApplicationAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The application does not exist with the IAM user or AWS account. +type ApplicationDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApplicationDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorApplicationDoesNotExistException(v protocol.ResponseMetadata) error { + return &ApplicationDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApplicationDoesNotExistException) Code() string { + return "ApplicationDoesNotExistException" +} + +// Message returns the exception's message. +func (s ApplicationDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApplicationDoesNotExistException) OrigErr() error { + return nil +} + +func (s ApplicationDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApplicationDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApplicationDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about an application. type ApplicationInfo struct { _ struct{} `type:"structure"` @@ -5291,6 +5446,160 @@ func (s *ApplicationInfo) SetLinkedToGitHub(v bool) *ApplicationInfo { return s } +// More applications were attempted to be created than are allowed. +type ApplicationLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApplicationLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationLimitExceededException) GoString() string { + return s.String() +} + +func newErrorApplicationLimitExceededException(v protocol.ResponseMetadata) error { + return &ApplicationLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApplicationLimitExceededException) Code() string { + return "ApplicationLimitExceededException" +} + +// Message returns the exception's message. +func (s ApplicationLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApplicationLimitExceededException) OrigErr() error { + return nil +} + +func (s ApplicationLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApplicationLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApplicationLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The minimum number of required application names was not specified. +type ApplicationNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApplicationNameRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApplicationNameRequiredException) GoString() string { + return s.String() +} + +func newErrorApplicationNameRequiredException(v protocol.ResponseMetadata) error { + return &ApplicationNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApplicationNameRequiredException) Code() string { + return "ApplicationNameRequiredException" +} + +// Message returns the exception's message. +func (s ApplicationNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApplicationNameRequiredException) OrigErr() error { + return nil +} + +func (s ApplicationNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApplicationNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApplicationNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified ARN is not supported. For example, it might be an ARN for a +// resource that is not expected. +type ArnNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ArnNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ArnNotSupportedException) GoString() string { + return s.String() +} + +func newErrorArnNotSupportedException(v protocol.ResponseMetadata) error { + return &ArnNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ArnNotSupportedException) Code() string { + return "ArnNotSupportedException" +} + +// Message returns the exception's message. +func (s ArnNotSupportedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ArnNotSupportedException) OrigErr() error { + return nil +} + +func (s ArnNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ArnNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ArnNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a configuration for automatically rolling back to a previous // version of an application revision when a deployment is not completed successfully. type AutoRollbackConfiguration struct { @@ -5904,6 +6213,57 @@ func (s *BatchGetOnPremisesInstancesOutput) SetInstanceInfos(v []*InstanceInfo) return s } +// The maximum number of names or IDs allowed for this request (100) was exceeded. +type BatchLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BatchLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchLimitExceededException) GoString() string { + return s.String() +} + +func newErrorBatchLimitExceededException(v protocol.ResponseMetadata) error { + return &BatchLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BatchLimitExceededException) Code() string { + return "BatchLimitExceededException" +} + +// Message returns the exception's message. +func (s BatchLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BatchLimitExceededException) OrigErr() error { + return nil +} + +func (s BatchLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BatchLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BatchLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about blue/green deployment options for a deployment group. type BlueGreenDeploymentConfiguration struct { _ struct{} `type:"structure"` @@ -5997,6 +6357,57 @@ func (s *BlueInstanceTerminationOption) SetTerminationWaitTimeInMinutes(v int64) return s } +// A bucket name is required, but was not provided. +type BucketNameFilterRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BucketNameFilterRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BucketNameFilterRequiredException) GoString() string { + return s.String() +} + +func newErrorBucketNameFilterRequiredException(v protocol.ResponseMetadata) error { + return &BucketNameFilterRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BucketNameFilterRequiredException) Code() string { + return "BucketNameFilterRequiredException" +} + +// Message returns the exception's message. +func (s BucketNameFilterRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BucketNameFilterRequiredException) OrigErr() error { + return nil +} + +func (s BucketNameFilterRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BucketNameFilterRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BucketNameFilterRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + type ContinueDeploymentInput struct { _ struct{} `type:"structure"` @@ -6949,2282 +7360,6671 @@ func (s *DeleteGitHubAccountTokenOutput) SetTokenName(v string) *DeleteGitHubAcc return s } -// Information about a deployment configuration. -type DeploymentConfigInfo struct { - _ struct{} `type:"structure"` - - // The destination platform type for the deployment (Lambda, Server, or ECS). - ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` - - // The time at which the deployment configuration was created. - CreateTime *time.Time `locationName:"createTime" type:"timestamp"` - - // The deployment configuration ID. - DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"` - - // The deployment configuration name. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` - - // Information about the number or percentage of minimum healthy instance. - MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"` - - // The configuration that specifies how the deployment traffic is routed. Only - // deployments with a Lambda compute platform can specify this. - TrafficRoutingConfig *TrafficRoutingConfig `locationName:"trafficRoutingConfig" type:"structure"` +// The deployment is already complete. +type DeploymentAlreadyCompletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeploymentConfigInfo) String() string { +func (s DeploymentAlreadyCompletedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentConfigInfo) GoString() string { +func (s DeploymentAlreadyCompletedException) GoString() string { return s.String() } -// SetComputePlatform sets the ComputePlatform field's value. -func (s *DeploymentConfigInfo) SetComputePlatform(v string) *DeploymentConfigInfo { - s.ComputePlatform = &v - return s +func newErrorDeploymentAlreadyCompletedException(v protocol.ResponseMetadata) error { + return &DeploymentAlreadyCompletedException{ + respMetadata: v, + } } -// SetCreateTime sets the CreateTime field's value. -func (s *DeploymentConfigInfo) SetCreateTime(v time.Time) *DeploymentConfigInfo { - s.CreateTime = &v - return s +// Code returns the exception type name. +func (s DeploymentAlreadyCompletedException) Code() string { + return "DeploymentAlreadyCompletedException" } -// SetDeploymentConfigId sets the DeploymentConfigId field's value. -func (s *DeploymentConfigInfo) SetDeploymentConfigId(v string) *DeploymentConfigInfo { - s.DeploymentConfigId = &v - return s +// Message returns the exception's message. +func (s DeploymentAlreadyCompletedException) Message() string { + return "" } -// SetDeploymentConfigName sets the DeploymentConfigName field's value. -func (s *DeploymentConfigInfo) SetDeploymentConfigName(v string) *DeploymentConfigInfo { - s.DeploymentConfigName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentAlreadyCompletedException) OrigErr() error { + return nil } -// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. -func (s *DeploymentConfigInfo) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *DeploymentConfigInfo { - s.MinimumHealthyHosts = v - return s +func (s DeploymentAlreadyCompletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTrafficRoutingConfig sets the TrafficRoutingConfig field's value. -func (s *DeploymentConfigInfo) SetTrafficRoutingConfig(v *TrafficRoutingConfig) *DeploymentConfigInfo { - s.TrafficRoutingConfig = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentAlreadyCompletedException) StatusCode() int { + return s.respMetadata.StatusCode } -// Information about a deployment group. -type DeploymentGroupInfo struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s DeploymentAlreadyCompletedException) RequestID() string { + return s.respMetadata.RequestID +} - // A list of alarms associated with the deployment group. - AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"` +// A deployment configuration with the specified name with the IAM user or AWS +// account already exists . +type DeploymentConfigAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The application name. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` +// String returns the string representation +func (s DeploymentConfigAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} - // Information about the automatic rollback configuration associated with the - // deployment group. - AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` +// GoString returns the string representation +func (s DeploymentConfigAlreadyExistsException) GoString() string { + return s.String() +} - // A list of associated Auto Scaling groups. - AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"` +func newErrorDeploymentConfigAlreadyExistsException(v protocol.ResponseMetadata) error { + return &DeploymentConfigAlreadyExistsException{ + respMetadata: v, + } +} - // Information about blue/green deployment options for a deployment group. - BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` +// Code returns the exception type name. +func (s DeploymentConfigAlreadyExistsException) Code() string { + return "DeploymentConfigAlreadyExistsException" +} - // The destination platform type for the deployment (Lambda, Server, or ECS). - ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` +// Message returns the exception's message. +func (s DeploymentConfigAlreadyExistsException) Message() string { + return "" +} - // The deployment configuration name. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentConfigAlreadyExistsException) OrigErr() error { + return nil +} - // The deployment group ID. - DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` +func (s DeploymentConfigAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The deployment group name. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentConfigAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the type of deployment, either in-place or blue/green, - // you want to run and whether to route deployment traffic behind a load balancer. - DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s DeploymentConfigAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} - // The Amazon EC2 tags on which to filter. The deployment group includes EC2 - // instances with any of the specified tags. - Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` +// The deployment configuration does not exist with the IAM user or AWS account. +type DeploymentConfigDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // Information about groups of tags applied to an EC2 instance. The deployment - // group includes only EC2 instances identified by all of the tag groups. Cannot - // be used in the same call as ec2TagFilters. - Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` +// String returns the string representation +func (s DeploymentConfigDoesNotExistException) String() string { + return awsutil.Prettify(s) +} - // The target Amazon ECS services in the deployment group. This applies only - // to deployment groups that use the Amazon ECS compute platform. A target Amazon - // ECS service is specified as an Amazon ECS cluster and service name pair using - // the format :. - EcsServices []*ECSService `locationName:"ecsServices" type:"list"` +// GoString returns the string representation +func (s DeploymentConfigDoesNotExistException) GoString() string { + return s.String() +} - // Information about the most recent attempted deployment to the deployment - // group. - LastAttemptedDeployment *LastDeploymentInfo `locationName:"lastAttemptedDeployment" type:"structure"` +func newErrorDeploymentConfigDoesNotExistException(v protocol.ResponseMetadata) error { + return &DeploymentConfigDoesNotExistException{ + respMetadata: v, + } +} - // Information about the most recent successful deployment to the deployment - // group. - LastSuccessfulDeployment *LastDeploymentInfo `locationName:"lastSuccessfulDeployment" type:"structure"` +// Code returns the exception type name. +func (s DeploymentConfigDoesNotExistException) Code() string { + return "DeploymentConfigDoesNotExistException" +} - // Information about the load balancer to use in a deployment. - LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` +// Message returns the exception's message. +func (s DeploymentConfigDoesNotExistException) Message() string { + return "" +} - // The on-premises instance tags on which to filter. The deployment group includes - // on-premises instances with any of the specified tags. - OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentConfigDoesNotExistException) OrigErr() error { + return nil +} - // Information about groups of tags applied to an on-premises instance. The - // deployment group includes only on-premises instances identified by all the - // tag groups. Cannot be used in the same call as onPremisesInstanceTagFilters. - OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"` +func (s DeploymentConfigDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A service role Amazon Resource Name (ARN) that grants CodeDeploy permission - // to make calls to AWS services on your behalf. For more information, see Create - // a Service Role for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html) - // in the AWS CodeDeploy User Guide. - ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentConfigDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the deployment group's target revision, including type - // and location. - TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s DeploymentConfigDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about triggers associated with the deployment group. - TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` +// The deployment configuration is still in use. +type DeploymentConfigInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeploymentGroupInfo) String() string { +func (s DeploymentConfigInUseException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentGroupInfo) GoString() string { +func (s DeploymentConfigInUseException) GoString() string { return s.String() } -// SetAlarmConfiguration sets the AlarmConfiguration field's value. -func (s *DeploymentGroupInfo) SetAlarmConfiguration(v *AlarmConfiguration) *DeploymentGroupInfo { - s.AlarmConfiguration = v - return s +func newErrorDeploymentConfigInUseException(v protocol.ResponseMetadata) error { + return &DeploymentConfigInUseException{ + respMetadata: v, + } } -// SetApplicationName sets the ApplicationName field's value. -func (s *DeploymentGroupInfo) SetApplicationName(v string) *DeploymentGroupInfo { - s.ApplicationName = &v - return s +// Code returns the exception type name. +func (s DeploymentConfigInUseException) Code() string { + return "DeploymentConfigInUseException" } -// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. -func (s *DeploymentGroupInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentGroupInfo { - s.AutoRollbackConfiguration = v - return s +// Message returns the exception's message. +func (s DeploymentConfigInUseException) Message() string { + return "" } -// SetAutoScalingGroups sets the AutoScalingGroups field's value. -func (s *DeploymentGroupInfo) SetAutoScalingGroups(v []*AutoScalingGroup) *DeploymentGroupInfo { - s.AutoScalingGroups = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentConfigInUseException) OrigErr() error { + return nil } -// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. -func (s *DeploymentGroupInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentGroupInfo { - s.BlueGreenDeploymentConfiguration = v - return s +func (s DeploymentConfigInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetComputePlatform sets the ComputePlatform field's value. -func (s *DeploymentGroupInfo) SetComputePlatform(v string) *DeploymentGroupInfo { - s.ComputePlatform = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentConfigInUseException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetDeploymentConfigName sets the DeploymentConfigName field's value. -func (s *DeploymentGroupInfo) SetDeploymentConfigName(v string) *DeploymentGroupInfo { - s.DeploymentConfigName = &v - return s +// RequestID returns the service's response RequestID for request. +func (s DeploymentConfigInUseException) RequestID() string { + return s.respMetadata.RequestID } -// SetDeploymentGroupId sets the DeploymentGroupId field's value. -func (s *DeploymentGroupInfo) SetDeploymentGroupId(v string) *DeploymentGroupInfo { - s.DeploymentGroupId = &v - return s -} +// Information about a deployment configuration. +type DeploymentConfigInfo struct { + _ struct{} `type:"structure"` -// SetDeploymentGroupName sets the DeploymentGroupName field's value. -func (s *DeploymentGroupInfo) SetDeploymentGroupName(v string) *DeploymentGroupInfo { - s.DeploymentGroupName = &v - return s + // The destination platform type for the deployment (Lambda, Server, or ECS). + ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` + + // The time at which the deployment configuration was created. + CreateTime *time.Time `locationName:"createTime" type:"timestamp"` + + // The deployment configuration ID. + DeploymentConfigId *string `locationName:"deploymentConfigId" type:"string"` + + // The deployment configuration name. + DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + + // Information about the number or percentage of minimum healthy instance. + MinimumHealthyHosts *MinimumHealthyHosts `locationName:"minimumHealthyHosts" type:"structure"` + + // The configuration that specifies how the deployment traffic is routed. Only + // deployments with a Lambda compute platform can specify this. + TrafficRoutingConfig *TrafficRoutingConfig `locationName:"trafficRoutingConfig" type:"structure"` } -// SetDeploymentStyle sets the DeploymentStyle field's value. -func (s *DeploymentGroupInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentGroupInfo { - s.DeploymentStyle = v - return s +// String returns the string representation +func (s DeploymentConfigInfo) String() string { + return awsutil.Prettify(s) } -// SetEc2TagFilters sets the Ec2TagFilters field's value. -func (s *DeploymentGroupInfo) SetEc2TagFilters(v []*EC2TagFilter) *DeploymentGroupInfo { - s.Ec2TagFilters = v - return s +// GoString returns the string representation +func (s DeploymentConfigInfo) GoString() string { + return s.String() } -// SetEc2TagSet sets the Ec2TagSet field's value. -func (s *DeploymentGroupInfo) SetEc2TagSet(v *EC2TagSet) *DeploymentGroupInfo { - s.Ec2TagSet = v +// SetComputePlatform sets the ComputePlatform field's value. +func (s *DeploymentConfigInfo) SetComputePlatform(v string) *DeploymentConfigInfo { + s.ComputePlatform = &v return s } -// SetEcsServices sets the EcsServices field's value. -func (s *DeploymentGroupInfo) SetEcsServices(v []*ECSService) *DeploymentGroupInfo { - s.EcsServices = v +// SetCreateTime sets the CreateTime field's value. +func (s *DeploymentConfigInfo) SetCreateTime(v time.Time) *DeploymentConfigInfo { + s.CreateTime = &v return s } -// SetLastAttemptedDeployment sets the LastAttemptedDeployment field's value. -func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { - s.LastAttemptedDeployment = v +// SetDeploymentConfigId sets the DeploymentConfigId field's value. +func (s *DeploymentConfigInfo) SetDeploymentConfigId(v string) *DeploymentConfigInfo { + s.DeploymentConfigId = &v return s } -// SetLastSuccessfulDeployment sets the LastSuccessfulDeployment field's value. -func (s *DeploymentGroupInfo) SetLastSuccessfulDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { - s.LastSuccessfulDeployment = v +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentConfigInfo) SetDeploymentConfigName(v string) *DeploymentConfigInfo { + s.DeploymentConfigName = &v return s } -// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. -func (s *DeploymentGroupInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentGroupInfo { - s.LoadBalancerInfo = v +// SetMinimumHealthyHosts sets the MinimumHealthyHosts field's value. +func (s *DeploymentConfigInfo) SetMinimumHealthyHosts(v *MinimumHealthyHosts) *DeploymentConfigInfo { + s.MinimumHealthyHosts = v return s } -// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. -func (s *DeploymentGroupInfo) SetOnPremisesInstanceTagFilters(v []*TagFilter) *DeploymentGroupInfo { - s.OnPremisesInstanceTagFilters = v +// SetTrafficRoutingConfig sets the TrafficRoutingConfig field's value. +func (s *DeploymentConfigInfo) SetTrafficRoutingConfig(v *TrafficRoutingConfig) *DeploymentConfigInfo { + s.TrafficRoutingConfig = v return s } -// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. -func (s *DeploymentGroupInfo) SetOnPremisesTagSet(v *OnPremisesTagSet) *DeploymentGroupInfo { - s.OnPremisesTagSet = v - return s +// The deployment configurations limit was exceeded. +type DeploymentConfigLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetServiceRoleArn sets the ServiceRoleArn field's value. -func (s *DeploymentGroupInfo) SetServiceRoleArn(v string) *DeploymentGroupInfo { - s.ServiceRoleArn = &v - return s +// String returns the string representation +func (s DeploymentConfigLimitExceededException) String() string { + return awsutil.Prettify(s) } -// SetTargetRevision sets the TargetRevision field's value. -func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo { - s.TargetRevision = v - return s +// GoString returns the string representation +func (s DeploymentConfigLimitExceededException) GoString() string { + return s.String() } -// SetTriggerConfigurations sets the TriggerConfigurations field's value. -func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *DeploymentGroupInfo { - s.TriggerConfigurations = v - return s +func newErrorDeploymentConfigLimitExceededException(v protocol.ResponseMetadata) error { + return &DeploymentConfigLimitExceededException{ + respMetadata: v, + } } -// Information about a deployment. -type DeploymentInfo struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s DeploymentConfigLimitExceededException) Code() string { + return "DeploymentConfigLimitExceededException" +} - // Provides information about the results of a deployment, such as whether instances - // in the original environment in a blue/green deployment were not terminated. - AdditionalDeploymentStatusInfo *string `locationName:"additionalDeploymentStatusInfo" deprecated:"true" type:"string"` +// Message returns the exception's message. +func (s DeploymentConfigLimitExceededException) Message() string { + return "" +} - // The application name. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentConfigLimitExceededException) OrigErr() error { + return nil +} - // Information about the automatic rollback configuration associated with the - // deployment. - AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` +func (s DeploymentConfigLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Information about blue/green deployment options for this deployment. - BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentConfigLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} - // A timestamp that indicates when the deployment was complete. - CompleteTime *time.Time `locationName:"completeTime" type:"timestamp"` +// RequestID returns the service's response RequestID for request. +func (s DeploymentConfigLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} - // The destination platform type for the deployment (Lambda, Server, or ECS). - ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` +// The deployment configuration name was not specified. +type DeploymentConfigNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // A timestamp that indicates when the deployment was created. +// String returns the string representation +func (s DeploymentConfigNameRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentConfigNameRequiredException) GoString() string { + return s.String() +} + +func newErrorDeploymentConfigNameRequiredException(v protocol.ResponseMetadata) error { + return &DeploymentConfigNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentConfigNameRequiredException) Code() string { + return "DeploymentConfigNameRequiredException" +} + +// Message returns the exception's message. +func (s DeploymentConfigNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentConfigNameRequiredException) OrigErr() error { + return nil +} + +func (s DeploymentConfigNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentConfigNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentConfigNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The deployment with the IAM user or AWS account does not exist. +type DeploymentDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorDeploymentDoesNotExistException(v protocol.ResponseMetadata) error { + return &DeploymentDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentDoesNotExistException) Code() string { + return "DeploymentDoesNotExistException" +} + +// Message returns the exception's message. +func (s DeploymentDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentDoesNotExistException) OrigErr() error { + return nil +} + +func (s DeploymentDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// A deployment group with the specified name with the IAM user or AWS account +// already exists. +type DeploymentGroupAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentGroupAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentGroupAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorDeploymentGroupAlreadyExistsException(v protocol.ResponseMetadata) error { + return &DeploymentGroupAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentGroupAlreadyExistsException) Code() string { + return "DeploymentGroupAlreadyExistsException" +} + +// Message returns the exception's message. +func (s DeploymentGroupAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentGroupAlreadyExistsException) OrigErr() error { + return nil +} + +func (s DeploymentGroupAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentGroupAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentGroupAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The named deployment group with the IAM user or AWS account does not exist. +type DeploymentGroupDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentGroupDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentGroupDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorDeploymentGroupDoesNotExistException(v protocol.ResponseMetadata) error { + return &DeploymentGroupDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentGroupDoesNotExistException) Code() string { + return "DeploymentGroupDoesNotExistException" +} + +// Message returns the exception's message. +func (s DeploymentGroupDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentGroupDoesNotExistException) OrigErr() error { + return nil +} + +func (s DeploymentGroupDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentGroupDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentGroupDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about a deployment group. +type DeploymentGroupInfo struct { + _ struct{} `type:"structure"` + + // A list of alarms associated with the deployment group. + AlarmConfiguration *AlarmConfiguration `locationName:"alarmConfiguration" type:"structure"` + + // The application name. + ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + + // Information about the automatic rollback configuration associated with the + // deployment group. + AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` + + // A list of associated Auto Scaling groups. + AutoScalingGroups []*AutoScalingGroup `locationName:"autoScalingGroups" type:"list"` + + // Information about blue/green deployment options for a deployment group. + BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` + + // The destination platform type for the deployment (Lambda, Server, or ECS). + ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` + + // The deployment configuration name. + DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + + // The deployment group ID. + DeploymentGroupId *string `locationName:"deploymentGroupId" type:"string"` + + // The deployment group name. + DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` + + // Information about the type of deployment, either in-place or blue/green, + // you want to run and whether to route deployment traffic behind a load balancer. + DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` + + // The Amazon EC2 tags on which to filter. The deployment group includes EC2 + // instances with any of the specified tags. + Ec2TagFilters []*EC2TagFilter `locationName:"ec2TagFilters" type:"list"` + + // Information about groups of tags applied to an EC2 instance. The deployment + // group includes only EC2 instances identified by all of the tag groups. Cannot + // be used in the same call as ec2TagFilters. + Ec2TagSet *EC2TagSet `locationName:"ec2TagSet" type:"structure"` + + // The target Amazon ECS services in the deployment group. This applies only + // to deployment groups that use the Amazon ECS compute platform. A target Amazon + // ECS service is specified as an Amazon ECS cluster and service name pair using + // the format :. + EcsServices []*ECSService `locationName:"ecsServices" type:"list"` + + // Information about the most recent attempted deployment to the deployment + // group. + LastAttemptedDeployment *LastDeploymentInfo `locationName:"lastAttemptedDeployment" type:"structure"` + + // Information about the most recent successful deployment to the deployment + // group. + LastSuccessfulDeployment *LastDeploymentInfo `locationName:"lastSuccessfulDeployment" type:"structure"` + + // Information about the load balancer to use in a deployment. + LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` + + // The on-premises instance tags on which to filter. The deployment group includes + // on-premises instances with any of the specified tags. + OnPremisesInstanceTagFilters []*TagFilter `locationName:"onPremisesInstanceTagFilters" type:"list"` + + // Information about groups of tags applied to an on-premises instance. The + // deployment group includes only on-premises instances identified by all the + // tag groups. Cannot be used in the same call as onPremisesInstanceTagFilters. + OnPremisesTagSet *OnPremisesTagSet `locationName:"onPremisesTagSet" type:"structure"` + + // A service role Amazon Resource Name (ARN) that grants CodeDeploy permission + // to make calls to AWS services on your behalf. For more information, see Create + // a Service Role for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html) + // in the AWS CodeDeploy User Guide. + ServiceRoleArn *string `locationName:"serviceRoleArn" type:"string"` + + // Information about the deployment group's target revision, including type + // and location. + TargetRevision *RevisionLocation `locationName:"targetRevision" type:"structure"` + + // Information about triggers associated with the deployment group. + TriggerConfigurations []*TriggerConfig `locationName:"triggerConfigurations" type:"list"` +} + +// String returns the string representation +func (s DeploymentGroupInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentGroupInfo) GoString() string { + return s.String() +} + +// SetAlarmConfiguration sets the AlarmConfiguration field's value. +func (s *DeploymentGroupInfo) SetAlarmConfiguration(v *AlarmConfiguration) *DeploymentGroupInfo { + s.AlarmConfiguration = v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeploymentGroupInfo) SetApplicationName(v string) *DeploymentGroupInfo { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *DeploymentGroupInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentGroupInfo { + s.AutoRollbackConfiguration = v + return s +} + +// SetAutoScalingGroups sets the AutoScalingGroups field's value. +func (s *DeploymentGroupInfo) SetAutoScalingGroups(v []*AutoScalingGroup) *DeploymentGroupInfo { + s.AutoScalingGroups = v + return s +} + +// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. +func (s *DeploymentGroupInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentGroupInfo { + s.BlueGreenDeploymentConfiguration = v + return s +} + +// SetComputePlatform sets the ComputePlatform field's value. +func (s *DeploymentGroupInfo) SetComputePlatform(v string) *DeploymentGroupInfo { + s.ComputePlatform = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentGroupInfo) SetDeploymentConfigName(v string) *DeploymentGroupInfo { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupId sets the DeploymentGroupId field's value. +func (s *DeploymentGroupInfo) SetDeploymentGroupId(v string) *DeploymentGroupInfo { + s.DeploymentGroupId = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeploymentGroupInfo) SetDeploymentGroupName(v string) *DeploymentGroupInfo { + s.DeploymentGroupName = &v + return s +} + +// SetDeploymentStyle sets the DeploymentStyle field's value. +func (s *DeploymentGroupInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentGroupInfo { + s.DeploymentStyle = v + return s +} + +// SetEc2TagFilters sets the Ec2TagFilters field's value. +func (s *DeploymentGroupInfo) SetEc2TagFilters(v []*EC2TagFilter) *DeploymentGroupInfo { + s.Ec2TagFilters = v + return s +} + +// SetEc2TagSet sets the Ec2TagSet field's value. +func (s *DeploymentGroupInfo) SetEc2TagSet(v *EC2TagSet) *DeploymentGroupInfo { + s.Ec2TagSet = v + return s +} + +// SetEcsServices sets the EcsServices field's value. +func (s *DeploymentGroupInfo) SetEcsServices(v []*ECSService) *DeploymentGroupInfo { + s.EcsServices = v + return s +} + +// SetLastAttemptedDeployment sets the LastAttemptedDeployment field's value. +func (s *DeploymentGroupInfo) SetLastAttemptedDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { + s.LastAttemptedDeployment = v + return s +} + +// SetLastSuccessfulDeployment sets the LastSuccessfulDeployment field's value. +func (s *DeploymentGroupInfo) SetLastSuccessfulDeployment(v *LastDeploymentInfo) *DeploymentGroupInfo { + s.LastSuccessfulDeployment = v + return s +} + +// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. +func (s *DeploymentGroupInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentGroupInfo { + s.LoadBalancerInfo = v + return s +} + +// SetOnPremisesInstanceTagFilters sets the OnPremisesInstanceTagFilters field's value. +func (s *DeploymentGroupInfo) SetOnPremisesInstanceTagFilters(v []*TagFilter) *DeploymentGroupInfo { + s.OnPremisesInstanceTagFilters = v + return s +} + +// SetOnPremisesTagSet sets the OnPremisesTagSet field's value. +func (s *DeploymentGroupInfo) SetOnPremisesTagSet(v *OnPremisesTagSet) *DeploymentGroupInfo { + s.OnPremisesTagSet = v + return s +} + +// SetServiceRoleArn sets the ServiceRoleArn field's value. +func (s *DeploymentGroupInfo) SetServiceRoleArn(v string) *DeploymentGroupInfo { + s.ServiceRoleArn = &v + return s +} + +// SetTargetRevision sets the TargetRevision field's value. +func (s *DeploymentGroupInfo) SetTargetRevision(v *RevisionLocation) *DeploymentGroupInfo { + s.TargetRevision = v + return s +} + +// SetTriggerConfigurations sets the TriggerConfigurations field's value. +func (s *DeploymentGroupInfo) SetTriggerConfigurations(v []*TriggerConfig) *DeploymentGroupInfo { + s.TriggerConfigurations = v + return s +} + +// The deployment groups limit was exceeded. +type DeploymentGroupLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentGroupLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentGroupLimitExceededException) GoString() string { + return s.String() +} + +func newErrorDeploymentGroupLimitExceededException(v protocol.ResponseMetadata) error { + return &DeploymentGroupLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentGroupLimitExceededException) Code() string { + return "DeploymentGroupLimitExceededException" +} + +// Message returns the exception's message. +func (s DeploymentGroupLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentGroupLimitExceededException) OrigErr() error { + return nil +} + +func (s DeploymentGroupLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentGroupLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentGroupLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The deployment group name was not specified. +type DeploymentGroupNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentGroupNameRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentGroupNameRequiredException) GoString() string { + return s.String() +} + +func newErrorDeploymentGroupNameRequiredException(v protocol.ResponseMetadata) error { + return &DeploymentGroupNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentGroupNameRequiredException) Code() string { + return "DeploymentGroupNameRequiredException" +} + +// Message returns the exception's message. +func (s DeploymentGroupNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentGroupNameRequiredException) OrigErr() error { + return nil +} + +func (s DeploymentGroupNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentGroupNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentGroupNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// At least one deployment ID must be specified. +type DeploymentIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentIdRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentIdRequiredException) GoString() string { + return s.String() +} + +func newErrorDeploymentIdRequiredException(v protocol.ResponseMetadata) error { + return &DeploymentIdRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentIdRequiredException) Code() string { + return "DeploymentIdRequiredException" +} + +// Message returns the exception's message. +func (s DeploymentIdRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentIdRequiredException) OrigErr() error { + return nil +} + +func (s DeploymentIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about a deployment. +type DeploymentInfo struct { + _ struct{} `type:"structure"` + + // Provides information about the results of a deployment, such as whether instances + // in the original environment in a blue/green deployment were not terminated. + AdditionalDeploymentStatusInfo *string `locationName:"additionalDeploymentStatusInfo" deprecated:"true" type:"string"` + + // The application name. + ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + + // Information about the automatic rollback configuration associated with the + // deployment. + AutoRollbackConfiguration *AutoRollbackConfiguration `locationName:"autoRollbackConfiguration" type:"structure"` + + // Information about blue/green deployment options for this deployment. + BlueGreenDeploymentConfiguration *BlueGreenDeploymentConfiguration `locationName:"blueGreenDeploymentConfiguration" type:"structure"` + + // A timestamp that indicates when the deployment was complete. + CompleteTime *time.Time `locationName:"completeTime" type:"timestamp"` + + // The destination platform type for the deployment (Lambda, Server, or ECS). + ComputePlatform *string `locationName:"computePlatform" type:"string" enum:"ComputePlatform"` + + // A timestamp that indicates when the deployment was created. CreateTime *time.Time `locationName:"createTime" type:"timestamp"` - // The means by which the deployment was created: - // - // * user: A user created the deployment. - // - // * autoscaling: Amazon EC2 Auto Scaling created the deployment. - // - // * codeDeployRollback: A rollback process created the deployment. - Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"` + // The means by which the deployment was created: + // + // * user: A user created the deployment. + // + // * autoscaling: Amazon EC2 Auto Scaling created the deployment. + // + // * codeDeployRollback: A rollback process created the deployment. + Creator *string `locationName:"creator" type:"string" enum:"DeploymentCreator"` + + // The deployment configuration name. + DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` + + // The deployment group name. + DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // A summary of the deployment status of the instances in the deployment. + DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"` + + // Messages that contain information about the status of a deployment. + DeploymentStatusMessages []*string `locationName:"deploymentStatusMessages" type:"list"` + + // Information about the type of deployment, either in-place or blue/green, + // you want to run and whether to route deployment traffic behind a load balancer. + DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` + + // A comment about the deployment. + Description *string `locationName:"description" type:"string"` + + // Information about any error associated with this deployment. + ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"` + + // Information about how AWS CodeDeploy handles files that already exist in + // a deployment target location but weren't part of the previous successful + // deployment. + // + // * DISALLOW: The deployment fails. This is also the default behavior if + // no option is specified. + // + // * OVERWRITE: The version of the file from the application revision currently + // being deployed replaces the version already on the instance. + // + // * RETAIN: The version of the file already on the instance is kept and + // used as part of the new deployment. + FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"` + + // If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic + // deployment lifecycle event to an instance fails, then the deployment continues + // to the next deployment lifecycle event. For example, if ApplicationStop fails, + // the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, + // the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the + // deployment continues with ApplicationStop. + // + // If false or not specified, then if a lifecycle event fails during a deployment + // to an instance, that deployment fails. If deployment to that instance is + // part of an overall deployment and the number of healthy hosts is not less + // than the minimum number of healthy hosts, then a deployment to the next instance + // is attempted. + // + // During a deployment, the AWS CodeDeploy agent runs the scripts specified + // for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec + // file from the previous successful deployment. (All other scripts are run + // from the AppSpec file in the current deployment.) If one of these scripts + // contains an error and does not run successfully, the deployment can fail. + // + // If the cause of the failure is a script from the last successful deployment + // that will never run successfully, create a new deployment and use ignoreApplicationStopFailures + // to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic + // failures should be ignored. + IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` + + // Indicates whether the wait period set for the termination of instances in + // the original environment has started. Status is 'false' if the KEEP_ALIVE + // option is specified. Otherwise, 'true' as soon as the termination wait period + // starts. + InstanceTerminationWaitTimeStarted *bool `locationName:"instanceTerminationWaitTimeStarted" type:"boolean"` + + // Information about the load balancer used in the deployment. + LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` + + // Information about the application revision that was deployed to the deployment + // group before the most recent successful deployment. + PreviousRevision *RevisionLocation `locationName:"previousRevision" type:"structure"` + + // Information about the location of stored application artifacts and the service + // from which to retrieve them. + Revision *RevisionLocation `locationName:"revision" type:"structure"` + + // Information about a deployment rollback. + RollbackInfo *RollbackInfo `locationName:"rollbackInfo" type:"structure"` + + // A timestamp that indicates when the deployment was deployed to the deployment + // group. + // + // In some cases, the reported value of the start time might be later than the + // complete time. This is due to differences in the clock settings of backend + // servers that participate in the deployment process. + StartTime *time.Time `locationName:"startTime" type:"timestamp"` + + // The current state of the deployment as a whole. + Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` + + // Information about the instances that belong to the replacement environment + // in a blue/green deployment. + TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` + + // Indicates whether only instances that are not running the latest application + // revision are to be deployed to. + UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` +} + +// String returns the string representation +func (s DeploymentInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentInfo) GoString() string { + return s.String() +} + +// SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value. +func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo { + s.AdditionalDeploymentStatusInfo = &v + return s +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *DeploymentInfo) SetApplicationName(v string) *DeploymentInfo { + s.ApplicationName = &v + return s +} + +// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. +func (s *DeploymentInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentInfo { + s.AutoRollbackConfiguration = v + return s +} + +// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. +func (s *DeploymentInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentInfo { + s.BlueGreenDeploymentConfiguration = v + return s +} + +// SetCompleteTime sets the CompleteTime field's value. +func (s *DeploymentInfo) SetCompleteTime(v time.Time) *DeploymentInfo { + s.CompleteTime = &v + return s +} + +// SetComputePlatform sets the ComputePlatform field's value. +func (s *DeploymentInfo) SetComputePlatform(v string) *DeploymentInfo { + s.ComputePlatform = &v + return s +} + +// SetCreateTime sets the CreateTime field's value. +func (s *DeploymentInfo) SetCreateTime(v time.Time) *DeploymentInfo { + s.CreateTime = &v + return s +} + +// SetCreator sets the Creator field's value. +func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo { + s.Creator = &v + return s +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *DeploymentInfo) SetDeploymentConfigName(v string) *DeploymentInfo { + s.DeploymentConfigName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *DeploymentInfo) SetDeploymentGroupName(v string) *DeploymentInfo { + s.DeploymentGroupName = &v + return s +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *DeploymentInfo) SetDeploymentId(v string) *DeploymentInfo { + s.DeploymentId = &v + return s +} + +// SetDeploymentOverview sets the DeploymentOverview field's value. +func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo { + s.DeploymentOverview = v + return s +} + +// SetDeploymentStatusMessages sets the DeploymentStatusMessages field's value. +func (s *DeploymentInfo) SetDeploymentStatusMessages(v []*string) *DeploymentInfo { + s.DeploymentStatusMessages = v + return s +} + +// SetDeploymentStyle sets the DeploymentStyle field's value. +func (s *DeploymentInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentInfo { + s.DeploymentStyle = v + return s +} + +// SetDescription sets the Description field's value. +func (s *DeploymentInfo) SetDescription(v string) *DeploymentInfo { + s.Description = &v + return s +} + +// SetErrorInformation sets the ErrorInformation field's value. +func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo { + s.ErrorInformation = v + return s +} + +// SetFileExistsBehavior sets the FileExistsBehavior field's value. +func (s *DeploymentInfo) SetFileExistsBehavior(v string) *DeploymentInfo { + s.FileExistsBehavior = &v + return s +} + +// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. +func (s *DeploymentInfo) SetIgnoreApplicationStopFailures(v bool) *DeploymentInfo { + s.IgnoreApplicationStopFailures = &v + return s +} + +// SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value. +func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo { + s.InstanceTerminationWaitTimeStarted = &v + return s +} + +// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. +func (s *DeploymentInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentInfo { + s.LoadBalancerInfo = v + return s +} + +// SetPreviousRevision sets the PreviousRevision field's value. +func (s *DeploymentInfo) SetPreviousRevision(v *RevisionLocation) *DeploymentInfo { + s.PreviousRevision = v + return s +} + +// SetRevision sets the Revision field's value. +func (s *DeploymentInfo) SetRevision(v *RevisionLocation) *DeploymentInfo { + s.Revision = v + return s +} + +// SetRollbackInfo sets the RollbackInfo field's value. +func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo { + s.RollbackInfo = v + return s +} + +// SetStartTime sets the StartTime field's value. +func (s *DeploymentInfo) SetStartTime(v time.Time) *DeploymentInfo { + s.StartTime = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *DeploymentInfo) SetStatus(v string) *DeploymentInfo { + s.Status = &v + return s +} + +// SetTargetInstances sets the TargetInstances field's value. +func (s *DeploymentInfo) SetTargetInstances(v *TargetInstances) *DeploymentInfo { + s.TargetInstances = v + return s +} + +// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. +func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo { + s.UpdateOutdatedInstancesOnly = &v + return s +} + +// The deployment does not have a status of Ready and can't continue yet. +type DeploymentIsNotInReadyStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentIsNotInReadyStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentIsNotInReadyStateException) GoString() string { + return s.String() +} + +func newErrorDeploymentIsNotInReadyStateException(v protocol.ResponseMetadata) error { + return &DeploymentIsNotInReadyStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentIsNotInReadyStateException) Code() string { + return "DeploymentIsNotInReadyStateException" +} + +// Message returns the exception's message. +func (s DeploymentIsNotInReadyStateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentIsNotInReadyStateException) OrigErr() error { + return nil +} + +func (s DeploymentIsNotInReadyStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentIsNotInReadyStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentIsNotInReadyStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of allowed deployments was exceeded. +type DeploymentLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentLimitExceededException) GoString() string { + return s.String() +} + +func newErrorDeploymentLimitExceededException(v protocol.ResponseMetadata) error { + return &DeploymentLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentLimitExceededException) Code() string { + return "DeploymentLimitExceededException" +} + +// Message returns the exception's message. +func (s DeploymentLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentLimitExceededException) OrigErr() error { + return nil +} + +func (s DeploymentLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified deployment has not started. +type DeploymentNotStartedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentNotStartedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentNotStartedException) GoString() string { + return s.String() +} + +func newErrorDeploymentNotStartedException(v protocol.ResponseMetadata) error { + return &DeploymentNotStartedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentNotStartedException) Code() string { + return "DeploymentNotStartedException" +} + +// Message returns the exception's message. +func (s DeploymentNotStartedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentNotStartedException) OrigErr() error { + return nil +} + +func (s DeploymentNotStartedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentNotStartedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentNotStartedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about the deployment status of the instances in the deployment. +type DeploymentOverview struct { + _ struct{} `type:"structure"` + + // The number of instances in the deployment in a failed state. + Failed *int64 `type:"long"` + + // The number of instances in which the deployment is in progress. + InProgress *int64 `type:"long"` + + // The number of instances in the deployment in a pending state. + Pending *int64 `type:"long"` + + // The number of instances in a replacement environment ready to receive traffic + // in a blue/green deployment. + Ready *int64 `type:"long"` + + // The number of instances in the deployment in a skipped state. + Skipped *int64 `type:"long"` + + // The number of instances in the deployment to which revisions have been successfully + // deployed. + Succeeded *int64 `type:"long"` +} + +// String returns the string representation +func (s DeploymentOverview) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentOverview) GoString() string { + return s.String() +} + +// SetFailed sets the Failed field's value. +func (s *DeploymentOverview) SetFailed(v int64) *DeploymentOverview { + s.Failed = &v + return s +} + +// SetInProgress sets the InProgress field's value. +func (s *DeploymentOverview) SetInProgress(v int64) *DeploymentOverview { + s.InProgress = &v + return s +} + +// SetPending sets the Pending field's value. +func (s *DeploymentOverview) SetPending(v int64) *DeploymentOverview { + s.Pending = &v + return s +} + +// SetReady sets the Ready field's value. +func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview { + s.Ready = &v + return s +} + +// SetSkipped sets the Skipped field's value. +func (s *DeploymentOverview) SetSkipped(v int64) *DeploymentOverview { + s.Skipped = &v + return s +} + +// SetSucceeded sets the Succeeded field's value. +func (s *DeploymentOverview) SetSucceeded(v int64) *DeploymentOverview { + s.Succeeded = &v + return s +} + +// Information about how traffic is rerouted to instances in a replacement environment +// in a blue/green deployment. +type DeploymentReadyOption struct { + _ struct{} `type:"structure"` + + // Information about when to reroute traffic from an original environment to + // a replacement environment in a blue/green deployment. + // + // * CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately + // after the new application revision is installed on the instances in the + // replacement environment. + // + // * STOP_DEPLOYMENT: Do not register new instances with a load balancer + // unless traffic rerouting is started using ContinueDeployment. If traffic + // rerouting is not started before the end of the specified wait period, + // the deployment status is changed to Stopped. + ActionOnTimeout *string `locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction"` + + // The number of minutes to wait before the status of a blue/green deployment + // is changed to Stopped if rerouting is not started manually. Applies only + // to the STOP_DEPLOYMENT option for actionOnTimeout + WaitTimeInMinutes *int64 `locationName:"waitTimeInMinutes" type:"integer"` +} + +// String returns the string representation +func (s DeploymentReadyOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentReadyOption) GoString() string { + return s.String() +} + +// SetActionOnTimeout sets the ActionOnTimeout field's value. +func (s *DeploymentReadyOption) SetActionOnTimeout(v string) *DeploymentReadyOption { + s.ActionOnTimeout = &v + return s +} + +// SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value. +func (s *DeploymentReadyOption) SetWaitTimeInMinutes(v int64) *DeploymentReadyOption { + s.WaitTimeInMinutes = &v + return s +} + +// Information about the type of deployment, either in-place or blue/green, +// you want to run and whether to route deployment traffic behind a load balancer. +type DeploymentStyle struct { + _ struct{} `type:"structure"` + + // Indicates whether to route deployment traffic behind a load balancer. + DeploymentOption *string `locationName:"deploymentOption" type:"string" enum:"DeploymentOption"` + + // Indicates whether to run an in-place deployment or a blue/green deployment. + DeploymentType *string `locationName:"deploymentType" type:"string" enum:"DeploymentType"` +} + +// String returns the string representation +func (s DeploymentStyle) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentStyle) GoString() string { + return s.String() +} + +// SetDeploymentOption sets the DeploymentOption field's value. +func (s *DeploymentStyle) SetDeploymentOption(v string) *DeploymentStyle { + s.DeploymentOption = &v + return s +} + +// SetDeploymentType sets the DeploymentType field's value. +func (s *DeploymentStyle) SetDeploymentType(v string) *DeploymentStyle { + s.DeploymentType = &v + return s +} + +// Information about the deployment target. +type DeploymentTarget struct { + _ struct{} `type:"structure"` + + // The deployment type that is specific to the deployment's compute platform. + DeploymentTargetType *string `locationName:"deploymentTargetType" type:"string" enum:"DeploymentTargetType"` + + // Information about the target for a deployment that uses the Amazon ECS compute + // platform. + EcsTarget *ECSTarget `locationName:"ecsTarget" type:"structure"` + + // Information about the target for a deployment that uses the EC2/On-premises + // compute platform. + InstanceTarget *InstanceTarget `locationName:"instanceTarget" type:"structure"` + + // Information about the target for a deployment that uses the AWS Lambda compute + // platform. + LambdaTarget *LambdaTarget `locationName:"lambdaTarget" type:"structure"` +} + +// String returns the string representation +func (s DeploymentTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentTarget) GoString() string { + return s.String() +} + +// SetDeploymentTargetType sets the DeploymentTargetType field's value. +func (s *DeploymentTarget) SetDeploymentTargetType(v string) *DeploymentTarget { + s.DeploymentTargetType = &v + return s +} + +// SetEcsTarget sets the EcsTarget field's value. +func (s *DeploymentTarget) SetEcsTarget(v *ECSTarget) *DeploymentTarget { + s.EcsTarget = v + return s +} + +// SetInstanceTarget sets the InstanceTarget field's value. +func (s *DeploymentTarget) SetInstanceTarget(v *InstanceTarget) *DeploymentTarget { + s.InstanceTarget = v + return s +} + +// SetLambdaTarget sets the LambdaTarget field's value. +func (s *DeploymentTarget) SetLambdaTarget(v *LambdaTarget) *DeploymentTarget { + s.LambdaTarget = v + return s +} + +// The provided target ID does not belong to the attempted deployment. +type DeploymentTargetDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentTargetDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentTargetDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorDeploymentTargetDoesNotExistException(v protocol.ResponseMetadata) error { + return &DeploymentTargetDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentTargetDoesNotExistException) Code() string { + return "DeploymentTargetDoesNotExistException" +} + +// Message returns the exception's message. +func (s DeploymentTargetDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentTargetDoesNotExistException) OrigErr() error { + return nil +} + +func (s DeploymentTargetDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentTargetDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentTargetDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// A deployment target ID was not provided. +type DeploymentTargetIdRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentTargetIdRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentTargetIdRequiredException) GoString() string { + return s.String() +} + +func newErrorDeploymentTargetIdRequiredException(v protocol.ResponseMetadata) error { + return &DeploymentTargetIdRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentTargetIdRequiredException) Code() string { + return "DeploymentTargetIdRequiredException" +} + +// Message returns the exception's message. +func (s DeploymentTargetIdRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentTargetIdRequiredException) OrigErr() error { + return nil +} + +func (s DeploymentTargetIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentTargetIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentTargetIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of targets that can be associated with an Amazon ECS or +// AWS Lambda deployment was exceeded. The target list of both types of deployments +// must have exactly one item. This exception does not apply to EC2/On-premises +// deployments. +type DeploymentTargetListSizeExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeploymentTargetListSizeExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeploymentTargetListSizeExceededException) GoString() string { + return s.String() +} + +func newErrorDeploymentTargetListSizeExceededException(v protocol.ResponseMetadata) error { + return &DeploymentTargetListSizeExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeploymentTargetListSizeExceededException) Code() string { + return "DeploymentTargetListSizeExceededException" +} + +// Message returns the exception's message. +func (s DeploymentTargetListSizeExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeploymentTargetListSizeExceededException) OrigErr() error { + return nil +} + +func (s DeploymentTargetListSizeExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeploymentTargetListSizeExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeploymentTargetListSizeExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Represents the input of a DeregisterOnPremisesInstance operation. +type DeregisterOnPremisesInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the on-premises instance to deregister. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s DeregisterOnPremisesInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterOnPremisesInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *DeregisterOnPremisesInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *DeregisterOnPremisesInstanceInput) SetInstanceName(v string) *DeregisterOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + +type DeregisterOnPremisesInstanceOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s DeregisterOnPremisesInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeregisterOnPremisesInstanceOutput) GoString() string { + return s.String() +} + +// The description is too long. +type DescriptionTooLongException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DescriptionTooLongException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescriptionTooLongException) GoString() string { + return s.String() +} + +func newErrorDescriptionTooLongException(v protocol.ResponseMetadata) error { + return &DescriptionTooLongException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DescriptionTooLongException) Code() string { + return "DescriptionTooLongException" +} + +// Message returns the exception's message. +func (s DescriptionTooLongException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DescriptionTooLongException) OrigErr() error { + return nil +} + +func (s DescriptionTooLongException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DescriptionTooLongException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DescriptionTooLongException) RequestID() string { + return s.respMetadata.RequestID +} + +// Diagnostic information about executable scripts that are part of a deployment. +type Diagnostics struct { + _ struct{} `type:"structure"` + + // The associated error code: + // + // * Success: The specified script ran. + // + // * ScriptMissing: The specified script was not found in the specified location. + // + // * ScriptNotExecutable: The specified script is not a recognized executable + // file type. + // + // * ScriptTimedOut: The specified script did not finish running in the specified + // time period. + // + // * ScriptFailed: The specified script failed to run as expected. + // + // * UnknownError: The specified script did not run for an unknown reason. + ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"` + + // The last portion of the diagnostic log. + // + // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic + // log. + LogTail *string `locationName:"logTail" type:"string"` + + // The message associated with the error. + Message *string `locationName:"message" type:"string"` + + // The name of the script. + ScriptName *string `locationName:"scriptName" type:"string"` +} + +// String returns the string representation +func (s Diagnostics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Diagnostics) GoString() string { + return s.String() +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *Diagnostics) SetErrorCode(v string) *Diagnostics { + s.ErrorCode = &v + return s +} + +// SetLogTail sets the LogTail field's value. +func (s *Diagnostics) SetLogTail(v string) *Diagnostics { + s.LogTail = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *Diagnostics) SetMessage(v string) *Diagnostics { + s.Message = &v + return s +} + +// SetScriptName sets the ScriptName field's value. +func (s *Diagnostics) SetScriptName(v string) *Diagnostics { + s.ScriptName = &v + return s +} + +// Information about an EC2 tag filter. +type EC2TagFilter struct { + _ struct{} `type:"structure"` + + // The tag filter key. + Key *string `type:"string"` + + // The tag filter type: + // + // * KEY_ONLY: Key only. + // + // * VALUE_ONLY: Value only. + // + // * KEY_AND_VALUE: Key and value. + Type *string `type:"string" enum:"EC2TagFilterType"` + + // The tag filter value. + Value *string `type:"string"` +} + +// String returns the string representation +func (s EC2TagFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EC2TagFilter) GoString() string { + return s.String() +} + +// SetKey sets the Key field's value. +func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *EC2TagFilter) SetType(v string) *EC2TagFilter { + s.Type = &v + return s +} + +// SetValue sets the Value field's value. +func (s *EC2TagFilter) SetValue(v string) *EC2TagFilter { + s.Value = &v + return s +} + +// Information about groups of EC2 instance tags. +type EC2TagSet struct { + _ struct{} `type:"structure"` + + // A list that contains other lists of EC2 instance tag groups. For an instance + // to be included in the deployment group, it must be identified by all of the + // tag groups in the list. + Ec2TagSetList [][]*EC2TagFilter `locationName:"ec2TagSetList" type:"list"` +} + +// String returns the string representation +func (s EC2TagSet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EC2TagSet) GoString() string { + return s.String() +} + +// SetEc2TagSetList sets the Ec2TagSetList field's value. +func (s *EC2TagSet) SetEc2TagSetList(v [][]*EC2TagFilter) *EC2TagSet { + s.Ec2TagSetList = v + return s +} + +// Contains the service and cluster names used to identify an Amazon ECS deployment's +// target. +type ECSService struct { + _ struct{} `type:"structure"` + + // The name of the cluster that the Amazon ECS service is associated with. + ClusterName *string `locationName:"clusterName" type:"string"` + + // The name of the target Amazon ECS service. + ServiceName *string `locationName:"serviceName" type:"string"` +} + +// String returns the string representation +func (s ECSService) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ECSService) GoString() string { + return s.String() +} + +// SetClusterName sets the ClusterName field's value. +func (s *ECSService) SetClusterName(v string) *ECSService { + s.ClusterName = &v + return s +} + +// SetServiceName sets the ServiceName field's value. +func (s *ECSService) SetServiceName(v string) *ECSService { + s.ServiceName = &v + return s +} + +// The Amazon ECS service is associated with more than one deployment groups. +// An Amazon ECS service can be associated with only one deployment group. +type ECSServiceMappingLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ECSServiceMappingLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ECSServiceMappingLimitExceededException) GoString() string { + return s.String() +} + +func newErrorECSServiceMappingLimitExceededException(v protocol.ResponseMetadata) error { + return &ECSServiceMappingLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ECSServiceMappingLimitExceededException) Code() string { + return "ECSServiceMappingLimitExceededException" +} + +// Message returns the exception's message. +func (s ECSServiceMappingLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ECSServiceMappingLimitExceededException) OrigErr() error { + return nil +} + +func (s ECSServiceMappingLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ECSServiceMappingLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ECSServiceMappingLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about the target of an Amazon ECS deployment. +type ECSTarget struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The date and time when the target Amazon ECS application was updated by a + // deployment. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The lifecycle events of the deployment to this target Amazon ECS application. + LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` + + // The status an Amazon ECS deployment's target ECS application. + Status *string `locationName:"status" type:"string" enum:"TargetStatus"` + + // The ARN of the target. + TargetArn *string `locationName:"targetArn" type:"string"` + + // The unique ID of a deployment target that has a type of ecsTarget. + TargetId *string `locationName:"targetId" type:"string"` + + // The ECSTaskSet objects associated with the ECS target. + TaskSetsInfo []*ECSTaskSet `locationName:"taskSetsInfo" type:"list"` +} + +// String returns the string representation +func (s ECSTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ECSTarget) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *ECSTarget) SetDeploymentId(v string) *ECSTarget { + s.DeploymentId = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *ECSTarget) SetLastUpdatedAt(v time.Time) *ECSTarget { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *ECSTarget) SetLifecycleEvents(v []*LifecycleEvent) *ECSTarget { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *ECSTarget) SetStatus(v string) *ECSTarget { + s.Status = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *ECSTarget) SetTargetArn(v string) *ECSTarget { + s.TargetArn = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *ECSTarget) SetTargetId(v string) *ECSTarget { + s.TargetId = &v + return s +} + +// SetTaskSetsInfo sets the TaskSetsInfo field's value. +func (s *ECSTarget) SetTaskSetsInfo(v []*ECSTaskSet) *ECSTarget { + s.TaskSetsInfo = v + return s +} + +// Information about a set of Amazon ECS tasks in an AWS CodeDeploy 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. +// An AWS CodeDeploy application that uses the Amazon ECS compute platform deploys +// a containerized application in an Amazon ECS service as a task set. +type ECSTaskSet struct { + _ struct{} `type:"structure"` + + // The number of tasks in a task set. During a deployment that uses the Amazon + // ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set + // and uses this value to determine how many tasks to create. After the updated + // task set is created, CodeDeploy shifts traffic to the new task set. + DesiredCount *int64 `locationName:"desiredCount" type:"long"` + + // A unique ID of an ECSTaskSet. + Identifer *string `locationName:"identifer" type:"string"` + + // The number of tasks in the task set that are in the PENDING status during + // an Amazon ECS deployment. A task in the PENDING state is preparing to enter + // the RUNNING state. A task set enters the PENDING status when it launches + // for the first time, or when it is restarted after being in the STOPPED state. + PendingCount *int64 `locationName:"pendingCount" type:"long"` + + // The number of tasks in the task set that are in the RUNNING status during + // an Amazon ECS deployment. A task in the RUNNING state is running and ready + // for use. + RunningCount *int64 `locationName:"runningCount" type:"long"` + + // The status of the task set. There are three valid task set statuses: + // + // * PRIMARY: Indicates the task set is serving production traffic. + // + // * ACTIVE: Indicates the task set is not serving production traffic. + // + // * DRAINING: Indicates the tasks in the task set are being stopped and + // their corresponding targets are being deregistered from their target group. + Status *string `locationName:"status" type:"string"` + + // The target group associated with the task set. The target group is used by + // AWS CodeDeploy to manage traffic to a task set. + TargetGroup *TargetGroupInfo `locationName:"targetGroup" type:"structure"` + + // A label that identifies whether the ECS task set is an original target (BLUE) + // or a replacement target (GREEN). + TaskSetLabel *string `locationName:"taskSetLabel" type:"string" enum:"TargetLabel"` + + // The percentage of traffic served by this task set. + TrafficWeight *float64 `locationName:"trafficWeight" type:"double"` +} + +// String returns the string representation +func (s ECSTaskSet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ECSTaskSet) GoString() string { + return s.String() +} + +// SetDesiredCount sets the DesiredCount field's value. +func (s *ECSTaskSet) SetDesiredCount(v int64) *ECSTaskSet { + s.DesiredCount = &v + return s +} + +// SetIdentifer sets the Identifer field's value. +func (s *ECSTaskSet) SetIdentifer(v string) *ECSTaskSet { + s.Identifer = &v + return s +} + +// SetPendingCount sets the PendingCount field's value. +func (s *ECSTaskSet) SetPendingCount(v int64) *ECSTaskSet { + s.PendingCount = &v + return s +} + +// SetRunningCount sets the RunningCount field's value. +func (s *ECSTaskSet) SetRunningCount(v int64) *ECSTaskSet { + s.RunningCount = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *ECSTaskSet) SetStatus(v string) *ECSTaskSet { + s.Status = &v + return s +} + +// SetTargetGroup sets the TargetGroup field's value. +func (s *ECSTaskSet) SetTargetGroup(v *TargetGroupInfo) *ECSTaskSet { + s.TargetGroup = v + return s +} + +// SetTaskSetLabel sets the TaskSetLabel field's value. +func (s *ECSTaskSet) SetTaskSetLabel(v string) *ECSTaskSet { + s.TaskSetLabel = &v + return s +} + +// SetTrafficWeight sets the TrafficWeight field's value. +func (s *ECSTaskSet) SetTrafficWeight(v float64) *ECSTaskSet { + s.TrafficWeight = &v + return s +} + +// Information about a load balancer in Elastic Load Balancing to use in a deployment. +// Instances are registered directly with a load balancer, and traffic is routed +// to the load balancer. +type ELBInfo struct { + _ struct{} `type:"structure"` + + // For blue/green deployments, the name of the load balancer that is used to + // route traffic from original instances to replacement instances in a blue/green + // deployment. For in-place deployments, the name of the load balancer that + // instances are deregistered from so they are not serving traffic during a + // deployment, and then re-registered with after the deployment is complete. + Name *string `locationName:"name" type:"string"` +} + +// String returns the string representation +func (s ELBInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ELBInfo) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *ELBInfo) SetName(v string) *ELBInfo { + s.Name = &v + return s +} + +// Information about a deployment error. +type ErrorInformation struct { + _ struct{} `type:"structure"` + + // For more information, see Error Codes for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html) + // in the AWS CodeDeploy User Guide (https://docs.aws.amazon.com/codedeploy/latest/userguide). + // + // The error code: + // + // * APPLICATION_MISSING: The application was missing. This error code is + // most likely raised if the application is deleted after the deployment + // is created, but before it is started. + // + // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error + // code is most likely raised if the deployment group is deleted after the + // deployment is created, but before it is started. + // + // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be + // successfully deployed within the instance health constraints specified. + // + // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed + // within the instance health constraints specified. + // + // * IAM_ROLE_MISSING: The service role cannot be accessed. + // + // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. + // + // * INTERNAL_ERROR: There was an internal error. + // + // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to Amazon + // EC2. + // + // * NO_INSTANCES: No instances were specified, or no instances can be found. + // + // * OVER_MAX_INSTANCES: The maximum number of instances was exceeded. + // + // * THROTTLED: The operation was throttled because the calling account exceeded + // the throttling limits of one or more AWS services. + // + // * TIMEOUT: The deployment has timed out. + // + // * REVISION_MISSING: The revision ID was missing. This error code is most + // likely raised if the revision is deleted after the deployment is created, + // but before it is started. + Code *string `locationName:"code" type:"string" enum:"ErrorCode"` + + // An accompanying error message. + Message *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ErrorInformation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ErrorInformation) GoString() string { + return s.String() +} + +// SetCode sets the Code field's value. +func (s *ErrorInformation) SetCode(v string) *ErrorInformation { + s.Code = &v + return s +} + +// SetMessage sets the Message field's value. +func (s *ErrorInformation) SetMessage(v string) *ErrorInformation { + s.Message = &v + return s +} + +// Information about an application revision. +type GenericRevisionInfo struct { + _ struct{} `type:"structure"` + + // The deployment groups for which this is the current target revision. + DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` + + // A comment about the revision. + Description *string `locationName:"description" type:"string"` + + // When the revision was first used by AWS CodeDeploy. + FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp"` + + // When the revision was last used by AWS CodeDeploy. + LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp"` + + // When the revision was registered with AWS CodeDeploy. + RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` +} + +// String returns the string representation +func (s GenericRevisionInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GenericRevisionInfo) GoString() string { + return s.String() +} + +// SetDeploymentGroups sets the DeploymentGroups field's value. +func (s *GenericRevisionInfo) SetDeploymentGroups(v []*string) *GenericRevisionInfo { + s.DeploymentGroups = v + return s +} + +// SetDescription sets the Description field's value. +func (s *GenericRevisionInfo) SetDescription(v string) *GenericRevisionInfo { + s.Description = &v + return s +} + +// SetFirstUsedTime sets the FirstUsedTime field's value. +func (s *GenericRevisionInfo) SetFirstUsedTime(v time.Time) *GenericRevisionInfo { + s.FirstUsedTime = &v + return s +} + +// SetLastUsedTime sets the LastUsedTime field's value. +func (s *GenericRevisionInfo) SetLastUsedTime(v time.Time) *GenericRevisionInfo { + s.LastUsedTime = &v + return s +} + +// SetRegisterTime sets the RegisterTime field's value. +func (s *GenericRevisionInfo) SetRegisterTime(v time.Time) *GenericRevisionInfo { + s.RegisterTime = &v + return s +} + +// Represents the input of a GetApplication operation. +type GetApplicationInput struct { + _ struct{} `type:"structure"` + + // The name of an AWS CodeDeploy application associated with the IAM user or + // AWS account. + // + // ApplicationName is a required field + ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetApplicationInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApplicationInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApplicationInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} + if s.ApplicationName == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationName")) + } + if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationInput) SetApplicationName(v string) *GetApplicationInput { + s.ApplicationName = &v + return s +} + +// Represents the output of a GetApplication operation. +type GetApplicationOutput struct { + _ struct{} `type:"structure"` + + // Information about the application. + Application *ApplicationInfo `locationName:"application" type:"structure"` +} + +// String returns the string representation +func (s GetApplicationOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApplicationOutput) GoString() string { + return s.String() +} + +// SetApplication sets the Application field's value. +func (s *GetApplicationOutput) SetApplication(v *ApplicationInfo) *GetApplicationOutput { + s.Application = v + return s +} + +// Represents the input of a GetApplicationRevision operation. +type GetApplicationRevisionInput struct { + _ struct{} `type:"structure"` + + // The name of the application that corresponds to the revision. + // + // ApplicationName is a required field + ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + + // Information about the application revision to get, including type and location. + // + // Revision is a required field + Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` +} + +// String returns the string representation +func (s GetApplicationRevisionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApplicationRevisionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetApplicationRevisionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"} + if s.ApplicationName == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationName")) + } + if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + } + if s.Revision == nil { + invalidParams.Add(request.NewErrParamRequired("Revision")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationRevisionInput) SetApplicationName(v string) *GetApplicationRevisionInput { + s.ApplicationName = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *GetApplicationRevisionInput) SetRevision(v *RevisionLocation) *GetApplicationRevisionInput { + s.Revision = v + return s +} + +// Represents the output of a GetApplicationRevision operation. +type GetApplicationRevisionOutput struct { + _ struct{} `type:"structure"` + + // The name of the application that corresponds to the revision. + ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` + + // Additional information about the revision, including type and location. + Revision *RevisionLocation `locationName:"revision" type:"structure"` + + // General information about the revision. + RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"` +} + +// String returns the string representation +func (s GetApplicationRevisionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetApplicationRevisionOutput) GoString() string { + return s.String() +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *GetApplicationRevisionOutput) SetApplicationName(v string) *GetApplicationRevisionOutput { + s.ApplicationName = &v + return s +} + +// SetRevision sets the Revision field's value. +func (s *GetApplicationRevisionOutput) SetRevision(v *RevisionLocation) *GetApplicationRevisionOutput { + s.Revision = v + return s +} + +// SetRevisionInfo sets the RevisionInfo field's value. +func (s *GetApplicationRevisionOutput) SetRevisionInfo(v *GenericRevisionInfo) *GetApplicationRevisionOutput { + s.RevisionInfo = v + return s +} + +// Represents the input of a GetDeploymentConfig operation. +type GetDeploymentConfigInput struct { + _ struct{} `type:"structure"` + + // The name of a deployment configuration associated with the IAM user or AWS + // account. + // + // DeploymentConfigName is a required field + DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDeploymentConfigInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentConfigInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentConfigInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"} + if s.DeploymentConfigName == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName")) + } + if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentConfigName sets the DeploymentConfigName field's value. +func (s *GetDeploymentConfigInput) SetDeploymentConfigName(v string) *GetDeploymentConfigInput { + s.DeploymentConfigName = &v + return s +} + +// Represents the output of a GetDeploymentConfig operation. +type GetDeploymentConfigOutput struct { + _ struct{} `type:"structure"` + + // Information about the deployment configuration. + DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"` +} + +// String returns the string representation +func (s GetDeploymentConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentConfigOutput) GoString() string { + return s.String() +} + +// SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value. +func (s *GetDeploymentConfigOutput) SetDeploymentConfigInfo(v *DeploymentConfigInfo) *GetDeploymentConfigOutput { + s.DeploymentConfigInfo = v + return s +} + +// Represents the input of a GetDeploymentGroup operation. +type GetDeploymentGroupInput struct { + _ struct{} `type:"structure"` + + // The name of an AWS CodeDeploy application associated with the IAM user or + // AWS account. + // + // ApplicationName is a required field + ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` + + // The name of a deployment group for the specified application. + // + // DeploymentGroupName is a required field + DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDeploymentGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"} + if s.ApplicationName == nil { + invalidParams.Add(request.NewErrParamRequired("ApplicationName")) + } + if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) + } + if s.DeploymentGroupName == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) + } + if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetApplicationName sets the ApplicationName field's value. +func (s *GetDeploymentGroupInput) SetApplicationName(v string) *GetDeploymentGroupInput { + s.ApplicationName = &v + return s +} + +// SetDeploymentGroupName sets the DeploymentGroupName field's value. +func (s *GetDeploymentGroupInput) SetDeploymentGroupName(v string) *GetDeploymentGroupInput { + s.DeploymentGroupName = &v + return s +} + +// Represents the output of a GetDeploymentGroup operation. +type GetDeploymentGroupOutput struct { + _ struct{} `type:"structure"` + + // Information about the deployment group. + DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"` +} + +// String returns the string representation +func (s GetDeploymentGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentGroupOutput) GoString() string { + return s.String() +} + +// SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value. +func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo) *GetDeploymentGroupOutput { + s.DeploymentGroupInfo = v + return s +} + +// Represents the input of a GetDeployment operation. +type GetDeploymentInput struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment associated with the IAM user or AWS account. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDeploymentInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} + if s.DeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { + s.DeploymentId = &v + return s +} + +// Represents the input of a GetDeploymentInstance operation. +type GetDeploymentInstanceInput struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + // + // DeploymentId is a required field + DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` + + // The unique ID of an instance in the deployment group. + // + // InstanceId is a required field + InstanceId *string `locationName:"instanceId" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetDeploymentInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetDeploymentInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"} + if s.DeploymentId == nil { + invalidParams.Add(request.NewErrParamRequired("DeploymentId")) + } + if s.InstanceId == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceId")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentInstanceInput) SetDeploymentId(v string) *GetDeploymentInstanceInput { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *GetDeploymentInstanceInput) SetInstanceId(v string) *GetDeploymentInstanceInput { + s.InstanceId = &v + return s +} + +// Represents the output of a GetDeploymentInstance operation. +type GetDeploymentInstanceOutput struct { + _ struct{} `type:"structure"` + + // Information about the instance. + InstanceSummary *InstanceSummary `locationName:"instanceSummary" deprecated:"true" type:"structure"` +} + +// String returns the string representation +func (s GetDeploymentInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentInstanceOutput) GoString() string { + return s.String() +} + +// SetInstanceSummary sets the InstanceSummary field's value. +func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput { + s.InstanceSummary = v + return s +} + +// Represents the output of a GetDeployment operation. +type GetDeploymentOutput struct { + _ struct{} `type:"structure"` + + // Information about the deployment. + DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"` +} + +// String returns the string representation +func (s GetDeploymentOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentOutput) GoString() string { + return s.String() +} + +// SetDeploymentInfo sets the DeploymentInfo field's value. +func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput { + s.DeploymentInfo = v + return s +} + +type GetDeploymentTargetInput struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The unique ID of a deployment target. + TargetId *string `locationName:"targetId" type:"string"` +} + +// String returns the string representation +func (s GetDeploymentTargetInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentTargetInput) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *GetDeploymentTargetInput) SetDeploymentId(v string) *GetDeploymentTargetInput { + s.DeploymentId = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *GetDeploymentTargetInput) SetTargetId(v string) *GetDeploymentTargetInput { + s.TargetId = &v + return s +} + +type GetDeploymentTargetOutput struct { + _ struct{} `type:"structure"` + + // A deployment target that contains information about a deployment such as + // its status, lifecyle events, and when it was last updated. It also contains + // metadata about the deployment target. The deployment target metadata depends + // on the deployment target's type (instanceTarget, lambdaTarget, or ecsTarget). + DeploymentTarget *DeploymentTarget `locationName:"deploymentTarget" type:"structure"` +} + +// String returns the string representation +func (s GetDeploymentTargetOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetDeploymentTargetOutput) GoString() string { + return s.String() +} + +// SetDeploymentTarget sets the DeploymentTarget field's value. +func (s *GetDeploymentTargetOutput) SetDeploymentTarget(v *DeploymentTarget) *GetDeploymentTargetOutput { + s.DeploymentTarget = v + return s +} + +// Represents the input of a GetOnPremisesInstance operation. +type GetOnPremisesInstanceInput struct { + _ struct{} `type:"structure"` + + // The name of the on-premises instance about which to get information. + // + // InstanceName is a required field + InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +} + +// String returns the string representation +func (s GetOnPremisesInstanceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOnPremisesInstanceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *GetOnPremisesInstanceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"} + if s.InstanceName == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceName sets the InstanceName field's value. +func (s *GetOnPremisesInstanceInput) SetInstanceName(v string) *GetOnPremisesInstanceInput { + s.InstanceName = &v + return s +} + +// Represents the output of a GetOnPremisesInstance operation. +type GetOnPremisesInstanceOutput struct { + _ struct{} `type:"structure"` + + // Information about the on-premises instance. + InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"` +} + +// String returns the string representation +func (s GetOnPremisesInstanceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GetOnPremisesInstanceOutput) GoString() string { + return s.String() +} + +// SetInstanceInfo sets the InstanceInfo field's value. +func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPremisesInstanceOutput { + s.InstanceInfo = v + return s +} + +// No GitHub account connection exists with the named specified in the call. +type GitHubAccountTokenDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s GitHubAccountTokenDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GitHubAccountTokenDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorGitHubAccountTokenDoesNotExistException(v protocol.ResponseMetadata) error { + return &GitHubAccountTokenDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GitHubAccountTokenDoesNotExistException) Code() string { + return "GitHubAccountTokenDoesNotExistException" +} + +// Message returns the exception's message. +func (s GitHubAccountTokenDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GitHubAccountTokenDoesNotExistException) OrigErr() error { + return nil +} + +func (s GitHubAccountTokenDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GitHubAccountTokenDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GitHubAccountTokenDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The call is missing a required GitHub account connection name. +type GitHubAccountTokenNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s GitHubAccountTokenNameRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GitHubAccountTokenNameRequiredException) GoString() string { + return s.String() +} + +func newErrorGitHubAccountTokenNameRequiredException(v protocol.ResponseMetadata) error { + return &GitHubAccountTokenNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GitHubAccountTokenNameRequiredException) Code() string { + return "GitHubAccountTokenNameRequiredException" +} + +// Message returns the exception's message. +func (s GitHubAccountTokenNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GitHubAccountTokenNameRequiredException) OrigErr() error { + return nil +} + +func (s GitHubAccountTokenNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GitHubAccountTokenNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GitHubAccountTokenNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about the location of application artifacts stored in GitHub. +type GitHubLocation struct { + _ struct{} `type:"structure"` + + // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts + // for the application revision. + CommitId *string `locationName:"commitId" type:"string"` + + // The GitHub account and repository pair that stores a reference to the commit + // that represents the bundled artifacts for the application revision. + // + // Specified as account/repository. + Repository *string `locationName:"repository" type:"string"` +} + +// String returns the string representation +func (s GitHubLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GitHubLocation) GoString() string { + return s.String() +} + +// SetCommitId sets the CommitId field's value. +func (s *GitHubLocation) SetCommitId(v string) *GitHubLocation { + s.CommitId = &v + return s +} + +// SetRepository sets the Repository field's value. +func (s *GitHubLocation) SetRepository(v string) *GitHubLocation { + s.Repository = &v + return s +} + +// Information about the instances that belong to the replacement environment +// in a blue/green deployment. +type GreenFleetProvisioningOption struct { + _ struct{} `type:"structure"` + + // The method used to add instances to a replacement environment. + // + // * DISCOVER_EXISTING: Use instances that already exist or will be created + // manually. + // + // * COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling + // group to define and create instances in a new Auto Scaling group. + Action *string `locationName:"action" type:"string" enum:"GreenFleetProvisioningAction"` +} + +// String returns the string representation +func (s GreenFleetProvisioningOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GreenFleetProvisioningOption) GoString() string { + return s.String() +} + +// SetAction sets the Action field's value. +func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioningOption { + s.Action = &v + return s +} + +// No IAM ARN was included in the request. You must use an IAM session ARN or +// IAM user ARN in the request. +type IamArnRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IamArnRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IamArnRequiredException) GoString() string { + return s.String() +} + +func newErrorIamArnRequiredException(v protocol.ResponseMetadata) error { + return &IamArnRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IamArnRequiredException) Code() string { + return "IamArnRequiredException" +} + +// Message returns the exception's message. +func (s IamArnRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IamArnRequiredException) OrigErr() error { + return nil +} + +func (s IamArnRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IamArnRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IamArnRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request included an IAM session ARN that has already been used to register +// a different instance. +type IamSessionArnAlreadyRegisteredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IamSessionArnAlreadyRegisteredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IamSessionArnAlreadyRegisteredException) GoString() string { + return s.String() +} + +func newErrorIamSessionArnAlreadyRegisteredException(v protocol.ResponseMetadata) error { + return &IamSessionArnAlreadyRegisteredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IamSessionArnAlreadyRegisteredException) Code() string { + return "IamSessionArnAlreadyRegisteredException" +} + +// Message returns the exception's message. +func (s IamSessionArnAlreadyRegisteredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IamSessionArnAlreadyRegisteredException) OrigErr() error { + return nil +} + +func (s IamSessionArnAlreadyRegisteredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IamSessionArnAlreadyRegisteredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IamSessionArnAlreadyRegisteredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified IAM user ARN is already registered with an on-premises instance. +type IamUserArnAlreadyRegisteredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IamUserArnAlreadyRegisteredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IamUserArnAlreadyRegisteredException) GoString() string { + return s.String() +} + +func newErrorIamUserArnAlreadyRegisteredException(v protocol.ResponseMetadata) error { + return &IamUserArnAlreadyRegisteredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IamUserArnAlreadyRegisteredException) Code() string { + return "IamUserArnAlreadyRegisteredException" +} + +// Message returns the exception's message. +func (s IamUserArnAlreadyRegisteredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IamUserArnAlreadyRegisteredException) OrigErr() error { + return nil +} + +func (s IamUserArnAlreadyRegisteredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IamUserArnAlreadyRegisteredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IamUserArnAlreadyRegisteredException) RequestID() string { + return s.respMetadata.RequestID +} + +// An IAM user ARN was not specified. +type IamUserArnRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IamUserArnRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IamUserArnRequiredException) GoString() string { + return s.String() +} + +func newErrorIamUserArnRequiredException(v protocol.ResponseMetadata) error { + return &IamUserArnRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IamUserArnRequiredException) Code() string { + return "IamUserArnRequiredException" +} + +// Message returns the exception's message. +func (s IamUserArnRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IamUserArnRequiredException) OrigErr() error { + return nil +} + +func (s IamUserArnRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IamUserArnRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IamUserArnRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified instance does not exist in the deployment group. +// +// Deprecated: This exception is deprecated, use DeploymentTargetDoesNotExistException instead. +type InstanceDoesNotExistException struct { + _ struct{} `deprecated:"true" type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InstanceDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorInstanceDoesNotExistException(v protocol.ResponseMetadata) error { + return &InstanceDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InstanceDoesNotExistException) Code() string { + return "InstanceDoesNotExistException" +} + +// Message returns the exception's message. +func (s InstanceDoesNotExistException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InstanceDoesNotExistException) OrigErr() error { + return nil +} + +func (s InstanceDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InstanceDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InstanceDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The instance ID was not specified. +// +// Deprecated: This exception is deprecated, use DeploymentTargetIdRequiredException instead. +type InstanceIdRequiredException struct { + _ struct{} `deprecated:"true" type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InstanceIdRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceIdRequiredException) GoString() string { + return s.String() +} + +func newErrorInstanceIdRequiredException(v protocol.ResponseMetadata) error { + return &InstanceIdRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InstanceIdRequiredException) Code() string { + return "InstanceIdRequiredException" +} + +// Message returns the exception's message. +func (s InstanceIdRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InstanceIdRequiredException) OrigErr() error { + return nil +} + +func (s InstanceIdRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InstanceIdRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InstanceIdRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about an on-premises instance. +type InstanceInfo struct { + _ struct{} `type:"structure"` + + // If the on-premises instance was deregistered, the time at which the on-premises + // instance was deregistered. + DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp"` + + // The ARN of the IAM session associated with the on-premises instance. + IamSessionArn *string `locationName:"iamSessionArn" type:"string"` + + // The IAM user ARN associated with the on-premises instance. + IamUserArn *string `locationName:"iamUserArn" type:"string"` + + // The ARN of the on-premises instance. + InstanceArn *string `locationName:"instanceArn" type:"string"` + + // The name of the on-premises instance. + InstanceName *string `locationName:"instanceName" type:"string"` + + // The time at which the on-premises instance was registered. + RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` + + // The tags currently associated with the on-premises instance. + Tags []*Tag `locationName:"tags" type:"list"` +} + +// String returns the string representation +func (s InstanceInfo) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceInfo) GoString() string { + return s.String() +} + +// SetDeregisterTime sets the DeregisterTime field's value. +func (s *InstanceInfo) SetDeregisterTime(v time.Time) *InstanceInfo { + s.DeregisterTime = &v + return s +} + +// SetIamSessionArn sets the IamSessionArn field's value. +func (s *InstanceInfo) SetIamSessionArn(v string) *InstanceInfo { + s.IamSessionArn = &v + return s +} + +// SetIamUserArn sets the IamUserArn field's value. +func (s *InstanceInfo) SetIamUserArn(v string) *InstanceInfo { + s.IamUserArn = &v + return s +} + +// SetInstanceArn sets the InstanceArn field's value. +func (s *InstanceInfo) SetInstanceArn(v string) *InstanceInfo { + s.InstanceArn = &v + return s +} + +// SetInstanceName sets the InstanceName field's value. +func (s *InstanceInfo) SetInstanceName(v string) *InstanceInfo { + s.InstanceName = &v + return s +} + +// SetRegisterTime sets the RegisterTime field's value. +func (s *InstanceInfo) SetRegisterTime(v time.Time) *InstanceInfo { + s.RegisterTime = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo { + s.Tags = v + return s +} + +// The maximum number of allowed on-premises instances in a single call was +// exceeded. +type InstanceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InstanceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorInstanceLimitExceededException(v protocol.ResponseMetadata) error { + return &InstanceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InstanceLimitExceededException) Code() string { + return "InstanceLimitExceededException" +} + +// Message returns the exception's message. +func (s InstanceLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InstanceLimitExceededException) OrigErr() error { + return nil +} + +func (s InstanceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InstanceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InstanceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified on-premises instance name is already registered. +type InstanceNameAlreadyRegisteredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InstanceNameAlreadyRegisteredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceNameAlreadyRegisteredException) GoString() string { + return s.String() +} + +func newErrorInstanceNameAlreadyRegisteredException(v protocol.ResponseMetadata) error { + return &InstanceNameAlreadyRegisteredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InstanceNameAlreadyRegisteredException) Code() string { + return "InstanceNameAlreadyRegisteredException" +} + +// Message returns the exception's message. +func (s InstanceNameAlreadyRegisteredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InstanceNameAlreadyRegisteredException) OrigErr() error { + return nil +} + +func (s InstanceNameAlreadyRegisteredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InstanceNameAlreadyRegisteredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InstanceNameAlreadyRegisteredException) RequestID() string { + return s.respMetadata.RequestID +} + +// An on-premises instance name was not specified. +type InstanceNameRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InstanceNameRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceNameRequiredException) GoString() string { + return s.String() +} + +func newErrorInstanceNameRequiredException(v protocol.ResponseMetadata) error { + return &InstanceNameRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InstanceNameRequiredException) Code() string { + return "InstanceNameRequiredException" +} + +// Message returns the exception's message. +func (s InstanceNameRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InstanceNameRequiredException) OrigErr() error { + return nil +} + +func (s InstanceNameRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InstanceNameRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InstanceNameRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified on-premises instance is not registered. +type InstanceNotRegisteredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InstanceNotRegisteredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceNotRegisteredException) GoString() string { + return s.String() +} + +func newErrorInstanceNotRegisteredException(v protocol.ResponseMetadata) error { + return &InstanceNotRegisteredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InstanceNotRegisteredException) Code() string { + return "InstanceNotRegisteredException" +} + +// Message returns the exception's message. +func (s InstanceNotRegisteredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InstanceNotRegisteredException) OrigErr() error { + return nil +} + +func (s InstanceNotRegisteredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InstanceNotRegisteredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InstanceNotRegisteredException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about an instance in a deployment. +// +// Deprecated: InstanceSummary is deprecated, use DeploymentTarget instead. +type InstanceSummary struct { + _ struct{} `deprecated:"true" type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // The instance ID. + InstanceId *string `locationName:"instanceId" type:"string"` + + // Information about which environment an instance belongs to in a blue/green + // deployment. + // + // * BLUE: The instance is part of the original environment. + // + // * GREEN: The instance is part of the replacement environment. + InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` + + // A timestamp that indicaties when the instance information was last updated. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // A list of lifecycle events for this instance. + LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` + + // The deployment status for this instance: + // + // * Pending: The deployment is pending for this instance. + // + // * In Progress: The deployment is in progress for this instance. + // + // * Succeeded: The deployment has succeeded for this instance. + // + // * Failed: The deployment has failed for this instance. + // + // * Skipped: The deployment has been skipped for this instance. + // + // * Unknown: The deployment status is unknown for this instance. + Status *string `locationName:"status" deprecated:"true" type:"string" enum:"InstanceStatus"` +} + +// String returns the string representation +func (s InstanceSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceSummary) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *InstanceSummary) SetDeploymentId(v string) *InstanceSummary { + s.DeploymentId = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstanceSummary) SetInstanceId(v string) *InstanceSummary { + s.InstanceId = &v + return s +} + +// SetInstanceType sets the InstanceType field's value. +func (s *InstanceSummary) SetInstanceType(v string) *InstanceSummary { + s.InstanceType = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *InstanceSummary) SetLastUpdatedAt(v time.Time) *InstanceSummary { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *InstanceSummary) SetLifecycleEvents(v []*LifecycleEvent) *InstanceSummary { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceSummary) SetStatus(v string) *InstanceSummary { + s.Status = &v + return s +} + +// A target Amazon EC2 or on-premises instance during a deployment that uses +// the EC2/On-premises compute platform. +type InstanceTarget struct { + _ struct{} `type:"structure"` + + // The unique ID of a deployment. + DeploymentId *string `locationName:"deploymentId" type:"string"` + + // A label that identifies whether the instance is an original target (BLUE) + // or a replacement target (GREEN). + InstanceLabel *string `locationName:"instanceLabel" type:"string" enum:"TargetLabel"` + + // The date and time when the target instance was updated by a deployment. + LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` + + // The lifecycle events of the deployment to this target instance. + LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` + + // The status an EC2/On-premises deployment's target instance. + Status *string `locationName:"status" type:"string" enum:"TargetStatus"` + + // The ARN of the target. + TargetArn *string `locationName:"targetArn" type:"string"` + + // The unique ID of a deployment target that has a type of instanceTarget. + TargetId *string `locationName:"targetId" type:"string"` +} + +// String returns the string representation +func (s InstanceTarget) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceTarget) GoString() string { + return s.String() +} + +// SetDeploymentId sets the DeploymentId field's value. +func (s *InstanceTarget) SetDeploymentId(v string) *InstanceTarget { + s.DeploymentId = &v + return s +} + +// SetInstanceLabel sets the InstanceLabel field's value. +func (s *InstanceTarget) SetInstanceLabel(v string) *InstanceTarget { + s.InstanceLabel = &v + return s +} + +// SetLastUpdatedAt sets the LastUpdatedAt field's value. +func (s *InstanceTarget) SetLastUpdatedAt(v time.Time) *InstanceTarget { + s.LastUpdatedAt = &v + return s +} + +// SetLifecycleEvents sets the LifecycleEvents field's value. +func (s *InstanceTarget) SetLifecycleEvents(v []*LifecycleEvent) *InstanceTarget { + s.LifecycleEvents = v + return s +} + +// SetStatus sets the Status field's value. +func (s *InstanceTarget) SetStatus(v string) *InstanceTarget { + s.Status = &v + return s +} + +// SetTargetArn sets the TargetArn field's value. +func (s *InstanceTarget) SetTargetArn(v string) *InstanceTarget { + s.TargetArn = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *InstanceTarget) SetTargetId(v string) *InstanceTarget { + s.TargetId = &v + return s +} + +// The format of the alarm configuration is invalid. Possible causes include: +// +// * The alarm list is null. +// +// * The alarm object is null. +// +// * The alarm name is empty or null or exceeds the limit of 255 characters. +// +// * Two alarms with the same name have been specified. +// +// * The alarm configuration is enabled, but the alarm list is empty. +type InvalidAlarmConfigException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidAlarmConfigException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAlarmConfigException) GoString() string { + return s.String() +} + +func newErrorInvalidAlarmConfigException(v protocol.ResponseMetadata) error { + return &InvalidAlarmConfigException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAlarmConfigException) Code() string { + return "InvalidAlarmConfigException" +} + +// Message returns the exception's message. +func (s InvalidAlarmConfigException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAlarmConfigException) OrigErr() error { + return nil +} + +func (s InvalidAlarmConfigException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAlarmConfigException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAlarmConfigException) RequestID() string { + return s.respMetadata.RequestID +} + +// The application name was specified in an invalid format. +type InvalidApplicationNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidApplicationNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApplicationNameException) GoString() string { + return s.String() +} + +func newErrorInvalidApplicationNameException(v protocol.ResponseMetadata) error { + return &InvalidApplicationNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApplicationNameException) Code() string { + return "InvalidApplicationNameException" +} + +// Message returns the exception's message. +func (s InvalidApplicationNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApplicationNameException) OrigErr() error { + return nil +} + +func (s InvalidApplicationNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApplicationNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApplicationNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified ARN is not in a valid format. +type InvalidArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArnException) GoString() string { + return s.String() +} + +func newErrorInvalidArnException(v protocol.ResponseMetadata) error { + return &InvalidArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArnException) Code() string { + return "InvalidArnException" +} + +// Message returns the exception's message. +func (s InvalidArnException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArnException) OrigErr() error { + return nil +} + +func (s InvalidArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// The automatic rollback configuration was specified in an invalid format. +// For example, automatic rollback is enabled, but an invalid triggering event +// type or no event types were listed. +type InvalidAutoRollbackConfigException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidAutoRollbackConfigException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAutoRollbackConfigException) GoString() string { + return s.String() +} + +func newErrorInvalidAutoRollbackConfigException(v protocol.ResponseMetadata) error { + return &InvalidAutoRollbackConfigException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAutoRollbackConfigException) Code() string { + return "InvalidAutoRollbackConfigException" +} + +// Message returns the exception's message. +func (s InvalidAutoRollbackConfigException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAutoRollbackConfigException) OrigErr() error { + return nil +} + +func (s InvalidAutoRollbackConfigException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAutoRollbackConfigException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAutoRollbackConfigException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Auto Scaling group was specified in an invalid format or does not exist. +type InvalidAutoScalingGroupException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidAutoScalingGroupException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAutoScalingGroupException) GoString() string { + return s.String() +} + +func newErrorInvalidAutoScalingGroupException(v protocol.ResponseMetadata) error { + return &InvalidAutoScalingGroupException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAutoScalingGroupException) Code() string { + return "InvalidAutoScalingGroupException" +} + +// Message returns the exception's message. +func (s InvalidAutoScalingGroupException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAutoScalingGroupException) OrigErr() error { + return nil +} + +func (s InvalidAutoScalingGroupException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAutoScalingGroupException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAutoScalingGroupException) RequestID() string { + return s.respMetadata.RequestID +} + +// The configuration for the blue/green deployment group was provided in an +// invalid format. For information about deployment configuration format, see +// CreateDeploymentConfig. +type InvalidBlueGreenDeploymentConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidBlueGreenDeploymentConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidBlueGreenDeploymentConfigurationException) GoString() string { + return s.String() +} + +func newErrorInvalidBlueGreenDeploymentConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidBlueGreenDeploymentConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidBlueGreenDeploymentConfigurationException) Code() string { + return "InvalidBlueGreenDeploymentConfigurationException" +} + +// Message returns the exception's message. +func (s InvalidBlueGreenDeploymentConfigurationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidBlueGreenDeploymentConfigurationException) OrigErr() error { + return nil +} + +func (s InvalidBlueGreenDeploymentConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidBlueGreenDeploymentConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidBlueGreenDeploymentConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The bucket name either doesn't exist or was specified in an invalid format. +type InvalidBucketNameFilterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidBucketNameFilterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidBucketNameFilterException) GoString() string { + return s.String() +} + +func newErrorInvalidBucketNameFilterException(v protocol.ResponseMetadata) error { + return &InvalidBucketNameFilterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidBucketNameFilterException) Code() string { + return "InvalidBucketNameFilterException" +} + +// Message returns the exception's message. +func (s InvalidBucketNameFilterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidBucketNameFilterException) OrigErr() error { + return nil +} + +func (s InvalidBucketNameFilterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidBucketNameFilterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidBucketNameFilterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The computePlatform is invalid. The computePlatform should be Lambda or Server. +type InvalidComputePlatformException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidComputePlatformException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidComputePlatformException) GoString() string { + return s.String() +} + +func newErrorInvalidComputePlatformException(v protocol.ResponseMetadata) error { + return &InvalidComputePlatformException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidComputePlatformException) Code() string { + return "InvalidComputePlatformException" +} + +// Message returns the exception's message. +func (s InvalidComputePlatformException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidComputePlatformException) OrigErr() error { + return nil +} + +func (s InvalidComputePlatformException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidComputePlatformException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidComputePlatformException) RequestID() string { + return s.respMetadata.RequestID +} + +// The deployed state filter was specified in an invalid format. +type InvalidDeployedStateFilterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDeployedStateFilterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeployedStateFilterException) GoString() string { + return s.String() +} + +func newErrorInvalidDeployedStateFilterException(v protocol.ResponseMetadata) error { + return &InvalidDeployedStateFilterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeployedStateFilterException) Code() string { + return "InvalidDeployedStateFilterException" +} + +// Message returns the exception's message. +func (s InvalidDeployedStateFilterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeployedStateFilterException) OrigErr() error { + return nil +} + +func (s InvalidDeployedStateFilterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeployedStateFilterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeployedStateFilterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The deployment configuration name was specified in an invalid format. +type InvalidDeploymentConfigNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDeploymentConfigNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeploymentConfigNameException) GoString() string { + return s.String() +} + +func newErrorInvalidDeploymentConfigNameException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentConfigNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeploymentConfigNameException) Code() string { + return "InvalidDeploymentConfigNameException" +} + +// Message returns the exception's message. +func (s InvalidDeploymentConfigNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentConfigNameException) OrigErr() error { + return nil +} + +func (s InvalidDeploymentConfigNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentConfigNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentConfigNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The deployment group name was specified in an invalid format. +type InvalidDeploymentGroupNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDeploymentGroupNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeploymentGroupNameException) GoString() string { + return s.String() +} + +func newErrorInvalidDeploymentGroupNameException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentGroupNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeploymentGroupNameException) Code() string { + return "InvalidDeploymentGroupNameException" +} + +// Message returns the exception's message. +func (s InvalidDeploymentGroupNameException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentGroupNameException) OrigErr() error { + return nil +} + +func (s InvalidDeploymentGroupNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentGroupNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentGroupNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// At least one of the deployment IDs was specified in an invalid format. +type InvalidDeploymentIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDeploymentIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeploymentIdException) GoString() string { + return s.String() +} + +func newErrorInvalidDeploymentIdException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeploymentIdException) Code() string { + return "InvalidDeploymentIdException" +} + +// Message returns the exception's message. +func (s InvalidDeploymentIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentIdException) OrigErr() error { + return nil +} + +func (s InvalidDeploymentIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// An instance type was specified for an in-place deployment. Instance types +// are supported for blue/green deployments only. +type InvalidDeploymentInstanceTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDeploymentInstanceTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeploymentInstanceTypeException) GoString() string { + return s.String() +} + +func newErrorInvalidDeploymentInstanceTypeException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentInstanceTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeploymentInstanceTypeException) Code() string { + return "InvalidDeploymentInstanceTypeException" +} + +// Message returns the exception's message. +func (s InvalidDeploymentInstanceTypeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentInstanceTypeException) OrigErr() error { + return nil +} + +func (s InvalidDeploymentInstanceTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentInstanceTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentInstanceTypeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified deployment status doesn't exist or cannot be determined. +type InvalidDeploymentStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidDeploymentStatusException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeploymentStatusException) GoString() string { + return s.String() +} - // The deployment configuration name. - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string"` +func newErrorInvalidDeploymentStatusException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentStatusException{ + respMetadata: v, + } +} - // The deployment group name. - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string"` +// Code returns the exception type name. +func (s InvalidDeploymentStatusException) Code() string { + return "InvalidDeploymentStatusException" +} - // The unique ID of a deployment. - DeploymentId *string `locationName:"deploymentId" type:"string"` +// Message returns the exception's message. +func (s InvalidDeploymentStatusException) Message() string { + return "" +} - // A summary of the deployment status of the instances in the deployment. - DeploymentOverview *DeploymentOverview `locationName:"deploymentOverview" type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentStatusException) OrigErr() error { + return nil +} - // Messages that contain information about the status of a deployment. - DeploymentStatusMessages []*string `locationName:"deploymentStatusMessages" type:"list"` +func (s InvalidDeploymentStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Information about the type of deployment, either in-place or blue/green, - // you want to run and whether to route deployment traffic behind a load balancer. - DeploymentStyle *DeploymentStyle `locationName:"deploymentStyle" type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} - // A comment about the deployment. - Description *string `locationName:"description" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentStatusException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about any error associated with this deployment. - ErrorInformation *ErrorInformation `locationName:"errorInformation" type:"structure"` +// An invalid deployment style was specified. Valid deployment types include +// "IN_PLACE" and "BLUE_GREEN." Valid deployment options include "WITH_TRAFFIC_CONTROL" +// and "WITHOUT_TRAFFIC_CONTROL." +type InvalidDeploymentStyleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // Information about how AWS CodeDeploy handles files that already exist in - // a deployment target location but weren't part of the previous successful - // deployment. - // - // * DISALLOW: The deployment fails. This is also the default behavior if - // no option is specified. - // - // * OVERWRITE: The version of the file from the application revision currently - // being deployed replaces the version already on the instance. - // - // * RETAIN: The version of the file already on the instance is kept and - // used as part of the new deployment. - FileExistsBehavior *string `locationName:"fileExistsBehavior" type:"string" enum:"FileExistsBehavior"` +// String returns the string representation +func (s InvalidDeploymentStyleException) String() string { + return awsutil.Prettify(s) +} - // If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic - // deployment lifecycle event to an instance fails, then the deployment continues - // to the next deployment lifecycle event. For example, if ApplicationStop fails, - // the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, - // the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the - // deployment continues with ApplicationStop. - // - // If false or not specified, then if a lifecycle event fails during a deployment - // to an instance, that deployment fails. If deployment to that instance is - // part of an overall deployment and the number of healthy hosts is not less - // than the minimum number of healthy hosts, then a deployment to the next instance - // is attempted. - // - // During a deployment, the AWS CodeDeploy agent runs the scripts specified - // for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec - // file from the previous successful deployment. (All other scripts are run - // from the AppSpec file in the current deployment.) If one of these scripts - // contains an error and does not run successfully, the deployment can fail. - // - // If the cause of the failure is a script from the last successful deployment - // that will never run successfully, create a new deployment and use ignoreApplicationStopFailures - // to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic - // failures should be ignored. - IgnoreApplicationStopFailures *bool `locationName:"ignoreApplicationStopFailures" type:"boolean"` +// GoString returns the string representation +func (s InvalidDeploymentStyleException) GoString() string { + return s.String() +} - // Indicates whether the wait period set for the termination of instances in - // the original environment has started. Status is 'false' if the KEEP_ALIVE - // option is specified. Otherwise, 'true' as soon as the termination wait period - // starts. - InstanceTerminationWaitTimeStarted *bool `locationName:"instanceTerminationWaitTimeStarted" type:"boolean"` +func newErrorInvalidDeploymentStyleException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentStyleException{ + respMetadata: v, + } +} - // Information about the load balancer used in the deployment. - LoadBalancerInfo *LoadBalancerInfo `locationName:"loadBalancerInfo" type:"structure"` +// Code returns the exception type name. +func (s InvalidDeploymentStyleException) Code() string { + return "InvalidDeploymentStyleException" +} - // Information about the application revision that was deployed to the deployment - // group before the most recent successful deployment. - PreviousRevision *RevisionLocation `locationName:"previousRevision" type:"structure"` +// Message returns the exception's message. +func (s InvalidDeploymentStyleException) Message() string { + return "" +} - // Information about the location of stored application artifacts and the service - // from which to retrieve them. - Revision *RevisionLocation `locationName:"revision" type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentStyleException) OrigErr() error { + return nil +} - // Information about a deployment rollback. - RollbackInfo *RollbackInfo `locationName:"rollbackInfo" type:"structure"` +func (s InvalidDeploymentStyleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A timestamp that indicates when the deployment was deployed to the deployment - // group. - // - // In some cases, the reported value of the start time might be later than the - // complete time. This is due to differences in the clock settings of backend - // servers that participate in the deployment process. - StartTime *time.Time `locationName:"startTime" type:"timestamp"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentStyleException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The current state of the deployment as a whole. - Status *string `locationName:"status" type:"string" enum:"DeploymentStatus"` +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentStyleException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about the instances that belong to the replacement environment - // in a blue/green deployment. - TargetInstances *TargetInstances `locationName:"targetInstances" type:"structure"` +// The target ID provided was not valid. +type InvalidDeploymentTargetIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // Indicates whether only instances that are not running the latest application - // revision are to be deployed to. - UpdateOutdatedInstancesOnly *bool `locationName:"updateOutdatedInstancesOnly" type:"boolean"` +// String returns the string representation +func (s InvalidDeploymentTargetIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeploymentTargetIdException) GoString() string { + return s.String() +} + +func newErrorInvalidDeploymentTargetIdException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentTargetIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeploymentTargetIdException) Code() string { + return "InvalidDeploymentTargetIdException" +} + +// Message returns the exception's message. +func (s InvalidDeploymentTargetIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentTargetIdException) OrigErr() error { + return nil +} + +func (s InvalidDeploymentTargetIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentTargetIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentTargetIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The wait type is invalid. +type InvalidDeploymentWaitTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeploymentInfo) String() string { +func (s InvalidDeploymentWaitTypeException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentInfo) GoString() string { +func (s InvalidDeploymentWaitTypeException) GoString() string { return s.String() } -// SetAdditionalDeploymentStatusInfo sets the AdditionalDeploymentStatusInfo field's value. -func (s *DeploymentInfo) SetAdditionalDeploymentStatusInfo(v string) *DeploymentInfo { - s.AdditionalDeploymentStatusInfo = &v - return s +func newErrorInvalidDeploymentWaitTypeException(v protocol.ResponseMetadata) error { + return &InvalidDeploymentWaitTypeException{ + respMetadata: v, + } } -// SetApplicationName sets the ApplicationName field's value. -func (s *DeploymentInfo) SetApplicationName(v string) *DeploymentInfo { - s.ApplicationName = &v - return s +// Code returns the exception type name. +func (s InvalidDeploymentWaitTypeException) Code() string { + return "InvalidDeploymentWaitTypeException" } -// SetAutoRollbackConfiguration sets the AutoRollbackConfiguration field's value. -func (s *DeploymentInfo) SetAutoRollbackConfiguration(v *AutoRollbackConfiguration) *DeploymentInfo { - s.AutoRollbackConfiguration = v - return s +// Message returns the exception's message. +func (s InvalidDeploymentWaitTypeException) Message() string { + return "" } -// SetBlueGreenDeploymentConfiguration sets the BlueGreenDeploymentConfiguration field's value. -func (s *DeploymentInfo) SetBlueGreenDeploymentConfiguration(v *BlueGreenDeploymentConfiguration) *DeploymentInfo { - s.BlueGreenDeploymentConfiguration = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeploymentWaitTypeException) OrigErr() error { + return nil } -// SetCompleteTime sets the CompleteTime field's value. -func (s *DeploymentInfo) SetCompleteTime(v time.Time) *DeploymentInfo { - s.CompleteTime = &v - return s +func (s InvalidDeploymentWaitTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetComputePlatform sets the ComputePlatform field's value. -func (s *DeploymentInfo) SetComputePlatform(v string) *DeploymentInfo { - s.ComputePlatform = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeploymentWaitTypeException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetCreateTime sets the CreateTime field's value. -func (s *DeploymentInfo) SetCreateTime(v time.Time) *DeploymentInfo { - s.CreateTime = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidDeploymentWaitTypeException) RequestID() string { + return s.respMetadata.RequestID } -// SetCreator sets the Creator field's value. -func (s *DeploymentInfo) SetCreator(v string) *DeploymentInfo { - s.Creator = &v - return s +// A call was submitted that specified both Ec2TagFilters and Ec2TagSet, but +// only one of these data types can be used in a single call. +type InvalidEC2TagCombinationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetDeploymentConfigName sets the DeploymentConfigName field's value. -func (s *DeploymentInfo) SetDeploymentConfigName(v string) *DeploymentInfo { - s.DeploymentConfigName = &v - return s +// String returns the string representation +func (s InvalidEC2TagCombinationException) String() string { + return awsutil.Prettify(s) } -// SetDeploymentGroupName sets the DeploymentGroupName field's value. -func (s *DeploymentInfo) SetDeploymentGroupName(v string) *DeploymentInfo { - s.DeploymentGroupName = &v - return s +// GoString returns the string representation +func (s InvalidEC2TagCombinationException) GoString() string { + return s.String() } -// SetDeploymentId sets the DeploymentId field's value. -func (s *DeploymentInfo) SetDeploymentId(v string) *DeploymentInfo { - s.DeploymentId = &v - return s +func newErrorInvalidEC2TagCombinationException(v protocol.ResponseMetadata) error { + return &InvalidEC2TagCombinationException{ + respMetadata: v, + } } -// SetDeploymentOverview sets the DeploymentOverview field's value. -func (s *DeploymentInfo) SetDeploymentOverview(v *DeploymentOverview) *DeploymentInfo { - s.DeploymentOverview = v - return s +// Code returns the exception type name. +func (s InvalidEC2TagCombinationException) Code() string { + return "InvalidEC2TagCombinationException" } -// SetDeploymentStatusMessages sets the DeploymentStatusMessages field's value. -func (s *DeploymentInfo) SetDeploymentStatusMessages(v []*string) *DeploymentInfo { - s.DeploymentStatusMessages = v - return s +// Message returns the exception's message. +func (s InvalidEC2TagCombinationException) Message() string { + return "" } -// SetDeploymentStyle sets the DeploymentStyle field's value. -func (s *DeploymentInfo) SetDeploymentStyle(v *DeploymentStyle) *DeploymentInfo { - s.DeploymentStyle = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEC2TagCombinationException) OrigErr() error { + return nil } -// SetDescription sets the Description field's value. -func (s *DeploymentInfo) SetDescription(v string) *DeploymentInfo { - s.Description = &v - return s +func (s InvalidEC2TagCombinationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetErrorInformation sets the ErrorInformation field's value. -func (s *DeploymentInfo) SetErrorInformation(v *ErrorInformation) *DeploymentInfo { - s.ErrorInformation = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEC2TagCombinationException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetFileExistsBehavior sets the FileExistsBehavior field's value. -func (s *DeploymentInfo) SetFileExistsBehavior(v string) *DeploymentInfo { - s.FileExistsBehavior = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidEC2TagCombinationException) RequestID() string { + return s.respMetadata.RequestID } -// SetIgnoreApplicationStopFailures sets the IgnoreApplicationStopFailures field's value. -func (s *DeploymentInfo) SetIgnoreApplicationStopFailures(v bool) *DeploymentInfo { - s.IgnoreApplicationStopFailures = &v - return s +// The tag was specified in an invalid format. +type InvalidEC2TagException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetInstanceTerminationWaitTimeStarted sets the InstanceTerminationWaitTimeStarted field's value. -func (s *DeploymentInfo) SetInstanceTerminationWaitTimeStarted(v bool) *DeploymentInfo { - s.InstanceTerminationWaitTimeStarted = &v - return s +// String returns the string representation +func (s InvalidEC2TagException) String() string { + return awsutil.Prettify(s) } -// SetLoadBalancerInfo sets the LoadBalancerInfo field's value. -func (s *DeploymentInfo) SetLoadBalancerInfo(v *LoadBalancerInfo) *DeploymentInfo { - s.LoadBalancerInfo = v - return s +// GoString returns the string representation +func (s InvalidEC2TagException) GoString() string { + return s.String() } -// SetPreviousRevision sets the PreviousRevision field's value. -func (s *DeploymentInfo) SetPreviousRevision(v *RevisionLocation) *DeploymentInfo { - s.PreviousRevision = v - return s +func newErrorInvalidEC2TagException(v protocol.ResponseMetadata) error { + return &InvalidEC2TagException{ + respMetadata: v, + } } -// SetRevision sets the Revision field's value. -func (s *DeploymentInfo) SetRevision(v *RevisionLocation) *DeploymentInfo { - s.Revision = v - return s +// Code returns the exception type name. +func (s InvalidEC2TagException) Code() string { + return "InvalidEC2TagException" +} + +// Message returns the exception's message. +func (s InvalidEC2TagException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEC2TagException) OrigErr() error { + return nil +} + +func (s InvalidEC2TagException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEC2TagException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetRollbackInfo sets the RollbackInfo field's value. -func (s *DeploymentInfo) SetRollbackInfo(v *RollbackInfo) *DeploymentInfo { - s.RollbackInfo = v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidEC2TagException) RequestID() string { + return s.respMetadata.RequestID } -// SetStartTime sets the StartTime field's value. -func (s *DeploymentInfo) SetStartTime(v time.Time) *DeploymentInfo { - s.StartTime = &v - return s +// The Amazon ECS service identifier is not valid. +type InvalidECSServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// SetStatus sets the Status field's value. -func (s *DeploymentInfo) SetStatus(v string) *DeploymentInfo { - s.Status = &v - return s +// String returns the string representation +func (s InvalidECSServiceException) String() string { + return awsutil.Prettify(s) } -// SetTargetInstances sets the TargetInstances field's value. -func (s *DeploymentInfo) SetTargetInstances(v *TargetInstances) *DeploymentInfo { - s.TargetInstances = v - return s +// GoString returns the string representation +func (s InvalidECSServiceException) GoString() string { + return s.String() } -// SetUpdateOutdatedInstancesOnly sets the UpdateOutdatedInstancesOnly field's value. -func (s *DeploymentInfo) SetUpdateOutdatedInstancesOnly(v bool) *DeploymentInfo { - s.UpdateOutdatedInstancesOnly = &v - return s +func newErrorInvalidECSServiceException(v protocol.ResponseMetadata) error { + return &InvalidECSServiceException{ + respMetadata: v, + } } -// Information about the deployment status of the instances in the deployment. -type DeploymentOverview struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidECSServiceException) Code() string { + return "InvalidECSServiceException" +} - // The number of instances in the deployment in a failed state. - Failed *int64 `type:"long"` +// Message returns the exception's message. +func (s InvalidECSServiceException) Message() string { + return "" +} - // The number of instances in which the deployment is in progress. - InProgress *int64 `type:"long"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidECSServiceException) OrigErr() error { + return nil +} - // The number of instances in the deployment in a pending state. - Pending *int64 `type:"long"` +func (s InvalidECSServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The number of instances in a replacement environment ready to receive traffic - // in a blue/green deployment. - Ready *int64 `type:"long"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidECSServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The number of instances in the deployment in a skipped state. - Skipped *int64 `type:"long"` +// RequestID returns the service's response RequestID for request. +func (s InvalidECSServiceException) RequestID() string { + return s.respMetadata.RequestID +} - // The number of instances in the deployment to which revisions have been successfully - // deployed. - Succeeded *int64 `type:"long"` +// An invalid fileExistsBehavior option was specified to determine how AWS CodeDeploy +// handles files or directories that already exist in a deployment target location, +// but weren't part of the previous successful deployment. Valid values include +// "DISALLOW," "OVERWRITE," and "RETAIN." +type InvalidFileExistsBehaviorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeploymentOverview) String() string { +func (s InvalidFileExistsBehaviorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentOverview) GoString() string { +func (s InvalidFileExistsBehaviorException) GoString() string { return s.String() } -// SetFailed sets the Failed field's value. -func (s *DeploymentOverview) SetFailed(v int64) *DeploymentOverview { - s.Failed = &v - return s +func newErrorInvalidFileExistsBehaviorException(v protocol.ResponseMetadata) error { + return &InvalidFileExistsBehaviorException{ + respMetadata: v, + } } -// SetInProgress sets the InProgress field's value. -func (s *DeploymentOverview) SetInProgress(v int64) *DeploymentOverview { - s.InProgress = &v - return s +// Code returns the exception type name. +func (s InvalidFileExistsBehaviorException) Code() string { + return "InvalidFileExistsBehaviorException" } -// SetPending sets the Pending field's value. -func (s *DeploymentOverview) SetPending(v int64) *DeploymentOverview { - s.Pending = &v - return s +// Message returns the exception's message. +func (s InvalidFileExistsBehaviorException) Message() string { + return "" } -// SetReady sets the Ready field's value. -func (s *DeploymentOverview) SetReady(v int64) *DeploymentOverview { - s.Ready = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFileExistsBehaviorException) OrigErr() error { + return nil } -// SetSkipped sets the Skipped field's value. -func (s *DeploymentOverview) SetSkipped(v int64) *DeploymentOverview { - s.Skipped = &v - return s +func (s InvalidFileExistsBehaviorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSucceeded sets the Succeeded field's value. -func (s *DeploymentOverview) SetSucceeded(v int64) *DeploymentOverview { - s.Succeeded = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFileExistsBehaviorException) StatusCode() int { + return s.respMetadata.StatusCode } -// Information about how traffic is rerouted to instances in a replacement environment -// in a blue/green deployment. -type DeploymentReadyOption struct { - _ struct{} `type:"structure"` - - // Information about when to reroute traffic from an original environment to - // a replacement environment in a blue/green deployment. - // - // * CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately - // after the new application revision is installed on the instances in the - // replacement environment. - // - // * STOP_DEPLOYMENT: Do not register new instances with a load balancer - // unless traffic rerouting is started using ContinueDeployment. If traffic - // rerouting is not started before the end of the specified wait period, - // the deployment status is changed to Stopped. - ActionOnTimeout *string `locationName:"actionOnTimeout" type:"string" enum:"DeploymentReadyAction"` +// RequestID returns the service's response RequestID for request. +func (s InvalidFileExistsBehaviorException) RequestID() string { + return s.respMetadata.RequestID +} - // The number of minutes to wait before the status of a blue/green deployment - // is changed to Stopped if rerouting is not started manually. Applies only - // to the STOP_DEPLOYMENT option for actionOnTimeout - WaitTimeInMinutes *int64 `locationName:"waitTimeInMinutes" type:"integer"` +// The GitHub token is not valid. +type InvalidGitHubAccountTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeploymentReadyOption) String() string { +func (s InvalidGitHubAccountTokenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentReadyOption) GoString() string { +func (s InvalidGitHubAccountTokenException) GoString() string { return s.String() } -// SetActionOnTimeout sets the ActionOnTimeout field's value. -func (s *DeploymentReadyOption) SetActionOnTimeout(v string) *DeploymentReadyOption { - s.ActionOnTimeout = &v - return s +func newErrorInvalidGitHubAccountTokenException(v protocol.ResponseMetadata) error { + return &InvalidGitHubAccountTokenException{ + respMetadata: v, + } } -// SetWaitTimeInMinutes sets the WaitTimeInMinutes field's value. -func (s *DeploymentReadyOption) SetWaitTimeInMinutes(v int64) *DeploymentReadyOption { - s.WaitTimeInMinutes = &v - return s +// Code returns the exception type name. +func (s InvalidGitHubAccountTokenException) Code() string { + return "InvalidGitHubAccountTokenException" } -// Information about the type of deployment, either in-place or blue/green, -// you want to run and whether to route deployment traffic behind a load balancer. -type DeploymentStyle struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidGitHubAccountTokenException) Message() string { + return "" +} - // Indicates whether to route deployment traffic behind a load balancer. - DeploymentOption *string `locationName:"deploymentOption" type:"string" enum:"DeploymentOption"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidGitHubAccountTokenException) OrigErr() error { + return nil +} - // Indicates whether to run an in-place deployment or a blue/green deployment. - DeploymentType *string `locationName:"deploymentType" type:"string" enum:"DeploymentType"` +func (s InvalidGitHubAccountTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidGitHubAccountTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidGitHubAccountTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The format of the specified GitHub account connection name is invalid. +type InvalidGitHubAccountTokenNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeploymentStyle) String() string { +func (s InvalidGitHubAccountTokenNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentStyle) GoString() string { +func (s InvalidGitHubAccountTokenNameException) GoString() string { return s.String() } -// SetDeploymentOption sets the DeploymentOption field's value. -func (s *DeploymentStyle) SetDeploymentOption(v string) *DeploymentStyle { - s.DeploymentOption = &v - return s +func newErrorInvalidGitHubAccountTokenNameException(v protocol.ResponseMetadata) error { + return &InvalidGitHubAccountTokenNameException{ + respMetadata: v, + } } -// SetDeploymentType sets the DeploymentType field's value. -func (s *DeploymentStyle) SetDeploymentType(v string) *DeploymentStyle { - s.DeploymentType = &v - return s +// Code returns the exception type name. +func (s InvalidGitHubAccountTokenNameException) Code() string { + return "InvalidGitHubAccountTokenNameException" } -// Information about the deployment target. -type DeploymentTarget struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidGitHubAccountTokenNameException) Message() string { + return "" +} - // The deployment type that is specific to the deployment's compute platform. - DeploymentTargetType *string `locationName:"deploymentTargetType" type:"string" enum:"DeploymentTargetType"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidGitHubAccountTokenNameException) OrigErr() error { + return nil +} - // Information about the target for a deployment that uses the Amazon ECS compute - // platform. - EcsTarget *ECSTarget `locationName:"ecsTarget" type:"structure"` +func (s InvalidGitHubAccountTokenNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // Information about the target for a deployment that uses the EC2/On-premises - // compute platform. - InstanceTarget *InstanceTarget `locationName:"instanceTarget" type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidGitHubAccountTokenNameException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the target for a deployment that uses the AWS Lambda compute - // platform. - LambdaTarget *LambdaTarget `locationName:"lambdaTarget" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidGitHubAccountTokenNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The IAM session ARN was specified in an invalid format. +type InvalidIamSessionArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeploymentTarget) String() string { +func (s InvalidIamSessionArnException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeploymentTarget) GoString() string { +func (s InvalidIamSessionArnException) GoString() string { return s.String() } -// SetDeploymentTargetType sets the DeploymentTargetType field's value. -func (s *DeploymentTarget) SetDeploymentTargetType(v string) *DeploymentTarget { - s.DeploymentTargetType = &v - return s +func newErrorInvalidIamSessionArnException(v protocol.ResponseMetadata) error { + return &InvalidIamSessionArnException{ + respMetadata: v, + } } -// SetEcsTarget sets the EcsTarget field's value. -func (s *DeploymentTarget) SetEcsTarget(v *ECSTarget) *DeploymentTarget { - s.EcsTarget = v - return s +// Code returns the exception type name. +func (s InvalidIamSessionArnException) Code() string { + return "InvalidIamSessionArnException" } -// SetInstanceTarget sets the InstanceTarget field's value. -func (s *DeploymentTarget) SetInstanceTarget(v *InstanceTarget) *DeploymentTarget { - s.InstanceTarget = v - return s +// Message returns the exception's message. +func (s InvalidIamSessionArnException) Message() string { + return "" } -// SetLambdaTarget sets the LambdaTarget field's value. -func (s *DeploymentTarget) SetLambdaTarget(v *LambdaTarget) *DeploymentTarget { - s.LambdaTarget = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidIamSessionArnException) OrigErr() error { + return nil } -// Represents the input of a DeregisterOnPremisesInstance operation. -type DeregisterOnPremisesInstanceInput struct { - _ struct{} `type:"structure"` +func (s InvalidIamSessionArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the on-premises instance to deregister. - // - // InstanceName is a required field - InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidIamSessionArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidIamSessionArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// The IAM user ARN was specified in an invalid format. +type InvalidIamUserArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeregisterOnPremisesInstanceInput) String() string { +func (s InvalidIamUserArnException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeregisterOnPremisesInstanceInput) GoString() string { +func (s InvalidIamUserArnException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *DeregisterOnPremisesInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "DeregisterOnPremisesInstanceInput"} - if s.InstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceName")) +func newErrorInvalidIamUserArnException(v protocol.ResponseMetadata) error { + return &InvalidIamUserArnException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidIamUserArnException) Code() string { + return "InvalidIamUserArnException" +} + +// Message returns the exception's message. +func (s InvalidIamUserArnException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidIamUserArnException) OrigErr() error { return nil } -// SetInstanceName sets the InstanceName field's value. -func (s *DeregisterOnPremisesInstanceInput) SetInstanceName(v string) *DeregisterOnPremisesInstanceInput { - s.InstanceName = &v - return s +func (s InvalidIamUserArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type DeregisterOnPremisesInstanceOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidIamUserArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidIamUserArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// The IgnoreApplicationStopFailures value is invalid. For AWS Lambda deployments, +// false is expected. For EC2/On-premises deployments, true or false is expected. +type InvalidIgnoreApplicationStopFailuresValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s DeregisterOnPremisesInstanceOutput) String() string { +func (s InvalidIgnoreApplicationStopFailuresValueException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s DeregisterOnPremisesInstanceOutput) GoString() string { +func (s InvalidIgnoreApplicationStopFailuresValueException) GoString() string { return s.String() } -// Diagnostic information about executable scripts that are part of a deployment. -type Diagnostics struct { - _ struct{} `type:"structure"` +func newErrorInvalidIgnoreApplicationStopFailuresValueException(v protocol.ResponseMetadata) error { + return &InvalidIgnoreApplicationStopFailuresValueException{ + respMetadata: v, + } +} - // The associated error code: - // - // * Success: The specified script ran. - // - // * ScriptMissing: The specified script was not found in the specified location. - // - // * ScriptNotExecutable: The specified script is not a recognized executable - // file type. - // - // * ScriptTimedOut: The specified script did not finish running in the specified - // time period. - // - // * ScriptFailed: The specified script failed to run as expected. - // - // * UnknownError: The specified script did not run for an unknown reason. - ErrorCode *string `locationName:"errorCode" type:"string" enum:"LifecycleErrorCode"` +// Code returns the exception type name. +func (s InvalidIgnoreApplicationStopFailuresValueException) Code() string { + return "InvalidIgnoreApplicationStopFailuresValueException" +} - // The last portion of the diagnostic log. - // - // If available, AWS CodeDeploy returns up to the last 4 KB of the diagnostic - // log. - LogTail *string `locationName:"logTail" type:"string"` +// Message returns the exception's message. +func (s InvalidIgnoreApplicationStopFailuresValueException) Message() string { + return "" +} - // The message associated with the error. - Message *string `locationName:"message" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidIgnoreApplicationStopFailuresValueException) OrigErr() error { + return nil +} + +func (s InvalidIgnoreApplicationStopFailuresValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidIgnoreApplicationStopFailuresValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidIgnoreApplicationStopFailuresValueException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the script. - ScriptName *string `locationName:"scriptName" type:"string"` +// The input was specified in an invalid format. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Diagnostics) String() string { +func (s InvalidInputException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Diagnostics) GoString() string { +func (s InvalidInputException) GoString() string { return s.String() } -// SetErrorCode sets the ErrorCode field's value. -func (s *Diagnostics) SetErrorCode(v string) *Diagnostics { - s.ErrorCode = &v - return s +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } } -// SetLogTail sets the LogTail field's value. -func (s *Diagnostics) SetLogTail(v string) *Diagnostics { - s.LogTail = &v - return s +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" } -// SetMessage sets the Message field's value. -func (s *Diagnostics) SetMessage(v string) *Diagnostics { - s.Message = &v - return s +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + return "" } -// SetScriptName sets the ScriptName field's value. -func (s *Diagnostics) SetScriptName(v string) *Diagnostics { - s.ScriptName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil } -// Information about an EC2 tag filter. -type EC2TagFilter struct { - _ struct{} `type:"structure"` +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The tag filter key. - Key *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The tag filter type: - // - // * KEY_ONLY: Key only. - // - // * VALUE_ONLY: Value only. - // - // * KEY_AND_VALUE: Key and value. - Type *string `type:"string" enum:"EC2TagFilterType"` +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} - // The tag filter value. - Value *string `type:"string"` +// The on-premises instance name was specified in an invalid format. +type InvalidInstanceNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s EC2TagFilter) String() string { +func (s InvalidInstanceNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EC2TagFilter) GoString() string { +func (s InvalidInstanceNameException) GoString() string { return s.String() } -// SetKey sets the Key field's value. -func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter { - s.Key = &v - return s +func newErrorInvalidInstanceNameException(v protocol.ResponseMetadata) error { + return &InvalidInstanceNameException{ + respMetadata: v, + } } -// SetType sets the Type field's value. -func (s *EC2TagFilter) SetType(v string) *EC2TagFilter { - s.Type = &v - return s +// Code returns the exception type name. +func (s InvalidInstanceNameException) Code() string { + return "InvalidInstanceNameException" } -// SetValue sets the Value field's value. -func (s *EC2TagFilter) SetValue(v string) *EC2TagFilter { - s.Value = &v - return s +// Message returns the exception's message. +func (s InvalidInstanceNameException) Message() string { + return "" } -// Information about groups of EC2 instance tags. -type EC2TagSet struct { - _ struct{} `type:"structure"` - - // A list that contains other lists of EC2 instance tag groups. For an instance - // to be included in the deployment group, it must be identified by all of the - // tag groups in the list. - Ec2TagSetList [][]*EC2TagFilter `locationName:"ec2TagSetList" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInstanceNameException) OrigErr() error { + return nil } -// String returns the string representation -func (s EC2TagSet) String() string { - return awsutil.Prettify(s) +func (s InvalidInstanceNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// GoString returns the string representation -func (s EC2TagSet) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInstanceNameException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetEc2TagSetList sets the Ec2TagSetList field's value. -func (s *EC2TagSet) SetEc2TagSetList(v [][]*EC2TagFilter) *EC2TagSet { - s.Ec2TagSetList = v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidInstanceNameException) RequestID() string { + return s.respMetadata.RequestID } -// Contains the service and cluster names used to identify an Amazon ECS deployment's -// target. -type ECSService struct { - _ struct{} `type:"structure"` - - // The name of the cluster that the Amazon ECS service is associated with. - ClusterName *string `locationName:"clusterName" type:"string"` - - // The name of the target Amazon ECS service. - ServiceName *string `locationName:"serviceName" type:"string"` +// The specified instance status does not exist. +type InvalidInstanceStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ECSService) String() string { +func (s InvalidInstanceStatusException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ECSService) GoString() string { +func (s InvalidInstanceStatusException) GoString() string { return s.String() } -// SetClusterName sets the ClusterName field's value. -func (s *ECSService) SetClusterName(v string) *ECSService { - s.ClusterName = &v - return s +func newErrorInvalidInstanceStatusException(v protocol.ResponseMetadata) error { + return &InvalidInstanceStatusException{ + respMetadata: v, + } } -// SetServiceName sets the ServiceName field's value. -func (s *ECSService) SetServiceName(v string) *ECSService { - s.ServiceName = &v - return s +// Code returns the exception type name. +func (s InvalidInstanceStatusException) Code() string { + return "InvalidInstanceStatusException" } -// Information about the target of an Amazon ECS deployment. -type ECSTarget struct { - _ struct{} `type:"structure"` - - // The unique ID of a deployment. - DeploymentId *string `locationName:"deploymentId" type:"string"` - - // The date and time when the target Amazon ECS application was updated by a - // deployment. - LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` +// Message returns the exception's message. +func (s InvalidInstanceStatusException) Message() string { + return "" +} - // The lifecycle events of the deployment to this target Amazon ECS application. - LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInstanceStatusException) OrigErr() error { + return nil +} - // The status an Amazon ECS deployment's target ECS application. - Status *string `locationName:"status" type:"string" enum:"TargetStatus"` +func (s InvalidInstanceStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The ARN of the target. - TargetArn *string `locationName:"targetArn" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInstanceStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The unique ID of a deployment target that has a type of ecsTarget. - TargetId *string `locationName:"targetId" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidInstanceStatusException) RequestID() string { + return s.respMetadata.RequestID +} - // The ECSTaskSet objects associated with the ECS target. - TaskSetsInfo []*ECSTaskSet `locationName:"taskSetsInfo" type:"list"` +// An invalid instance type was specified for instances in a blue/green deployment. +// Valid values include "Blue" for an original environment and "Green" for a +// replacement environment. +type InvalidInstanceTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ECSTarget) String() string { +func (s InvalidInstanceTypeException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ECSTarget) GoString() string { +func (s InvalidInstanceTypeException) GoString() string { return s.String() } -// SetDeploymentId sets the DeploymentId field's value. -func (s *ECSTarget) SetDeploymentId(v string) *ECSTarget { - s.DeploymentId = &v - return s +func newErrorInvalidInstanceTypeException(v protocol.ResponseMetadata) error { + return &InvalidInstanceTypeException{ + respMetadata: v, + } } -// SetLastUpdatedAt sets the LastUpdatedAt field's value. -func (s *ECSTarget) SetLastUpdatedAt(v time.Time) *ECSTarget { - s.LastUpdatedAt = &v - return s +// Code returns the exception type name. +func (s InvalidInstanceTypeException) Code() string { + return "InvalidInstanceTypeException" } -// SetLifecycleEvents sets the LifecycleEvents field's value. -func (s *ECSTarget) SetLifecycleEvents(v []*LifecycleEvent) *ECSTarget { - s.LifecycleEvents = v - return s +// Message returns the exception's message. +func (s InvalidInstanceTypeException) Message() string { + return "" } -// SetStatus sets the Status field's value. -func (s *ECSTarget) SetStatus(v string) *ECSTarget { - s.Status = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInstanceTypeException) OrigErr() error { + return nil } -// SetTargetArn sets the TargetArn field's value. -func (s *ECSTarget) SetTargetArn(v string) *ECSTarget { - s.TargetArn = &v - return s +func (s InvalidInstanceTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTargetId sets the TargetId field's value. -func (s *ECSTarget) SetTargetId(v string) *ECSTarget { - s.TargetId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInstanceTypeException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetTaskSetsInfo sets the TaskSetsInfo field's value. -func (s *ECSTarget) SetTaskSetsInfo(v []*ECSTaskSet) *ECSTarget { - s.TaskSetsInfo = v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidInstanceTypeException) RequestID() string { + return s.respMetadata.RequestID } -// Information about a set of Amazon ECS tasks in an AWS CodeDeploy 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. -// An AWS CodeDeploy application that uses the Amazon ECS compute platform deploys -// a containerized application in an Amazon ECS service as a task set. -type ECSTaskSet struct { - _ struct{} `type:"structure"` - - // The number of tasks in a task set. During a deployment that uses the Amazon - // ECS compute type, CodeDeploy instructs Amazon ECS to create a new task set - // and uses this value to determine how many tasks to create. After the updated - // task set is created, CodeDeploy shifts traffic to the new task set. - DesiredCount *int64 `locationName:"desiredCount" type:"long"` - - // A unique ID of an ECSTaskSet. - Identifer *string `locationName:"identifer" type:"string"` - - // The number of tasks in the task set that are in the PENDING status during - // an Amazon ECS deployment. A task in the PENDING state is preparing to enter - // the RUNNING state. A task set enters the PENDING status when it launches - // for the first time, or when it is restarted after being in the STOPPED state. - PendingCount *int64 `locationName:"pendingCount" type:"long"` - - // The number of tasks in the task set that are in the RUNNING status during - // an Amazon ECS deployment. A task in the RUNNING state is running and ready - // for use. - RunningCount *int64 `locationName:"runningCount" type:"long"` - - // The status of the task set. There are three valid task set statuses: - // - // * PRIMARY: Indicates the task set is serving production traffic. - // - // * ACTIVE: Indicates the task set is not serving production traffic. - // - // * DRAINING: Indicates the tasks in the task set are being stopped and - // their corresponding targets are being deregistered from their target group. - Status *string `locationName:"status" type:"string"` - - // The target group associated with the task set. The target group is used by - // AWS CodeDeploy to manage traffic to a task set. - TargetGroup *TargetGroupInfo `locationName:"targetGroup" type:"structure"` - - // A label that identifies whether the ECS task set is an original target (BLUE) - // or a replacement target (GREEN). - TaskSetLabel *string `locationName:"taskSetLabel" type:"string" enum:"TargetLabel"` - - // The percentage of traffic served by this task set. - TrafficWeight *float64 `locationName:"trafficWeight" type:"double"` +// The specified key prefix filter was specified in an invalid format. +type InvalidKeyPrefixFilterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ECSTaskSet) String() string { +func (s InvalidKeyPrefixFilterException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ECSTaskSet) GoString() string { +func (s InvalidKeyPrefixFilterException) GoString() string { return s.String() } -// SetDesiredCount sets the DesiredCount field's value. -func (s *ECSTaskSet) SetDesiredCount(v int64) *ECSTaskSet { - s.DesiredCount = &v - return s +func newErrorInvalidKeyPrefixFilterException(v protocol.ResponseMetadata) error { + return &InvalidKeyPrefixFilterException{ + respMetadata: v, + } } -// SetIdentifer sets the Identifer field's value. -func (s *ECSTaskSet) SetIdentifer(v string) *ECSTaskSet { - s.Identifer = &v - return s +// Code returns the exception type name. +func (s InvalidKeyPrefixFilterException) Code() string { + return "InvalidKeyPrefixFilterException" } -// SetPendingCount sets the PendingCount field's value. -func (s *ECSTaskSet) SetPendingCount(v int64) *ECSTaskSet { - s.PendingCount = &v - return s +// Message returns the exception's message. +func (s InvalidKeyPrefixFilterException) Message() string { + return "" } -// SetRunningCount sets the RunningCount field's value. -func (s *ECSTaskSet) SetRunningCount(v int64) *ECSTaskSet { - s.RunningCount = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidKeyPrefixFilterException) OrigErr() error { + return nil } -// SetStatus sets the Status field's value. -func (s *ECSTaskSet) SetStatus(v string) *ECSTaskSet { - s.Status = &v - return s +func (s InvalidKeyPrefixFilterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTargetGroup sets the TargetGroup field's value. -func (s *ECSTaskSet) SetTargetGroup(v *TargetGroupInfo) *ECSTaskSet { - s.TargetGroup = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidKeyPrefixFilterException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetTaskSetLabel sets the TaskSetLabel field's value. -func (s *ECSTaskSet) SetTaskSetLabel(v string) *ECSTaskSet { - s.TaskSetLabel = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidKeyPrefixFilterException) RequestID() string { + return s.respMetadata.RequestID } -// SetTrafficWeight sets the TrafficWeight field's value. -func (s *ECSTaskSet) SetTrafficWeight(v float64) *ECSTaskSet { - s.TrafficWeight = &v - return s +// A lifecycle event hook is invalid. Review the hooks section in your AppSpec +// file to ensure the lifecycle events and hooks functions are valid. +type InvalidLifecycleEventHookExecutionIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } -// Information about a load balancer in Elastic Load Balancing to use in a deployment. -// Instances are registered directly with a load balancer, and traffic is routed -// to the load balancer. -type ELBInfo struct { - _ struct{} `type:"structure"` +// String returns the string representation +func (s InvalidLifecycleEventHookExecutionIdException) String() string { + return awsutil.Prettify(s) +} - // For blue/green deployments, the name of the load balancer that is used to - // route traffic from original instances to replacement instances in a blue/green - // deployment. For in-place deployments, the name of the load balancer that - // instances are deregistered from so they are not serving traffic during a - // deployment, and then re-registered with after the deployment is complete. - Name *string `locationName:"name" type:"string"` +// GoString returns the string representation +func (s InvalidLifecycleEventHookExecutionIdException) GoString() string { + return s.String() +} + +func newErrorInvalidLifecycleEventHookExecutionIdException(v protocol.ResponseMetadata) error { + return &InvalidLifecycleEventHookExecutionIdException{ + respMetadata: v, + } } -// String returns the string representation -func (s ELBInfo) String() string { - return awsutil.Prettify(s) +// Code returns the exception type name. +func (s InvalidLifecycleEventHookExecutionIdException) Code() string { + return "InvalidLifecycleEventHookExecutionIdException" } -// GoString returns the string representation -func (s ELBInfo) GoString() string { - return s.String() +// Message returns the exception's message. +func (s InvalidLifecycleEventHookExecutionIdException) Message() string { + return "" } -// SetName sets the Name field's value. -func (s *ELBInfo) SetName(v string) *ELBInfo { - s.Name = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLifecycleEventHookExecutionIdException) OrigErr() error { + return nil } -// Information about a deployment error. -type ErrorInformation struct { - _ struct{} `type:"structure"` +func (s InvalidLifecycleEventHookExecutionIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // For more information, see Error Codes for AWS CodeDeploy (https://docs.aws.amazon.com/codedeploy/latest/userguide/error-codes.html) - // in the AWS CodeDeploy User Guide (https://docs.aws.amazon.com/codedeploy/latest/userguide). - // - // The error code: - // - // * APPLICATION_MISSING: The application was missing. This error code is - // most likely raised if the application is deleted after the deployment - // is created, but before it is started. - // - // * DEPLOYMENT_GROUP_MISSING: The deployment group was missing. This error - // code is most likely raised if the deployment group is deleted after the - // deployment is created, but before it is started. - // - // * HEALTH_CONSTRAINTS: The deployment failed on too many instances to be - // successfully deployed within the instance health constraints specified. - // - // * HEALTH_CONSTRAINTS_INVALID: The revision cannot be successfully deployed - // within the instance health constraints specified. - // - // * IAM_ROLE_MISSING: The service role cannot be accessed. - // - // * IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions. - // - // * INTERNAL_ERROR: There was an internal error. - // - // * NO_EC2_SUBSCRIPTION: The calling account is not subscribed to Amazon - // EC2. - // - // * NO_INSTANCES: No instances were specified, or no instances can be found. - // - // * OVER_MAX_INSTANCES: The maximum number of instances was exceeded. - // - // * THROTTLED: The operation was throttled because the calling account exceeded - // the throttling limits of one or more AWS services. - // - // * TIMEOUT: The deployment has timed out. - // - // * REVISION_MISSING: The revision ID was missing. This error code is most - // likely raised if the revision is deleted after the deployment is created, - // but before it is started. - Code *string `locationName:"code" type:"string" enum:"ErrorCode"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLifecycleEventHookExecutionIdException) StatusCode() int { + return s.respMetadata.StatusCode +} - // An accompanying error message. - Message *string `locationName:"message" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidLifecycleEventHookExecutionIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The result of a Lambda validation function that verifies a lifecycle event +// is invalid. It should return Succeeded or Failed. +type InvalidLifecycleEventHookExecutionStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ErrorInformation) String() string { +func (s InvalidLifecycleEventHookExecutionStatusException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ErrorInformation) GoString() string { +func (s InvalidLifecycleEventHookExecutionStatusException) GoString() string { return s.String() } -// SetCode sets the Code field's value. -func (s *ErrorInformation) SetCode(v string) *ErrorInformation { - s.Code = &v - return s +func newErrorInvalidLifecycleEventHookExecutionStatusException(v protocol.ResponseMetadata) error { + return &InvalidLifecycleEventHookExecutionStatusException{ + respMetadata: v, + } } -// SetMessage sets the Message field's value. -func (s *ErrorInformation) SetMessage(v string) *ErrorInformation { - s.Message = &v - return s +// Code returns the exception type name. +func (s InvalidLifecycleEventHookExecutionStatusException) Code() string { + return "InvalidLifecycleEventHookExecutionStatusException" } -// Information about an application revision. -type GenericRevisionInfo struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidLifecycleEventHookExecutionStatusException) Message() string { + return "" +} - // The deployment groups for which this is the current target revision. - DeploymentGroups []*string `locationName:"deploymentGroups" type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLifecycleEventHookExecutionStatusException) OrigErr() error { + return nil +} - // A comment about the revision. - Description *string `locationName:"description" type:"string"` +func (s InvalidLifecycleEventHookExecutionStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // When the revision was first used by AWS CodeDeploy. - FirstUsedTime *time.Time `locationName:"firstUsedTime" type:"timestamp"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLifecycleEventHookExecutionStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} - // When the revision was last used by AWS CodeDeploy. - LastUsedTime *time.Time `locationName:"lastUsedTime" type:"timestamp"` +// RequestID returns the service's response RequestID for request. +func (s InvalidLifecycleEventHookExecutionStatusException) RequestID() string { + return s.respMetadata.RequestID +} - // When the revision was registered with AWS CodeDeploy. - RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` +// An invalid load balancer name, or no load balancer name, was specified. +type InvalidLoadBalancerInfoException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GenericRevisionInfo) String() string { +func (s InvalidLoadBalancerInfoException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GenericRevisionInfo) GoString() string { +func (s InvalidLoadBalancerInfoException) GoString() string { return s.String() } -// SetDeploymentGroups sets the DeploymentGroups field's value. -func (s *GenericRevisionInfo) SetDeploymentGroups(v []*string) *GenericRevisionInfo { - s.DeploymentGroups = v - return s +func newErrorInvalidLoadBalancerInfoException(v protocol.ResponseMetadata) error { + return &InvalidLoadBalancerInfoException{ + respMetadata: v, + } } -// SetDescription sets the Description field's value. -func (s *GenericRevisionInfo) SetDescription(v string) *GenericRevisionInfo { - s.Description = &v - return s +// Code returns the exception type name. +func (s InvalidLoadBalancerInfoException) Code() string { + return "InvalidLoadBalancerInfoException" } -// SetFirstUsedTime sets the FirstUsedTime field's value. -func (s *GenericRevisionInfo) SetFirstUsedTime(v time.Time) *GenericRevisionInfo { - s.FirstUsedTime = &v - return s +// Message returns the exception's message. +func (s InvalidLoadBalancerInfoException) Message() string { + return "" } -// SetLastUsedTime sets the LastUsedTime field's value. -func (s *GenericRevisionInfo) SetLastUsedTime(v time.Time) *GenericRevisionInfo { - s.LastUsedTime = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLoadBalancerInfoException) OrigErr() error { + return nil } -// SetRegisterTime sets the RegisterTime field's value. -func (s *GenericRevisionInfo) SetRegisterTime(v time.Time) *GenericRevisionInfo { - s.RegisterTime = &v - return s +func (s InvalidLoadBalancerInfoException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the input of a GetApplication operation. -type GetApplicationInput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLoadBalancerInfoException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The name of an AWS CodeDeploy application associated with the IAM user or - // AWS account. - // - // ApplicationName is a required field - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidLoadBalancerInfoException) RequestID() string { + return s.respMetadata.RequestID +} + +// The minimum healthy instance value was specified in an invalid format. +type InvalidMinimumHealthyHostValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetApplicationInput) String() string { +func (s InvalidMinimumHealthyHostValueException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationInput) GoString() string { +func (s InvalidMinimumHealthyHostValueException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetApplicationInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetApplicationInput"} - if s.ApplicationName == nil { - invalidParams.Add(request.NewErrParamRequired("ApplicationName")) - } - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) +func newErrorInvalidMinimumHealthyHostValueException(v protocol.ResponseMetadata) error { + return &InvalidMinimumHealthyHostValueException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidMinimumHealthyHostValueException) Code() string { + return "InvalidMinimumHealthyHostValueException" +} + +// Message returns the exception's message. +func (s InvalidMinimumHealthyHostValueException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMinimumHealthyHostValueException) OrigErr() error { return nil } -// SetApplicationName sets the ApplicationName field's value. -func (s *GetApplicationInput) SetApplicationName(v string) *GetApplicationInput { - s.ApplicationName = &v - return s +func (s InvalidMinimumHealthyHostValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the output of a GetApplication operation. -type GetApplicationOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMinimumHealthyHostValueException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the application. - Application *ApplicationInfo `locationName:"application" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidMinimumHealthyHostValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// The next token was specified in an invalid format. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetApplicationOutput) String() string { +func (s InvalidNextTokenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationOutput) GoString() string { +func (s InvalidNextTokenException) GoString() string { return s.String() } -// SetApplication sets the Application field's value. -func (s *GetApplicationOutput) SetApplication(v *ApplicationInfo) *GetApplicationOutput { - s.Application = v - return s +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } } -// Represents the input of a GetApplicationRevision operation. -type GetApplicationRevisionInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} - // The name of the application that corresponds to the revision. - // - // ApplicationName is a required field - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + return "" +} - // Information about the application revision to get, including type and location. - // - // Revision is a required field - Revision *RevisionLocation `locationName:"revision" type:"structure" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// A call was submitted that specified both OnPremisesTagFilters and OnPremisesTagSet, +// but only one of these data types can be used in a single call. +type InvalidOnPremisesTagCombinationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetApplicationRevisionInput) String() string { +func (s InvalidOnPremisesTagCombinationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationRevisionInput) GoString() string { +func (s InvalidOnPremisesTagCombinationException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetApplicationRevisionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetApplicationRevisionInput"} - if s.ApplicationName == nil { - invalidParams.Add(request.NewErrParamRequired("ApplicationName")) - } - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.Revision == nil { - invalidParams.Add(request.NewErrParamRequired("Revision")) +func newErrorInvalidOnPremisesTagCombinationException(v protocol.ResponseMetadata) error { + return &InvalidOnPremisesTagCombinationException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidOnPremisesTagCombinationException) Code() string { + return "InvalidOnPremisesTagCombinationException" } -// SetApplicationName sets the ApplicationName field's value. -func (s *GetApplicationRevisionInput) SetApplicationName(v string) *GetApplicationRevisionInput { - s.ApplicationName = &v - return s +// Message returns the exception's message. +func (s InvalidOnPremisesTagCombinationException) Message() string { + return "" } -// SetRevision sets the Revision field's value. -func (s *GetApplicationRevisionInput) SetRevision(v *RevisionLocation) *GetApplicationRevisionInput { - s.Revision = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOnPremisesTagCombinationException) OrigErr() error { + return nil } -// Represents the output of a GetApplicationRevision operation. -type GetApplicationRevisionOutput struct { - _ struct{} `type:"structure"` +func (s InvalidOnPremisesTagCombinationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the application that corresponds to the revision. - ApplicationName *string `locationName:"applicationName" min:"1" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOnPremisesTagCombinationException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Additional information about the revision, including type and location. - Revision *RevisionLocation `locationName:"revision" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidOnPremisesTagCombinationException) RequestID() string { + return s.respMetadata.RequestID +} - // General information about the revision. - RevisionInfo *GenericRevisionInfo `locationName:"revisionInfo" type:"structure"` +// An invalid operation was detected. +type InvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetApplicationRevisionOutput) String() string { +func (s InvalidOperationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetApplicationRevisionOutput) GoString() string { +func (s InvalidOperationException) GoString() string { return s.String() } -// SetApplicationName sets the ApplicationName field's value. -func (s *GetApplicationRevisionOutput) SetApplicationName(v string) *GetApplicationRevisionOutput { - s.ApplicationName = &v - return s +func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { + return &InvalidOperationException{ + respMetadata: v, + } } -// SetRevision sets the Revision field's value. -func (s *GetApplicationRevisionOutput) SetRevision(v *RevisionLocation) *GetApplicationRevisionOutput { - s.Revision = v - return s +// Code returns the exception type name. +func (s InvalidOperationException) Code() string { + return "InvalidOperationException" } -// SetRevisionInfo sets the RevisionInfo field's value. -func (s *GetApplicationRevisionOutput) SetRevisionInfo(v *GenericRevisionInfo) *GetApplicationRevisionOutput { - s.RevisionInfo = v - return s +// Message returns the exception's message. +func (s InvalidOperationException) Message() string { + return "" } -// Represents the input of a GetDeploymentConfig operation. -type GetDeploymentConfigInput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOperationException) OrigErr() error { + return nil +} - // The name of a deployment configuration associated with the IAM user or AWS - // account. - // - // DeploymentConfigName is a required field - DeploymentConfigName *string `locationName:"deploymentConfigName" min:"1" type:"string" required:"true"` +func (s InvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The registration status was specified in an invalid format. +type InvalidRegistrationStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentConfigInput) String() string { +func (s InvalidRegistrationStatusException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentConfigInput) GoString() string { +func (s InvalidRegistrationStatusException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeploymentConfigInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeploymentConfigInput"} - if s.DeploymentConfigName == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentConfigName")) - } - if s.DeploymentConfigName != nil && len(*s.DeploymentConfigName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentConfigName", 1)) +func newErrorInvalidRegistrationStatusException(v protocol.ResponseMetadata) error { + return &InvalidRegistrationStatusException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidRegistrationStatusException) Code() string { + return "InvalidRegistrationStatusException" +} + +// Message returns the exception's message. +func (s InvalidRegistrationStatusException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRegistrationStatusException) OrigErr() error { return nil } -// SetDeploymentConfigName sets the DeploymentConfigName field's value. -func (s *GetDeploymentConfigInput) SetDeploymentConfigName(v string) *GetDeploymentConfigInput { - s.DeploymentConfigName = &v - return s +func (s InvalidRegistrationStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the output of a GetDeploymentConfig operation. -type GetDeploymentConfigOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRegistrationStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the deployment configuration. - DeploymentConfigInfo *DeploymentConfigInfo `locationName:"deploymentConfigInfo" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRegistrationStatusException) RequestID() string { + return s.respMetadata.RequestID +} + +// The revision was specified in an invalid format. +type InvalidRevisionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentConfigOutput) String() string { +func (s InvalidRevisionException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentConfigOutput) GoString() string { +func (s InvalidRevisionException) GoString() string { return s.String() } -// SetDeploymentConfigInfo sets the DeploymentConfigInfo field's value. -func (s *GetDeploymentConfigOutput) SetDeploymentConfigInfo(v *DeploymentConfigInfo) *GetDeploymentConfigOutput { - s.DeploymentConfigInfo = v - return s +func newErrorInvalidRevisionException(v protocol.ResponseMetadata) error { + return &InvalidRevisionException{ + respMetadata: v, + } } -// Represents the input of a GetDeploymentGroup operation. -type GetDeploymentGroupInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidRevisionException) Code() string { + return "InvalidRevisionException" +} - // The name of an AWS CodeDeploy application associated with the IAM user or - // AWS account. - // - // ApplicationName is a required field - ApplicationName *string `locationName:"applicationName" min:"1" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidRevisionException) Message() string { + return "" +} - // The name of a deployment group for the specified application. - // - // DeploymentGroupName is a required field - DeploymentGroupName *string `locationName:"deploymentGroupName" min:"1" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRevisionException) OrigErr() error { + return nil +} + +func (s InvalidRevisionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRevisionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRevisionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service role ARN was specified in an invalid format. Or, if an Auto Scaling +// group was specified, the specified service role does not grant the appropriate +// permissions to Amazon EC2 Auto Scaling. +type InvalidRoleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentGroupInput) String() string { +func (s InvalidRoleException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentGroupInput) GoString() string { +func (s InvalidRoleException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeploymentGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeploymentGroupInput"} - if s.ApplicationName == nil { - invalidParams.Add(request.NewErrParamRequired("ApplicationName")) - } - if s.ApplicationName != nil && len(*s.ApplicationName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1)) - } - if s.DeploymentGroupName == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentGroupName")) - } - if s.DeploymentGroupName != nil && len(*s.DeploymentGroupName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("DeploymentGroupName", 1)) +func newErrorInvalidRoleException(v protocol.ResponseMetadata) error { + return &InvalidRoleException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidRoleException) Code() string { + return "InvalidRoleException" +} + +// Message returns the exception's message. +func (s InvalidRoleException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRoleException) OrigErr() error { return nil } -// SetApplicationName sets the ApplicationName field's value. -func (s *GetDeploymentGroupInput) SetApplicationName(v string) *GetDeploymentGroupInput { - s.ApplicationName = &v - return s +func (s InvalidRoleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetDeploymentGroupName sets the DeploymentGroupName field's value. -func (s *GetDeploymentGroupInput) SetDeploymentGroupName(v string) *GetDeploymentGroupInput { - s.DeploymentGroupName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRoleException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents the output of a GetDeploymentGroup operation. -type GetDeploymentGroupOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRoleException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about the deployment group. - DeploymentGroupInfo *DeploymentGroupInfo `locationName:"deploymentGroupInfo" type:"structure"` +// The column name to sort by is either not present or was specified in an invalid +// format. +type InvalidSortByException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentGroupOutput) String() string { +func (s InvalidSortByException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentGroupOutput) GoString() string { +func (s InvalidSortByException) GoString() string { return s.String() } -// SetDeploymentGroupInfo sets the DeploymentGroupInfo field's value. -func (s *GetDeploymentGroupOutput) SetDeploymentGroupInfo(v *DeploymentGroupInfo) *GetDeploymentGroupOutput { - s.DeploymentGroupInfo = v - return s +func newErrorInvalidSortByException(v protocol.ResponseMetadata) error { + return &InvalidSortByException{ + respMetadata: v, + } } -// Represents the input of a GetDeployment operation. -type GetDeploymentInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidSortByException) Code() string { + return "InvalidSortByException" +} - // The unique ID of a deployment associated with the IAM user or AWS account. - // - // DeploymentId is a required field - DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` +// Message returns the exception's message. +func (s InvalidSortByException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSortByException) OrigErr() error { + return nil +} + +func (s InvalidSortByException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSortByException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSortByException) RequestID() string { + return s.respMetadata.RequestID +} + +// The sort order was specified in an invalid format. +type InvalidSortOrderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentInput) String() string { +func (s InvalidSortOrderException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentInput) GoString() string { +func (s InvalidSortOrderException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeploymentInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) +func newErrorInvalidSortOrderException(v protocol.ResponseMetadata) error { + return &InvalidSortOrderException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidSortOrderException) Code() string { + return "InvalidSortOrderException" +} + +// Message returns the exception's message. +func (s InvalidSortOrderException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSortOrderException) OrigErr() error { return nil } -// SetDeploymentId sets the DeploymentId field's value. -func (s *GetDeploymentInput) SetDeploymentId(v string) *GetDeploymentInput { - s.DeploymentId = &v - return s +func (s InvalidSortOrderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the input of a GetDeploymentInstance operation. -type GetDeploymentInstanceInput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSortOrderException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The unique ID of a deployment. - // - // DeploymentId is a required field - DeploymentId *string `locationName:"deploymentId" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s InvalidSortOrderException) RequestID() string { + return s.respMetadata.RequestID +} - // The unique ID of an instance in the deployment group. - // - // InstanceId is a required field - InstanceId *string `locationName:"instanceId" type:"string" required:"true"` +// The tag was specified in an invalid format. +type InvalidTagException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentInstanceInput) String() string { +func (s InvalidTagException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentInstanceInput) GoString() string { +func (s InvalidTagException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetDeploymentInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetDeploymentInstanceInput"} - if s.DeploymentId == nil { - invalidParams.Add(request.NewErrParamRequired("DeploymentId")) - } - if s.InstanceId == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceId")) +func newErrorInvalidTagException(v protocol.ResponseMetadata) error { + return &InvalidTagException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidTagException) Code() string { + return "InvalidTagException" +} + +// Message returns the exception's message. +func (s InvalidTagException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagException) OrigErr() error { return nil } -// SetDeploymentId sets the DeploymentId field's value. -func (s *GetDeploymentInstanceInput) SetDeploymentId(v string) *GetDeploymentInstanceInput { - s.DeploymentId = &v - return s +func (s InvalidTagException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetInstanceId sets the InstanceId field's value. -func (s *GetDeploymentInstanceInput) SetInstanceId(v string) *GetDeploymentInstanceInput { - s.InstanceId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents the output of a GetDeploymentInstance operation. -type GetDeploymentInstanceOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTagException) RequestID() string { + return s.respMetadata.RequestID +} - // Information about the instance. - InstanceSummary *InstanceSummary `locationName:"instanceSummary" deprecated:"true" type:"structure"` +// The tag filter was specified in an invalid format. +type InvalidTagFilterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentInstanceOutput) String() string { +func (s InvalidTagFilterException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentInstanceOutput) GoString() string { +func (s InvalidTagFilterException) GoString() string { return s.String() } -// SetInstanceSummary sets the InstanceSummary field's value. -func (s *GetDeploymentInstanceOutput) SetInstanceSummary(v *InstanceSummary) *GetDeploymentInstanceOutput { - s.InstanceSummary = v - return s +func newErrorInvalidTagFilterException(v protocol.ResponseMetadata) error { + return &InvalidTagFilterException{ + respMetadata: v, + } } -// Represents the output of a GetDeployment operation. -type GetDeploymentOutput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidTagFilterException) Code() string { + return "InvalidTagFilterException" +} - // Information about the deployment. - DeploymentInfo *DeploymentInfo `locationName:"deploymentInfo" type:"structure"` +// Message returns the exception's message. +func (s InvalidTagFilterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagFilterException) OrigErr() error { + return nil +} + +func (s InvalidTagFilterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagFilterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagFilterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified tags are not valid. +type InvalidTagsToAddException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentOutput) String() string { +func (s InvalidTagsToAddException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentOutput) GoString() string { +func (s InvalidTagsToAddException) GoString() string { return s.String() } -// SetDeploymentInfo sets the DeploymentInfo field's value. -func (s *GetDeploymentOutput) SetDeploymentInfo(v *DeploymentInfo) *GetDeploymentOutput { - s.DeploymentInfo = v - return s +func newErrorInvalidTagsToAddException(v protocol.ResponseMetadata) error { + return &InvalidTagsToAddException{ + respMetadata: v, + } } -type GetDeploymentTargetInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s InvalidTagsToAddException) Code() string { + return "InvalidTagsToAddException" +} - // The unique ID of a deployment. - DeploymentId *string `locationName:"deploymentId" type:"string"` +// Message returns the exception's message. +func (s InvalidTagsToAddException) Message() string { + return "" +} - // The unique ID of a deployment target. - TargetId *string `locationName:"targetId" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagsToAddException) OrigErr() error { + return nil +} + +func (s InvalidTagsToAddException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagsToAddException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagsToAddException) RequestID() string { + return s.respMetadata.RequestID +} + +// The target filter name is invalid. +type InvalidTargetFilterNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetDeploymentTargetInput) String() string { +func (s InvalidTargetFilterNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetDeploymentTargetInput) GoString() string { +func (s InvalidTargetFilterNameException) GoString() string { return s.String() } -// SetDeploymentId sets the DeploymentId field's value. -func (s *GetDeploymentTargetInput) SetDeploymentId(v string) *GetDeploymentTargetInput { - s.DeploymentId = &v - return s +func newErrorInvalidTargetFilterNameException(v protocol.ResponseMetadata) error { + return &InvalidTargetFilterNameException{ + respMetadata: v, + } } -// SetTargetId sets the TargetId field's value. -func (s *GetDeploymentTargetInput) SetTargetId(v string) *GetDeploymentTargetInput { - s.TargetId = &v - return s +// Code returns the exception type name. +func (s InvalidTargetFilterNameException) Code() string { + return "InvalidTargetFilterNameException" } - -type GetDeploymentTargetOutput struct { - _ struct{} `type:"structure"` - - // A deployment target that contains information about a deployment such as - // its status, lifecyle events, and when it was last updated. It also contains - // metadata about the deployment target. The deployment target metadata depends - // on the deployment target's type (instanceTarget, lambdaTarget, or ecsTarget). - DeploymentTarget *DeploymentTarget `locationName:"deploymentTarget" type:"structure"` + +// Message returns the exception's message. +func (s InvalidTargetFilterNameException) Message() string { + return "" } -// String returns the string representation -func (s GetDeploymentTargetOutput) String() string { - return awsutil.Prettify(s) +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTargetFilterNameException) OrigErr() error { + return nil } -// GoString returns the string representation -func (s GetDeploymentTargetOutput) GoString() string { - return s.String() +func (s InvalidTargetFilterNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetDeploymentTarget sets the DeploymentTarget field's value. -func (s *GetDeploymentTargetOutput) SetDeploymentTarget(v *DeploymentTarget) *GetDeploymentTargetOutput { - s.DeploymentTarget = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTargetFilterNameException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents the input of a GetOnPremisesInstance operation. -type GetOnPremisesInstanceInput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTargetFilterNameException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of the on-premises instance about which to get information. - // - // InstanceName is a required field - InstanceName *string `locationName:"instanceName" type:"string" required:"true"` +// A target group pair associated with this deployment is not valid. +type InvalidTargetGroupPairException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetOnPremisesInstanceInput) String() string { +func (s InvalidTargetGroupPairException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetOnPremisesInstanceInput) GoString() string { +func (s InvalidTargetGroupPairException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *GetOnPremisesInstanceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "GetOnPremisesInstanceInput"} - if s.InstanceName == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceName")) +func newErrorInvalidTargetGroupPairException(v protocol.ResponseMetadata) error { + return &InvalidTargetGroupPairException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidTargetGroupPairException) Code() string { + return "InvalidTargetGroupPairException" +} + +// Message returns the exception's message. +func (s InvalidTargetGroupPairException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTargetGroupPairException) OrigErr() error { return nil } -// SetInstanceName sets the InstanceName field's value. -func (s *GetOnPremisesInstanceInput) SetInstanceName(v string) *GetOnPremisesInstanceInput { - s.InstanceName = &v - return s +func (s InvalidTargetGroupPairException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the output of a GetOnPremisesInstance operation. -type GetOnPremisesInstanceOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTargetGroupPairException) StatusCode() int { + return s.respMetadata.StatusCode +} - // Information about the on-premises instance. - InstanceInfo *InstanceInfo `locationName:"instanceInfo" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTargetGroupPairException) RequestID() string { + return s.respMetadata.RequestID +} + +// The target instance configuration is invalid. Possible causes include: +// +// * Configuration data for target instances was entered for an in-place +// deployment. +// +// * The limit of 10 tags for a tag type was exceeded. +// +// * The combined length of the tag names exceeded the limit. +// +// * A specified tag is not currently applied to any instances. +type InvalidTargetInstancesException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GetOnPremisesInstanceOutput) String() string { +func (s InvalidTargetInstancesException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GetOnPremisesInstanceOutput) GoString() string { +func (s InvalidTargetInstancesException) GoString() string { return s.String() } -// SetInstanceInfo sets the InstanceInfo field's value. -func (s *GetOnPremisesInstanceOutput) SetInstanceInfo(v *InstanceInfo) *GetOnPremisesInstanceOutput { - s.InstanceInfo = v - return s +func newErrorInvalidTargetInstancesException(v protocol.ResponseMetadata) error { + return &InvalidTargetInstancesException{ + respMetadata: v, + } } -// Information about the location of application artifacts stored in GitHub. -type GitHubLocation struct { - _ struct{} `type:"structure"` - - // The SHA1 commit ID of the GitHub commit that represents the bundled artifacts - // for the application revision. - CommitId *string `locationName:"commitId" type:"string"` - - // The GitHub account and repository pair that stores a reference to the commit - // that represents the bundled artifacts for the application revision. - // - // Specified as account/repository. - Repository *string `locationName:"repository" type:"string"` +// Code returns the exception type name. +func (s InvalidTargetInstancesException) Code() string { + return "InvalidTargetInstancesException" } -// String returns the string representation -func (s GitHubLocation) String() string { - return awsutil.Prettify(s) +// Message returns the exception's message. +func (s InvalidTargetInstancesException) Message() string { + return "" } -// GoString returns the string representation -func (s GitHubLocation) GoString() string { - return s.String() +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTargetInstancesException) OrigErr() error { + return nil } -// SetCommitId sets the CommitId field's value. -func (s *GitHubLocation) SetCommitId(v string) *GitHubLocation { - s.CommitId = &v - return s +func (s InvalidTargetInstancesException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRepository sets the Repository field's value. -func (s *GitHubLocation) SetRepository(v string) *GitHubLocation { - s.Repository = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTargetInstancesException) StatusCode() int { + return s.respMetadata.StatusCode } -// Information about the instances that belong to the replacement environment -// in a blue/green deployment. -type GreenFleetProvisioningOption struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTargetInstancesException) RequestID() string { + return s.respMetadata.RequestID +} - // The method used to add instances to a replacement environment. - // - // * DISCOVER_EXISTING: Use instances that already exist or will be created - // manually. - // - // * COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling - // group to define and create instances in a new Auto Scaling group. - Action *string `locationName:"action" type:"string" enum:"GreenFleetProvisioningAction"` +// The specified time range was specified in an invalid format. +type InvalidTimeRangeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s GreenFleetProvisioningOption) String() string { +func (s InvalidTimeRangeException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s GreenFleetProvisioningOption) GoString() string { +func (s InvalidTimeRangeException) GoString() string { return s.String() } -// SetAction sets the Action field's value. -func (s *GreenFleetProvisioningOption) SetAction(v string) *GreenFleetProvisioningOption { - s.Action = &v - return s +func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error { + return &InvalidTimeRangeException{ + respMetadata: v, + } } -// Information about an on-premises instance. -type InstanceInfo struct { - _ struct{} `type:"structure"` - - // If the on-premises instance was deregistered, the time at which the on-premises - // instance was deregistered. - DeregisterTime *time.Time `locationName:"deregisterTime" type:"timestamp"` +// Code returns the exception type name. +func (s InvalidTimeRangeException) Code() string { + return "InvalidTimeRangeException" +} - // The ARN of the IAM session associated with the on-premises instance. - IamSessionArn *string `locationName:"iamSessionArn" type:"string"` +// Message returns the exception's message. +func (s InvalidTimeRangeException) Message() string { + return "" +} - // The IAM user ARN associated with the on-premises instance. - IamUserArn *string `locationName:"iamUserArn" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTimeRangeException) OrigErr() error { + return nil +} - // The ARN of the on-premises instance. - InstanceArn *string `locationName:"instanceArn" type:"string"` +func (s InvalidTimeRangeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the on-premises instance. - InstanceName *string `locationName:"instanceName" type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTimeRangeException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The time at which the on-premises instance was registered. - RegisterTime *time.Time `locationName:"registerTime" type:"timestamp"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTimeRangeException) RequestID() string { + return s.respMetadata.RequestID +} - // The tags currently associated with the on-premises instance. - Tags []*Tag `locationName:"tags" type:"list"` +// The configuration that specifies how traffic is routed during a deployment +// is invalid. +type InvalidTrafficRoutingConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s InstanceInfo) String() string { +func (s InvalidTrafficRoutingConfigurationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceInfo) GoString() string { +func (s InvalidTrafficRoutingConfigurationException) GoString() string { return s.String() } -// SetDeregisterTime sets the DeregisterTime field's value. -func (s *InstanceInfo) SetDeregisterTime(v time.Time) *InstanceInfo { - s.DeregisterTime = &v - return s +func newErrorInvalidTrafficRoutingConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidTrafficRoutingConfigurationException{ + respMetadata: v, + } } -// SetIamSessionArn sets the IamSessionArn field's value. -func (s *InstanceInfo) SetIamSessionArn(v string) *InstanceInfo { - s.IamSessionArn = &v - return s +// Code returns the exception type name. +func (s InvalidTrafficRoutingConfigurationException) Code() string { + return "InvalidTrafficRoutingConfigurationException" } -// SetIamUserArn sets the IamUserArn field's value. -func (s *InstanceInfo) SetIamUserArn(v string) *InstanceInfo { - s.IamUserArn = &v - return s +// Message returns the exception's message. +func (s InvalidTrafficRoutingConfigurationException) Message() string { + return "" } -// SetInstanceArn sets the InstanceArn field's value. -func (s *InstanceInfo) SetInstanceArn(v string) *InstanceInfo { - s.InstanceArn = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTrafficRoutingConfigurationException) OrigErr() error { + return nil } -// SetInstanceName sets the InstanceName field's value. -func (s *InstanceInfo) SetInstanceName(v string) *InstanceInfo { - s.InstanceName = &v - return s +func (s InvalidTrafficRoutingConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRegisterTime sets the RegisterTime field's value. -func (s *InstanceInfo) SetRegisterTime(v time.Time) *InstanceInfo { - s.RegisterTime = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTrafficRoutingConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetTags sets the Tags field's value. -func (s *InstanceInfo) SetTags(v []*Tag) *InstanceInfo { - s.Tags = v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidTrafficRoutingConfigurationException) RequestID() string { + return s.respMetadata.RequestID } -// Information about an instance in a deployment. -// -// Deprecated: InstanceSummary is deprecated, use DeploymentTarget instead. -type InstanceSummary struct { - _ struct{} `deprecated:"true" type:"structure"` - - // The unique ID of a deployment. - DeploymentId *string `locationName:"deploymentId" type:"string"` - - // The instance ID. - InstanceId *string `locationName:"instanceId" type:"string"` - - // Information about which environment an instance belongs to in a blue/green - // deployment. - // - // * BLUE: The instance is part of the original environment. - // - // * GREEN: The instance is part of the replacement environment. - InstanceType *string `locationName:"instanceType" type:"string" enum:"InstanceType"` - - // A timestamp that indicaties when the instance information was last updated. - LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` - - // A list of lifecycle events for this instance. - LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` - - // The deployment status for this instance: - // - // * Pending: The deployment is pending for this instance. - // - // * In Progress: The deployment is in progress for this instance. - // - // * Succeeded: The deployment has succeeded for this instance. - // - // * Failed: The deployment has failed for this instance. - // - // * Skipped: The deployment has been skipped for this instance. - // - // * Unknown: The deployment status is unknown for this instance. - Status *string `locationName:"status" deprecated:"true" type:"string" enum:"InstanceStatus"` +// The trigger was specified in an invalid format. +type InvalidTriggerConfigException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s InstanceSummary) String() string { +func (s InvalidTriggerConfigException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceSummary) GoString() string { +func (s InvalidTriggerConfigException) GoString() string { return s.String() } -// SetDeploymentId sets the DeploymentId field's value. -func (s *InstanceSummary) SetDeploymentId(v string) *InstanceSummary { - s.DeploymentId = &v - return s +func newErrorInvalidTriggerConfigException(v protocol.ResponseMetadata) error { + return &InvalidTriggerConfigException{ + respMetadata: v, + } } -// SetInstanceId sets the InstanceId field's value. -func (s *InstanceSummary) SetInstanceId(v string) *InstanceSummary { - s.InstanceId = &v - return s +// Code returns the exception type name. +func (s InvalidTriggerConfigException) Code() string { + return "InvalidTriggerConfigException" } -// SetInstanceType sets the InstanceType field's value. -func (s *InstanceSummary) SetInstanceType(v string) *InstanceSummary { - s.InstanceType = &v - return s +// Message returns the exception's message. +func (s InvalidTriggerConfigException) Message() string { + return "" } -// SetLastUpdatedAt sets the LastUpdatedAt field's value. -func (s *InstanceSummary) SetLastUpdatedAt(v time.Time) *InstanceSummary { - s.LastUpdatedAt = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTriggerConfigException) OrigErr() error { + return nil } -// SetLifecycleEvents sets the LifecycleEvents field's value. -func (s *InstanceSummary) SetLifecycleEvents(v []*LifecycleEvent) *InstanceSummary { - s.LifecycleEvents = v - return s +func (s InvalidTriggerConfigException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetStatus sets the Status field's value. -func (s *InstanceSummary) SetStatus(v string) *InstanceSummary { - s.Status = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTriggerConfigException) StatusCode() int { + return s.respMetadata.StatusCode } -// A target Amazon EC2 or on-premises instance during a deployment that uses -// the EC2/On-premises compute platform. -type InstanceTarget struct { - _ struct{} `type:"structure"` - - // The unique ID of a deployment. - DeploymentId *string `locationName:"deploymentId" type:"string"` - - // A label that identifies whether the instance is an original target (BLUE) - // or a replacement target (GREEN). - InstanceLabel *string `locationName:"instanceLabel" type:"string" enum:"TargetLabel"` - - // The date and time when the target instance was updated by a deployment. - LastUpdatedAt *time.Time `locationName:"lastUpdatedAt" type:"timestamp"` - - // The lifecycle events of the deployment to this target instance. - LifecycleEvents []*LifecycleEvent `locationName:"lifecycleEvents" type:"list"` - - // The status an EC2/On-premises deployment's target instance. - Status *string `locationName:"status" type:"string" enum:"TargetStatus"` - - // The ARN of the target. - TargetArn *string `locationName:"targetArn" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidTriggerConfigException) RequestID() string { + return s.respMetadata.RequestID +} - // The unique ID of a deployment target that has a type of instanceTarget. - TargetId *string `locationName:"targetId" type:"string"` +// The UpdateOutdatedInstancesOnly value is invalid. For AWS Lambda deployments, +// false is expected. For EC2/On-premises deployments, true or false is expected. +type InvalidUpdateOutdatedInstancesOnlyValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s InstanceTarget) String() string { +func (s InvalidUpdateOutdatedInstancesOnlyValueException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceTarget) GoString() string { +func (s InvalidUpdateOutdatedInstancesOnlyValueException) GoString() string { return s.String() } -// SetDeploymentId sets the DeploymentId field's value. -func (s *InstanceTarget) SetDeploymentId(v string) *InstanceTarget { - s.DeploymentId = &v - return s +func newErrorInvalidUpdateOutdatedInstancesOnlyValueException(v protocol.ResponseMetadata) error { + return &InvalidUpdateOutdatedInstancesOnlyValueException{ + respMetadata: v, + } } -// SetInstanceLabel sets the InstanceLabel field's value. -func (s *InstanceTarget) SetInstanceLabel(v string) *InstanceTarget { - s.InstanceLabel = &v - return s +// Code returns the exception type name. +func (s InvalidUpdateOutdatedInstancesOnlyValueException) Code() string { + return "InvalidUpdateOutdatedInstancesOnlyValueException" } -// SetLastUpdatedAt sets the LastUpdatedAt field's value. -func (s *InstanceTarget) SetLastUpdatedAt(v time.Time) *InstanceTarget { - s.LastUpdatedAt = &v - return s +// Message returns the exception's message. +func (s InvalidUpdateOutdatedInstancesOnlyValueException) Message() string { + return "" } -// SetLifecycleEvents sets the LifecycleEvents field's value. -func (s *InstanceTarget) SetLifecycleEvents(v []*LifecycleEvent) *InstanceTarget { - s.LifecycleEvents = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidUpdateOutdatedInstancesOnlyValueException) OrigErr() error { + return nil } -// SetStatus sets the Status field's value. -func (s *InstanceTarget) SetStatus(v string) *InstanceTarget { - s.Status = &v - return s +func (s InvalidUpdateOutdatedInstancesOnlyValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetTargetArn sets the TargetArn field's value. -func (s *InstanceTarget) SetTargetArn(v string) *InstanceTarget { - s.TargetArn = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidUpdateOutdatedInstancesOnlyValueException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetTargetId sets the TargetId field's value. -func (s *InstanceTarget) SetTargetId(v string) *InstanceTarget { - s.TargetId = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidUpdateOutdatedInstancesOnlyValueException) RequestID() string { + return s.respMetadata.RequestID } // Information about a Lambda function specified in a deployment. @@ -9495,6 +14295,108 @@ func (s *LifecycleEvent) SetStatus(v string) *LifecycleEvent { return s } +// An attempt to return the status of an already completed lifecycle event occurred. +type LifecycleEventAlreadyCompletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LifecycleEventAlreadyCompletedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecycleEventAlreadyCompletedException) GoString() string { + return s.String() +} + +func newErrorLifecycleEventAlreadyCompletedException(v protocol.ResponseMetadata) error { + return &LifecycleEventAlreadyCompletedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LifecycleEventAlreadyCompletedException) Code() string { + return "LifecycleEventAlreadyCompletedException" +} + +// Message returns the exception's message. +func (s LifecycleEventAlreadyCompletedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LifecycleEventAlreadyCompletedException) OrigErr() error { + return nil +} + +func (s LifecycleEventAlreadyCompletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LifecycleEventAlreadyCompletedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LifecycleEventAlreadyCompletedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The limit for lifecycle hooks was exceeded. +type LifecycleHookLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LifecycleHookLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecycleHookLimitExceededException) GoString() string { + return s.String() +} + +func newErrorLifecycleHookLimitExceededException(v protocol.ResponseMetadata) error { + return &LifecycleHookLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LifecycleHookLimitExceededException) Code() string { + return "LifecycleHookLimitExceededException" +} + +// Message returns the exception's message. +func (s LifecycleHookLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LifecycleHookLimitExceededException) OrigErr() error { + return nil +} + +func (s LifecycleHookLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LifecycleHookLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LifecycleHookLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a ListApplicationRevisions operation. type ListApplicationRevisionsInput struct { _ struct{} `type:"structure"` @@ -10545,6 +15447,58 @@ func (s *MinimumHealthyHosts) SetValue(v int64) *MinimumHealthyHosts { return s } +// Both an IAM user ARN and an IAM session ARN were included in the request. +// Use only one ARN type. +type MultipleIamArnsProvidedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MultipleIamArnsProvidedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MultipleIamArnsProvidedException) GoString() string { + return s.String() +} + +func newErrorMultipleIamArnsProvidedException(v protocol.ResponseMetadata) error { + return &MultipleIamArnsProvidedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MultipleIamArnsProvidedException) Code() string { + return "MultipleIamArnsProvidedException" +} + +// Message returns the exception's message. +func (s MultipleIamArnsProvidedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MultipleIamArnsProvidedException) OrigErr() error { + return nil +} + +func (s MultipleIamArnsProvidedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MultipleIamArnsProvidedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MultipleIamArnsProvidedException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about groups of on-premises instance tags. type OnPremisesTagSet struct { _ struct{} `type:"structure"` @@ -10571,6 +15525,57 @@ func (s *OnPremisesTagSet) SetOnPremisesTagSetList(v [][]*TagFilter) *OnPremises return s } +// The API used does not support the deployment. +type OperationNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OperationNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotSupportedException) GoString() string { + return s.String() +} + +func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error { + return &OperationNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotSupportedException) Code() string { + return "OperationNotSupportedException" +} + +// Message returns the exception's message. +func (s OperationNotSupportedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotSupportedException) OrigErr() error { + return nil +} + +func (s OperationNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + type PutLifecycleEventHookExecutionStatusInput struct { _ struct{} `type:"structure"` @@ -10825,76 +15830,229 @@ func (s RegisterOnPremisesInstanceOutput) String() string { return awsutil.Prettify(s) } -// GoString returns the string representation -func (s RegisterOnPremisesInstanceOutput) GoString() string { - return s.String() +// GoString returns the string representation +func (s RegisterOnPremisesInstanceOutput) GoString() string { + return s.String() +} + +// Represents the input of a RemoveTagsFromOnPremisesInstances operation. +type RemoveTagsFromOnPremisesInstancesInput struct { + _ struct{} `type:"structure"` + + // The names of the on-premises instances from which to remove tags. + // + // InstanceNames is a required field + InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` + + // The tag key-value pairs to remove from the on-premises instances. + // + // Tags is a required field + Tags []*Tag `locationName:"tags" type:"list" required:"true"` +} + +// String returns the string representation +func (s RemoveTagsFromOnPremisesInstancesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"} + if s.InstanceNames == nil { + invalidParams.Add(request.NewErrParamRequired("InstanceNames")) + } + if s.Tags == nil { + invalidParams.Add(request.NewErrParamRequired("Tags")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetInstanceNames sets the InstanceNames field's value. +func (s *RemoveTagsFromOnPremisesInstancesInput) SetInstanceNames(v []*string) *RemoveTagsFromOnPremisesInstancesInput { + s.InstanceNames = v + return s +} + +// SetTags sets the Tags field's value. +func (s *RemoveTagsFromOnPremisesInstancesInput) SetTags(v []*Tag) *RemoveTagsFromOnPremisesInstancesInput { + s.Tags = v + return s +} + +type RemoveTagsFromOnPremisesInstancesOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveTagsFromOnPremisesInstancesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string { + return s.String() +} + +// The ARN of a resource is required, but was not found. +type ResourceArnRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceArnRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceArnRequiredException) GoString() string { + return s.String() +} + +func newErrorResourceArnRequiredException(v protocol.ResponseMetadata) error { + return &ResourceArnRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceArnRequiredException) Code() string { + return "ResourceArnRequiredException" +} + +// Message returns the exception's message. +func (s ResourceArnRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceArnRequiredException) OrigErr() error { + return nil +} + +func (s ResourceArnRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceArnRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceArnRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource could not be validated. +type ResourceValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceValidationException) GoString() string { + return s.String() +} + +func newErrorResourceValidationException(v protocol.ResponseMetadata) error { + return &ResourceValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceValidationException) Code() string { + return "ResourceValidationException" +} + +// Message returns the exception's message. +func (s ResourceValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceValidationException) OrigErr() error { + return nil +} + +func (s ResourceValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Represents the input of a RemoveTagsFromOnPremisesInstances operation. -type RemoveTagsFromOnPremisesInstancesInput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s ResourceValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The names of the on-premises instances from which to remove tags. - // - // InstanceNames is a required field - InstanceNames []*string `locationName:"instanceNames" type:"list" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s ResourceValidationException) RequestID() string { + return s.respMetadata.RequestID +} - // The tag key-value pairs to remove from the on-premises instances. - // - // Tags is a required field - Tags []*Tag `locationName:"tags" type:"list" required:"true"` +// The named revision does not exist with the IAM user or AWS account. +type RevisionDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s RemoveTagsFromOnPremisesInstancesInput) String() string { +func (s RevisionDoesNotExistException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemoveTagsFromOnPremisesInstancesInput) GoString() string { +func (s RevisionDoesNotExistException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveTagsFromOnPremisesInstancesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveTagsFromOnPremisesInstancesInput"} - if s.InstanceNames == nil { - invalidParams.Add(request.NewErrParamRequired("InstanceNames")) - } - if s.Tags == nil { - invalidParams.Add(request.NewErrParamRequired("Tags")) +func newErrorRevisionDoesNotExistException(v protocol.ResponseMetadata) error { + return &RevisionDoesNotExistException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s RevisionDoesNotExistException) Code() string { + return "RevisionDoesNotExistException" } -// SetInstanceNames sets the InstanceNames field's value. -func (s *RemoveTagsFromOnPremisesInstancesInput) SetInstanceNames(v []*string) *RemoveTagsFromOnPremisesInstancesInput { - s.InstanceNames = v - return s +// Message returns the exception's message. +func (s RevisionDoesNotExistException) Message() string { + return "" } -// SetTags sets the Tags field's value. -func (s *RemoveTagsFromOnPremisesInstancesInput) SetTags(v []*Tag) *RemoveTagsFromOnPremisesInstancesInput { - s.Tags = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RevisionDoesNotExistException) OrigErr() error { + return nil } -type RemoveTagsFromOnPremisesInstancesOutput struct { - _ struct{} `type:"structure"` +func (s RevisionDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// String returns the string representation -func (s RemoveTagsFromOnPremisesInstancesOutput) String() string { - return awsutil.Prettify(s) +// Status code returns the HTTP status code for the request's response error. +func (s RevisionDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode } -// GoString returns the string representation -func (s RemoveTagsFromOnPremisesInstancesOutput) GoString() string { - return s.String() +// RequestID returns the service's response RequestID for request. +func (s RevisionDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID } // Information about an application revision. @@ -11001,6 +16159,108 @@ func (s *RevisionLocation) SetString_(v *RawString) *RevisionLocation { return s } +// The revision ID was not specified. +type RevisionRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s RevisionRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RevisionRequiredException) GoString() string { + return s.String() +} + +func newErrorRevisionRequiredException(v protocol.ResponseMetadata) error { + return &RevisionRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RevisionRequiredException) Code() string { + return "RevisionRequiredException" +} + +// Message returns the exception's message. +func (s RevisionRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RevisionRequiredException) OrigErr() error { + return nil +} + +func (s RevisionRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RevisionRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RevisionRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The role ID was not specified. +type RoleRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s RoleRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RoleRequiredException) GoString() string { + return s.String() +} + +func newErrorRoleRequiredException(v protocol.ResponseMetadata) error { + return &RoleRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RoleRequiredException) Code() string { + return "RoleRequiredException" +} + +// Message returns the exception's message. +func (s RoleRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RoleRequiredException) OrigErr() error { + return nil +} + +func (s RoleRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RoleRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RoleRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a deployment rollback. type RollbackInfo struct { _ struct{} `type:"structure"` @@ -11327,6 +16587,108 @@ func (s *TagFilter) SetValue(v string) *TagFilter { return s } +// The maximum allowed number of tags was exceeded. +type TagLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error { + return &TagLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagLimitExceededException) Code() string { + return "TagLimitExceededException" +} + +// Message returns the exception's message. +func (s TagLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagLimitExceededException) OrigErr() error { + return nil +} + +func (s TagLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A tag was not specified. +type TagRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagRequiredException) GoString() string { + return s.String() +} + +func newErrorTagRequiredException(v protocol.ResponseMetadata) error { + return &TagRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagRequiredException) Code() string { + return "TagRequiredException" +} + +// Message returns the exception's message. +func (s TagRequiredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagRequiredException) OrigErr() error { + return nil +} + +func (s TagRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -11397,6 +16759,58 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The number of tag groups included in the tag set list exceeded the maximum +// allowed limit of 3. +type TagSetListLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagSetListLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagSetListLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTagSetListLimitExceededException(v protocol.ResponseMetadata) error { + return &TagSetListLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagSetListLimitExceededException) Code() string { + return "TagSetListLimitExceededException" +} + +// Message returns the exception's message. +func (s TagSetListLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagSetListLimitExceededException) OrigErr() error { + return nil +} + +func (s TagSetListLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagSetListLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagSetListLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a target group in Elastic Load Balancing to use in a deployment. // Instances are registered as targets in a target group, and traffic is routed // to the target group. @@ -11524,6 +16938,57 @@ func (s *TargetInstances) SetTagFilters(v []*EC2TagFilter) *TargetInstances { return s } +// An API function was called too frequently. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // A configuration that shifts traffic from one version of a Lambda function // to another in two increments. The original and target Lambda function versions // are specified in the deployment's AppSpec file. @@ -11755,6 +17220,108 @@ func (s *TriggerConfig) SetTriggerTargetArn(v string) *TriggerConfig { return s } +// The maximum allowed number of triggers was exceeded. +type TriggerTargetsLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TriggerTargetsLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TriggerTargetsLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTriggerTargetsLimitExceededException(v protocol.ResponseMetadata) error { + return &TriggerTargetsLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TriggerTargetsLimitExceededException) Code() string { + return "TriggerTargetsLimitExceededException" +} + +// Message returns the exception's message. +func (s TriggerTargetsLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TriggerTargetsLimitExceededException) OrigErr() error { + return nil +} + +func (s TriggerTargetsLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TriggerTargetsLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TriggerTargetsLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A call was submitted that is not supported for the specified deployment type. +type UnsupportedActionForDeploymentTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UnsupportedActionForDeploymentTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedActionForDeploymentTypeException) GoString() string { + return s.String() +} + +func newErrorUnsupportedActionForDeploymentTypeException(v protocol.ResponseMetadata) error { + return &UnsupportedActionForDeploymentTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedActionForDeploymentTypeException) Code() string { + return "UnsupportedActionForDeploymentTypeException" +} + +// Message returns the exception's message. +func (s UnsupportedActionForDeploymentTypeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedActionForDeploymentTypeException) OrigErr() error { + return nil +} + +func (s UnsupportedActionForDeploymentTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedActionForDeploymentTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedActionForDeploymentTypeException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/codedeploy/errors.go b/service/codedeploy/errors.go index 2d4a5150740..89a7dac6881 100644 --- a/service/codedeploy/errors.go +++ b/service/codedeploy/errors.go @@ -2,6 +2,10 @@ package codedeploy +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlarmsLimitExceededException for service response error code @@ -706,3 +710,114 @@ const ( // A call was submitted that is not supported for the specified deployment type. ErrCodeUnsupportedActionForDeploymentTypeException = "UnsupportedActionForDeploymentTypeException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlarmsLimitExceededException": newErrorAlarmsLimitExceededException, + "ApplicationAlreadyExistsException": newErrorApplicationAlreadyExistsException, + "ApplicationDoesNotExistException": newErrorApplicationDoesNotExistException, + "ApplicationLimitExceededException": newErrorApplicationLimitExceededException, + "ApplicationNameRequiredException": newErrorApplicationNameRequiredException, + "ArnNotSupportedException": newErrorArnNotSupportedException, + "BatchLimitExceededException": newErrorBatchLimitExceededException, + "BucketNameFilterRequiredException": newErrorBucketNameFilterRequiredException, + "DeploymentAlreadyCompletedException": newErrorDeploymentAlreadyCompletedException, + "DeploymentConfigAlreadyExistsException": newErrorDeploymentConfigAlreadyExistsException, + "DeploymentConfigDoesNotExistException": newErrorDeploymentConfigDoesNotExistException, + "DeploymentConfigInUseException": newErrorDeploymentConfigInUseException, + "DeploymentConfigLimitExceededException": newErrorDeploymentConfigLimitExceededException, + "DeploymentConfigNameRequiredException": newErrorDeploymentConfigNameRequiredException, + "DeploymentDoesNotExistException": newErrorDeploymentDoesNotExistException, + "DeploymentGroupAlreadyExistsException": newErrorDeploymentGroupAlreadyExistsException, + "DeploymentGroupDoesNotExistException": newErrorDeploymentGroupDoesNotExistException, + "DeploymentGroupLimitExceededException": newErrorDeploymentGroupLimitExceededException, + "DeploymentGroupNameRequiredException": newErrorDeploymentGroupNameRequiredException, + "DeploymentIdRequiredException": newErrorDeploymentIdRequiredException, + "DeploymentIsNotInReadyStateException": newErrorDeploymentIsNotInReadyStateException, + "DeploymentLimitExceededException": newErrorDeploymentLimitExceededException, + "DeploymentNotStartedException": newErrorDeploymentNotStartedException, + "DeploymentTargetDoesNotExistException": newErrorDeploymentTargetDoesNotExistException, + "DeploymentTargetIdRequiredException": newErrorDeploymentTargetIdRequiredException, + "DeploymentTargetListSizeExceededException": newErrorDeploymentTargetListSizeExceededException, + "DescriptionTooLongException": newErrorDescriptionTooLongException, + "ECSServiceMappingLimitExceededException": newErrorECSServiceMappingLimitExceededException, + "GitHubAccountTokenDoesNotExistException": newErrorGitHubAccountTokenDoesNotExistException, + "GitHubAccountTokenNameRequiredException": newErrorGitHubAccountTokenNameRequiredException, + "IamArnRequiredException": newErrorIamArnRequiredException, + "IamSessionArnAlreadyRegisteredException": newErrorIamSessionArnAlreadyRegisteredException, + "IamUserArnAlreadyRegisteredException": newErrorIamUserArnAlreadyRegisteredException, + "IamUserArnRequiredException": newErrorIamUserArnRequiredException, + "InstanceDoesNotExistException": newErrorInstanceDoesNotExistException, + "InstanceIdRequiredException": newErrorInstanceIdRequiredException, + "InstanceLimitExceededException": newErrorInstanceLimitExceededException, + "InstanceNameAlreadyRegisteredException": newErrorInstanceNameAlreadyRegisteredException, + "InstanceNameRequiredException": newErrorInstanceNameRequiredException, + "InstanceNotRegisteredException": newErrorInstanceNotRegisteredException, + "InvalidAlarmConfigException": newErrorInvalidAlarmConfigException, + "InvalidApplicationNameException": newErrorInvalidApplicationNameException, + "InvalidArnException": newErrorInvalidArnException, + "InvalidAutoRollbackConfigException": newErrorInvalidAutoRollbackConfigException, + "InvalidAutoScalingGroupException": newErrorInvalidAutoScalingGroupException, + "InvalidBlueGreenDeploymentConfigurationException": newErrorInvalidBlueGreenDeploymentConfigurationException, + "InvalidBucketNameFilterException": newErrorInvalidBucketNameFilterException, + "InvalidComputePlatformException": newErrorInvalidComputePlatformException, + "InvalidDeployedStateFilterException": newErrorInvalidDeployedStateFilterException, + "InvalidDeploymentConfigNameException": newErrorInvalidDeploymentConfigNameException, + "InvalidDeploymentGroupNameException": newErrorInvalidDeploymentGroupNameException, + "InvalidDeploymentIdException": newErrorInvalidDeploymentIdException, + "InvalidDeploymentInstanceTypeException": newErrorInvalidDeploymentInstanceTypeException, + "InvalidDeploymentStatusException": newErrorInvalidDeploymentStatusException, + "InvalidDeploymentStyleException": newErrorInvalidDeploymentStyleException, + "InvalidDeploymentTargetIdException": newErrorInvalidDeploymentTargetIdException, + "InvalidDeploymentWaitTypeException": newErrorInvalidDeploymentWaitTypeException, + "InvalidEC2TagCombinationException": newErrorInvalidEC2TagCombinationException, + "InvalidEC2TagException": newErrorInvalidEC2TagException, + "InvalidECSServiceException": newErrorInvalidECSServiceException, + "InvalidFileExistsBehaviorException": newErrorInvalidFileExistsBehaviorException, + "InvalidGitHubAccountTokenException": newErrorInvalidGitHubAccountTokenException, + "InvalidGitHubAccountTokenNameException": newErrorInvalidGitHubAccountTokenNameException, + "InvalidIamSessionArnException": newErrorInvalidIamSessionArnException, + "InvalidIamUserArnException": newErrorInvalidIamUserArnException, + "InvalidIgnoreApplicationStopFailuresValueException": newErrorInvalidIgnoreApplicationStopFailuresValueException, + "InvalidInputException": newErrorInvalidInputException, + "InvalidInstanceNameException": newErrorInvalidInstanceNameException, + "InvalidInstanceStatusException": newErrorInvalidInstanceStatusException, + "InvalidInstanceTypeException": newErrorInvalidInstanceTypeException, + "InvalidKeyPrefixFilterException": newErrorInvalidKeyPrefixFilterException, + "InvalidLifecycleEventHookExecutionIdException": newErrorInvalidLifecycleEventHookExecutionIdException, + "InvalidLifecycleEventHookExecutionStatusException": newErrorInvalidLifecycleEventHookExecutionStatusException, + "InvalidLoadBalancerInfoException": newErrorInvalidLoadBalancerInfoException, + "InvalidMinimumHealthyHostValueException": newErrorInvalidMinimumHealthyHostValueException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidOnPremisesTagCombinationException": newErrorInvalidOnPremisesTagCombinationException, + "InvalidOperationException": newErrorInvalidOperationException, + "InvalidRegistrationStatusException": newErrorInvalidRegistrationStatusException, + "InvalidRevisionException": newErrorInvalidRevisionException, + "InvalidRoleException": newErrorInvalidRoleException, + "InvalidSortByException": newErrorInvalidSortByException, + "InvalidSortOrderException": newErrorInvalidSortOrderException, + "InvalidTagException": newErrorInvalidTagException, + "InvalidTagFilterException": newErrorInvalidTagFilterException, + "InvalidTagsToAddException": newErrorInvalidTagsToAddException, + "InvalidTargetFilterNameException": newErrorInvalidTargetFilterNameException, + "InvalidTargetGroupPairException": newErrorInvalidTargetGroupPairException, + "InvalidTargetInstancesException": newErrorInvalidTargetInstancesException, + "InvalidTimeRangeException": newErrorInvalidTimeRangeException, + "InvalidTrafficRoutingConfigurationException": newErrorInvalidTrafficRoutingConfigurationException, + "InvalidTriggerConfigException": newErrorInvalidTriggerConfigException, + "InvalidUpdateOutdatedInstancesOnlyValueException": newErrorInvalidUpdateOutdatedInstancesOnlyValueException, + "LifecycleEventAlreadyCompletedException": newErrorLifecycleEventAlreadyCompletedException, + "LifecycleHookLimitExceededException": newErrorLifecycleHookLimitExceededException, + "MultipleIamArnsProvidedException": newErrorMultipleIamArnsProvidedException, + "OperationNotSupportedException": newErrorOperationNotSupportedException, + "ResourceArnRequiredException": newErrorResourceArnRequiredException, + "ResourceValidationException": newErrorResourceValidationException, + "RevisionDoesNotExistException": newErrorRevisionDoesNotExistException, + "RevisionRequiredException": newErrorRevisionRequiredException, + "RoleRequiredException": newErrorRoleRequiredException, + "TagLimitExceededException": newErrorTagLimitExceededException, + "TagRequiredException": newErrorTagRequiredException, + "TagSetListLimitExceededException": newErrorTagSetListLimitExceededException, + "ThrottlingException": newErrorThrottlingException, + "TriggerTargetsLimitExceededException": newErrorTriggerTargetsLimitExceededException, + "UnsupportedActionForDeploymentTypeException": newErrorUnsupportedActionForDeploymentTypeException, +} diff --git a/service/codedeploy/service.go b/service/codedeploy/service.go index 234b3f5ef1a..3e34be1be99 100644 --- a/service/codedeploy/service.go +++ b/service/codedeploy/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codeguruprofiler/api.go b/service/codeguruprofiler/api.go index 5529323d88f..c211c7cd593 100644 --- a/service/codeguruprofiler/api.go +++ b/service/codeguruprofiler/api.go @@ -3,6 +3,7 @@ package codeguruprofiler import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,17 +66,17 @@ func (c *CodeGuruProfiler) ConfigureAgentRequest(input *ConfigureAgentInput) (re // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation ConfigureAgent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Request references a resource which does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ConfigureAgent @@ -153,20 +154,20 @@ func (c *CodeGuruProfiler) CreateProfilingGroupRequest(input *CreateProfilingGro // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation CreateProfilingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// Returned Error Types: +// * ServiceQuotaExceededException // Request would cause a service quota to be exceeded. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Request can can cause an inconsistent state for the resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup @@ -245,17 +246,17 @@ func (c *CodeGuruProfiler) DeleteProfilingGroupRequest(input *DeleteProfilingGro // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation DeleteProfilingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Request references a resource which does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DeleteProfilingGroup @@ -333,17 +334,17 @@ func (c *CodeGuruProfiler) DescribeProfilingGroupRequest(input *DescribeProfilin // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation DescribeProfilingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Request references a resource which does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DescribeProfilingGroup @@ -428,17 +429,17 @@ func (c *CodeGuruProfiler) GetProfileRequest(input *GetProfileInput) (req *reque // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation GetProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Request references a resource which does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetProfile @@ -523,17 +524,17 @@ func (c *CodeGuruProfiler) ListProfileTimesRequest(input *ListProfileTimesInput) // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation ListProfileTimes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Request references a resource which does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfileTimes @@ -669,11 +670,11 @@ func (c *CodeGuruProfiler) ListProfilingGroupsRequest(input *ListProfilingGroups // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation ListProfilingGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfilingGroups @@ -804,17 +805,17 @@ func (c *CodeGuruProfiler) PostAgentProfileRequest(input *PostAgentProfileInput) // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation PostAgentProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Request references a resource which does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PostAgentProfile @@ -892,20 +893,20 @@ func (c *CodeGuruProfiler) UpdateProfilingGroupRequest(input *UpdateProfilingGro // See the AWS API reference guide for Amazon CodeGuru Profiler's // API operation UpdateProfilingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // Unexpected error during processing of request. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Request can can cause an inconsistent state for the resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints of the API. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Request references a resource which does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UpdateProfilingGroup @@ -1123,6 +1124,62 @@ func (s *ConfigureAgentOutput) SetConfiguration(v *AgentConfiguration) *Configur return s } +// Request can can cause an inconsistent state for the resource. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Request for CreateProfilingGroup operation. type CreateProfilingGroupInput struct { _ struct{} `type:"structure"` @@ -1490,6 +1547,62 @@ func (s *GetProfileOutput) SetProfile(v []byte) *GetProfileOutput { return s } +// Unexpected error during processing of request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + // Request for ListProfileTimes operation. type ListProfileTimesInput struct { _ struct{} `type:"structure"` @@ -1986,6 +2099,174 @@ func (s *ProfilingStatus) SetLatestAggregatedProfile(v *AggregatedProfileTime) * return s } +// Request references a resource which does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Request would cause a service quota to be exceeded. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // Request for UpdateProfilingGroup operation. type UpdateProfilingGroupInput struct { _ struct{} `type:"structure"` @@ -2073,6 +2354,62 @@ func (s *UpdateProfilingGroupOutput) SetProfilingGroup(v *ProfilingGroupDescript return s } +// The input fails to satisfy the constraints of the API. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // Periods of time used for aggregation of profiles, represented using ISO 8601 // format. const ( diff --git a/service/codeguruprofiler/errors.go b/service/codeguruprofiler/errors.go index e71dda979ae..ddbfa115704 100644 --- a/service/codeguruprofiler/errors.go +++ b/service/codeguruprofiler/errors.go @@ -2,6 +2,10 @@ package codeguruprofiler +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConflictException for service response error code @@ -40,3 +44,12 @@ const ( // The input fails to satisfy the constraints of the API. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/codeguruprofiler/service.go b/service/codeguruprofiler/service.go index dadc2279705..87461bc3da3 100644 --- a/service/codeguruprofiler/service.go +++ b/service/codeguruprofiler/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codegurureviewer/api.go b/service/codegurureviewer/api.go index 711f9e1796f..2ece95df08e 100644 --- a/service/codegurureviewer/api.go +++ b/service/codegurureviewer/api.go @@ -3,11 +3,13 @@ package codegurureviewer import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opAssociateRepository = "AssociateRepository" @@ -69,22 +71,22 @@ func (c *CodeGuruReviewer) AssociateRepositoryRequest(input *AssociateRepository // See the AWS API reference guide for Amazon CodeGuru Reviewer's // API operation AssociateRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the specified constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/AssociateRepository @@ -162,20 +164,20 @@ func (c *CodeGuruReviewer) DescribeRepositoryAssociationRequest(input *DescribeR // See the AWS API reference guide for Amazon CodeGuru Reviewer's // API operation DescribeRepositoryAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the specified constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DescribeRepositoryAssociation @@ -253,25 +255,25 @@ func (c *CodeGuruReviewer) DisassociateRepositoryRequest(input *DisassociateRepo // See the AWS API reference guide for Amazon CodeGuru Reviewer's // API operation DisassociateRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the specified constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/DisassociateRepository @@ -357,14 +359,14 @@ func (c *CodeGuruReviewer) ListRepositoryAssociationsRequest(input *ListReposito // See the AWS API reference guide for Amazon CodeGuru Reviewer's // API operation ListRepositoryAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The server encountered an internal error and is unable to complete the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the specified constraints. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codeguru-reviewer-2019-09-19/ListRepositoryAssociations @@ -441,6 +443,62 @@ func (c *CodeGuruReviewer) ListRepositoryAssociationsPagesWithContext(ctx aws.Co return p.Err() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AssociateRepositoryInput struct { _ struct{} `type:"structure"` @@ -581,6 +639,64 @@ func (s *CodeCommitRepository) SetName(v string) *CodeCommitRepository { return s } +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type DescribeRepositoryAssociationInput struct { _ struct{} `type:"structure"` @@ -709,6 +825,62 @@ func (s *DisassociateRepositoryOutput) SetRepositoryAssociation(v *RepositoryAss return s } +// The server encountered an internal error and is unable to complete the request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListRepositoryAssociationsInput struct { _ struct{} `type:"structure"` @@ -854,6 +1026,62 @@ func (s *ListRepositoryAssociationsOutput) SetRepositoryAssociationSummaries(v [ return s } +// The resource specified in the request was not found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a repository. type Repository struct { _ struct{} `type:"structure"` @@ -1087,6 +1315,118 @@ func (s *RepositoryAssociationSummary) SetState(v string) *RepositoryAssociation return s } +// The request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input fails to satisfy the specified constraints. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ProviderTypeCodeCommit is a ProviderType enum value ProviderTypeCodeCommit = "CodeCommit" diff --git a/service/codegurureviewer/errors.go b/service/codegurureviewer/errors.go index e84072c62f0..1727039d5e4 100644 --- a/service/codegurureviewer/errors.go +++ b/service/codegurureviewer/errors.go @@ -2,6 +2,10 @@ package codegurureviewer +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -42,3 +46,12 @@ const ( // The input fails to satisfy the specified constraints. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "NotFoundException": newErrorNotFoundException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/codegurureviewer/service.go b/service/codegurureviewer/service.go index d02326e8285..8343cf68774 100644 --- a/service/codegurureviewer/service.go +++ b/service/codegurureviewer/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codepipeline/api.go b/service/codepipeline/api.go index 8ff08bfc20a..b3c06270686 100644 --- a/service/codepipeline/api.go +++ b/service/codepipeline/api.go @@ -67,14 +67,14 @@ func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *r // See the AWS API reference guide for AWS CodePipeline's // API operation AcknowledgeJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeInvalidNonceException "InvalidNonceException" +// * InvalidNonceException // The nonce was specified in an invalid format. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob @@ -153,17 +153,17 @@ func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPa // See the AWS API reference guide for AWS CodePipeline's // API operation AcknowledgeThirdPartyJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeInvalidNonceException "InvalidNonceException" +// * InvalidNonceException // The nonce was specified in an invalid format. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // The client token was specified in an invalid format // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob @@ -242,21 +242,21 @@ func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTy // See the AWS API reference guide for AWS CodePipeline's // API operation CreateCustomActionType for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The number of pipelines associated with the AWS account has exceeded the // limit allowed for the account. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The tags limit for a resource has been exceeded. // -// * ErrCodeInvalidTagsException "InvalidTagsException" +// * InvalidTagsException // The specified resource tags are invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType @@ -338,36 +338,36 @@ func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r // See the AWS API reference guide for AWS CodePipeline's // API operation CreatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNameInUseException "PipelineNameInUseException" +// * PipelineNameInUseException // The specified pipeline name is already in use. // -// * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException" +// * InvalidStageDeclarationException // The stage declaration was specified in an invalid format. // -// * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException" +// * InvalidActionDeclarationException // The action declaration was specified in an invalid format. // -// * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException" +// * InvalidBlockerDeclarationException // Reserved for future use. // -// * ErrCodeInvalidStructureException "InvalidStructureException" +// * InvalidStructureException // The structure was specified in an invalid format. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The number of pipelines associated with the AWS account has exceeded the // limit allowed for the account. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The tags limit for a resource has been exceeded. // -// * ErrCodeInvalidTagsException "InvalidTagsException" +// * InvalidTagsException // The specified resource tags are invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline @@ -453,11 +453,11 @@ func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTy // See the AWS API reference guide for AWS CodePipeline's // API operation DeleteCustomActionType for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType @@ -536,11 +536,11 @@ func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r // See the AWS API reference guide for AWS CodePipeline's // API operation DeletePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline @@ -623,11 +623,11 @@ func (c *CodePipeline) DeleteWebhookRequest(input *DeleteWebhookInput) (req *req // See the AWS API reference guide for AWS CodePipeline's // API operation DeleteWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhook @@ -708,11 +708,11 @@ func (c *CodePipeline) DeregisterWebhookWithThirdPartyRequest(input *DeregisterW // See the AWS API reference guide for AWS CodePipeline's // API operation DeregisterWebhookWithThirdParty for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeWebhookNotFoundException "WebhookNotFoundException" +// * WebhookNotFoundException // The specified webhook was entered in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdParty @@ -792,14 +792,14 @@ func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransiti // See the AWS API reference guide for AWS CodePipeline's // API operation DisableStageTransition for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeStageNotFoundException "StageNotFoundException" +// * StageNotFoundException // The stage was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition @@ -878,14 +878,14 @@ func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransition // See the AWS API reference guide for AWS CodePipeline's // API operation EnableStageTransition for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeStageNotFoundException "StageNotFoundException" +// * StageNotFoundException // The stage was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition @@ -968,11 +968,11 @@ func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *req // See the AWS API reference guide for AWS CodePipeline's // API operation GetJobDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails @@ -1052,14 +1052,14 @@ func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *request // See the AWS API reference guide for AWS CodePipeline's // API operation GetPipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodePipelineVersionNotFoundException "PipelineVersionNotFoundException" +// * PipelineVersionNotFoundException // The pipeline version was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline @@ -1139,14 +1139,14 @@ func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionIn // See the AWS API reference guide for AWS CodePipeline's // API operation GetPipelineExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodePipelineExecutionNotFoundException "PipelineExecutionNotFoundException" +// * PipelineExecutionNotFoundException // The pipeline execution was specified in an invalid format or cannot be found, // or an execution ID does not belong to the specified pipeline. // @@ -1229,11 +1229,11 @@ func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (re // See the AWS API reference guide for AWS CodePipeline's // API operation GetPipelineState for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState @@ -1317,17 +1317,17 @@ func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDet // See the AWS API reference guide for AWS CodePipeline's // API operation GetThirdPartyJobDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeJobNotFoundException "JobNotFoundException" +// Returned Error Types: +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // The client token was specified in an invalid format // -// * ErrCodeInvalidJobException "InvalidJobException" +// * InvalidJobException // The job was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails @@ -1411,18 +1411,18 @@ func (c *CodePipeline) ListActionExecutionsRequest(input *ListActionExecutionsIn // See the AWS API reference guide for AWS CodePipeline's // API operation ListActionExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. Make sure that the next // token you provide is the token returned by a previous call. // -// * ErrCodePipelineExecutionNotFoundException "PipelineExecutionNotFoundException" +// * PipelineExecutionNotFoundException // The pipeline execution was specified in an invalid format or cannot be found, // or an execution ID does not belong to the specified pipeline. // @@ -1560,11 +1560,11 @@ func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req // See the AWS API reference guide for AWS CodePipeline's // API operation ListActionTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. Make sure that the next // token you provide is the token returned by a previous call. // @@ -1701,14 +1701,14 @@ func (c *CodePipeline) ListPipelineExecutionsRequest(input *ListPipelineExecutio // See the AWS API reference guide for AWS CodePipeline's // API operation ListPipelineExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. Make sure that the next // token you provide is the token returned by a previous call. // @@ -1845,11 +1845,11 @@ func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req // See the AWS API reference guide for AWS CodePipeline's // API operation ListPipelines for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. Make sure that the next // token you provide is the token returned by a previous call. // @@ -1986,18 +1986,18 @@ func (c *CodePipeline) ListTagsForResourceRequest(input *ListTagsForResourceInpu // See the AWS API reference guide for AWS CodePipeline's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was specified in an invalid format. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. Make sure that the next // token you provide is the token returned by a previous call. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The specified resource ARN is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListTagsForResource @@ -2135,11 +2135,11 @@ func (c *CodePipeline) ListWebhooksRequest(input *ListWebhooksInput) (req *reque // See the AWS API reference guide for AWS CodePipeline's // API operation ListWebhooks for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token was specified in an invalid format. Make sure that the next // token you provide is the token returned by a previous call. // @@ -2278,11 +2278,11 @@ func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *request // See the AWS API reference guide for AWS CodePipeline's // API operation PollForJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException" +// * ActionTypeNotFoundException // The specified action type cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForJobs @@ -2365,11 +2365,11 @@ func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobs // See the AWS API reference guide for AWS CodePipeline's // API operation PollForThirdPartyJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeActionTypeNotFoundException "ActionTypeNotFoundException" +// Returned Error Types: +// * ActionTypeNotFoundException // The specified action type cannot be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The validation was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PollForThirdPartyJobs @@ -2447,17 +2447,17 @@ func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) ( // See the AWS API reference guide for AWS CodePipeline's // API operation PutActionRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// Returned Error Types: +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeStageNotFoundException "StageNotFoundException" +// * StageNotFoundException // The stage was specified in an invalid format or cannot be found. // -// * ErrCodeActionNotFoundException "ActionNotFoundException" +// * ActionNotFoundException // The specified action cannot be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The validation was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutActionRevision @@ -2536,23 +2536,23 @@ func (c *CodePipeline) PutApprovalResultRequest(input *PutApprovalResultInput) ( // See the AWS API reference guide for AWS CodePipeline's // API operation PutApprovalResult for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidApprovalTokenException "InvalidApprovalTokenException" +// Returned Error Types: +// * InvalidApprovalTokenException // The approval request already received a response or has expired. // -// * ErrCodeApprovalAlreadyCompletedException "ApprovalAlreadyCompletedException" +// * ApprovalAlreadyCompletedException // The approval action has already been approved or rejected. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeStageNotFoundException "StageNotFoundException" +// * StageNotFoundException // The stage was specified in an invalid format or cannot be found. // -// * ErrCodeActionNotFoundException "ActionNotFoundException" +// * ActionNotFoundException // The specified action cannot be found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The validation was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutApprovalResult @@ -2632,14 +2632,14 @@ func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInpu // See the AWS API reference guide for AWS CodePipeline's // API operation PutJobFailureResult for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The job state was specified in an invalid format. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobFailureResult @@ -2719,17 +2719,17 @@ func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInpu // See the AWS API reference guide for AWS CodePipeline's // API operation PutJobSuccessResult for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The job state was specified in an invalid format. // -// * ErrCodeOutputVariablesSizeExceededException "OutputVariablesSizeExceededException" +// * OutputVariablesSizeExceededException // Exceeded the total size limit for all variables in the pipeline. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutJobSuccessResult @@ -2809,17 +2809,17 @@ func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdParty // See the AWS API reference guide for AWS CodePipeline's // API operation PutThirdPartyJobFailureResult for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The job state was specified in an invalid format. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // The client token was specified in an invalid format // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobFailureResult @@ -2899,17 +2899,17 @@ func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdParty // See the AWS API reference guide for AWS CodePipeline's // API operation PutThirdPartyJobSuccessResult for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The job was specified in an invalid format or cannot be found. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The job state was specified in an invalid format. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // The client token was specified in an invalid format // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutThirdPartyJobSuccessResult @@ -2994,30 +2994,30 @@ func (c *CodePipeline) PutWebhookRequest(input *PutWebhookInput) (req *request.R // See the AWS API reference guide for AWS CodePipeline's // API operation PutWebhook for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The number of pipelines associated with the AWS account has exceeded the // limit allowed for the account. // -// * ErrCodeInvalidWebhookFilterPatternException "InvalidWebhookFilterPatternException" +// * InvalidWebhookFilterPatternException // The specified event filter rule is in an invalid format. // -// * ErrCodeInvalidWebhookAuthenticationParametersException "InvalidWebhookAuthenticationParametersException" +// * InvalidWebhookAuthenticationParametersException // The specified authentication type is in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The tags limit for a resource has been exceeded. // -// * ErrCodeInvalidTagsException "InvalidTagsException" +// * InvalidTagsException // The specified resource tags are invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/PutWebhook @@ -3097,11 +3097,11 @@ func (c *CodePipeline) RegisterWebhookWithThirdPartyRequest(input *RegisterWebho // See the AWS API reference guide for AWS CodePipeline's // API operation RegisterWebhookWithThirdParty for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeWebhookNotFoundException "WebhookNotFoundException" +// * WebhookNotFoundException // The specified webhook was entered in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/RegisterWebhookWithThirdParty @@ -3182,21 +3182,21 @@ func (c *CodePipeline) RetryStageExecutionRequest(input *RetryStageExecutionInpu // See the AWS API reference guide for AWS CodePipeline's // API operation RetryStageExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // -// * ErrCodeStageNotFoundException "StageNotFoundException" +// * StageNotFoundException // The stage was specified in an invalid format or cannot be found. // -// * ErrCodeStageNotRetryableException "StageNotRetryableException" +// * StageNotRetryableException // Unable to retry. The pipeline structure or stage state might have changed // while actions awaited retry, or the stage contains no failed actions. // -// * ErrCodeNotLatestPipelineExecutionException "NotLatestPipelineExecutionException" +// * NotLatestPipelineExecutionException // The stage has failed in a later run of the pipeline and the pipelineExecutionId // associated with the request is out of date. // @@ -3276,11 +3276,11 @@ func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecuti // See the AWS API reference guide for AWS CodePipeline's // API operation StartPipelineExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The pipeline was specified in an invalid format or cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/StartPipelineExecution @@ -3360,23 +3360,23 @@ func (c *CodePipeline) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for AWS CodePipeline's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was specified in an invalid format. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The specified resource ARN is invalid. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The tags limit for a resource has been exceeded. // -// * ErrCodeInvalidTagsException "InvalidTagsException" +// * InvalidTagsException // The specified resource tags are invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/TagResource @@ -3455,20 +3455,20 @@ func (c *CodePipeline) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for AWS CodePipeline's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was specified in an invalid format. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The specified resource ARN is invalid. // -// * ErrCodeInvalidTagsException "InvalidTagsException" +// * InvalidTagsException // The specified resource tags are invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Unable to modify the tag due to a simultaneous update request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/UntagResource @@ -3549,23 +3549,23 @@ func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *r // See the AWS API reference guide for AWS CodePipeline's // API operation UpdatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The validation was specified in an invalid format. // -// * ErrCodeInvalidStageDeclarationException "InvalidStageDeclarationException" +// * InvalidStageDeclarationException // The stage declaration was specified in an invalid format. // -// * ErrCodeInvalidActionDeclarationException "InvalidActionDeclarationException" +// * InvalidActionDeclarationException // The action declaration was specified in an invalid format. // -// * ErrCodeInvalidBlockerDeclarationException "InvalidBlockerDeclarationException" +// * InvalidBlockerDeclarationException // Reserved for future use. // -// * ErrCodeInvalidStructureException "InvalidStructureException" +// * InvalidStructureException // The structure was specified in an invalid format. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The number of pipelines associated with the AWS account has exceeded the // limit allowed for the account. // @@ -4584,6 +4584,57 @@ func (s *ActionExecutionResult) SetExternalExecutionUrl(v string) *ActionExecuti return s } +// The specified action cannot be found. +type ActionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ActionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActionNotFoundException) GoString() string { + return s.String() +} + +func newErrorActionNotFoundException(v protocol.ResponseMetadata) error { + return &ActionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ActionNotFoundException) Code() string { + return "ActionNotFoundException" +} + +// Message returns the exception's message. +func (s ActionNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ActionNotFoundException) OrigErr() error { + return nil +} + +func (s ActionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ActionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ActionNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about the version (or revision) of an action. type ActionRevision struct { _ struct{} `type:"structure"` @@ -4881,6 +4932,57 @@ func (s *ActionTypeId) SetVersion(v string) *ActionTypeId { return s } +// The specified action type cannot be found. +type ActionTypeNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ActionTypeNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActionTypeNotFoundException) GoString() string { + return s.String() +} + +func newErrorActionTypeNotFoundException(v protocol.ResponseMetadata) error { + return &ActionTypeNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ActionTypeNotFoundException) Code() string { + return "ActionTypeNotFoundException" +} + +// Message returns the exception's message. +func (s ActionTypeNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ActionTypeNotFoundException) OrigErr() error { + return nil +} + +func (s ActionTypeNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ActionTypeNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ActionTypeNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Returns information about the settings for an action type. type ActionTypeSettings struct { _ struct{} `type:"structure"` @@ -4964,6 +5066,57 @@ func (s *ActionTypeSettings) SetThirdPartyConfigurationUrl(v string) *ActionType return s } +// The approval action has already been approved or rejected. +type ApprovalAlreadyCompletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ApprovalAlreadyCompletedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ApprovalAlreadyCompletedException) GoString() string { + return s.String() +} + +func newErrorApprovalAlreadyCompletedException(v protocol.ResponseMetadata) error { + return &ApprovalAlreadyCompletedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ApprovalAlreadyCompletedException) Code() string { + return "ApprovalAlreadyCompletedException" +} + +// Message returns the exception's message. +func (s ApprovalAlreadyCompletedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ApprovalAlreadyCompletedException) OrigErr() error { + return nil +} + +func (s ApprovalAlreadyCompletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ApprovalAlreadyCompletedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ApprovalAlreadyCompletedException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about the result of an approval request. type ApprovalResult struct { _ struct{} `type:"structure"` @@ -5393,6 +5546,62 @@ func (s *BlockerDeclaration) SetType(v string) *BlockerDeclaration { return s } +// Unable to modify the tag due to a simultaneous update request. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a CreateCustomActionType operation. type CreateCustomActionTypeInput struct { _ struct{} `type:"structure"` @@ -6963,208 +7172,1036 @@ func (s *InputArtifact) SetName(v string) *InputArtifact { return s } -// Represents information about a job. -type Job struct { - _ struct{} `type:"structure"` - - // The ID of the AWS account to use when performing the job. - AccountId *string `locationName:"accountId" type:"string"` - - // Other data about a job. - Data *JobData `locationName:"data" type:"structure"` - - // The unique system-generated ID of the job. - Id *string `locationName:"id" type:"string"` - - // A system-generated random number that AWS CodePipeline uses to ensure that - // the job is being worked on by only one job worker. Use this number in an - // AcknowledgeJob request. - Nonce *string `locationName:"nonce" min:"1" type:"string"` +// The action declaration was specified in an invalid format. +type InvalidActionDeclarationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Job) String() string { +func (s InvalidActionDeclarationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Job) GoString() string { +func (s InvalidActionDeclarationException) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *Job) SetAccountId(v string) *Job { - s.AccountId = &v - return s +func newErrorInvalidActionDeclarationException(v protocol.ResponseMetadata) error { + return &InvalidActionDeclarationException{ + respMetadata: v, + } } -// SetData sets the Data field's value. -func (s *Job) SetData(v *JobData) *Job { - s.Data = v - return s +// Code returns the exception type name. +func (s InvalidActionDeclarationException) Code() string { + return "InvalidActionDeclarationException" } -// SetId sets the Id field's value. -func (s *Job) SetId(v string) *Job { - s.Id = &v - return s +// Message returns the exception's message. +func (s InvalidActionDeclarationException) Message() string { + return "" } -// SetNonce sets the Nonce field's value. -func (s *Job) SetNonce(v string) *Job { - s.Nonce = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidActionDeclarationException) OrigErr() error { + return nil } -// Represents other information about a job required for a job worker to complete -// the job. -type JobData struct { - _ struct{} `type:"structure"` - - // Represents information about an action configuration. - ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"` - - // Represents information about an action type. - ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"` - - // Represents an AWS session credentials object. These credentials are temporary - // credentials that are issued by AWS Secure Token Service (STS). They can be - // used to access input and output artifacts in the Amazon S3 bucket used to - // store artifacts for the pipeline in AWS CodePipeline. - ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"` - - // A system-generated token, such as a AWS CodeDeploy deployment ID, required - // by a job to continue the job asynchronously. - ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"` - - // Represents information about the key used to encrypt data in the artifact - // store, such as an AWS Key Management Service (AWS KMS) key. - EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"` +func (s InvalidActionDeclarationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The artifact supplied to the job. - InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidActionDeclarationException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The output of the job. - OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"` +// RequestID returns the service's response RequestID for request. +func (s InvalidActionDeclarationException) RequestID() string { + return s.respMetadata.RequestID +} - // Represents information about a pipeline to a job worker. - // - // Includes pipelineArn and pipelineExecutionId for custom jobs. - PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"` +// The approval request already received a response or has expired. +type InvalidApprovalTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s JobData) String() string { +func (s InvalidApprovalTokenException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s JobData) GoString() string { +func (s InvalidApprovalTokenException) GoString() string { return s.String() } -// SetActionConfiguration sets the ActionConfiguration field's value. -func (s *JobData) SetActionConfiguration(v *ActionConfiguration) *JobData { - s.ActionConfiguration = v - return s -} - -// SetActionTypeId sets the ActionTypeId field's value. -func (s *JobData) SetActionTypeId(v *ActionTypeId) *JobData { - s.ActionTypeId = v - return s +func newErrorInvalidApprovalTokenException(v protocol.ResponseMetadata) error { + return &InvalidApprovalTokenException{ + respMetadata: v, + } } -// SetArtifactCredentials sets the ArtifactCredentials field's value. -func (s *JobData) SetArtifactCredentials(v *AWSSessionCredentials) *JobData { - s.ArtifactCredentials = v - return s +// Code returns the exception type name. +func (s InvalidApprovalTokenException) Code() string { + return "InvalidApprovalTokenException" } -// SetContinuationToken sets the ContinuationToken field's value. -func (s *JobData) SetContinuationToken(v string) *JobData { - s.ContinuationToken = &v - return s +// Message returns the exception's message. +func (s InvalidApprovalTokenException) Message() string { + return "" } -// SetEncryptionKey sets the EncryptionKey field's value. -func (s *JobData) SetEncryptionKey(v *EncryptionKey) *JobData { - s.EncryptionKey = v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApprovalTokenException) OrigErr() error { + return nil } -// SetInputArtifacts sets the InputArtifacts field's value. -func (s *JobData) SetInputArtifacts(v []*Artifact) *JobData { - s.InputArtifacts = v - return s +func (s InvalidApprovalTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetOutputArtifacts sets the OutputArtifacts field's value. -func (s *JobData) SetOutputArtifacts(v []*Artifact) *JobData { - s.OutputArtifacts = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApprovalTokenException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetPipelineContext sets the PipelineContext field's value. -func (s *JobData) SetPipelineContext(v *PipelineContext) *JobData { - s.PipelineContext = v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidApprovalTokenException) RequestID() string { + return s.respMetadata.RequestID } -// Represents information about the details of a job. -type JobDetails struct { - _ struct{} `type:"structure"` - - // The AWS account ID associated with the job. - AccountId *string `locationName:"accountId" type:"string"` - - // Represents other information about a job required for a job worker to complete - // the job. - Data *JobData `locationName:"data" type:"structure"` +// The specified resource ARN is invalid. +type InvalidArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The unique system-generated ID of the job. - Id *string `locationName:"id" type:"string"` + Message_ *string `locationName:"message" min:"1" type:"string"` } // String returns the string representation -func (s JobDetails) String() string { +func (s InvalidArnException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s JobDetails) GoString() string { +func (s InvalidArnException) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *JobDetails) SetAccountId(v string) *JobDetails { - s.AccountId = &v - return s +func newErrorInvalidArnException(v protocol.ResponseMetadata) error { + return &InvalidArnException{ + respMetadata: v, + } } -// SetData sets the Data field's value. -func (s *JobDetails) SetData(v *JobData) *JobDetails { - s.Data = v - return s +// Code returns the exception type name. +func (s InvalidArnException) Code() string { + return "InvalidArnException" } -// SetId sets the Id field's value. -func (s *JobDetails) SetId(v string) *JobDetails { - s.Id = &v - return s +// Message returns the exception's message. +func (s InvalidArnException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -type ListActionExecutionsInput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArnException) OrigErr() error { + return nil +} - // Input information used to filter action execution history. - Filter *ActionExecutionFilter `locationName:"filter" type:"structure"` +func (s InvalidArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The maximum number of results to return in a single call. To retrieve the - // remaining results, make another call with the returned nextToken value. Action - // execution history is retained for up to 12 months, based on action execution - // start times. Default value is 100. - // +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// Reserved for future use. +type InvalidBlockerDeclarationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidBlockerDeclarationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidBlockerDeclarationException) GoString() string { + return s.String() +} + +func newErrorInvalidBlockerDeclarationException(v protocol.ResponseMetadata) error { + return &InvalidBlockerDeclarationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidBlockerDeclarationException) Code() string { + return "InvalidBlockerDeclarationException" +} + +// Message returns the exception's message. +func (s InvalidBlockerDeclarationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidBlockerDeclarationException) OrigErr() error { + return nil +} + +func (s InvalidBlockerDeclarationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidBlockerDeclarationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidBlockerDeclarationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The client token was specified in an invalid format +type InvalidClientTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidClientTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidClientTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidClientTokenException(v protocol.ResponseMetadata) error { + return &InvalidClientTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidClientTokenException) Code() string { + return "InvalidClientTokenException" +} + +// Message returns the exception's message. +func (s InvalidClientTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidClientTokenException) OrigErr() error { + return nil +} + +func (s InvalidClientTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidClientTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidClientTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The job was specified in an invalid format or cannot be found. +type InvalidJobException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidJobException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidJobException) GoString() string { + return s.String() +} + +func newErrorInvalidJobException(v protocol.ResponseMetadata) error { + return &InvalidJobException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidJobException) Code() string { + return "InvalidJobException" +} + +// Message returns the exception's message. +func (s InvalidJobException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidJobException) OrigErr() error { + return nil +} + +func (s InvalidJobException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidJobException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidJobException) RequestID() string { + return s.respMetadata.RequestID +} + +// The job state was specified in an invalid format. +type InvalidJobStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidJobStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidJobStateException) GoString() string { + return s.String() +} + +func newErrorInvalidJobStateException(v protocol.ResponseMetadata) error { + return &InvalidJobStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidJobStateException) Code() string { + return "InvalidJobStateException" +} + +// Message returns the exception's message. +func (s InvalidJobStateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidJobStateException) OrigErr() error { + return nil +} + +func (s InvalidJobStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidJobStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidJobStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The next token was specified in an invalid format. Make sure that the next +// token you provide is the token returned by a previous call. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The nonce was specified in an invalid format. +type InvalidNonceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidNonceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNonceException) GoString() string { + return s.String() +} + +func newErrorInvalidNonceException(v protocol.ResponseMetadata) error { + return &InvalidNonceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNonceException) Code() string { + return "InvalidNonceException" +} + +// Message returns the exception's message. +func (s InvalidNonceException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNonceException) OrigErr() error { + return nil +} + +func (s InvalidNonceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNonceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNonceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The stage declaration was specified in an invalid format. +type InvalidStageDeclarationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidStageDeclarationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStageDeclarationException) GoString() string { + return s.String() +} + +func newErrorInvalidStageDeclarationException(v protocol.ResponseMetadata) error { + return &InvalidStageDeclarationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStageDeclarationException) Code() string { + return "InvalidStageDeclarationException" +} + +// Message returns the exception's message. +func (s InvalidStageDeclarationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStageDeclarationException) OrigErr() error { + return nil +} + +func (s InvalidStageDeclarationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStageDeclarationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStageDeclarationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The structure was specified in an invalid format. +type InvalidStructureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidStructureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStructureException) GoString() string { + return s.String() +} + +func newErrorInvalidStructureException(v protocol.ResponseMetadata) error { + return &InvalidStructureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStructureException) Code() string { + return "InvalidStructureException" +} + +// Message returns the exception's message. +func (s InvalidStructureException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStructureException) OrigErr() error { + return nil +} + +func (s InvalidStructureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStructureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStructureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource tags are invalid. +type InvalidTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagsException) GoString() string { + return s.String() +} + +func newErrorInvalidTagsException(v protocol.ResponseMetadata) error { + return &InvalidTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTagsException) Code() string { + return "InvalidTagsException" +} + +// Message returns the exception's message. +func (s InvalidTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagsException) OrigErr() error { + return nil +} + +func (s InvalidTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified authentication type is in an invalid format. +type InvalidWebhookAuthenticationParametersException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidWebhookAuthenticationParametersException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidWebhookAuthenticationParametersException) GoString() string { + return s.String() +} + +func newErrorInvalidWebhookAuthenticationParametersException(v protocol.ResponseMetadata) error { + return &InvalidWebhookAuthenticationParametersException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidWebhookAuthenticationParametersException) Code() string { + return "InvalidWebhookAuthenticationParametersException" +} + +// Message returns the exception's message. +func (s InvalidWebhookAuthenticationParametersException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidWebhookAuthenticationParametersException) OrigErr() error { + return nil +} + +func (s InvalidWebhookAuthenticationParametersException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidWebhookAuthenticationParametersException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidWebhookAuthenticationParametersException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified event filter rule is in an invalid format. +type InvalidWebhookFilterPatternException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidWebhookFilterPatternException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidWebhookFilterPatternException) GoString() string { + return s.String() +} + +func newErrorInvalidWebhookFilterPatternException(v protocol.ResponseMetadata) error { + return &InvalidWebhookFilterPatternException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidWebhookFilterPatternException) Code() string { + return "InvalidWebhookFilterPatternException" +} + +// Message returns the exception's message. +func (s InvalidWebhookFilterPatternException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidWebhookFilterPatternException) OrigErr() error { + return nil +} + +func (s InvalidWebhookFilterPatternException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidWebhookFilterPatternException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidWebhookFilterPatternException) RequestID() string { + return s.respMetadata.RequestID +} + +// Represents information about a job. +type Job struct { + _ struct{} `type:"structure"` + + // The ID of the AWS account to use when performing the job. + AccountId *string `locationName:"accountId" type:"string"` + + // Other data about a job. + Data *JobData `locationName:"data" type:"structure"` + + // The unique system-generated ID of the job. + Id *string `locationName:"id" type:"string"` + + // A system-generated random number that AWS CodePipeline uses to ensure that + // the job is being worked on by only one job worker. Use this number in an + // AcknowledgeJob request. + Nonce *string `locationName:"nonce" min:"1" type:"string"` +} + +// String returns the string representation +func (s Job) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Job) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *Job) SetAccountId(v string) *Job { + s.AccountId = &v + return s +} + +// SetData sets the Data field's value. +func (s *Job) SetData(v *JobData) *Job { + s.Data = v + return s +} + +// SetId sets the Id field's value. +func (s *Job) SetId(v string) *Job { + s.Id = &v + return s +} + +// SetNonce sets the Nonce field's value. +func (s *Job) SetNonce(v string) *Job { + s.Nonce = &v + return s +} + +// Represents other information about a job required for a job worker to complete +// the job. +type JobData struct { + _ struct{} `type:"structure"` + + // Represents information about an action configuration. + ActionConfiguration *ActionConfiguration `locationName:"actionConfiguration" type:"structure"` + + // Represents information about an action type. + ActionTypeId *ActionTypeId `locationName:"actionTypeId" type:"structure"` + + // Represents an AWS session credentials object. These credentials are temporary + // credentials that are issued by AWS Secure Token Service (STS). They can be + // used to access input and output artifacts in the Amazon S3 bucket used to + // store artifacts for the pipeline in AWS CodePipeline. + ArtifactCredentials *AWSSessionCredentials `locationName:"artifactCredentials" type:"structure" sensitive:"true"` + + // A system-generated token, such as a AWS CodeDeploy deployment ID, required + // by a job to continue the job asynchronously. + ContinuationToken *string `locationName:"continuationToken" min:"1" type:"string"` + + // Represents information about the key used to encrypt data in the artifact + // store, such as an AWS Key Management Service (AWS KMS) key. + EncryptionKey *EncryptionKey `locationName:"encryptionKey" type:"structure"` + + // The artifact supplied to the job. + InputArtifacts []*Artifact `locationName:"inputArtifacts" type:"list"` + + // The output of the job. + OutputArtifacts []*Artifact `locationName:"outputArtifacts" type:"list"` + + // Represents information about a pipeline to a job worker. + // + // Includes pipelineArn and pipelineExecutionId for custom jobs. + PipelineContext *PipelineContext `locationName:"pipelineContext" type:"structure"` +} + +// String returns the string representation +func (s JobData) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobData) GoString() string { + return s.String() +} + +// SetActionConfiguration sets the ActionConfiguration field's value. +func (s *JobData) SetActionConfiguration(v *ActionConfiguration) *JobData { + s.ActionConfiguration = v + return s +} + +// SetActionTypeId sets the ActionTypeId field's value. +func (s *JobData) SetActionTypeId(v *ActionTypeId) *JobData { + s.ActionTypeId = v + return s +} + +// SetArtifactCredentials sets the ArtifactCredentials field's value. +func (s *JobData) SetArtifactCredentials(v *AWSSessionCredentials) *JobData { + s.ArtifactCredentials = v + return s +} + +// SetContinuationToken sets the ContinuationToken field's value. +func (s *JobData) SetContinuationToken(v string) *JobData { + s.ContinuationToken = &v + return s +} + +// SetEncryptionKey sets the EncryptionKey field's value. +func (s *JobData) SetEncryptionKey(v *EncryptionKey) *JobData { + s.EncryptionKey = v + return s +} + +// SetInputArtifacts sets the InputArtifacts field's value. +func (s *JobData) SetInputArtifacts(v []*Artifact) *JobData { + s.InputArtifacts = v + return s +} + +// SetOutputArtifacts sets the OutputArtifacts field's value. +func (s *JobData) SetOutputArtifacts(v []*Artifact) *JobData { + s.OutputArtifacts = v + return s +} + +// SetPipelineContext sets the PipelineContext field's value. +func (s *JobData) SetPipelineContext(v *PipelineContext) *JobData { + s.PipelineContext = v + return s +} + +// Represents information about the details of a job. +type JobDetails struct { + _ struct{} `type:"structure"` + + // The AWS account ID associated with the job. + AccountId *string `locationName:"accountId" type:"string"` + + // Represents other information about a job required for a job worker to complete + // the job. + Data *JobData `locationName:"data" type:"structure"` + + // The unique system-generated ID of the job. + Id *string `locationName:"id" type:"string"` +} + +// String returns the string representation +func (s JobDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobDetails) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *JobDetails) SetAccountId(v string) *JobDetails { + s.AccountId = &v + return s +} + +// SetData sets the Data field's value. +func (s *JobDetails) SetData(v *JobData) *JobDetails { + s.Data = v + return s +} + +// SetId sets the Id field's value. +func (s *JobDetails) SetId(v string) *JobDetails { + s.Id = &v + return s +} + +// The job was specified in an invalid format or cannot be found. +type JobNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s JobNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobNotFoundException) GoString() string { + return s.String() +} + +func newErrorJobNotFoundException(v protocol.ResponseMetadata) error { + return &JobNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s JobNotFoundException) Code() string { + return "JobNotFoundException" +} + +// Message returns the exception's message. +func (s JobNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s JobNotFoundException) OrigErr() error { + return nil +} + +func (s JobNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s JobNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s JobNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of pipelines associated with the AWS account has exceeded the +// limit allowed for the account. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +type ListActionExecutionsInput struct { + _ struct{} `type:"structure"` + + // Input information used to filter action execution history. + Filter *ActionExecutionFilter `locationName:"filter" type:"structure"` + + // The maximum number of results to return in a single call. To retrieve the + // remaining results, make another call with the returned nextToken value. Action + // execution history is retained for up to 12 months, based on action execution + // start times. Default value is 100. + // // Detailed execution history is available for executions run on or after February // 21, 2019. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"` @@ -7803,6 +8840,58 @@ func (s *ListWebhooksOutput) SetWebhooks(v []*ListWebhookItem) *ListWebhooksOutp return s } +// The stage has failed in a later run of the pipeline and the pipelineExecutionId +// associated with the request is out of date. +type NotLatestPipelineExecutionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NotLatestPipelineExecutionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotLatestPipelineExecutionException) GoString() string { + return s.String() +} + +func newErrorNotLatestPipelineExecutionException(v protocol.ResponseMetadata) error { + return &NotLatestPipelineExecutionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotLatestPipelineExecutionException) Code() string { + return "NotLatestPipelineExecutionException" +} + +// Message returns the exception's message. +func (s NotLatestPipelineExecutionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotLatestPipelineExecutionException) OrigErr() error { + return nil +} + +func (s NotLatestPipelineExecutionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotLatestPipelineExecutionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotLatestPipelineExecutionException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about the output of an action. type OutputArtifact struct { _ struct{} `type:"structure"` @@ -7853,6 +8942,62 @@ func (s *OutputArtifact) SetName(v string) *OutputArtifact { return s } +// Exceeded the total size limit for all variables in the pipeline. +type OutputVariablesSizeExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" min:"1" type:"string"` +} + +// String returns the string representation +func (s OutputVariablesSizeExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OutputVariablesSizeExceededException) GoString() string { + return s.String() +} + +func newErrorOutputVariablesSizeExceededException(v protocol.ResponseMetadata) error { + return &OutputVariablesSizeExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OutputVariablesSizeExceededException) Code() string { + return "OutputVariablesSizeExceededException" +} + +// Message returns the exception's message. +func (s OutputVariablesSizeExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OutputVariablesSizeExceededException) OrigErr() error { + return nil +} + +func (s OutputVariablesSizeExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OutputVariablesSizeExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OutputVariablesSizeExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about a pipeline to a job worker. // // PipelineContext contains pipelineArn and pipelineExecutionId for custom action @@ -8103,28 +9248,80 @@ func (s *PipelineExecution) SetArtifactRevisions(v []*ArtifactRevision) *Pipelin return s } -// SetPipelineExecutionId sets the PipelineExecutionId field's value. -func (s *PipelineExecution) SetPipelineExecutionId(v string) *PipelineExecution { - s.PipelineExecutionId = &v - return s +// SetPipelineExecutionId sets the PipelineExecutionId field's value. +func (s *PipelineExecution) SetPipelineExecutionId(v string) *PipelineExecution { + s.PipelineExecutionId = &v + return s +} + +// SetPipelineName sets the PipelineName field's value. +func (s *PipelineExecution) SetPipelineName(v string) *PipelineExecution { + s.PipelineName = &v + return s +} + +// SetPipelineVersion sets the PipelineVersion field's value. +func (s *PipelineExecution) SetPipelineVersion(v int64) *PipelineExecution { + s.PipelineVersion = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *PipelineExecution) SetStatus(v string) *PipelineExecution { + s.Status = &v + return s +} + +// The pipeline execution was specified in an invalid format or cannot be found, +// or an execution ID does not belong to the specified pipeline. +type PipelineExecutionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PipelineExecutionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PipelineExecutionNotFoundException) GoString() string { + return s.String() +} + +func newErrorPipelineExecutionNotFoundException(v protocol.ResponseMetadata) error { + return &PipelineExecutionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PipelineExecutionNotFoundException) Code() string { + return "PipelineExecutionNotFoundException" +} + +// Message returns the exception's message. +func (s PipelineExecutionNotFoundException) Message() string { + return "" } -// SetPipelineName sets the PipelineName field's value. -func (s *PipelineExecution) SetPipelineName(v string) *PipelineExecution { - s.PipelineName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PipelineExecutionNotFoundException) OrigErr() error { + return nil } -// SetPipelineVersion sets the PipelineVersion field's value. -func (s *PipelineExecution) SetPipelineVersion(v int64) *PipelineExecution { - s.PipelineVersion = &v - return s +func (s PipelineExecutionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetStatus sets the Status field's value. -func (s *PipelineExecution) SetStatus(v string) *PipelineExecution { - s.Status = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s PipelineExecutionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PipelineExecutionNotFoundException) RequestID() string { + return s.respMetadata.RequestID } // Summary information about a pipeline execution. @@ -8250,6 +9447,108 @@ func (s *PipelineMetadata) SetUpdated(v time.Time) *PipelineMetadata { return s } +// The specified pipeline name is already in use. +type PipelineNameInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PipelineNameInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PipelineNameInUseException) GoString() string { + return s.String() +} + +func newErrorPipelineNameInUseException(v protocol.ResponseMetadata) error { + return &PipelineNameInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PipelineNameInUseException) Code() string { + return "PipelineNameInUseException" +} + +// Message returns the exception's message. +func (s PipelineNameInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PipelineNameInUseException) OrigErr() error { + return nil +} + +func (s PipelineNameInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PipelineNameInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PipelineNameInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pipeline was specified in an invalid format or cannot be found. +type PipelineNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PipelineNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PipelineNotFoundException) GoString() string { + return s.String() +} + +func newErrorPipelineNotFoundException(v protocol.ResponseMetadata) error { + return &PipelineNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PipelineNotFoundException) Code() string { + return "PipelineNotFoundException" +} + +// Message returns the exception's message. +func (s PipelineNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PipelineNotFoundException) OrigErr() error { + return nil +} + +func (s PipelineNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PipelineNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PipelineNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Returns a summary of a pipeline. type PipelineSummary struct { _ struct{} `type:"structure"` @@ -8301,6 +9600,57 @@ func (s *PipelineSummary) SetVersion(v int64) *PipelineSummary { return s } +// The pipeline version was specified in an invalid format or cannot be found. +type PipelineVersionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PipelineVersionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PipelineVersionNotFoundException) GoString() string { + return s.String() +} + +func newErrorPipelineVersionNotFoundException(v protocol.ResponseMetadata) error { + return &PipelineVersionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PipelineVersionNotFoundException) Code() string { + return "PipelineVersionNotFoundException" +} + +// Message returns the exception's message. +func (s PipelineVersionNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PipelineVersionNotFoundException) OrigErr() error { + return nil +} + +func (s PipelineVersionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PipelineVersionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PipelineVersionNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a PollForJobs action. type PollForJobsInput struct { _ struct{} `type:"structure"` @@ -9276,6 +10626,57 @@ func (s RegisterWebhookWithThirdPartyOutput) GoString() string { return s.String() } +// The resource was specified in an invalid format. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a RetryStageExecution action. type RetryStageExecutionInput struct { _ struct{} `type:"structure"` @@ -9667,6 +11068,109 @@ func (s *StageExecution) SetStatus(v string) *StageExecution { return s } +// The stage was specified in an invalid format or cannot be found. +type StageNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s StageNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StageNotFoundException) GoString() string { + return s.String() +} + +func newErrorStageNotFoundException(v protocol.ResponseMetadata) error { + return &StageNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StageNotFoundException) Code() string { + return "StageNotFoundException" +} + +// Message returns the exception's message. +func (s StageNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StageNotFoundException) OrigErr() error { + return nil +} + +func (s StageNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StageNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StageNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Unable to retry. The pipeline structure or stage state might have changed +// while actions awaited retry, or the stage contains no failed actions. +type StageNotRetryableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s StageNotRetryableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StageNotRetryableException) GoString() string { + return s.String() +} + +func newErrorStageNotRetryableException(v protocol.ResponseMetadata) error { + return &StageNotRetryableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StageNotRetryableException) Code() string { + return "StageNotRetryableException" +} + +// Message returns the exception's message. +func (s StageNotRetryableException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StageNotRetryableException) OrigErr() error { + return nil +} + +func (s StageNotRetryableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StageNotRetryableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StageNotRetryableException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about the state of the stage. type StageState struct { _ struct{} `type:"structure"` @@ -10109,6 +11613,62 @@ func (s *ThirdPartyJobDetails) SetNonce(v string) *ThirdPartyJobDetails { return s } +// The tags limit for a resource has been exceeded. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about the state of transitions between one stage and // another stage. type TransitionState struct { @@ -10296,6 +11856,57 @@ func (s *UpdatePipelineOutput) SetPipeline(v *PipelineDeclaration) *UpdatePipeli return s } +// The validation was specified in an invalid format. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // The authentication applied to incoming webhook trigger requests. type WebhookAuthConfiguration struct { _ struct{} `type:"structure"` @@ -10564,6 +12175,57 @@ func (s *WebhookFilterRule) SetMatchEquals(v string) *WebhookFilterRule { return s } +// The specified webhook was entered in an invalid format or cannot be found. +type WebhookNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s WebhookNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WebhookNotFoundException) GoString() string { + return s.String() +} + +func newErrorWebhookNotFoundException(v protocol.ResponseMetadata) error { + return &WebhookNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WebhookNotFoundException) Code() string { + return "WebhookNotFoundException" +} + +// Message returns the exception's message. +func (s WebhookNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WebhookNotFoundException) OrigErr() error { + return nil +} + +func (s WebhookNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WebhookNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WebhookNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ActionCategorySource is a ActionCategory enum value ActionCategorySource = "Source" diff --git a/service/codepipeline/errors.go b/service/codepipeline/errors.go index 4a279e6dbab..efc3a496db3 100644 --- a/service/codepipeline/errors.go +++ b/service/codepipeline/errors.go @@ -2,6 +2,10 @@ package codepipeline +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeActionNotFoundException for service response error code @@ -201,3 +205,38 @@ const ( // The specified webhook was entered in an invalid format or cannot be found. ErrCodeWebhookNotFoundException = "WebhookNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ActionNotFoundException": newErrorActionNotFoundException, + "ActionTypeNotFoundException": newErrorActionTypeNotFoundException, + "ApprovalAlreadyCompletedException": newErrorApprovalAlreadyCompletedException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidActionDeclarationException": newErrorInvalidActionDeclarationException, + "InvalidApprovalTokenException": newErrorInvalidApprovalTokenException, + "InvalidArnException": newErrorInvalidArnException, + "InvalidBlockerDeclarationException": newErrorInvalidBlockerDeclarationException, + "InvalidClientTokenException": newErrorInvalidClientTokenException, + "InvalidJobException": newErrorInvalidJobException, + "InvalidJobStateException": newErrorInvalidJobStateException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidNonceException": newErrorInvalidNonceException, + "InvalidStageDeclarationException": newErrorInvalidStageDeclarationException, + "InvalidStructureException": newErrorInvalidStructureException, + "InvalidTagsException": newErrorInvalidTagsException, + "InvalidWebhookAuthenticationParametersException": newErrorInvalidWebhookAuthenticationParametersException, + "InvalidWebhookFilterPatternException": newErrorInvalidWebhookFilterPatternException, + "JobNotFoundException": newErrorJobNotFoundException, + "LimitExceededException": newErrorLimitExceededException, + "NotLatestPipelineExecutionException": newErrorNotLatestPipelineExecutionException, + "OutputVariablesSizeExceededException": newErrorOutputVariablesSizeExceededException, + "PipelineExecutionNotFoundException": newErrorPipelineExecutionNotFoundException, + "PipelineNameInUseException": newErrorPipelineNameInUseException, + "PipelineNotFoundException": newErrorPipelineNotFoundException, + "PipelineVersionNotFoundException": newErrorPipelineVersionNotFoundException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "StageNotFoundException": newErrorStageNotFoundException, + "StageNotRetryableException": newErrorStageNotRetryableException, + "TooManyTagsException": newErrorTooManyTagsException, + "ValidationException": newErrorValidationException, + "WebhookNotFoundException": newErrorWebhookNotFoundException, +} diff --git a/service/codepipeline/service.go b/service/codepipeline/service.go index 790a67884f3..d144c32f84c 100644 --- a/service/codepipeline/service.go +++ b/service/codepipeline/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codestar/api.go b/service/codestar/api.go index 7ee438d7272..5b0893b5f25 100644 --- a/service/codestar/api.go +++ b/service/codestar/api.go @@ -66,26 +66,26 @@ func (c *CodeStar) AssociateTeamMemberRequest(input *AssociateTeamMemberInput) ( // See the AWS API reference guide for AWS CodeStar's // API operation AssociateTeamMember for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // A resource limit has been exceeded. // -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeTeamMemberAlreadyAssociatedException "TeamMemberAlreadyAssociatedException" +// * TeamMemberAlreadyAssociatedException // The team member is already associated with a role in this project. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException" +// * InvalidServiceRoleException // The service role is not valid. // -// * ErrCodeProjectConfigurationException "ProjectConfigurationException" +// * ProjectConfigurationException // Project configuration information is required but not specified. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // @@ -167,30 +167,30 @@ func (c *CodeStar) CreateProjectRequest(input *CreateProjectInput) (req *request // See the AWS API reference guide for AWS CodeStar's // API operation CreateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectAlreadyExistsException "ProjectAlreadyExistsException" +// Returned Error Types: +// * ProjectAlreadyExistsException // An AWS CodeStar project with the same ID already exists in this region for // the AWS account. AWS CodeStar project IDs must be unique within a region // for the AWS account. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A resource limit has been exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeProjectCreationFailedException "ProjectCreationFailedException" +// * ProjectCreationFailedException // The project creation request was valid, but a nonspecific exception or error // occurred during project creation. The project could not be created in AWS // CodeStar. // -// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException" +// * InvalidServiceRoleException // The service role is not valid. // -// * ErrCodeProjectConfigurationException "ProjectConfigurationException" +// * ProjectConfigurationException // Project configuration information is required but not specified. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // @@ -273,13 +273,13 @@ func (c *CodeStar) CreateUserProfileRequest(input *CreateUserProfileInput) (req // See the AWS API reference guide for AWS CodeStar's // API operation CreateUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeUserProfileAlreadyExistsException "UserProfileAlreadyExistsException" +// Returned Error Types: +// * UserProfileAlreadyExistsException // A user profile with that name already exists in this region for the AWS account. // AWS CodeStar user profile names must be unique within a region for the AWS // account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateUserProfile @@ -359,15 +359,15 @@ func (c *CodeStar) DeleteProjectRequest(input *DeleteProjectInput) (req *request // See the AWS API reference guide for AWS CodeStar's // API operation DeleteProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException" +// * InvalidServiceRoleException // The service role is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteProject @@ -448,8 +448,8 @@ func (c *CodeStar) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req // See the AWS API reference guide for AWS CodeStar's // API operation DeleteUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteUserProfile @@ -527,20 +527,20 @@ func (c *CodeStar) DescribeProjectRequest(input *DescribeProjectInput) (req *req // See the AWS API reference guide for AWS CodeStar's // API operation DescribeProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException" +// * InvalidServiceRoleException // The service role is not valid. // -// * ErrCodeProjectConfigurationException "ProjectConfigurationException" +// * ProjectConfigurationException // Project configuration information is required but not specified. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // @@ -619,11 +619,11 @@ func (c *CodeStar) DescribeUserProfileRequest(input *DescribeUserProfileInput) ( // See the AWS API reference guide for AWS CodeStar's // API operation DescribeUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeUserProfileNotFoundException "UserProfileNotFoundException" +// Returned Error Types: +// * UserProfileNotFoundException // The user profile was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeUserProfile @@ -705,17 +705,17 @@ func (c *CodeStar) DisassociateTeamMemberRequest(input *DisassociateTeamMemberIn // See the AWS API reference guide for AWS CodeStar's // API operation DisassociateTeamMember for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException" +// * InvalidServiceRoleException // The service role is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // @@ -794,11 +794,11 @@ func (c *CodeStar) ListProjectsRequest(input *ListProjectsInput) (req *request.R // See the AWS API reference guide for AWS CodeStar's // API operation ListProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The next token is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListProjects @@ -876,14 +876,14 @@ func (c *CodeStar) ListResourcesRequest(input *ListResourcesInput) (req *request // See the AWS API reference guide for AWS CodeStar's // API operation ListResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListResources @@ -961,14 +961,14 @@ func (c *CodeStar) ListTagsForProjectRequest(input *ListTagsForProjectInput) (re // See the AWS API reference guide for AWS CodeStar's // API operation ListTagsForProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTagsForProject @@ -1046,14 +1046,14 @@ func (c *CodeStar) ListTeamMembersRequest(input *ListTeamMembersInput) (req *req // See the AWS API reference guide for AWS CodeStar's // API operation ListTeamMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The next token is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTeamMembers @@ -1131,11 +1131,11 @@ func (c *CodeStar) ListUserProfilesRequest(input *ListUserProfilesInput) (req *r // See the AWS API reference guide for AWS CodeStar's // API operation ListUserProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The next token is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListUserProfiles @@ -1213,17 +1213,17 @@ func (c *CodeStar) TagProjectRequest(input *TagProjectInput) (req *request.Reque // See the AWS API reference guide for AWS CodeStar's // API operation TagProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A resource limit has been exceeded. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // @@ -1303,17 +1303,17 @@ func (c *CodeStar) UntagProjectRequest(input *UntagProjectInput) (req *request.R // See the AWS API reference guide for AWS CodeStar's // API operation UntagProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A resource limit has been exceeded. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // @@ -1393,11 +1393,11 @@ func (c *CodeStar) UpdateProjectRequest(input *UpdateProjectInput) (req *request // See the AWS API reference guide for AWS CodeStar's // API operation UpdateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// Returned Error Types: +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateProject @@ -1477,27 +1477,27 @@ func (c *CodeStar) UpdateTeamMemberRequest(input *UpdateTeamMemberInput) (req *r // See the AWS API reference guide for AWS CodeStar's // API operation UpdateTeamMember for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // A resource limit has been exceeded. // -// * ErrCodeProjectNotFoundException "ProjectNotFoundException" +// * ProjectNotFoundException // The specified AWS CodeStar project was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // -// * ErrCodeInvalidServiceRoleException "InvalidServiceRoleException" +// * InvalidServiceRoleException // The service role is not valid. // -// * ErrCodeProjectConfigurationException "ProjectConfigurationException" +// * ProjectConfigurationException // Project configuration information is required but not specified. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification is being made. That modification must complete before // you can make your change. // -// * ErrCodeTeamMemberNotFoundException "TeamMemberNotFoundException" +// * TeamMemberNotFoundException // The specified team member was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateTeamMember @@ -1577,11 +1577,11 @@ func (c *CodeStar) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req // See the AWS API reference guide for AWS CodeStar's // API operation UpdateUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeUserProfileNotFoundException "UserProfileNotFoundException" +// Returned Error Types: +// * UserProfileNotFoundException // The user profile was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The specified input is either not valid, or it could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateUserProfile @@ -1945,6 +1945,58 @@ func (s *CodeSource) SetS3(v *S3Location) *CodeSource { return s } +// Another modification is being made. That modification must complete before +// you can make your change. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateProjectInput struct { _ struct{} `type:"structure"` @@ -2925,6 +2977,159 @@ func (s *GitHubCodeDestination) SetType(v string) *GitHubCodeDestination { return s } +// The next token is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service role is not valid. +type InvalidServiceRoleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidServiceRoleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidServiceRoleException) GoString() string { + return s.String() +} + +func newErrorInvalidServiceRoleException(v protocol.ResponseMetadata) error { + return &InvalidServiceRoleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidServiceRoleException) Code() string { + return "InvalidServiceRoleException" +} + +// Message returns the exception's message. +func (s InvalidServiceRoleException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidServiceRoleException) OrigErr() error { + return nil +} + +func (s InvalidServiceRoleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidServiceRoleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidServiceRoleException) RequestID() string { + return s.respMetadata.RequestID +} + +// A resource limit has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListProjectsInput struct { _ struct{} `type:"structure"` @@ -3390,6 +3595,214 @@ func (s *ListUserProfilesOutput) SetUserProfiles(v []*UserProfileSummary) *ListU return s } +// An AWS CodeStar project with the same ID already exists in this region for +// the AWS account. AWS CodeStar project IDs must be unique within a region +// for the AWS account. +type ProjectAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ProjectAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorProjectAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ProjectAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProjectAlreadyExistsException) Code() string { + return "ProjectAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ProjectAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProjectAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ProjectAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProjectAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProjectAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Project configuration information is required but not specified. +type ProjectConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ProjectConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectConfigurationException) GoString() string { + return s.String() +} + +func newErrorProjectConfigurationException(v protocol.ResponseMetadata) error { + return &ProjectConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProjectConfigurationException) Code() string { + return "ProjectConfigurationException" +} + +// Message returns the exception's message. +func (s ProjectConfigurationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProjectConfigurationException) OrigErr() error { + return nil +} + +func (s ProjectConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProjectConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProjectConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The project creation request was valid, but a nonspecific exception or error +// occurred during project creation. The project could not be created in AWS +// CodeStar. +type ProjectCreationFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ProjectCreationFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectCreationFailedException) GoString() string { + return s.String() +} + +func newErrorProjectCreationFailedException(v protocol.ResponseMetadata) error { + return &ProjectCreationFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProjectCreationFailedException) Code() string { + return "ProjectCreationFailedException" +} + +// Message returns the exception's message. +func (s ProjectCreationFailedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProjectCreationFailedException) OrigErr() error { + return nil +} + +func (s ProjectCreationFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProjectCreationFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProjectCreationFailedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified AWS CodeStar project was not found. +type ProjectNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ProjectNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProjectNotFoundException) GoString() string { + return s.String() +} + +func newErrorProjectNotFoundException(v protocol.ResponseMetadata) error { + return &ProjectNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProjectNotFoundException) Code() string { + return "ProjectNotFoundException" +} + +// Message returns the exception's message. +func (s ProjectNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProjectNotFoundException) OrigErr() error { + return nil +} + +func (s ProjectNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProjectNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProjectNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An indication of whether a project creation or deletion is failed or successful. type ProjectStatus struct { _ struct{} `type:"structure"` @@ -3660,6 +4073,108 @@ func (s *TeamMember) SetUserArn(v string) *TeamMember { return s } +// The team member is already associated with a role in this project. +type TeamMemberAlreadyAssociatedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TeamMemberAlreadyAssociatedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TeamMemberAlreadyAssociatedException) GoString() string { + return s.String() +} + +func newErrorTeamMemberAlreadyAssociatedException(v protocol.ResponseMetadata) error { + return &TeamMemberAlreadyAssociatedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TeamMemberAlreadyAssociatedException) Code() string { + return "TeamMemberAlreadyAssociatedException" +} + +// Message returns the exception's message. +func (s TeamMemberAlreadyAssociatedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TeamMemberAlreadyAssociatedException) OrigErr() error { + return nil +} + +func (s TeamMemberAlreadyAssociatedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TeamMemberAlreadyAssociatedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TeamMemberAlreadyAssociatedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified team member was not found. +type TeamMemberNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TeamMemberNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TeamMemberNotFoundException) GoString() string { + return s.String() +} + +func newErrorTeamMemberNotFoundException(v protocol.ResponseMetadata) error { + return &TeamMemberNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TeamMemberNotFoundException) Code() string { + return "TeamMemberNotFoundException" +} + +// Message returns the exception's message. +func (s TeamMemberNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TeamMemberNotFoundException) OrigErr() error { + return nil +} + +func (s TeamMemberNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TeamMemberNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TeamMemberNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The toolchain template file provided with the project request. AWS CodeStar // uses the template to provision the toolchain stack in AWS CloudFormation. type Toolchain struct { @@ -4198,6 +4713,110 @@ func (s *UpdateUserProfileOutput) SetUserArn(v string) *UpdateUserProfileOutput return s } +// A user profile with that name already exists in this region for the AWS account. +// AWS CodeStar user profile names must be unique within a region for the AWS +// account. +type UserProfileAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UserProfileAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserProfileAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorUserProfileAlreadyExistsException(v protocol.ResponseMetadata) error { + return &UserProfileAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserProfileAlreadyExistsException) Code() string { + return "UserProfileAlreadyExistsException" +} + +// Message returns the exception's message. +func (s UserProfileAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserProfileAlreadyExistsException) OrigErr() error { + return nil +} + +func (s UserProfileAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserProfileAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserProfileAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The user profile was not found. +type UserProfileNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UserProfileNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserProfileNotFoundException) GoString() string { + return s.String() +} + +func newErrorUserProfileNotFoundException(v protocol.ResponseMetadata) error { + return &UserProfileNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserProfileNotFoundException) Code() string { + return "UserProfileNotFoundException" +} + +// Message returns the exception's message. +func (s UserProfileNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserProfileNotFoundException) OrigErr() error { + return nil +} + +func (s UserProfileNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserProfileNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserProfileNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a user's profile in AWS CodeStar. type UserProfileSummary struct { _ struct{} `type:"structure"` @@ -4258,3 +4877,54 @@ func (s *UserProfileSummary) SetUserArn(v string) *UserProfileSummary { s.UserArn = &v return s } + +// The specified input is either not valid, or it could not be validated. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/codestar/errors.go b/service/codestar/errors.go index 46334e7b662..2856ad30f25 100644 --- a/service/codestar/errors.go +++ b/service/codestar/errors.go @@ -2,6 +2,10 @@ package codestar +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -89,3 +93,19 @@ const ( // The specified input is either not valid, or it could not be validated. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidServiceRoleException": newErrorInvalidServiceRoleException, + "LimitExceededException": newErrorLimitExceededException, + "ProjectAlreadyExistsException": newErrorProjectAlreadyExistsException, + "ProjectConfigurationException": newErrorProjectConfigurationException, + "ProjectCreationFailedException": newErrorProjectCreationFailedException, + "ProjectNotFoundException": newErrorProjectNotFoundException, + "TeamMemberAlreadyAssociatedException": newErrorTeamMemberAlreadyAssociatedException, + "TeamMemberNotFoundException": newErrorTeamMemberNotFoundException, + "UserProfileAlreadyExistsException": newErrorUserProfileAlreadyExistsException, + "UserProfileNotFoundException": newErrorUserProfileNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/codestar/service.go b/service/codestar/service.go index 81e36b85692..abd7af140d4 100644 --- a/service/codestar/service.go +++ b/service/codestar/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codestarconnections/api.go b/service/codestarconnections/api.go index 3eb89c0a627..8eee2cc1e65 100644 --- a/service/codestarconnections/api.go +++ b/service/codestarconnections/api.go @@ -3,6 +3,8 @@ package codestarconnections import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -66,8 +68,8 @@ func (c *CodeStarConnections) CreateConnectionRequest(input *CreateConnectionInp // See the AWS API reference guide for AWS CodeStar connections's // API operation CreateConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // Exceeded the maximum limit for connections. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/CreateConnection @@ -146,8 +148,8 @@ func (c *CodeStarConnections) DeleteConnectionRequest(input *DeleteConnectionInp // See the AWS API reference guide for AWS CodeStar connections's // API operation DeleteConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/DeleteConnection @@ -226,8 +228,8 @@ func (c *CodeStarConnections) GetConnectionRequest(input *GetConnectionInput) (r // See the AWS API reference guide for AWS CodeStar connections's // API operation GetConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Resource not found. Verify the connection resource ARN and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/GetConnection @@ -653,6 +655,62 @@ func (s *GetConnectionOutput) SetConnection(v *Connection) *GetConnectionOutput return s } +// Exceeded the maximum limit for connections. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListConnectionsInput struct { _ struct{} `type:"structure"` @@ -748,6 +806,62 @@ func (s *ListConnectionsOutput) SetNextToken(v string) *ListConnectionsOutput { return s } +// Resource not found. Verify the connection resource ARN and try again. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ConnectionStatusPending is a ConnectionStatus enum value ConnectionStatusPending = "PENDING" diff --git a/service/codestarconnections/errors.go b/service/codestarconnections/errors.go index 4e588f68c8d..89dd56af150 100644 --- a/service/codestarconnections/errors.go +++ b/service/codestarconnections/errors.go @@ -2,6 +2,10 @@ package codestarconnections +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeLimitExceededException for service response error code @@ -16,3 +20,8 @@ const ( // Resource not found. Verify the connection resource ARN and try again. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/codestarconnections/service.go b/service/codestarconnections/service.go index f2913d79770..97c3a50e001 100644 --- a/service/codestarconnections/service.go +++ b/service/codestarconnections/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/codestarnotifications/api.go b/service/codestarnotifications/api.go index 8e9c71949df..c69e76f54dc 100644 --- a/service/codestarnotifications/api.go +++ b/service/codestarnotifications/api.go @@ -68,27 +68,27 @@ func (c *CodeStarNotifications) CreateNotificationRuleRequest(input *CreateNotif // See the AWS API reference guide for AWS CodeStar Notifications's // API operation CreateNotificationRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // A resource with the same name or ID already exists. Notification rule names // must be unique in your AWS account. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // One of the AWS CodeStar Notifications limits has been exceeded. Limits apply // to accounts, notification rules, notifications, resources, and targets. For // more information, see Limits. // -// * ErrCodeConfigurationException "ConfigurationException" +// * ConfigurationException // Some or all of the configuration is incomplete, missing, or not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // AWS CodeStar Notifications can't complete the request because the resource // is being modified by another process. Wait a few minutes and try again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // AWS CodeStar Notifications can't create the notification rule because you // do not have sufficient permissions. // @@ -167,16 +167,16 @@ func (c *CodeStarNotifications) DeleteNotificationRuleRequest(input *DeleteNotif // See the AWS API reference guide for AWS CodeStar Notifications's // API operation DeleteNotificationRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more parameter values are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // One of the AWS CodeStar Notifications limits has been exceeded. Limits apply // to accounts, notification rules, notifications, resources, and targets. For // more information, see Limits. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // AWS CodeStar Notifications can't complete the request because the resource // is being modified by another process. Wait a few minutes and try again. // @@ -256,8 +256,8 @@ func (c *CodeStarNotifications) DeleteTargetRequest(input *DeleteTargetInput) (r // See the AWS API reference guide for AWS CodeStar Notifications's // API operation DeleteTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/DeleteTarget @@ -335,12 +335,12 @@ func (c *CodeStarNotifications) DescribeNotificationRuleRequest(input *DescribeN // See the AWS API reference guide for AWS CodeStar Notifications's // API operation DescribeNotificationRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // AWS CodeStar Notifications can't find a resource that matches the provided // ARN. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/DescribeNotificationRule @@ -424,12 +424,12 @@ func (c *CodeStarNotifications) ListEventTypesRequest(input *ListEventTypesInput // See the AWS API reference guide for AWS CodeStar Notifications's // API operation ListEventTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The value for the enumeration token used in the request to return the next // batch of the results is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/ListEventTypes @@ -565,12 +565,12 @@ func (c *CodeStarNotifications) ListNotificationRulesRequest(input *ListNotifica // See the AWS API reference guide for AWS CodeStar Notifications's // API operation ListNotificationRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The value for the enumeration token used in the request to return the next // batch of the results is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/ListNotificationRules @@ -700,12 +700,12 @@ func (c *CodeStarNotifications) ListTagsForResourceRequest(input *ListTagsForRes // See the AWS API reference guide for AWS CodeStar Notifications's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // AWS CodeStar Notifications can't find a resource that matches the provided // ARN. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/ListTagsForResource @@ -789,12 +789,12 @@ func (c *CodeStarNotifications) ListTargetsRequest(input *ListTargetsInput) (req // See the AWS API reference guide for AWS CodeStar Notifications's // API operation ListTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The value for the enumeration token used in the request to return the next // batch of the results is not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/ListTargets @@ -926,11 +926,11 @@ func (c *CodeStarNotifications) SubscribeRequest(input *SubscribeInput) (req *re // See the AWS API reference guide for AWS CodeStar Notifications's // API operation Subscribe for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // AWS CodeStar Notifications can't find a resource that matches the provided // ARN. // @@ -1009,15 +1009,15 @@ func (c *CodeStarNotifications) TagResourceRequest(input *TagResourceInput) (req // See the AWS API reference guide for AWS CodeStar Notifications's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // AWS CodeStar Notifications can't find a resource that matches the provided // ARN. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // AWS CodeStar Notifications can't complete the request because the resource // is being modified by another process. Wait a few minutes and try again. // @@ -1098,8 +1098,8 @@ func (c *CodeStarNotifications) UnsubscribeRequest(input *UnsubscribeInput) (req // See the AWS API reference guide for AWS CodeStar Notifications's // API operation Unsubscribe for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/codestar-notifications-2019-10-15/Unsubscribe @@ -1179,15 +1179,15 @@ func (c *CodeStarNotifications) UntagResourceRequest(input *UntagResourceInput) // See the AWS API reference guide for AWS CodeStar Notifications's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // AWS CodeStar Notifications can't find a resource that matches the provided // ARN. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more parameter values are not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // AWS CodeStar Notifications can't complete the request because the resource // is being modified by another process. Wait a few minutes and try again. // @@ -1272,11 +1272,11 @@ func (c *CodeStarNotifications) UpdateNotificationRuleRequest(input *UpdateNotif // See the AWS API reference guide for AWS CodeStar Notifications's // API operation UpdateNotificationRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // AWS CodeStar Notifications can't find a resource that matches the provided // ARN. // @@ -1302,6 +1302,176 @@ func (c *CodeStarNotifications) UpdateNotificationRuleWithContext(ctx aws.Contex return out, req.Send() } +// AWS CodeStar Notifications can't create the notification rule because you +// do not have sufficient permissions. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS CodeStar Notifications can't complete the request because the resource +// is being modified by another process. Wait a few minutes and try again. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Some or all of the configuration is incomplete, missing, or not valid. +type ConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConfigurationException) GoString() string { + return s.String() +} + +func newErrorConfigurationException(v protocol.ResponseMetadata) error { + return &ConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConfigurationException) Code() string { + return "ConfigurationException" +} + +// Message returns the exception's message. +func (s ConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConfigurationException) OrigErr() error { + return nil +} + +func (s ConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateNotificationRuleInput struct { _ struct{} `type:"structure"` @@ -1816,6 +1986,121 @@ func (s *EventTypeSummary) SetServiceName(v string) *EventTypeSummary { return s } +// The value for the enumeration token used in the request to return the next +// batch of the results is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// One of the AWS CodeStar Notifications limits has been exceeded. Limits apply +// to accounts, notification rules, notifications, resources, and targets. For +// more information, see Limits. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a filter to apply to the list of returned event types. // You can filter by resource type or service name. type ListEventTypesFilter struct { @@ -2389,6 +2674,120 @@ func (s *NotificationRuleSummary) SetId(v string) *NotificationRuleSummary { return s } +// A resource with the same name or ID already exists. Notification rule names +// must be unique in your AWS account. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS CodeStar Notifications can't find a resource that matches the provided +// ARN. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type SubscribeInput struct { _ struct{} `type:"structure"` @@ -2911,6 +3310,62 @@ func (s UpdateNotificationRuleOutput) GoString() string { return s.String() } +// One or more parameter values are not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // DetailTypeBasic is a DetailType enum value DetailTypeBasic = "BASIC" diff --git a/service/codestarnotifications/errors.go b/service/codestarnotifications/errors.go index 0edce225c81..7f2e0520c62 100644 --- a/service/codestarnotifications/errors.go +++ b/service/codestarnotifications/errors.go @@ -2,6 +2,10 @@ package codestarnotifications +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -59,3 +63,14 @@ const ( // One or more parameter values are not valid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "ConfigurationException": newErrorConfigurationException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/codestarnotifications/service.go b/service/codestarnotifications/service.go index 6bb59945eb2..c80a47fc139 100644 --- a/service/codestarnotifications/service.go +++ b/service/codestarnotifications/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cognitoidentity/api.go b/service/cognitoidentity/api.go index 5b2bc748017..6b104b41f68 100644 --- a/service/cognitoidentity/api.go +++ b/service/cognitoidentity/api.go @@ -81,24 +81,24 @@ func (c *CognitoIdentity) CreateIdentityPoolRequest(input *CreateIdentityPoolInp // See the AWS API reference guide for Amazon Cognito Identity's // API operation CreateIdentityPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Thrown when the total number of user pools has exceeded a preset limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/CreateIdentityPool @@ -179,14 +179,14 @@ func (c *CognitoIdentity) DeleteIdentitiesRequest(input *DeleteIdentitiesInput) // See the AWS API reference guide for Amazon Cognito Identity's // API operation DeleteIdentities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentities @@ -268,21 +268,21 @@ func (c *CognitoIdentity) DeleteIdentityPoolRequest(input *DeleteIdentityPoolInp // See the AWS API reference guide for Amazon Cognito Identity's // API operation DeleteIdentityPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentityPool @@ -363,21 +363,21 @@ func (c *CognitoIdentity) DescribeIdentityRequest(input *DescribeIdentityInput) // See the AWS API reference guide for Amazon Cognito Identity's // API operation DescribeIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentity @@ -458,21 +458,21 @@ func (c *CognitoIdentity) DescribeIdentityPoolRequest(input *DescribeIdentityPoo // See the AWS API reference guide for Amazon Cognito Identity's // API operation DescribeIdentityPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DescribeIdentityPool @@ -556,32 +556,32 @@ func (c *CognitoIdentity) GetCredentialsForIdentityRequest(input *GetCredentials // See the AWS API reference guide for Amazon Cognito Identity's // API operation GetCredentialsForIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInvalidIdentityPoolConfigurationException "InvalidIdentityPoolConfigurationException" +// * InvalidIdentityPoolConfigurationException // Thrown if the identity pool has no role associated for the given auth type // (auth/unauth) or if the AssumeRole fails. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeExternalServiceException "ExternalServiceException" +// * ExternalServiceException // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // @@ -664,31 +664,31 @@ func (c *CognitoIdentity) GetIdRequest(input *GetIdInput) (req *request.Request, // See the AWS API reference guide for Amazon Cognito Identity's // API operation GetId for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Thrown when the total number of user pools has exceeded a preset limit. // -// * ErrCodeExternalServiceException "ExternalServiceException" +// * ExternalServiceException // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // @@ -769,25 +769,25 @@ func (c *CognitoIdentity) GetIdentityPoolRolesRequest(input *GetIdentityPoolRole // See the AWS API reference guide for Amazon Cognito Identity's // API operation GetIdentityPoolRoles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/GetIdentityPoolRoles @@ -872,28 +872,28 @@ func (c *CognitoIdentity) GetOpenIdTokenRequest(input *GetOpenIdTokenInput) (req // See the AWS API reference guide for Amazon Cognito Identity's // API operation GetOpenIdToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeExternalServiceException "ExternalServiceException" +// * ExternalServiceException // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // @@ -987,28 +987,28 @@ func (c *CognitoIdentity) GetOpenIdTokenForDeveloperIdentityRequest(input *GetOp // See the AWS API reference guide for Amazon Cognito Identity's // API operation GetOpenIdTokenForDeveloperIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeDeveloperUserAlreadyRegisteredException "DeveloperUserAlreadyRegisteredException" +// * DeveloperUserAlreadyRegisteredException // The provided developer user identifier is already registered with Cognito // under a different identity ID. // @@ -1089,21 +1089,21 @@ func (c *CognitoIdentity) ListIdentitiesRequest(input *ListIdentitiesInput) (req // See the AWS API reference guide for Amazon Cognito Identity's // API operation ListIdentities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentities @@ -1183,21 +1183,21 @@ func (c *CognitoIdentity) ListIdentityPoolsRequest(input *ListIdentityPoolsInput // See the AWS API reference guide for Amazon Cognito Identity's // API operation ListIdentityPools for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListIdentityPools @@ -1281,21 +1281,21 @@ func (c *CognitoIdentity) ListTagsForResourceRequest(input *ListTagsForResourceI // See the AWS API reference guide for Amazon Cognito Identity's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/ListTagsForResource @@ -1389,25 +1389,25 @@ func (c *CognitoIdentity) LookupDeveloperIdentityRequest(input *LookupDeveloperI // See the AWS API reference guide for Amazon Cognito Identity's // API operation LookupDeveloperIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/LookupDeveloperIdentity @@ -1497,25 +1497,25 @@ func (c *CognitoIdentity) MergeDeveloperIdentitiesRequest(input *MergeDeveloperI // See the AWS API reference guide for Amazon Cognito Identity's // API operation MergeDeveloperIdentities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/MergeDeveloperIdentities @@ -1597,28 +1597,28 @@ func (c *CognitoIdentity) SetIdentityPoolRolesRequest(input *SetIdentityPoolRole // See the AWS API reference guide for Amazon Cognito Identity's // API operation SetIdentityPoolRoles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Thrown if there are parallel requests to modify a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/SetIdentityPoolRoles @@ -1714,21 +1714,21 @@ func (c *CognitoIdentity) TagResourceRequest(input *TagResourceInput) (req *requ // See the AWS API reference guide for Amazon Cognito Identity's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/TagResource @@ -1812,25 +1812,25 @@ func (c *CognitoIdentity) UnlinkDeveloperIdentityRequest(input *UnlinkDeveloperI // See the AWS API reference guide for Amazon Cognito Identity's // API operation UnlinkDeveloperIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UnlinkDeveloperIdentity @@ -1914,28 +1914,28 @@ func (c *CognitoIdentity) UnlinkIdentityRequest(input *UnlinkIdentityInput) (req // See the AWS API reference guide for Amazon Cognito Identity's // API operation UnlinkIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeExternalServiceException "ExternalServiceException" +// * ExternalServiceException // An exception thrown when a dependent service such as Facebook or Twitter // is not responding // @@ -2016,21 +2016,21 @@ func (c *CognitoIdentity) UntagResourceRequest(input *UntagResourceInput) (req * // See the AWS API reference guide for Amazon Cognito Identity's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UntagResource @@ -2110,31 +2110,31 @@ func (c *CognitoIdentity) UpdateIdentityPoolRequest(input *IdentityPool) (req *r // See the AWS API reference guide for Amazon Cognito Identity's // API operation UpdateIdentityPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown for missing or bad input parameter(s). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown when the requested resource (for example, a dataset or record) does // not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown when a user tries to use a login which is already linked to another // account. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown when a request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Thrown when the service encounters an error during processing the request. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Thrown if there are parallel requests to modify a resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Thrown when the total number of user pools has exceeded a preset limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/UpdateIdentityPool @@ -2159,6 +2159,63 @@ func (c *CognitoIdentity) UpdateIdentityPoolWithContext(ctx aws.Context, input * return out, req.Send() } +// Thrown if there are parallel requests to modify a resource. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a ConcurrentModificationException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // Input to the CreateIdentityPool action. type CreateIdentityPoolInput struct { _ struct{} `type:"structure"` @@ -2560,6 +2617,122 @@ func (s *DescribeIdentityPoolInput) SetIdentityPoolId(v string) *DescribeIdentit return s } +// The provided developer user identifier is already registered with Cognito +// under a different identity ID. +type DeveloperUserAlreadyRegisteredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // This developer user identifier is already registered with Cognito. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DeveloperUserAlreadyRegisteredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeveloperUserAlreadyRegisteredException) GoString() string { + return s.String() +} + +func newErrorDeveloperUserAlreadyRegisteredException(v protocol.ResponseMetadata) error { + return &DeveloperUserAlreadyRegisteredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeveloperUserAlreadyRegisteredException) Code() string { + return "DeveloperUserAlreadyRegisteredException" +} + +// Message returns the exception's message. +func (s DeveloperUserAlreadyRegisteredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeveloperUserAlreadyRegisteredException) OrigErr() error { + return nil +} + +func (s DeveloperUserAlreadyRegisteredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeveloperUserAlreadyRegisteredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeveloperUserAlreadyRegisteredException) RequestID() string { + return s.respMetadata.RequestID +} + +// An exception thrown when a dependent service such as Facebook or Twitter +// is not responding +type ExternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by an ExternalServiceException + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExternalServiceException) GoString() string { + return s.String() +} + +func newErrorExternalServiceException(v protocol.ResponseMetadata) error { + return &ExternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExternalServiceException) Code() string { + return "ExternalServiceException" +} + +// Message returns the exception's message. +func (s ExternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExternalServiceException) OrigErr() error { + return nil +} + +func (s ExternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + // Input to the GetCredentialsForIdentity action. type GetCredentialsForIdentityInput struct { _ struct{} `type:"structure"` @@ -3314,6 +3487,235 @@ func (s *IdentityPoolShortDescription) SetIdentityPoolName(v string) *IdentityPo return s } +// Thrown when the service encounters an error during processing the request. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by an InternalErrorException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} + +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} + +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// Thrown if the identity pool has no role associated for the given auth type +// (auth/unauth) or if the AssumeRole fails. +type InvalidIdentityPoolConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned for an InvalidIdentityPoolConfigurationException + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidIdentityPoolConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidIdentityPoolConfigurationException) GoString() string { + return s.String() +} + +func newErrorInvalidIdentityPoolConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidIdentityPoolConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidIdentityPoolConfigurationException) Code() string { + return "InvalidIdentityPoolConfigurationException" +} + +// Message returns the exception's message. +func (s InvalidIdentityPoolConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidIdentityPoolConfigurationException) OrigErr() error { + return nil +} + +func (s InvalidIdentityPoolConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidIdentityPoolConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidIdentityPoolConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Thrown for missing or bad input parameter(s). +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by an InvalidParameterException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// Thrown when the total number of user pools has exceeded a preset limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a LimitExceededException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Input to the ListIdentities action. type ListIdentitiesInput struct { _ struct{} `type:"structure"` @@ -3950,6 +4352,63 @@ func (s *MergeDeveloperIdentitiesOutput) SetIdentityId(v string) *MergeDeveloper return s } +// Thrown when a user is not authorized to access the requested resource. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a NotAuthorizedException + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // A provider representing an Amazon Cognito user pool and its client ID. type Provider struct { _ struct{} `type:"structure"` @@ -4017,6 +4476,122 @@ func (s *Provider) SetServerSideTokenCheck(v bool) *Provider { return s } +// Thrown when a user tries to use a login which is already linked to another +// account. +type ResourceConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a ResourceConflictException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceConflictException) OrigErr() error { + return nil +} + +func (s ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +// Thrown when the requested resource (for example, a dataset or record) does +// not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a ResourceNotFoundException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A role mapping. type RoleMapping struct { _ struct{} `type:"structure"` @@ -4305,6 +4880,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Thrown when a request is throttled. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Message returned by a TooManyRequestsException + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // Input to the UnlinkDeveloperIdentity action. type UnlinkDeveloperIdentityInput struct { _ struct{} `type:"structure"` diff --git a/service/cognitoidentity/errors.go b/service/cognitoidentity/errors.go index 9094d135b12..6f48e21052b 100644 --- a/service/cognitoidentity/errors.go +++ b/service/cognitoidentity/errors.go @@ -2,6 +2,10 @@ package cognitoidentity +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -75,3 +79,17 @@ const ( // Thrown when a request is throttled. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "DeveloperUserAlreadyRegisteredException": newErrorDeveloperUserAlreadyRegisteredException, + "ExternalServiceException": newErrorExternalServiceException, + "InternalErrorException": newErrorInternalErrorException, + "InvalidIdentityPoolConfigurationException": newErrorInvalidIdentityPoolConfigurationException, + "InvalidParameterException": newErrorInvalidParameterException, + "LimitExceededException": newErrorLimitExceededException, + "NotAuthorizedException": newErrorNotAuthorizedException, + "ResourceConflictException": newErrorResourceConflictException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/cognitoidentity/service.go b/service/cognitoidentity/service.go index bf4da71dbae..54811ae4a57 100644 --- a/service/cognitoidentity/service.go +++ b/service/cognitoidentity/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cognitoidentityprovider/api.go b/service/cognitoidentityprovider/api.go index 6bc0a2cf206..3e41a16be6c 100644 --- a/service/cognitoidentityprovider/api.go +++ b/service/cognitoidentityprovider/api.go @@ -68,27 +68,27 @@ func (c *CognitoIdentityProvider) AddCustomAttributesRequest(input *AddCustomAtt // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AddCustomAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserImportInProgressException "UserImportInProgressException" +// * UserImportInProgressException // This exception is thrown when you are trying to modify a user pool while // a user import job is in progress for that pool. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AddCustomAttributes @@ -169,26 +169,26 @@ func (c *CognitoIdentityProvider) AdminAddUserToGroupRequest(input *AdminAddUser // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminAddUserToGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminAddUserToGroup @@ -270,46 +270,46 @@ func (c *CognitoIdentityProvider) AdminConfirmSignUpRequest(input *AdminConfirmS // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminConfirmSignUp for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyFailedAttemptsException "TooManyFailedAttemptsException" +// * TooManyFailedAttemptsException // This exception is thrown when the user has made too many failed attempts // for a given action (e.g., sign in). // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminConfirmSignUp @@ -402,65 +402,65 @@ func (c *CognitoIdentityProvider) AdminCreateUserRequest(input *AdminCreateUserI // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminCreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUsernameExistsException "UsernameExistsException" +// * UsernameExistsException // This exception is thrown when Amazon Cognito encounters a user name that // already exists in the user pool. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// * CodeDeliveryFailureException // This exception is thrown when a verification code fails to deliver successfully. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // This exception is thrown when a precondition is not met. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUnsupportedUserStateException "UnsupportedUserStateException" +// * UnsupportedUserStateException // The request failed because the user is in an unsupported state. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminCreateUser @@ -541,26 +541,26 @@ func (c *CognitoIdentityProvider) AdminDeleteUserRequest(input *AdminDeleteUserI // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminDeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUser @@ -642,26 +642,26 @@ func (c *CognitoIdentityProvider) AdminDeleteUserAttributesRequest(input *AdminD // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminDeleteUserAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDeleteUserAttributes @@ -768,32 +768,32 @@ func (c *CognitoIdentityProvider) AdminDisableProviderForUserRequest(input *Admi // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminDisableProviderForUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeAliasExistsException "AliasExistsException" +// * AliasExistsException // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableProviderForUser @@ -874,26 +874,26 @@ func (c *CognitoIdentityProvider) AdminDisableUserRequest(input *AdminDisableUse // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminDisableUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminDisableUser @@ -974,26 +974,26 @@ func (c *CognitoIdentityProvider) AdminEnableUserRequest(input *AdminEnableUserI // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminEnableUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminEnableUser @@ -1074,29 +1074,29 @@ func (c *CognitoIdentityProvider) AdminForgetDeviceRequest(input *AdminForgetDev // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminForgetDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminForgetDevice @@ -1176,26 +1176,26 @@ func (c *CognitoIdentityProvider) AdminGetDeviceRequest(input *AdminGetDeviceInp // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminGetDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetDevice @@ -1276,26 +1276,26 @@ func (c *CognitoIdentityProvider) AdminGetUserRequest(input *AdminGetUserInput) // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminGetUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminGetUser @@ -1375,61 +1375,61 @@ func (c *CognitoIdentityProvider) AdminInitiateAuthRequest(input *AdminInitiateA // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminInitiateAuth for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeMFAMethodNotFoundException "MFAMethodNotFoundException" +// * MFAMethodNotFoundException // This exception is thrown when Amazon Cognito cannot find a multi-factor authentication // (MFA) method. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminInitiateAuth @@ -1526,32 +1526,32 @@ func (c *CognitoIdentityProvider) AdminLinkProviderForUserRequest(input *AdminLi // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminLinkProviderForUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeAliasExistsException "AliasExistsException" +// * AliasExistsException // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminLinkProviderForUser @@ -1631,26 +1631,26 @@ func (c *CognitoIdentityProvider) AdminListDevicesRequest(input *AdminListDevice // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminListDevices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListDevices @@ -1736,26 +1736,26 @@ func (c *CognitoIdentityProvider) AdminListGroupsForUserRequest(input *AdminList // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminListGroupsForUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListGroupsForUser @@ -1892,29 +1892,29 @@ func (c *CognitoIdentityProvider) AdminListUserAuthEventsRequest(input *AdminLis // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminListUserAuthEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// * UserPoolAddOnNotEnabledException // This exception is thrown when user pool add-ons are not enabled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminListUserAuthEvents @@ -2047,26 +2047,26 @@ func (c *CognitoIdentityProvider) AdminRemoveUserFromGroupRequest(input *AdminRe // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminRemoveUserFromGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminRemoveUserFromGroup @@ -2158,56 +2158,56 @@ func (c *CognitoIdentityProvider) AdminResetUserPasswordRequest(input *AdminRese // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminResetUserPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminResetUserPassword @@ -2287,81 +2287,81 @@ func (c *CognitoIdentityProvider) AdminRespondToAuthChallengeRequest(input *Admi // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminRespondToAuthChallenge for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeCodeMismatchException "CodeMismatchException" +// * CodeMismatchException // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ErrCodeExpiredCodeException "ExpiredCodeException" +// * ExpiredCodeException // This exception is thrown if a code has expired. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeMFAMethodNotFoundException "MFAMethodNotFoundException" +// * MFAMethodNotFoundException // This exception is thrown when Amazon Cognito cannot find a multi-factor authentication // (MFA) method. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeAliasExistsException "AliasExistsException" +// * AliasExistsException // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// * SoftwareTokenMFANotFoundException // This exception is thrown when the software token TOTP multi-factor authentication // (MFA) is not enabled for the user pool. // @@ -2446,28 +2446,28 @@ func (c *CognitoIdentityProvider) AdminSetUserMFAPreferenceRequest(input *AdminS // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminSetUserMFAPreference for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserMFAPreference @@ -2557,29 +2557,29 @@ func (c *CognitoIdentityProvider) AdminSetUserPasswordRequest(input *AdminSetUse // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminSetUserPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // @@ -2661,22 +2661,22 @@ func (c *CognitoIdentityProvider) AdminSetUserSettingsRequest(input *AdminSetUse // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminSetUserSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminSetUserSettings @@ -2757,29 +2757,29 @@ func (c *CognitoIdentityProvider) AdminUpdateAuthEventFeedbackRequest(input *Adm // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminUpdateAuthEventFeedback for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// * UserPoolAddOnNotEnabledException // This exception is thrown when user pool add-ons are not enabled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateAuthEventFeedback @@ -2860,29 +2860,29 @@ func (c *CognitoIdentityProvider) AdminUpdateDeviceStatusRequest(input *AdminUpd // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminUpdateDeviceStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUpdateDeviceStatus @@ -2970,55 +2970,55 @@ func (c *CognitoIdentityProvider) AdminUpdateUserAttributesRequest(input *AdminU // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminUpdateUserAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeAliasExistsException "AliasExistsException" +// * AliasExistsException // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in @@ -3105,26 +3105,26 @@ func (c *CognitoIdentityProvider) AdminUserGlobalSignOutRequest(input *AdminUser // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AdminUserGlobalSignOut for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/AdminUserGlobalSignOut @@ -3203,22 +3203,22 @@ func (c *CognitoIdentityProvider) AssociateSoftwareTokenRequest(input *Associate // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation AssociateSoftwareToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// * SoftwareTokenMFANotFoundException // This exception is thrown when the software token TOTP multi-factor authentication // (MFA) is not enabled for the user pool. // @@ -3299,40 +3299,40 @@ func (c *CognitoIdentityProvider) ChangePasswordRequest(input *ChangePasswordInp // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ChangePassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ChangePassword @@ -3411,47 +3411,47 @@ func (c *CognitoIdentityProvider) ConfirmDeviceRequest(input *ConfirmDeviceInput // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ConfirmDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeUsernameExistsException "UsernameExistsException" +// * UsernameExistsException // This exception is thrown when Amazon Cognito encounters a user name that // already exists in the user pool. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmDevice @@ -3531,60 +3531,60 @@ func (c *CognitoIdentityProvider) ConfirmForgotPasswordRequest(input *ConfirmFor // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ConfirmForgotPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeCodeMismatchException "CodeMismatchException" +// * CodeMismatchException // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ErrCodeExpiredCodeException "ExpiredCodeException" +// * ExpiredCodeException // This exception is thrown if a code has expired. // -// * ErrCodeTooManyFailedAttemptsException "TooManyFailedAttemptsException" +// * TooManyFailedAttemptsException // This exception is thrown when the user has made too many failed attempts // for a given action (e.g., sign in). // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmForgotPassword @@ -3665,59 +3665,59 @@ func (c *CognitoIdentityProvider) ConfirmSignUpRequest(input *ConfirmSignUpInput // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ConfirmSignUp for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyFailedAttemptsException "TooManyFailedAttemptsException" +// * TooManyFailedAttemptsException // This exception is thrown when the user has made too many failed attempts // for a given action (e.g., sign in). // -// * ErrCodeCodeMismatchException "CodeMismatchException" +// * CodeMismatchException // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ErrCodeExpiredCodeException "ExpiredCodeException" +// * ExpiredCodeException // This exception is thrown if a code has expired. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeAliasExistsException "AliasExistsException" +// * AliasExistsException // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ConfirmSignUp @@ -3797,31 +3797,31 @@ func (c *CognitoIdentityProvider) CreateGroupRequest(input *CreateGroupInput) (r // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation CreateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeGroupExistsException "GroupExistsException" +// * GroupExistsException // This exception is thrown when Amazon Cognito encounters a group that already // exists in the user pool. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateGroup @@ -3899,31 +3899,31 @@ func (c *CognitoIdentityProvider) CreateIdentityProviderRequest(input *CreateIde // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation CreateIdentityProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeDuplicateProviderException "DuplicateProviderException" +// * DuplicateProviderException // This exception is thrown when the provider is already supported by the user // pool. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateIdentityProvider @@ -4001,27 +4001,27 @@ func (c *CognitoIdentityProvider) CreateResourceServerRequest(input *CreateResou // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation CreateResourceServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateResourceServer @@ -4099,30 +4099,30 @@ func (c *CognitoIdentityProvider) CreateUserImportJobRequest(input *CreateUserIm // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation CreateUserImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // This exception is thrown when a precondition is not met. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserImportJob @@ -4201,40 +4201,40 @@ func (c *CognitoIdentityProvider) CreateUserPoolRequest(input *CreateUserPoolInp // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation CreateUserPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" +// * UserPoolTaggingException // This exception is thrown when a user pool tag cannot be set or updated. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPool @@ -4312,33 +4312,33 @@ func (c *CognitoIdentityProvider) CreateUserPoolClientRequest(input *CreateUserP // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation CreateUserPoolClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeScopeDoesNotExistException "ScopeDoesNotExistException" +// * ScopeDoesNotExistException // This exception is thrown when the specified scope does not exist. // -// * ErrCodeInvalidOAuthFlowException "InvalidOAuthFlowException" +// * InvalidOAuthFlowException // This exception is thrown when the specified OAuth flow is invalid. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolClient @@ -4416,23 +4416,23 @@ func (c *CognitoIdentityProvider) CreateUserPoolDomainRequest(input *CreateUserP // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation CreateUserPoolDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/CreateUserPoolDomain @@ -4513,23 +4513,23 @@ func (c *CognitoIdentityProvider) DeleteGroupRequest(input *DeleteGroupInput) (r // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteGroup @@ -4608,26 +4608,26 @@ func (c *CognitoIdentityProvider) DeleteIdentityProviderRequest(input *DeleteIde // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteIdentityProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnsupportedIdentityProviderException "UnsupportedIdentityProviderException" +// * UnsupportedIdentityProviderException // This exception is thrown when the specified identifier is not supported. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteIdentityProvider @@ -4706,23 +4706,23 @@ func (c *CognitoIdentityProvider) DeleteResourceServerRequest(input *DeleteResou // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteResourceServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteResourceServer @@ -4802,32 +4802,32 @@ func (c *CognitoIdentityProvider) DeleteUserRequest(input *DeleteUserInput) (req // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUser @@ -4907,32 +4907,32 @@ func (c *CognitoIdentityProvider) DeleteUserAttributesRequest(input *DeleteUserA // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteUserAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserAttributes @@ -5011,27 +5011,27 @@ func (c *CognitoIdentityProvider) DeleteUserPoolRequest(input *DeleteUserPoolInp // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteUserPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserImportInProgressException "UserImportInProgressException" +// * UserImportInProgressException // This exception is thrown when you are trying to modify a user pool while // a user import job is in progress for that pool. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPool @@ -5110,23 +5110,23 @@ func (c *CognitoIdentityProvider) DeleteUserPoolClientRequest(input *DeleteUserP // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteUserPoolClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolClient @@ -5205,19 +5205,19 @@ func (c *CognitoIdentityProvider) DeleteUserPoolDomainRequest(input *DeleteUserP // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DeleteUserPoolDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DeleteUserPoolDomain @@ -5295,23 +5295,23 @@ func (c *CognitoIdentityProvider) DescribeIdentityProviderRequest(input *Describ // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DescribeIdentityProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeIdentityProvider @@ -5389,23 +5389,23 @@ func (c *CognitoIdentityProvider) DescribeResourceServerRequest(input *DescribeR // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DescribeResourceServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeResourceServer @@ -5483,26 +5483,26 @@ func (c *CognitoIdentityProvider) DescribeRiskConfigurationRequest(input *Descri // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DescribeRiskConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// * UserPoolAddOnNotEnabledException // This exception is thrown when user pool add-ons are not enabled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeRiskConfiguration @@ -5580,23 +5580,23 @@ func (c *CognitoIdentityProvider) DescribeUserImportJobRequest(input *DescribeUs // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DescribeUserImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserImportJob @@ -5675,26 +5675,26 @@ func (c *CognitoIdentityProvider) DescribeUserPoolRequest(input *DescribeUserPoo // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DescribeUserPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" +// * UserPoolTaggingException // This exception is thrown when a user pool tag cannot be set or updated. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPool @@ -5773,23 +5773,23 @@ func (c *CognitoIdentityProvider) DescribeUserPoolClientRequest(input *DescribeU // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DescribeUserPoolClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolClient @@ -5867,19 +5867,19 @@ func (c *CognitoIdentityProvider) DescribeUserPoolDomainRequest(input *DescribeU // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation DescribeUserPoolDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/DescribeUserPoolDomain @@ -5958,35 +5958,35 @@ func (c *CognitoIdentityProvider) ForgetDeviceRequest(input *ForgetDeviceInput) // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ForgetDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgetDevice @@ -6071,62 +6071,62 @@ func (c *CognitoIdentityProvider) ForgotPasswordRequest(input *ForgotPasswordInp // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ForgotPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// * CodeDeliveryFailureException // This exception is thrown when a verification code fails to deliver successfully. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ForgotPassword @@ -6205,23 +6205,23 @@ func (c *CognitoIdentityProvider) GetCSVHeaderRequest(input *GetCSVHeaderInput) // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetCSVHeader for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetCSVHeader @@ -6299,35 +6299,35 @@ func (c *CognitoIdentityProvider) GetDeviceRequest(input *GetDeviceInput) (req * // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetDevice @@ -6407,23 +6407,23 @@ func (c *CognitoIdentityProvider) GetGroupRequest(input *GetGroupInput) (req *re // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetGroup @@ -6501,23 +6501,23 @@ func (c *CognitoIdentityProvider) GetIdentityProviderByIdentifierRequest(input * // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetIdentityProviderByIdentifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetIdentityProviderByIdentifier @@ -6595,15 +6595,15 @@ func (c *CognitoIdentityProvider) GetSigningCertificateRequest(input *GetSigning // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetSigningCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // @@ -6685,23 +6685,23 @@ func (c *CognitoIdentityProvider) GetUICustomizationRequest(input *GetUICustomiz // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetUICustomization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUICustomization @@ -6780,32 +6780,32 @@ func (c *CognitoIdentityProvider) GetUserRequest(input *GetUserInput) (req *requ // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUser @@ -6884,65 +6884,65 @@ func (c *CognitoIdentityProvider) GetUserAttributeVerificationCodeRequest(input // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetUserAttributeVerificationCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// * CodeDeliveryFailureException // This exception is thrown when a verification code fails to deliver successfully. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserAttributeVerificationCode @@ -7020,23 +7020,23 @@ func (c *CognitoIdentityProvider) GetUserPoolMfaConfigRequest(input *GetUserPool // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GetUserPoolMfaConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GetUserPoolMfaConfig @@ -7117,29 +7117,29 @@ func (c *CognitoIdentityProvider) GlobalSignOutRequest(input *GlobalSignOutInput // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation GlobalSignOut for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/GlobalSignOut @@ -7217,54 +7217,54 @@ func (c *CognitoIdentityProvider) InitiateAuthRequest(input *InitiateAuthInput) // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation InitiateAuth for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in @@ -7345,35 +7345,35 @@ func (c *CognitoIdentityProvider) ListDevicesRequest(input *ListDevicesInput) (r // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListDevices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListDevices @@ -7459,23 +7459,23 @@ func (c *CognitoIdentityProvider) ListGroupsRequest(input *ListGroupsInput) (req // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListGroups @@ -7611,23 +7611,23 @@ func (c *CognitoIdentityProvider) ListIdentityProvidersRequest(input *ListIdenti // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListIdentityProviders for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListIdentityProviders @@ -7763,23 +7763,23 @@ func (c *CognitoIdentityProvider) ListResourceServersRequest(input *ListResource // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListResourceServers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListResourceServers @@ -7915,23 +7915,23 @@ func (c *CognitoIdentityProvider) ListTagsForResourceRequest(input *ListTagsForR // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListTagsForResource @@ -8009,23 +8009,23 @@ func (c *CognitoIdentityProvider) ListUserImportJobsRequest(input *ListUserImpor // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListUserImportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserImportJobs @@ -8109,23 +8109,23 @@ func (c *CognitoIdentityProvider) ListUserPoolClientsRequest(input *ListUserPool // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListUserPoolClients for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPoolClients @@ -8261,19 +8261,19 @@ func (c *CognitoIdentityProvider) ListUserPoolsRequest(input *ListUserPoolsInput // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListUserPools for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUserPools @@ -8409,23 +8409,23 @@ func (c *CognitoIdentityProvider) ListUsersRequest(input *ListUsersInput) (req * // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsers @@ -8563,23 +8563,23 @@ func (c *CognitoIdentityProvider) ListUsersInGroupRequest(input *ListUsersInGrou // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ListUsersInGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ListUsersInGroup @@ -8711,59 +8711,59 @@ func (c *CognitoIdentityProvider) ResendConfirmationCodeRequest(input *ResendCon // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation ResendConfirmationCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// * CodeDeliveryFailureException // This exception is thrown when a verification code fails to deliver successfully. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/ResendConfirmationCode @@ -8841,81 +8841,81 @@ func (c *CognitoIdentityProvider) RespondToAuthChallengeRequest(input *RespondTo // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation RespondToAuthChallenge for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeCodeMismatchException "CodeMismatchException" +// * CodeMismatchException // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ErrCodeExpiredCodeException "ExpiredCodeException" +// * ExpiredCodeException // This exception is thrown if a code has expired. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeMFAMethodNotFoundException "MFAMethodNotFoundException" +// * MFAMethodNotFoundException // This exception is thrown when Amazon Cognito cannot find a multi-factor authentication // (MFA) method. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeAliasExistsException "AliasExistsException" +// * AliasExistsException // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// * SoftwareTokenMFANotFoundException // This exception is thrown when the software token TOTP multi-factor authentication // (MFA) is not enabled for the user pool. // @@ -9000,33 +9000,33 @@ func (c *CognitoIdentityProvider) SetRiskConfigurationRequest(input *SetRiskConf // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation SetRiskConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// * UserPoolAddOnNotEnabledException // This exception is thrown when user pool add-ons are not enabled. // -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// * CodeDeliveryFailureException // This exception is thrown when a verification code fails to deliver successfully. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetRiskConfiguration @@ -9115,23 +9115,23 @@ func (c *CognitoIdentityProvider) SetUICustomizationRequest(input *SetUICustomiz // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation SetUICustomization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUICustomization @@ -9215,28 +9215,28 @@ func (c *CognitoIdentityProvider) SetUserMFAPreferenceRequest(input *SetUserMFAP // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation SetUserMFAPreference for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserMFAPreference @@ -9314,33 +9314,33 @@ func (c *CognitoIdentityProvider) SetUserPoolMfaConfigRequest(input *SetUserPool // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation SetUserPoolMfaConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserPoolMfaConfig @@ -9422,28 +9422,28 @@ func (c *CognitoIdentityProvider) SetUserSettingsRequest(input *SetUserSettingsI // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation SetUserSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SetUserSettings @@ -9523,60 +9523,60 @@ func (c *CognitoIdentityProvider) SignUpRequest(input *SignUpInput) (req *reques // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation SignUp for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // This exception is thrown when the Amazon Cognito service encounters an invalid // password. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeUsernameExistsException "UsernameExistsException" +// * UsernameExistsException // This exception is thrown when Amazon Cognito encounters a user name that // already exists in the user pool. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// * CodeDeliveryFailureException // This exception is thrown when a verification code fails to deliver successfully. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/SignUp @@ -9654,26 +9654,26 @@ func (c *CognitoIdentityProvider) StartUserImportJobRequest(input *StartUserImpo // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation StartUserImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // This exception is thrown when a precondition is not met. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StartUserImportJob @@ -9751,26 +9751,26 @@ func (c *CognitoIdentityProvider) StopUserImportJobRequest(input *StopUserImport // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation StopUserImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // This exception is thrown when a precondition is not met. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/StopUserImportJob @@ -9866,23 +9866,23 @@ func (c *CognitoIdentityProvider) TagResourceRequest(input *TagResourceInput) (r // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/TagResource @@ -9962,23 +9962,23 @@ func (c *CognitoIdentityProvider) UntagResourceRequest(input *UntagResourceInput // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UntagResource @@ -10059,29 +10059,29 @@ func (c *CognitoIdentityProvider) UpdateAuthEventFeedbackRequest(input *UpdateAu // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateAuthEventFeedback for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserPoolAddOnNotEnabledException "UserPoolAddOnNotEnabledException" +// * UserPoolAddOnNotEnabledException // This exception is thrown when user pool add-ons are not enabled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateAuthEventFeedback @@ -10160,35 +10160,35 @@ func (c *CognitoIdentityProvider) UpdateDeviceStatusRequest(input *UpdateDeviceS // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateDeviceStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateDeviceStatus @@ -10271,23 +10271,23 @@ func (c *CognitoIdentityProvider) UpdateGroupRequest(input *UpdateGroupInput) (r // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateGroup @@ -10365,26 +10365,26 @@ func (c *CognitoIdentityProvider) UpdateIdentityProviderRequest(input *UpdateIde // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateIdentityProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeUnsupportedIdentityProviderException "UnsupportedIdentityProviderException" +// * UnsupportedIdentityProviderException // This exception is thrown when the specified identifier is not supported. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateIdentityProvider @@ -10465,23 +10465,23 @@ func (c *CognitoIdentityProvider) UpdateResourceServerRequest(input *UpdateResou // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateResourceServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateResourceServer @@ -10560,74 +10560,74 @@ func (c *CognitoIdentityProvider) UpdateUserAttributesRequest(input *UpdateUserA // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateUserAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeCodeMismatchException "CodeMismatchException" +// * CodeMismatchException // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ErrCodeExpiredCodeException "ExpiredCodeException" +// * ExpiredCodeException // This exception is thrown if a code has expired. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUnexpectedLambdaException "UnexpectedLambdaException" +// * UnexpectedLambdaException // This exception is thrown when the Amazon Cognito service encounters an unexpected // exception with the AWS Lambda service. // -// * ErrCodeUserLambdaValidationException "UserLambdaValidationException" +// * UserLambdaValidationException // This exception is thrown when the Amazon Cognito service encounters a user // validation exception with the AWS Lambda service. // -// * ErrCodeInvalidLambdaResponseException "InvalidLambdaResponseException" +// * InvalidLambdaResponseException // This exception is thrown when the Amazon Cognito service encounters an invalid // AWS Lambda response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeAliasExistsException "AliasExistsException" +// * AliasExistsException // This exception is thrown when a user tries to confirm the account with an // email or phone number that has already been supplied as an alias from a different // account. This exception tells user that an account with this email or phone // already exists. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // -// * ErrCodeCodeDeliveryFailureException "CodeDeliveryFailureException" +// * CodeDeliveryFailureException // This exception is thrown when a verification code fails to deliver successfully. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserAttributes @@ -10710,46 +10710,46 @@ func (c *CognitoIdentityProvider) UpdateUserPoolRequest(input *UpdateUserPoolInp // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateUserPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // This exception is thrown if two or more modifications are happening concurrently. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeUserImportInProgressException "UserImportInProgressException" +// * UserImportInProgressException // This exception is thrown when you are trying to modify a user pool while // a user import job is in progress for that pool. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeInvalidSmsRoleAccessPolicyException "InvalidSmsRoleAccessPolicyException" +// * InvalidSmsRoleAccessPolicyException // This exception is returned when the role provided for SMS configuration does // not have permission to publish using Amazon SNS. // -// * ErrCodeInvalidSmsRoleTrustRelationshipException "InvalidSmsRoleTrustRelationshipException" +// * InvalidSmsRoleTrustRelationshipException // This exception is thrown when the trust relationship is invalid for the role // provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com // or the external ID provided in the role does not match what is provided in // the SMS configuration for the user pool. // -// * ErrCodeUserPoolTaggingException "UserPoolTaggingException" +// * UserPoolTaggingException // This exception is thrown when a user pool tag cannot be set or updated. // -// * ErrCodeInvalidEmailRoleAccessPolicyException "InvalidEmailRoleAccessPolicyException" +// * InvalidEmailRoleAccessPolicyException // This exception is thrown when Amazon Cognito is not allowed to use your email // identity. HTTP status code: 400. // @@ -10832,32 +10832,32 @@ func (c *CognitoIdentityProvider) UpdateUserPoolClientRequest(input *UpdateUserP // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateUserPoolClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // This exception is thrown if two or more modifications are happening concurrently. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeScopeDoesNotExistException "ScopeDoesNotExistException" +// * ScopeDoesNotExistException // This exception is thrown when the specified scope does not exist. // -// * ErrCodeInvalidOAuthFlowException "InvalidOAuthFlowException" +// * InvalidOAuthFlowException // This exception is thrown when the specified OAuth flow is invalid. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolClient @@ -10963,23 +10963,23 @@ func (c *CognitoIdentityProvider) UpdateUserPoolDomainRequest(input *UpdateUserP // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation UpdateUserPoolDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/UpdateUserPoolDomain @@ -11059,49 +11059,49 @@ func (c *CognitoIdentityProvider) VerifySoftwareTokenRequest(input *VerifySoftwa // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation VerifySoftwareToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidUserPoolConfigurationException "InvalidUserPoolConfigurationException" +// * InvalidUserPoolConfigurationException // This exception is thrown when the user pool configuration is invalid. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // -// * ErrCodeEnableSoftwareTokenMFAException "EnableSoftwareTokenMFAException" +// * EnableSoftwareTokenMFAException // This exception is thrown when there is a code mismatch and the service fails // to configure the software token TOTP multi-factor authentication (MFA). // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeSoftwareTokenMFANotFoundException "SoftwareTokenMFANotFoundException" +// * SoftwareTokenMFANotFoundException // This exception is thrown when the software token TOTP multi-factor authentication // (MFA) is not enabled for the user pool. // -// * ErrCodeCodeMismatchException "CodeMismatchException" +// * CodeMismatchException // This exception is thrown if the provided code does not match what the server // was expecting. // @@ -11182,43 +11182,43 @@ func (c *CognitoIdentityProvider) VerifyUserAttributeRequest(input *VerifyUserAt // See the AWS API reference guide for Amazon Cognito Identity Provider's // API operation VerifyUserAttribute for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // This exception is thrown when the Amazon Cognito service cannot find the // requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This exception is thrown when the Amazon Cognito service encounters an invalid // parameter. // -// * ErrCodeCodeMismatchException "CodeMismatchException" +// * CodeMismatchException // This exception is thrown if the provided code does not match what the server // was expecting. // -// * ErrCodeExpiredCodeException "ExpiredCodeException" +// * ExpiredCodeException // This exception is thrown if a code has expired. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // This exception is thrown when a user is not authorized. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // This exception is thrown when the user has made too many requests for a given // operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // This exception is thrown when a user exceeds the limit for a requested AWS // resource. // -// * ErrCodePasswordResetRequiredException "PasswordResetRequiredException" +// * PasswordResetRequiredException // This exception is thrown when a password reset is required. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // This exception is thrown when a user is not found. // -// * ErrCodeUserNotConfirmedException "UserNotConfirmedException" +// * UserNotConfirmedException // This exception is thrown when a user is not confirmed successfully. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // This exception is thrown when Amazon Cognito encounters an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/VerifyUserAttribute @@ -14767,6 +14767,66 @@ func (s AdminUserGlobalSignOutOutput) GoString() string { return s.String() } +// This exception is thrown when a user tries to confirm the account with an +// email or phone number that has already been supplied as an alias from a different +// account. This exception tells user that an account with this email or phone +// already exists. +type AliasExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message sent to the user when an alias exists. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AliasExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AliasExistsException) GoString() string { + return s.String() +} + +func newErrorAliasExistsException(v protocol.ResponseMetadata) error { + return &AliasExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AliasExistsException) Code() string { + return "AliasExistsException" +} + +// Message returns the exception's message. +func (s AliasExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AliasExistsException) OrigErr() error { + return nil +} + +func (s AliasExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AliasExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AliasExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // The Amazon Pinpoint analytics configuration for collecting metrics for a // user pool. type AnalyticsConfigurationType struct { @@ -15330,6 +15390,121 @@ func (s *CodeDeliveryDetailsType) SetDestination(v string) *CodeDeliveryDetailsT return s } +// This exception is thrown when a verification code fails to deliver successfully. +type CodeDeliveryFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message sent when a verification code fails to deliver successfully. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CodeDeliveryFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeDeliveryFailureException) GoString() string { + return s.String() +} + +func newErrorCodeDeliveryFailureException(v protocol.ResponseMetadata) error { + return &CodeDeliveryFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CodeDeliveryFailureException) Code() string { + return "CodeDeliveryFailureException" +} + +// Message returns the exception's message. +func (s CodeDeliveryFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CodeDeliveryFailureException) OrigErr() error { + return nil +} + +func (s CodeDeliveryFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CodeDeliveryFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CodeDeliveryFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown if the provided code does not match what the server +// was expecting. +type CodeMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message provided when the code mismatch exception is thrown. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CodeMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeMismatchException) GoString() string { + return s.String() +} + +func newErrorCodeMismatchException(v protocol.ResponseMetadata) error { + return &CodeMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CodeMismatchException) Code() string { + return "CodeMismatchException" +} + +// Message returns the exception's message. +func (s CodeMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CodeMismatchException) OrigErr() error { + return nil +} + +func (s CodeMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CodeMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CodeMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + // The compromised credentials actions type type CompromisedCredentialsActionsType struct { _ struct{} `type:"structure"` @@ -15423,6 +15598,63 @@ func (s *CompromisedCredentialsRiskConfigurationType) SetEventFilter(v []*string return s } +// This exception is thrown if two or more modifications are happening concurrently. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message provided when the concurrent exception is thrown. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // Confirms the device request. type ConfirmDeviceInput struct { _ struct{} `type:"structure"` @@ -18548,6 +18780,63 @@ func (s *DomainDescriptionType) SetVersion(v string) *DomainDescriptionType { return s } +// This exception is thrown when the provider is already supported by the user +// pool. +type DuplicateProviderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DuplicateProviderException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateProviderException) GoString() string { + return s.String() +} + +func newErrorDuplicateProviderException(v protocol.ResponseMetadata) error { + return &DuplicateProviderException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateProviderException) Code() string { + return "DuplicateProviderException" +} + +// Message returns the exception's message. +func (s DuplicateProviderException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateProviderException) OrigErr() error { + return nil +} + +func (s DuplicateProviderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateProviderException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateProviderException) RequestID() string { + return s.respMetadata.RequestID +} + // The email configuration type. type EmailConfigurationType struct { _ struct{} `type:"structure"` @@ -18687,6 +18976,63 @@ func (s *EmailConfigurationType) SetSourceArn(v string) *EmailConfigurationType return s } +// This exception is thrown when there is a code mismatch and the service fails +// to configure the software token TOTP multi-factor authentication (MFA). +type EnableSoftwareTokenMFAException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s EnableSoftwareTokenMFAException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EnableSoftwareTokenMFAException) GoString() string { + return s.String() +} + +func newErrorEnableSoftwareTokenMFAException(v protocol.ResponseMetadata) error { + return &EnableSoftwareTokenMFAException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EnableSoftwareTokenMFAException) Code() string { + return "EnableSoftwareTokenMFAException" +} + +// Message returns the exception's message. +func (s EnableSoftwareTokenMFAException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EnableSoftwareTokenMFAException) OrigErr() error { + return nil +} + +func (s EnableSoftwareTokenMFAException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EnableSoftwareTokenMFAException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EnableSoftwareTokenMFAException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the user context data captured at the time of an event request. type EventContextDataType struct { _ struct{} `type:"structure"` @@ -18826,6 +19172,63 @@ func (s *EventRiskType) SetRiskLevel(v string) *EventRiskType { return s } +// This exception is thrown if a code has expired. +type ExpiredCodeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the expired code exception is thrown. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExpiredCodeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredCodeException) GoString() string { + return s.String() +} + +func newErrorExpiredCodeException(v protocol.ResponseMetadata) error { + return &ExpiredCodeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredCodeException) Code() string { + return "ExpiredCodeException" +} + +// Message returns the exception's message. +func (s ExpiredCodeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredCodeException) OrigErr() error { + return nil +} + +func (s ExpiredCodeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredCodeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredCodeException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the request to forget the device. type ForgetDeviceInput struct { _ struct{} `type:"structure"` @@ -19887,6 +20290,63 @@ func (s GlobalSignOutOutput) GoString() string { return s.String() } +// This exception is thrown when Amazon Cognito encounters a group that already +// exists in the user pool. +type GroupExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s GroupExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GroupExistsException) GoString() string { + return s.String() +} + +func newErrorGroupExistsException(v protocol.ResponseMetadata) error { + return &GroupExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GroupExistsException) Code() string { + return "GroupExistsException" +} + +// Message returns the exception's message. +func (s GroupExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GroupExistsException) OrigErr() error { + return nil +} + +func (s GroupExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GroupExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GroupExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // The group type. type GroupType struct { _ struct{} `type:"structure"` @@ -20376,30 +20836,556 @@ func (s *InitiateAuthOutput) SetSession(v string) *InitiateAuthOutput { return s } -// Specifies the configuration for AWS Lambda triggers. -type LambdaConfigType struct { - _ struct{} `type:"structure"` +// This exception is thrown when Amazon Cognito encounters an internal error. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // Creates an authentication challenge. - CreateAuthChallenge *string `min:"20" type:"string"` + // The message returned when Amazon Cognito throws an internal error exception. + Message_ *string `locationName:"message" type:"string"` +} - // A custom Message AWS Lambda trigger. - CustomMessage *string `min:"20" type:"string"` +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} - // Defines the authentication challenge. - DefineAuthChallenge *string `min:"20" type:"string"` +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} - // A post-authentication AWS Lambda trigger. - PostAuthentication *string `min:"20" type:"string"` +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} - // A post-confirmation AWS Lambda trigger. - PostConfirmation *string `min:"20" type:"string"` +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} - // A pre-authentication AWS Lambda trigger. - PreAuthentication *string `min:"20" type:"string"` +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // A pre-registration AWS Lambda trigger. - PreSignUp *string `min:"20" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when Amazon Cognito is not allowed to use your email +// identity. HTTP status code: 400. +type InvalidEmailRoleAccessPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when you have an unverified email address or the identity + // policy is not set on an email address that Amazon Cognito can access. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidEmailRoleAccessPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEmailRoleAccessPolicyException) GoString() string { + return s.String() +} + +func newErrorInvalidEmailRoleAccessPolicyException(v protocol.ResponseMetadata) error { + return &InvalidEmailRoleAccessPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEmailRoleAccessPolicyException) Code() string { + return "InvalidEmailRoleAccessPolicyException" +} + +// Message returns the exception's message. +func (s InvalidEmailRoleAccessPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEmailRoleAccessPolicyException) OrigErr() error { + return nil +} + +func (s InvalidEmailRoleAccessPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEmailRoleAccessPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEmailRoleAccessPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the Amazon Cognito service encounters an invalid +// AWS Lambda response. +type InvalidLambdaResponseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service throws an invalid AWS + // Lambda response exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidLambdaResponseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLambdaResponseException) GoString() string { + return s.String() +} + +func newErrorInvalidLambdaResponseException(v protocol.ResponseMetadata) error { + return &InvalidLambdaResponseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLambdaResponseException) Code() string { + return "InvalidLambdaResponseException" +} + +// Message returns the exception's message. +func (s InvalidLambdaResponseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLambdaResponseException) OrigErr() error { + return nil +} + +func (s InvalidLambdaResponseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLambdaResponseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLambdaResponseException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the specified OAuth flow is invalid. +type InvalidOAuthFlowException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidOAuthFlowException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOAuthFlowException) GoString() string { + return s.String() +} + +func newErrorInvalidOAuthFlowException(v protocol.ResponseMetadata) error { + return &InvalidOAuthFlowException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOAuthFlowException) Code() string { + return "InvalidOAuthFlowException" +} + +// Message returns the exception's message. +func (s InvalidOAuthFlowException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOAuthFlowException) OrigErr() error { + return nil +} + +func (s InvalidOAuthFlowException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOAuthFlowException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOAuthFlowException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the Amazon Cognito service encounters an invalid +// parameter. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service throws an invalid parameter + // exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the Amazon Cognito service encounters an invalid +// password. +type InvalidPasswordException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service throws an invalid user + // password exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPasswordException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPasswordException) GoString() string { + return s.String() +} + +func newErrorInvalidPasswordException(v protocol.ResponseMetadata) error { + return &InvalidPasswordException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPasswordException) Code() string { + return "InvalidPasswordException" +} + +// Message returns the exception's message. +func (s InvalidPasswordException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPasswordException) OrigErr() error { + return nil +} + +func (s InvalidPasswordException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPasswordException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPasswordException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is returned when the role provided for SMS configuration does +// not have permission to publish using Amazon SNS. +type InvalidSmsRoleAccessPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message retuned when the invalid SMS role access policy exception is + // thrown. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidSmsRoleAccessPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSmsRoleAccessPolicyException) GoString() string { + return s.String() +} + +func newErrorInvalidSmsRoleAccessPolicyException(v protocol.ResponseMetadata) error { + return &InvalidSmsRoleAccessPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSmsRoleAccessPolicyException) Code() string { + return "InvalidSmsRoleAccessPolicyException" +} + +// Message returns the exception's message. +func (s InvalidSmsRoleAccessPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSmsRoleAccessPolicyException) OrigErr() error { + return nil +} + +func (s InvalidSmsRoleAccessPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSmsRoleAccessPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSmsRoleAccessPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the trust relationship is invalid for the role +// provided for SMS configuration. This can happen if you do not trust cognito-idp.amazonaws.com +// or the external ID provided in the role does not match what is provided in +// the SMS configuration for the user pool. +type InvalidSmsRoleTrustRelationshipException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the role trust relationship for the SMS message + // is invalid. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidSmsRoleTrustRelationshipException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSmsRoleTrustRelationshipException) GoString() string { + return s.String() +} + +func newErrorInvalidSmsRoleTrustRelationshipException(v protocol.ResponseMetadata) error { + return &InvalidSmsRoleTrustRelationshipException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSmsRoleTrustRelationshipException) Code() string { + return "InvalidSmsRoleTrustRelationshipException" +} + +// Message returns the exception's message. +func (s InvalidSmsRoleTrustRelationshipException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSmsRoleTrustRelationshipException) OrigErr() error { + return nil +} + +func (s InvalidSmsRoleTrustRelationshipException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSmsRoleTrustRelationshipException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSmsRoleTrustRelationshipException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the user pool configuration is invalid. +type InvalidUserPoolConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the user pool configuration is invalid. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidUserPoolConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidUserPoolConfigurationException) GoString() string { + return s.String() +} + +func newErrorInvalidUserPoolConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidUserPoolConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidUserPoolConfigurationException) Code() string { + return "InvalidUserPoolConfigurationException" +} + +// Message returns the exception's message. +func (s InvalidUserPoolConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidUserPoolConfigurationException) OrigErr() error { + return nil +} + +func (s InvalidUserPoolConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidUserPoolConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidUserPoolConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Specifies the configuration for AWS Lambda triggers. +type LambdaConfigType struct { + _ struct{} `type:"structure"` + + // Creates an authentication challenge. + CreateAuthChallenge *string `min:"20" type:"string"` + + // A custom Message AWS Lambda trigger. + CustomMessage *string `min:"20" type:"string"` + + // Defines the authentication challenge. + DefineAuthChallenge *string `min:"20" type:"string"` + + // A post-authentication AWS Lambda trigger. + PostAuthentication *string `min:"20" type:"string"` + + // A post-confirmation AWS Lambda trigger. + PostConfirmation *string `min:"20" type:"string"` + + // A pre-authentication AWS Lambda trigger. + PreAuthentication *string `min:"20" type:"string"` + + // A pre-registration AWS Lambda trigger. + PreSignUp *string `min:"20" type:"string"` // A Lambda trigger that is invoked before token generation. PreTokenGeneration *string `min:"20" type:"string"` @@ -20521,6 +21507,64 @@ func (s *LambdaConfigType) SetVerifyAuthChallengeResponse(v string) *LambdaConfi return s } +// This exception is thrown when a user exceeds the limit for a requested AWS +// resource. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when Amazon Cognito throws a limit exceeded exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the request to list the devices. type ListDevicesInput struct { _ struct{} `type:"structure"` @@ -21541,6 +22585,64 @@ func (s *ListUsersOutput) SetUsers(v []*UserType) *ListUsersOutput { return s } +// This exception is thrown when Amazon Cognito cannot find a multi-factor authentication +// (MFA) method. +type MFAMethodNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when Amazon Cognito throws an MFA method not found exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MFAMethodNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MFAMethodNotFoundException) GoString() string { + return s.String() +} + +func newErrorMFAMethodNotFoundException(v protocol.ResponseMetadata) error { + return &MFAMethodNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MFAMethodNotFoundException) Code() string { + return "MFAMethodNotFoundException" +} + +// Message returns the exception's message. +func (s MFAMethodNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MFAMethodNotFoundException) OrigErr() error { + return nil +} + +func (s MFAMethodNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MFAMethodNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MFAMethodNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // This data type is no longer supported. You can use it only for SMS MFA configurations. // You can't use it for TOTP software token MFA configurations. // @@ -21689,6 +22791,64 @@ func (s *NewDeviceMetadataType) SetDeviceKey(v string) *NewDeviceMetadataType { return s } +// This exception is thrown when a user is not authorized. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service returns a not authorized + // exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // The notify configuration type. type NotifyConfigurationType struct { _ struct{} `type:"structure"` @@ -21989,6 +23149,120 @@ func (s *PasswordPolicyType) SetTemporaryPasswordValidityDays(v int64) *Password return s } +// This exception is thrown when a password reset is required. +type PasswordResetRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when a password reset is required. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PasswordResetRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PasswordResetRequiredException) GoString() string { + return s.String() +} + +func newErrorPasswordResetRequiredException(v protocol.ResponseMetadata) error { + return &PasswordResetRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PasswordResetRequiredException) Code() string { + return "PasswordResetRequiredException" +} + +// Message returns the exception's message. +func (s PasswordResetRequiredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PasswordResetRequiredException) OrigErr() error { + return nil +} + +func (s PasswordResetRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PasswordResetRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PasswordResetRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when a precondition is not met. +type PreconditionNotMetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when a precondition is not met. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PreconditionNotMetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PreconditionNotMetException) GoString() string { + return s.String() +} + +func newErrorPreconditionNotMetException(v protocol.ResponseMetadata) error { + return &PreconditionNotMetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PreconditionNotMetException) Code() string { + return "PreconditionNotMetException" +} + +// Message returns the exception's message. +func (s PreconditionNotMetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PreconditionNotMetException) OrigErr() error { + return nil +} + +func (s PreconditionNotMetException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PreconditionNotMetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PreconditionNotMetException) RequestID() string { + return s.respMetadata.RequestID +} + // A container for identity provider details. type ProviderDescription struct { _ struct{} `type:"structure"` @@ -22287,25 +23561,84 @@ func (s *ResendConfirmationCodeInput) SetUsername(v string) *ResendConfirmationC type ResendConfirmationCodeOutput struct { _ struct{} `type:"structure"` - // The code delivery details returned by the server in response to the request - // to resend the confirmation code. - CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` + // The code delivery details returned by the server in response to the request + // to resend the confirmation code. + CodeDeliveryDetails *CodeDeliveryDetailsType `type:"structure"` +} + +// String returns the string representation +func (s ResendConfirmationCodeOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResendConfirmationCodeOutput) GoString() string { + return s.String() +} + +// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. +func (s *ResendConfirmationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ResendConfirmationCodeOutput { + s.CodeDeliveryDetails = v + return s +} + +// This exception is thrown when the Amazon Cognito service cannot find the +// requested resource. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service returns a resource not + // found exception. + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ResendConfirmationCodeOutput) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ResendConfirmationCodeOutput) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -// SetCodeDeliveryDetails sets the CodeDeliveryDetails field's value. -func (s *ResendConfirmationCodeOutput) SetCodeDeliveryDetails(v *CodeDeliveryDetailsType) *ResendConfirmationCodeOutput { - s.CodeDeliveryDetails = v - return s +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID } // A resource server scope. @@ -22876,6 +24209,62 @@ func (s *SchemaAttributeType) SetStringAttributeConstraints(v *StringAttributeCo return s } +// This exception is thrown when the specified scope does not exist. +type ScopeDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ScopeDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScopeDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorScopeDoesNotExistException(v protocol.ResponseMetadata) error { + return &ScopeDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ScopeDoesNotExistException) Code() string { + return "ScopeDoesNotExistException" +} + +// Message returns the exception's message. +func (s ScopeDoesNotExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ScopeDoesNotExistException) OrigErr() error { + return nil +} + +func (s ScopeDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ScopeDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ScopeDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + type SetRiskConfigurationInput struct { _ struct{} `type:"structure"` @@ -23723,6 +25112,63 @@ func (s *SmsMfaConfigType) SetSmsConfiguration(v *SmsConfigurationType) *SmsMfaC return s } +// This exception is thrown when the software token TOTP multi-factor authentication +// (MFA) is not enabled for the user pool. +type SoftwareTokenMFANotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SoftwareTokenMFANotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SoftwareTokenMFANotFoundException) GoString() string { + return s.String() +} + +func newErrorSoftwareTokenMFANotFoundException(v protocol.ResponseMetadata) error { + return &SoftwareTokenMFANotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SoftwareTokenMFANotFoundException) Code() string { + return "SoftwareTokenMFANotFoundException" +} + +// Message returns the exception's message. +func (s SoftwareTokenMFANotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SoftwareTokenMFANotFoundException) OrigErr() error { + return nil +} + +func (s SoftwareTokenMFANotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SoftwareTokenMFANotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SoftwareTokenMFANotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The type used for enabling software token MFA at the user pool level. type SoftwareTokenMfaConfigType struct { _ struct{} `type:"structure"` @@ -24050,83 +25496,373 @@ func (s TagResourceOutput) GoString() string { return s.String() } -// A container for the UI customization information for a user pool's built-in -// app UI. -type UICustomizationType struct { - _ struct{} `type:"structure"` +// This exception is thrown when the user has made too many failed attempts +// for a given action (e.g., sign in). +type TooManyFailedAttemptsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service returns a too many failed + // attempts exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyFailedAttemptsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyFailedAttemptsException) GoString() string { + return s.String() +} + +func newErrorTooManyFailedAttemptsException(v protocol.ResponseMetadata) error { + return &TooManyFailedAttemptsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyFailedAttemptsException) Code() string { + return "TooManyFailedAttemptsException" +} + +// Message returns the exception's message. +func (s TooManyFailedAttemptsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyFailedAttemptsException) OrigErr() error { + return nil +} + +func (s TooManyFailedAttemptsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyFailedAttemptsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyFailedAttemptsException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the user has made too many requests for a given +// operation. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service returns a too many requests + // exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// A container for the UI customization information for a user pool's built-in +// app UI. +type UICustomizationType struct { + _ struct{} `type:"structure"` + + // The CSS values in the UI customization. + CSS *string `type:"string"` + + // The CSS version number. + CSSVersion *string `type:"string"` + + // The client ID for the client app. + ClientId *string `min:"1" type:"string" sensitive:"true"` + + // The creation date for the UI customization. + CreationDate *time.Time `type:"timestamp"` + + // The logo image for the UI customization. + ImageUrl *string `type:"string"` + + // The last-modified date for the UI customization. + LastModifiedDate *time.Time `type:"timestamp"` + + // The user pool ID for the user pool. + UserPoolId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UICustomizationType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UICustomizationType) GoString() string { + return s.String() +} + +// SetCSS sets the CSS field's value. +func (s *UICustomizationType) SetCSS(v string) *UICustomizationType { + s.CSS = &v + return s +} + +// SetCSSVersion sets the CSSVersion field's value. +func (s *UICustomizationType) SetCSSVersion(v string) *UICustomizationType { + s.CSSVersion = &v + return s +} + +// SetClientId sets the ClientId field's value. +func (s *UICustomizationType) SetClientId(v string) *UICustomizationType { + s.ClientId = &v + return s +} + +// SetCreationDate sets the CreationDate field's value. +func (s *UICustomizationType) SetCreationDate(v time.Time) *UICustomizationType { + s.CreationDate = &v + return s +} + +// SetImageUrl sets the ImageUrl field's value. +func (s *UICustomizationType) SetImageUrl(v string) *UICustomizationType { + s.ImageUrl = &v + return s +} + +// SetLastModifiedDate sets the LastModifiedDate field's value. +func (s *UICustomizationType) SetLastModifiedDate(v time.Time) *UICustomizationType { + s.LastModifiedDate = &v + return s +} + +// SetUserPoolId sets the UserPoolId field's value. +func (s *UICustomizationType) SetUserPoolId(v string) *UICustomizationType { + s.UserPoolId = &v + return s +} + +// This exception is thrown when the Amazon Cognito service encounters an unexpected +// exception with the AWS Lambda service. +type UnexpectedLambdaException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service returns an unexpected + // AWS Lambda exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnexpectedLambdaException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnexpectedLambdaException) GoString() string { + return s.String() +} + +func newErrorUnexpectedLambdaException(v protocol.ResponseMetadata) error { + return &UnexpectedLambdaException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnexpectedLambdaException) Code() string { + return "UnexpectedLambdaException" +} + +// Message returns the exception's message. +func (s UnexpectedLambdaException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnexpectedLambdaException) OrigErr() error { + return nil +} + +func (s UnexpectedLambdaException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnexpectedLambdaException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnexpectedLambdaException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the specified identifier is not supported. +type UnsupportedIdentityProviderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedIdentityProviderException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedIdentityProviderException) GoString() string { + return s.String() +} + +func newErrorUnsupportedIdentityProviderException(v protocol.ResponseMetadata) error { + return &UnsupportedIdentityProviderException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedIdentityProviderException) Code() string { + return "UnsupportedIdentityProviderException" +} - // The CSS values in the UI customization. - CSS *string `type:"string"` +// Message returns the exception's message. +func (s UnsupportedIdentityProviderException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The CSS version number. - CSSVersion *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedIdentityProviderException) OrigErr() error { + return nil +} - // The client ID for the client app. - ClientId *string `min:"1" type:"string" sensitive:"true"` +func (s UnsupportedIdentityProviderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The creation date for the UI customization. - CreationDate *time.Time `type:"timestamp"` +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedIdentityProviderException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The logo image for the UI customization. - ImageUrl *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s UnsupportedIdentityProviderException) RequestID() string { + return s.respMetadata.RequestID +} - // The last-modified date for the UI customization. - LastModifiedDate *time.Time `type:"timestamp"` +// The request failed because the user is in an unsupported state. +type UnsupportedUserStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The user pool ID for the user pool. - UserPoolId *string `min:"1" type:"string"` + // The message returned when the user is in an unsupported state. + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s UICustomizationType) String() string { +func (s UnsupportedUserStateException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s UICustomizationType) GoString() string { +func (s UnsupportedUserStateException) GoString() string { return s.String() } -// SetCSS sets the CSS field's value. -func (s *UICustomizationType) SetCSS(v string) *UICustomizationType { - s.CSS = &v - return s +func newErrorUnsupportedUserStateException(v protocol.ResponseMetadata) error { + return &UnsupportedUserStateException{ + respMetadata: v, + } } -// SetCSSVersion sets the CSSVersion field's value. -func (s *UICustomizationType) SetCSSVersion(v string) *UICustomizationType { - s.CSSVersion = &v - return s +// Code returns the exception type name. +func (s UnsupportedUserStateException) Code() string { + return "UnsupportedUserStateException" } -// SetClientId sets the ClientId field's value. -func (s *UICustomizationType) SetClientId(v string) *UICustomizationType { - s.ClientId = &v - return s +// Message returns the exception's message. +func (s UnsupportedUserStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetCreationDate sets the CreationDate field's value. -func (s *UICustomizationType) SetCreationDate(v time.Time) *UICustomizationType { - s.CreationDate = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedUserStateException) OrigErr() error { + return nil } -// SetImageUrl sets the ImageUrl field's value. -func (s *UICustomizationType) SetImageUrl(v string) *UICustomizationType { - s.ImageUrl = &v - return s +func (s UnsupportedUserStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetLastModifiedDate sets the LastModifiedDate field's value. -func (s *UICustomizationType) SetLastModifiedDate(v time.Time) *UICustomizationType { - s.LastModifiedDate = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedUserStateException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetUserPoolId sets the UserPoolId field's value. -func (s *UICustomizationType) SetUserPoolId(v string) *UICustomizationType { - s.UserPoolId = &v - return s +// RequestID returns the service's response RequestID for request. +func (s UnsupportedUserStateException) RequestID() string { + return s.respMetadata.RequestID } type UntagResourceInput struct { @@ -25595,6 +27331,64 @@ func (s *UserContextDataType) SetEncodedData(v string) *UserContextDataType { return s } +// This exception is thrown when you are trying to modify a user pool while +// a user import job is in progress for that pool. +type UserImportInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the user pool has an import job running. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UserImportInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserImportInProgressException) GoString() string { + return s.String() +} + +func newErrorUserImportInProgressException(v protocol.ResponseMetadata) error { + return &UserImportInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserImportInProgressException) Code() string { + return "UserImportInProgressException" +} + +// Message returns the exception's message. +func (s UserImportInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserImportInProgressException) OrigErr() error { + return nil +} + +func (s UserImportInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserImportInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserImportInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + // The user import job type. type UserImportJobType struct { _ struct{} `type:"structure"` @@ -25750,6 +27544,235 @@ func (s *UserImportJobType) SetUserPoolId(v string) *UserImportJobType { return s } +// This exception is thrown when the Amazon Cognito service encounters a user +// validation exception with the AWS Lambda service. +type UserLambdaValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when the Amazon Cognito service returns a user validation + // exception with the AWS Lambda service. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UserLambdaValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserLambdaValidationException) GoString() string { + return s.String() +} + +func newErrorUserLambdaValidationException(v protocol.ResponseMetadata) error { + return &UserLambdaValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserLambdaValidationException) Code() string { + return "UserLambdaValidationException" +} + +// Message returns the exception's message. +func (s UserLambdaValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserLambdaValidationException) OrigErr() error { + return nil +} + +func (s UserLambdaValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserLambdaValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserLambdaValidationException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when a user is not confirmed successfully. +type UserNotConfirmedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when a user is not confirmed successfully. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UserNotConfirmedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserNotConfirmedException) GoString() string { + return s.String() +} + +func newErrorUserNotConfirmedException(v protocol.ResponseMetadata) error { + return &UserNotConfirmedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserNotConfirmedException) Code() string { + return "UserNotConfirmedException" +} + +// Message returns the exception's message. +func (s UserNotConfirmedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserNotConfirmedException) OrigErr() error { + return nil +} + +func (s UserNotConfirmedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserNotConfirmedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserNotConfirmedException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when a user is not found. +type UserNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when a user is not found. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UserNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserNotFoundException) GoString() string { + return s.String() +} + +func newErrorUserNotFoundException(v protocol.ResponseMetadata) error { + return &UserNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserNotFoundException) Code() string { + return "UserNotFoundException" +} + +// Message returns the exception's message. +func (s UserNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserNotFoundException) OrigErr() error { + return nil +} + +func (s UserNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when user pool add-ons are not enabled. +type UserPoolAddOnNotEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UserPoolAddOnNotEnabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserPoolAddOnNotEnabledException) GoString() string { + return s.String() +} + +func newErrorUserPoolAddOnNotEnabledException(v protocol.ResponseMetadata) error { + return &UserPoolAddOnNotEnabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserPoolAddOnNotEnabledException) Code() string { + return "UserPoolAddOnNotEnabledException" +} + +// Message returns the exception's message. +func (s UserPoolAddOnNotEnabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserPoolAddOnNotEnabledException) OrigErr() error { + return nil +} + +func (s UserPoolAddOnNotEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserPoolAddOnNotEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserPoolAddOnNotEnabledException) RequestID() string { + return s.respMetadata.RequestID +} + // The user pool add-ons type. type UserPoolAddOnsType struct { _ struct{} `type:"structure"` @@ -26222,6 +28245,62 @@ func (s *UserPoolPolicyType) SetPasswordPolicy(v *PasswordPolicyType) *UserPoolP return s } +// This exception is thrown when a user pool tag cannot be set or updated. +type UserPoolTaggingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UserPoolTaggingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserPoolTaggingException) GoString() string { + return s.String() +} + +func newErrorUserPoolTaggingException(v protocol.ResponseMetadata) error { + return &UserPoolTaggingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserPoolTaggingException) Code() string { + return "UserPoolTaggingException" +} + +// Message returns the exception's message. +func (s UserPoolTaggingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserPoolTaggingException) OrigErr() error { + return nil +} + +func (s UserPoolTaggingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserPoolTaggingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserPoolTaggingException) RequestID() string { + return s.respMetadata.RequestID +} + // A container for information about the user pool. type UserPoolType struct { _ struct{} `type:"structure"` @@ -26624,6 +28703,64 @@ func (s *UserType) SetUsername(v string) *UserType { return s } +// This exception is thrown when Amazon Cognito encounters a user name that +// already exists in the user pool. +type UsernameExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned when Amazon Cognito throws a user name exists exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UsernameExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UsernameExistsException) GoString() string { + return s.String() +} + +func newErrorUsernameExistsException(v protocol.ResponseMetadata) error { + return &UsernameExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UsernameExistsException) Code() string { + return "UsernameExistsException" +} + +// Message returns the exception's message. +func (s UsernameExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UsernameExistsException) OrigErr() error { + return nil +} + +func (s UsernameExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UsernameExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UsernameExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // The template for verification messages. type VerificationMessageTemplateType struct { _ struct{} `type:"structure"` diff --git a/service/cognitoidentityprovider/errors.go b/service/cognitoidentityprovider/errors.go index 302ec049a87..42bc57477aa 100644 --- a/service/cognitoidentityprovider/errors.go +++ b/service/cognitoidentityprovider/errors.go @@ -2,6 +2,10 @@ package cognitoidentityprovider +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAliasExistsException for service response error code @@ -251,3 +255,43 @@ const ( // already exists in the user pool. ErrCodeUsernameExistsException = "UsernameExistsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AliasExistsException": newErrorAliasExistsException, + "CodeDeliveryFailureException": newErrorCodeDeliveryFailureException, + "CodeMismatchException": newErrorCodeMismatchException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "DuplicateProviderException": newErrorDuplicateProviderException, + "EnableSoftwareTokenMFAException": newErrorEnableSoftwareTokenMFAException, + "ExpiredCodeException": newErrorExpiredCodeException, + "GroupExistsException": newErrorGroupExistsException, + "InternalErrorException": newErrorInternalErrorException, + "InvalidEmailRoleAccessPolicyException": newErrorInvalidEmailRoleAccessPolicyException, + "InvalidLambdaResponseException": newErrorInvalidLambdaResponseException, + "InvalidOAuthFlowException": newErrorInvalidOAuthFlowException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidPasswordException": newErrorInvalidPasswordException, + "InvalidSmsRoleAccessPolicyException": newErrorInvalidSmsRoleAccessPolicyException, + "InvalidSmsRoleTrustRelationshipException": newErrorInvalidSmsRoleTrustRelationshipException, + "InvalidUserPoolConfigurationException": newErrorInvalidUserPoolConfigurationException, + "LimitExceededException": newErrorLimitExceededException, + "MFAMethodNotFoundException": newErrorMFAMethodNotFoundException, + "NotAuthorizedException": newErrorNotAuthorizedException, + "PasswordResetRequiredException": newErrorPasswordResetRequiredException, + "PreconditionNotMetException": newErrorPreconditionNotMetException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ScopeDoesNotExistException": newErrorScopeDoesNotExistException, + "SoftwareTokenMFANotFoundException": newErrorSoftwareTokenMFANotFoundException, + "TooManyFailedAttemptsException": newErrorTooManyFailedAttemptsException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnexpectedLambdaException": newErrorUnexpectedLambdaException, + "UnsupportedIdentityProviderException": newErrorUnsupportedIdentityProviderException, + "UnsupportedUserStateException": newErrorUnsupportedUserStateException, + "UserImportInProgressException": newErrorUserImportInProgressException, + "UserLambdaValidationException": newErrorUserLambdaValidationException, + "UserNotConfirmedException": newErrorUserNotConfirmedException, + "UserNotFoundException": newErrorUserNotFoundException, + "UserPoolAddOnNotEnabledException": newErrorUserPoolAddOnNotEnabledException, + "UserPoolTaggingException": newErrorUserPoolTaggingException, + "UsernameExistsException": newErrorUsernameExistsException, +} diff --git a/service/cognitoidentityprovider/service.go b/service/cognitoidentityprovider/service.go index 8cdd24f5ae2..142666df445 100644 --- a/service/cognitoidentityprovider/service.go +++ b/service/cognitoidentityprovider/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/cognitosync/api.go b/service/cognitosync/api.go index eec5350c35d..2e6ab620119 100644 --- a/service/cognitosync/api.go +++ b/service/cognitosync/api.go @@ -72,24 +72,24 @@ func (c *CognitoSync) BulkPublishRequest(input *BulkPublishInput) (req *request. // See the AWS API reference guide for Amazon Cognito Sync's // API operation BulkPublish for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeDuplicateRequestException "DuplicateRequestException" +// * DuplicateRequestException // An exception thrown when there is an IN_PROGRESS bulk publish operation for // the given identity pool. // -// * ErrCodeAlreadyStreamedException "AlreadyStreamedException" +// * AlreadyStreamedException // An exception thrown when a bulk publish operation is requested less than // 24 hours after a previous bulk publish operation completed successfully. // @@ -174,23 +174,23 @@ func (c *CognitoSync) DeleteDatasetRequest(input *DeleteDatasetInput) (req *requ // See the AWS API reference guide for Amazon Cognito Sync's // API operation DeleteDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown if an update can't be applied because the resource was changed by // another call and this would result in a conflict. // @@ -275,20 +275,20 @@ func (c *CognitoSync) DescribeDatasetRequest(input *DescribeDatasetInput) (req * // See the AWS API reference guide for Amazon Cognito Sync's // API operation DescribeDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeDataset @@ -370,20 +370,20 @@ func (c *CognitoSync) DescribeIdentityPoolUsageRequest(input *DescribeIdentityPo // See the AWS API reference guide for Amazon Cognito Sync's // API operation DescribeIdentityPoolUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityPoolUsage @@ -465,20 +465,20 @@ func (c *CognitoSync) DescribeIdentityUsageRequest(input *DescribeIdentityUsageI // See the AWS API reference guide for Amazon Cognito Sync's // API operation DescribeIdentityUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/DescribeIdentityUsage @@ -559,17 +559,17 @@ func (c *CognitoSync) GetBulkPublishDetailsRequest(input *GetBulkPublishDetailsI // See the AWS API reference guide for Amazon Cognito Sync's // API operation GetBulkPublishDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetBulkPublishDetails @@ -651,20 +651,20 @@ func (c *CognitoSync) GetCognitoEventsRequest(input *GetCognitoEventsInput) (req // See the AWS API reference guide for Amazon Cognito Sync's // API operation GetCognitoEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetCognitoEvents @@ -745,20 +745,20 @@ func (c *CognitoSync) GetIdentityPoolConfigurationRequest(input *GetIdentityPool // See the AWS API reference guide for Amazon Cognito Sync's // API operation GetIdentityPoolConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/GetIdentityPoolConfiguration @@ -842,17 +842,17 @@ func (c *CognitoSync) ListDatasetsRequest(input *ListDatasetsInput) (req *reques // See the AWS API reference guide for Amazon Cognito Sync's // API operation ListDatasets for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListDatasets @@ -934,17 +934,17 @@ func (c *CognitoSync) ListIdentityPoolUsageRequest(input *ListIdentityPoolUsageI // See the AWS API reference guide for Amazon Cognito Sync's // API operation ListIdentityPoolUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListIdentityPoolUsage @@ -1029,17 +1029,17 @@ func (c *CognitoSync) ListRecordsRequest(input *ListRecordsInput) (req *request. // See the AWS API reference guide for Amazon Cognito Sync's // API operation ListRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/ListRecords @@ -1120,22 +1120,22 @@ func (c *CognitoSync) RegisterDeviceRequest(input *RegisterDeviceInput) (req *re // See the AWS API reference guide for Amazon Cognito Sync's // API operation RegisterDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeInvalidConfigurationException "InvalidConfigurationException" +// * InvalidConfigurationException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/RegisterDevice @@ -1220,20 +1220,20 @@ func (c *CognitoSync) SetCognitoEventsRequest(input *SetCognitoEventsInput) (req // See the AWS API reference guide for Amazon Cognito Sync's // API operation SetCognitoEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetCognitoEvents @@ -1314,23 +1314,23 @@ func (c *CognitoSync) SetIdentityPoolConfigurationRequest(input *SetIdentityPool // See the AWS API reference guide for Amazon Cognito Sync's // API operation SetIdentityPoolConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Thrown if there are parallel requests to modify a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SetIdentityPoolConfiguration @@ -1413,22 +1413,22 @@ func (c *CognitoSync) SubscribeToDatasetRequest(input *SubscribeToDatasetInput) // See the AWS API reference guide for Amazon Cognito Sync's // API operation SubscribeToDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeInvalidConfigurationException "InvalidConfigurationException" +// * InvalidConfigurationException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/SubscribeToDataset @@ -1511,22 +1511,22 @@ func (c *CognitoSync) UnsubscribeFromDatasetRequest(input *UnsubscribeFromDatase // See the AWS API reference guide for Amazon Cognito Sync's // API operation UnsubscribeFromDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// Returned Error Types: +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // -// * ErrCodeInvalidConfigurationException "InvalidConfigurationException" +// * InvalidConfigurationException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UnsubscribeFromDataset @@ -1619,33 +1619,33 @@ func (c *CognitoSync) UpdateRecordsRequest(input *UpdateRecordsInput) (req *requ // See the AWS API reference guide for Amazon Cognito Sync's // API operation UpdateRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Thrown when a request parameter does not comply with the associated constraints. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Thrown when the limit on the number of objects or operations has been exceeded. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Thrown when a user is not authorized to access the requested resource. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Thrown if the resource doesn't exist. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // Thrown if an update can't be applied because the resource was changed by // another call and this would result in a conflict. // -// * ErrCodeInvalidLambdaFunctionOutputException "InvalidLambdaFunctionOutputException" +// * InvalidLambdaFunctionOutputException // The AWS Lambda function returned invalid output or an exception. // -// * ErrCodeLambdaThrottledException "LambdaThrottledException" +// * LambdaThrottledException // AWS Lambda throttled your account, please contact AWS Support // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Thrown if the request is throttled. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // Indicates an internal service error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cognito-sync-2014-06-30/UpdateRecords @@ -1670,6 +1670,64 @@ func (c *CognitoSync) UpdateRecordsWithContext(ctx aws.Context, input *UpdateRec return out, req.Send() } +// An exception thrown when a bulk publish operation is requested less than +// 24 hours after a previous bulk publish operation completed successfully. +type AlreadyStreamedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message associated with the AlreadyStreamedException exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AlreadyStreamedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyStreamedException) GoString() string { + return s.String() +} + +func newErrorAlreadyStreamedException(v protocol.ResponseMetadata) error { + return &AlreadyStreamedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyStreamedException) Code() string { + return "AlreadyStreamedException" +} + +// Message returns the exception's message. +func (s AlreadyStreamedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyStreamedException) OrigErr() error { + return nil +} + +func (s AlreadyStreamedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyStreamedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyStreamedException) RequestID() string { + return s.respMetadata.RequestID +} + // The input for the BulkPublish operation. type BulkPublishInput struct { _ struct{} `type:"structure"` @@ -1803,6 +1861,63 @@ func (s *CognitoStreams) SetStreamingStatus(v string) *CognitoStreams { return s } +// Thrown if there are parallel requests to modify a resource. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a ConcurrentModicationException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // A collection of data for an identity pool. An identity pool can have multiple // datasets. A dataset is per identity and can be general or associated with // a particular entity in an application (like a saved game). Datasets are automatically @@ -2254,6 +2369,64 @@ func (s *DescribeIdentityUsageOutput) SetIdentityUsage(v *IdentityUsage) *Descri return s } +// An exception thrown when there is an IN_PROGRESS bulk publish operation for +// the given identity pool. +type DuplicateRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message associated with the DuplicateRequestException exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DuplicateRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateRequestException) GoString() string { + return s.String() +} + +func newErrorDuplicateRequestException(v protocol.ResponseMetadata) error { + return &DuplicateRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateRequestException) Code() string { + return "DuplicateRequestException" +} + +// Message returns the exception's message. +func (s DuplicateRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateRequestException) OrigErr() error { + return nil +} + +func (s DuplicateRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // The input for the GetBulkPublishDetails operation. type GetBulkPublishDetailsInput struct { _ struct{} `type:"structure"` @@ -2636,6 +2809,347 @@ func (s *IdentityUsage) SetLastModifiedDate(v time.Time) *IdentityUsage { return s } +// Indicates an internal service error. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Message returned by InternalErrorException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} + +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} + +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +type InvalidConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Message returned by InvalidConfigurationException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidConfigurationException) GoString() string { + return s.String() +} + +func newErrorInvalidConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidConfigurationException) Code() string { + return "InvalidConfigurationException" +} + +// Message returns the exception's message. +func (s InvalidConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidConfigurationException) OrigErr() error { + return nil +} + +func (s InvalidConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The AWS Lambda function returned invalid output or an exception. +type InvalidLambdaFunctionOutputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message returned when an InvalidLambdaFunctionOutputException occurs + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidLambdaFunctionOutputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLambdaFunctionOutputException) GoString() string { + return s.String() +} + +func newErrorInvalidLambdaFunctionOutputException(v protocol.ResponseMetadata) error { + return &InvalidLambdaFunctionOutputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLambdaFunctionOutputException) Code() string { + return "InvalidLambdaFunctionOutputException" +} + +// Message returns the exception's message. +func (s InvalidLambdaFunctionOutputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLambdaFunctionOutputException) OrigErr() error { + return nil +} + +func (s InvalidLambdaFunctionOutputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLambdaFunctionOutputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLambdaFunctionOutputException) RequestID() string { + return s.respMetadata.RequestID +} + +// Thrown when a request parameter does not comply with the associated constraints. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Message returned by InvalidParameterException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Lambda throttled your account, please contact AWS Support +type LambdaThrottledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message returned when an LambdaThrottledException is thrown + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LambdaThrottledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaThrottledException) GoString() string { + return s.String() +} + +func newErrorLambdaThrottledException(v protocol.ResponseMetadata) error { + return &LambdaThrottledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LambdaThrottledException) Code() string { + return "LambdaThrottledException" +} + +// Message returns the exception's message. +func (s LambdaThrottledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LambdaThrottledException) OrigErr() error { + return nil +} + +func (s LambdaThrottledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LambdaThrottledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LambdaThrottledException) RequestID() string { + return s.respMetadata.RequestID +} + +// Thrown when the limit on the number of objects or operations has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Message returned by LimitExceededException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Request for a list of datasets for an identity. type ListDatasetsInput struct { _ struct{} `type:"structure"` @@ -3052,6 +3566,63 @@ func (s *ListRecordsOutput) SetSyncSessionToken(v string) *ListRecordsOutput { return s } +// Thrown when a user is not authorized to access the requested resource. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a NotAuthorizedException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // Configuration options to be applied to the identity pool. type PushSync struct { _ struct{} `type:"structure"` @@ -3368,6 +3939,121 @@ func (s *RegisterDeviceOutput) SetDeviceId(v string) *RegisterDeviceOutput { return s } +// Thrown if an update can't be applied because the resource was changed by +// another call and this would result in a conflict. +type ResourceConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message returned by a ResourceConflictException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceConflictException) OrigErr() error { + return nil +} + +func (s ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +// Thrown if the resource doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Message returned by a ResourceNotFoundException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A request to configure Cognito Events" // " type SetCognitoEventsInput struct { @@ -3662,6 +4348,63 @@ func (s SubscribeToDatasetOutput) GoString() string { return s.String() } +// Thrown if the request is throttled. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Message returned by a TooManyRequestsException. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // A request to UnsubscribeFromDataset. type UnsubscribeFromDatasetInput struct { _ struct{} `type:"structure"` diff --git a/service/cognitosync/errors.go b/service/cognitosync/errors.go index 0096410e342..66dc7863aaa 100644 --- a/service/cognitosync/errors.go +++ b/service/cognitosync/errors.go @@ -2,6 +2,10 @@ package cognitosync +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlreadyStreamedException for service response error code @@ -83,3 +87,19 @@ const ( // Thrown if the request is throttled. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlreadyStreamedException": newErrorAlreadyStreamedException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "DuplicateRequestException": newErrorDuplicateRequestException, + "InternalErrorException": newErrorInternalErrorException, + "InvalidConfigurationException": newErrorInvalidConfigurationException, + "InvalidLambdaFunctionOutputException": newErrorInvalidLambdaFunctionOutputException, + "InvalidParameterException": newErrorInvalidParameterException, + "LambdaThrottledException": newErrorLambdaThrottledException, + "LimitExceededException": newErrorLimitExceededException, + "NotAuthorizedException": newErrorNotAuthorizedException, + "ResourceConflictException": newErrorResourceConflictException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/cognitosync/service.go b/service/cognitosync/service.go index f742424daa6..4fcb2ac51fe 100644 --- a/service/cognitosync/service.go +++ b/service/cognitosync/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/comprehend/api.go b/service/comprehend/api.go index 671c12301df..64e5324a0f3 100644 --- a/service/comprehend/api.go +++ b/service/comprehend/api.go @@ -68,18 +68,18 @@ func (c *Comprehend) BatchDetectDominantLanguageRequest(input *BatchDetectDomina // See the AWS API reference guide for Amazon Comprehend's // API operation BatchDetectDominantLanguage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" +// * BatchSizeLimitExceededException // The number of documents in the request exceeds the limit of 25. Try your // request again with fewer documents. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectDominantLanguage @@ -158,25 +158,25 @@ func (c *Comprehend) BatchDetectEntitiesRequest(input *BatchDetectEntitiesInput) // See the AWS API reference guide for Amazon Comprehend's // API operation BatchDetectEntities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" +// * BatchSizeLimitExceededException // The number of documents in the request exceeds the limit of 25. Try your // request again with fewer documents. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectEntities @@ -254,25 +254,25 @@ func (c *Comprehend) BatchDetectKeyPhrasesRequest(input *BatchDetectKeyPhrasesIn // See the AWS API reference guide for Amazon Comprehend's // API operation BatchDetectKeyPhrases for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" +// * BatchSizeLimitExceededException // The number of documents in the request exceeds the limit of 25. Try your // request again with fewer documents. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectKeyPhrases @@ -351,25 +351,25 @@ func (c *Comprehend) BatchDetectSentimentRequest(input *BatchDetectSentimentInpu // See the AWS API reference guide for Amazon Comprehend's // API operation BatchDetectSentiment for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" +// * BatchSizeLimitExceededException // The number of documents in the request exceeds the limit of 25. Try your // request again with fewer documents. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSentiment @@ -449,25 +449,25 @@ func (c *Comprehend) BatchDetectSyntaxRequest(input *BatchDetectSyntaxInput) (re // See the AWS API reference guide for Amazon Comprehend's // API operation BatchDetectSyntax for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeBatchSizeLimitExceededException "BatchSizeLimitExceededException" +// * BatchSizeLimitExceededException // The number of documents in the request exceeds the limit of 25. Try your // request again with fewer documents. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/BatchDetectSyntax @@ -547,18 +547,18 @@ func (c *Comprehend) ClassifyDocumentRequest(input *ClassifyDocumentInput) (req // See the AWS API reference guide for Amazon Comprehend's // API operation ClassifyDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. Check to see if the resource is // in the TRAINED state and try your request again. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ClassifyDocument @@ -640,38 +640,38 @@ func (c *Comprehend) CreateDocumentClassifierRequest(input *CreateDocumentClassi // See the AWS API reference guide for Amazon Comprehend's // API operation CreateDocumentClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified name is already in use. Use a different name and try your request // again. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request contains more tags than can be associated with a resource (50 // tags per resource). The maximum number of tags includes both existing tags // and those included in your current request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of recognizers per account has been exceeded. Review the // recognizers, perform cleanup, and then try your request again. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateDocumentClassifier @@ -750,35 +750,35 @@ func (c *Comprehend) CreateEndpointRequest(input *CreateEndpointInput) (req *req // See the AWS API reference guide for Amazon Comprehend's // API operation CreateEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified name is already in use. Use a different name and try your request // again. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of recognizers per account has been exceeded. Review the // recognizers, perform cleanup, and then try your request again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. Check to see if the resource is // in the TRAINED state and try your request again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request contains more tags than can be associated with a resource (50 // tags per resource). The maximum number of tags includes both existing tags // and those included in your current request. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEndpoint @@ -857,38 +857,38 @@ func (c *Comprehend) CreateEntityRecognizerRequest(input *CreateEntityRecognizer // See the AWS API reference guide for Amazon Comprehend's // API operation CreateEntityRecognizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified name is already in use. Use a different name and try your request // again. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request contains more tags than can be associated with a resource (50 // tags per resource). The maximum number of tags includes both existing tags // and those included in your current request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of recognizers per account has been exceeded. Review the // recognizers, perform cleanup, and then try your request again. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/CreateEntityRecognizer @@ -975,26 +975,26 @@ func (c *Comprehend) DeleteDocumentClassifierRequest(input *DeleteDocumentClassi // See the AWS API reference guide for Amazon Comprehend's // API operation DeleteDocumentClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. Check to see if the resource is // in the TRAINED state and try your request again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified name is already in use. Use a different name and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteDocumentClassifier @@ -1074,22 +1074,22 @@ func (c *Comprehend) DeleteEndpointRequest(input *DeleteEndpointInput) (req *req // See the AWS API reference guide for Amazon Comprehend's // API operation DeleteEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified name is already in use. Use a different name and try your request // again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEndpoint @@ -1176,26 +1176,26 @@ func (c *Comprehend) DeleteEntityRecognizerRequest(input *DeleteEntityRecognizer // See the AWS API reference guide for Amazon Comprehend's // API operation DeleteEntityRecognizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. Check to see if the resource is // in the TRAINED state and try your request again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified name is already in use. Use a different name and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DeleteEntityRecognizer @@ -1274,17 +1274,17 @@ func (c *Comprehend) DescribeDocumentClassificationJobRequest(input *DescribeDoc // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeDocumentClassificationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassificationJob @@ -1362,18 +1362,18 @@ func (c *Comprehend) DescribeDocumentClassifierRequest(input *DescribeDocumentCl // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeDocumentClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDocumentClassifier @@ -1452,17 +1452,17 @@ func (c *Comprehend) DescribeDominantLanguageDetectionJobRequest(input *Describe // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeDominantLanguageDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeDominantLanguageDetectionJob @@ -1541,18 +1541,18 @@ func (c *Comprehend) DescribeEndpointRequest(input *DescribeEndpointInput) (req // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEndpoint @@ -1631,17 +1631,17 @@ func (c *Comprehend) DescribeEntitiesDetectionJobRequest(input *DescribeEntities // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeEntitiesDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntitiesDetectionJob @@ -1720,18 +1720,18 @@ func (c *Comprehend) DescribeEntityRecognizerRequest(input *DescribeEntityRecogn // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeEntityRecognizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeEntityRecognizer @@ -1810,17 +1810,17 @@ func (c *Comprehend) DescribeKeyPhrasesDetectionJobRequest(input *DescribeKeyPhr // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeKeyPhrasesDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeKeyPhrasesDetectionJob @@ -1899,17 +1899,17 @@ func (c *Comprehend) DescribeSentimentDetectionJobRequest(input *DescribeSentime // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeSentimentDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeSentimentDetectionJob @@ -1988,17 +1988,17 @@ func (c *Comprehend) DescribeTopicsDetectionJobRequest(input *DescribeTopicsDete // See the AWS API reference guide for Amazon Comprehend's // API operation DescribeTopicsDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DescribeTopicsDetectionJob @@ -2078,14 +2078,14 @@ func (c *Comprehend) DetectDominantLanguageRequest(input *DetectDominantLanguage // See the AWS API reference guide for Amazon Comprehend's // API operation DetectDominantLanguage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectDominantLanguage @@ -2164,21 +2164,21 @@ func (c *Comprehend) DetectEntitiesRequest(input *DetectEntitiesInput) (req *req // See the AWS API reference guide for Amazon Comprehend's // API operation DetectEntities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectEntities @@ -2256,21 +2256,21 @@ func (c *Comprehend) DetectKeyPhrasesRequest(input *DetectKeyPhrasesInput) (req // See the AWS API reference guide for Amazon Comprehend's // API operation DetectKeyPhrases for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectKeyPhrases @@ -2349,21 +2349,21 @@ func (c *Comprehend) DetectSentimentRequest(input *DetectSentimentInput) (req *r // See the AWS API reference guide for Amazon Comprehend's // API operation DetectSentiment for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSentiment @@ -2442,21 +2442,21 @@ func (c *Comprehend) DetectSyntaxRequest(input *DetectSyntaxInput) (req *request // See the AWS API reference guide for Amazon Comprehend's // API operation DetectSyntax for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the input text exceeds the limit. Use a smaller document. // -// * ErrCodeUnsupportedLanguageException "UnsupportedLanguageException" +// * UnsupportedLanguageException // Amazon Comprehend can't process the language of the input text. For all custom // entity recognition APIs (such as CreateEntityRecognizer), only English is // accepted. For most other APIs, such as those for Custom Classification, Amazon // Comprehend accepts text in all supported languages. For a list of supported // languages, see supported-languages. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/DetectSyntax @@ -2540,17 +2540,17 @@ func (c *Comprehend) ListDocumentClassificationJobsRequest(input *ListDocumentCl // See the AWS API reference guide for Amazon Comprehend's // API operation ListDocumentClassificationJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassificationJobs @@ -2686,17 +2686,17 @@ func (c *Comprehend) ListDocumentClassifiersRequest(input *ListDocumentClassifie // See the AWS API reference guide for Amazon Comprehend's // API operation ListDocumentClassifiers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDocumentClassifiers @@ -2832,17 +2832,17 @@ func (c *Comprehend) ListDominantLanguageDetectionJobsRequest(input *ListDominan // See the AWS API reference guide for Amazon Comprehend's // API operation ListDominantLanguageDetectionJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListDominantLanguageDetectionJobs @@ -2972,14 +2972,14 @@ func (c *Comprehend) ListEndpointsRequest(input *ListEndpointsInput) (req *reque // See the AWS API reference guide for Amazon Comprehend's // API operation ListEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEndpoints @@ -3063,17 +3063,17 @@ func (c *Comprehend) ListEntitiesDetectionJobsRequest(input *ListEntitiesDetecti // See the AWS API reference guide for Amazon Comprehend's // API operation ListEntitiesDetectionJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntitiesDetectionJobs @@ -3216,17 +3216,17 @@ func (c *Comprehend) ListEntityRecognizersRequest(input *ListEntityRecognizersIn // See the AWS API reference guide for Amazon Comprehend's // API operation ListEntityRecognizers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListEntityRecognizers @@ -3362,17 +3362,17 @@ func (c *Comprehend) ListKeyPhrasesDetectionJobsRequest(input *ListKeyPhrasesDet // See the AWS API reference guide for Amazon Comprehend's // API operation ListKeyPhrasesDetectionJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListKeyPhrasesDetectionJobs @@ -3508,17 +3508,17 @@ func (c *Comprehend) ListSentimentDetectionJobsRequest(input *ListSentimentDetec // See the AWS API reference guide for Amazon Comprehend's // API operation ListSentimentDetectionJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListSentimentDetectionJobs @@ -3648,15 +3648,15 @@ func (c *Comprehend) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for Amazon Comprehend's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTagsForResource @@ -3740,17 +3740,17 @@ func (c *Comprehend) ListTopicsDetectionJobsRequest(input *ListTopicsDetectionJo // See the AWS API reference guide for Amazon Comprehend's // API operation ListTopicsDetectionJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/ListTopicsDetectionJobs @@ -3881,26 +3881,26 @@ func (c *Comprehend) StartDocumentClassificationJobRequest(input *StartDocumentC // See the AWS API reference guide for Amazon Comprehend's // API operation StartDocumentClassificationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. Check to see if the resource is // in the TRAINED state and try your request again. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDocumentClassificationJob @@ -3979,18 +3979,18 @@ func (c *Comprehend) StartDominantLanguageDetectionJobRequest(input *StartDomina // See the AWS API reference guide for Amazon Comprehend's // API operation StartDominantLanguageDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartDominantLanguageDetectionJob @@ -4074,26 +4074,26 @@ func (c *Comprehend) StartEntitiesDetectionJobRequest(input *StartEntitiesDetect // See the AWS API reference guide for Amazon Comprehend's // API operation StartEntitiesDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. Check to see if the resource is // in the TRAINED state and try your request again. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartEntitiesDetectionJob @@ -4172,18 +4172,18 @@ func (c *Comprehend) StartKeyPhrasesDetectionJobRequest(input *StartKeyPhrasesDe // See the AWS API reference guide for Amazon Comprehend's // API operation StartKeyPhrasesDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartKeyPhrasesDetectionJob @@ -4262,18 +4262,18 @@ func (c *Comprehend) StartSentimentDetectionJobRequest(input *StartSentimentDete // See the AWS API reference guide for Amazon Comprehend's // API operation StartSentimentDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartSentimentDetectionJob @@ -4352,18 +4352,18 @@ func (c *Comprehend) StartTopicsDetectionJobRequest(input *StartTopicsDetectionJ // See the AWS API reference guide for Amazon Comprehend's // API operation StartTopicsDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeKmsKeyValidationException "KmsKeyValidationException" +// * KmsKeyValidationException // The KMS customer managed key (CMK) entered cannot be validated. Verify the // key and re-enter it. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StartTopicsDetectionJob @@ -4452,14 +4452,14 @@ func (c *Comprehend) StopDominantLanguageDetectionJobRequest(input *StopDominant // See the AWS API reference guide for Amazon Comprehend's // API operation StopDominantLanguageDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopDominantLanguageDetectionJob @@ -4548,14 +4548,14 @@ func (c *Comprehend) StopEntitiesDetectionJobRequest(input *StopEntitiesDetectio // See the AWS API reference guide for Amazon Comprehend's // API operation StopEntitiesDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopEntitiesDetectionJob @@ -4644,14 +4644,14 @@ func (c *Comprehend) StopKeyPhrasesDetectionJobRequest(input *StopKeyPhrasesDete // See the AWS API reference guide for Amazon Comprehend's // API operation StopKeyPhrasesDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopKeyPhrasesDetectionJob @@ -4740,14 +4740,14 @@ func (c *Comprehend) StopSentimentDetectionJobRequest(input *StopSentimentDetect // See the AWS API reference guide for Amazon Comprehend's // API operation StopSentimentDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeJobNotFoundException "JobNotFoundException" +// * JobNotFoundException // The specified job was not found. Check the job ID and try again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopSentimentDetectionJob @@ -4832,18 +4832,18 @@ func (c *Comprehend) StopTrainingDocumentClassifierRequest(input *StopTrainingDo // See the AWS API reference guide for Amazon Comprehend's // API operation StopTrainingDocumentClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingDocumentClassifier @@ -4928,18 +4928,18 @@ func (c *Comprehend) StopTrainingEntityRecognizerRequest(input *StopTrainingEnti // See the AWS API reference guide for Amazon Comprehend's // API operation StopTrainingEntityRecognizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/StopTrainingEntityRecognizer @@ -5021,24 +5021,24 @@ func (c *Comprehend) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for Amazon Comprehend's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Concurrent modification of the tags associated with an Amazon Comprehend // resource is not supported. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The request contains more tags than can be associated with a resource (50 // tags per resource). The maximum number of tags includes both existing tags // and those included in your current request. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/TagResource @@ -5117,23 +5117,23 @@ func (c *Comprehend) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for Amazon Comprehend's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyTagKeysException "TooManyTagKeysException" +// Returned Error Types: +// * TooManyTagKeysException // The request contains more tag keys than can be associated with a resource // (50 tag keys per resource). // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Concurrent modification of the tags associated with an Amazon Comprehend // resource is not supported. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UntagResource @@ -5212,30 +5212,30 @@ func (c *Comprehend) UpdateEndpointRequest(input *UpdateEndpointInput) (req *req // See the AWS API reference guide for Amazon Comprehend's // API operation UpdateEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. Resubmit your request later. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified name is already in use. Use a different name and try your request // again. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of recognizers per account has been exceeded. Review the // recognizers, perform cleanup, and then try your request again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource ARN was not found. Check the ARN and try your request // again. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. Check to see if the resource is // in the TRAINED state and try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehend-2017-11-27/UpdateEndpoint @@ -5957,6 +5957,63 @@ func (s *BatchItemError) SetIndex(v int64) *BatchItemError { return s } +// The number of documents in the request exceeds the limit of 25. Try your +// request again with fewer documents. +type BatchSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s BatchSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BatchSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorBatchSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &BatchSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BatchSizeLimitExceededException) Code() string { + return "BatchSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s BatchSizeLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BatchSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s BatchSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BatchSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BatchSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the result metrics for the test data associated with an documentation // classifier. type ClassifierEvaluationMetrics struct { @@ -6215,6 +6272,63 @@ func (s *ClassifyDocumentOutput) SetLabels(v []*DocumentLabel) *ClassifyDocument return s } +// Concurrent modification of the tags associated with an Amazon Comprehend +// resource is not supported. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateDocumentClassifierInput struct { _ struct{} `type:"structure"` @@ -9857,6 +9971,230 @@ func (s *InputDataConfig) SetS3Uri(v string) *InputDataConfig { return s } +// An internal server error occurred. Retry your request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The filter specified for the operation is invalid. Specify a different filter. +type InvalidFilterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidFilterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFilterException) GoString() string { + return s.String() +} + +func newErrorInvalidFilterException(v protocol.ResponseMetadata) error { + return &InvalidFilterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFilterException) Code() string { + return "InvalidFilterException" +} + +// Message returns the exception's message. +func (s InvalidFilterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFilterException) OrigErr() error { + return nil +} + +func (s InvalidFilterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFilterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFilterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is invalid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified job was not found. Check the job ID and try again. +type JobNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s JobNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s JobNotFoundException) GoString() string { + return s.String() +} + +func newErrorJobNotFoundException(v protocol.ResponseMetadata) error { + return &JobNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s JobNotFoundException) Code() string { + return "JobNotFoundException" +} + +// Message returns the exception's message. +func (s JobNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s JobNotFoundException) OrigErr() error { + return nil +} + +func (s JobNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s JobNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s JobNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a key noun phrase. type KeyPhrase struct { _ struct{} `type:"structure"` @@ -10122,6 +10460,63 @@ func (s *KeyPhrasesDetectionJobProperties) SetVpcConfig(v *VpcConfig) *KeyPhrase return s } +// The KMS customer managed key (CMK) entered cannot be validated. Verify the +// key and re-enter it. +type KmsKeyValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s KmsKeyValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KmsKeyValidationException) GoString() string { + return s.String() +} + +func newErrorKmsKeyValidationException(v protocol.ResponseMetadata) error { + return &KmsKeyValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KmsKeyValidationException) Code() string { + return "KmsKeyValidationException" +} + +// Message returns the exception's message. +func (s KmsKeyValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KmsKeyValidationException) OrigErr() error { + return nil +} + +func (s KmsKeyValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KmsKeyValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KmsKeyValidationException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDocumentClassificationJobsInput struct { _ struct{} `type:"structure"` @@ -11150,6 +11545,234 @@ func (s *PartOfSpeechTag) SetTag(v string) *PartOfSpeechTag { return s } +// The specified name is already in use. Use a different name and try your request +// again. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of recognizers per account has been exceeded. Review the +// recognizers, perform cleanup, and then try your request again. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource ARN was not found. Check the ARN and try your request +// again. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource is not available. Check to see if the resource is +// in the TRAINED state and try your request again. +type ResourceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceUnavailableException) GoString() string { + return s.String() +} + +func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { + return &ResourceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceUnavailableException) Code() string { + return "ResourceUnavailableException" +} + +// Message returns the exception's message. +func (s ResourceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceUnavailableException) OrigErr() error { + return nil +} + +func (s ResourceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information for filtering a list of dominant language detection // jobs. For more information, see the operation. type SentimentDetectionJobFilter struct { @@ -13193,6 +13816,233 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The size of the input text exceeds the limit. Use a smaller document. +type TextSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TextSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TextSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTextSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &TextSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TextSizeLimitExceededException) Code() string { + return "TextSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s TextSizeLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TextSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s TextSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TextSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TextSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of requests exceeds the limit. Resubmit your request later. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request contains more tag keys than can be associated with a resource +// (50 tag keys per resource). +type TooManyTagKeysException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyTagKeysException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagKeysException) GoString() string { + return s.String() +} + +func newErrorTooManyTagKeysException(v protocol.ResponseMetadata) error { + return &TooManyTagKeysException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagKeysException) Code() string { + return "TooManyTagKeysException" +} + +// Message returns the exception's message. +func (s TooManyTagKeysException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagKeysException) OrigErr() error { + return nil +} + +func (s TooManyTagKeysException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagKeysException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagKeysException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request contains more tags than can be associated with a resource (50 +// tags per resource). The maximum number of tags includes both existing tags +// and those included in your current request. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information for filtering topic detection jobs. For more information, // see . type TopicsDetectionJobFilter struct { @@ -13399,6 +14249,66 @@ func (s *TopicsDetectionJobProperties) SetVpcConfig(v *VpcConfig) *TopicsDetecti return s } +// Amazon Comprehend can't process the language of the input text. For all custom +// entity recognition APIs (such as CreateEntityRecognizer), only English is +// accepted. For most other APIs, such as those for Custom Classification, Amazon +// Comprehend accepts text in all supported languages. For a list of supported +// languages, see supported-languages. +type UnsupportedLanguageException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s UnsupportedLanguageException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedLanguageException) GoString() string { + return s.String() +} + +func newErrorUnsupportedLanguageException(v protocol.ResponseMetadata) error { + return &UnsupportedLanguageException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedLanguageException) Code() string { + return "UnsupportedLanguageException" +} + +// Message returns the exception's message. +func (s UnsupportedLanguageException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedLanguageException) OrigErr() error { + return nil +} + +func (s UnsupportedLanguageException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedLanguageException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedLanguageException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/comprehend/errors.go b/service/comprehend/errors.go index 53921b90c7d..b43b3c5c852 100644 --- a/service/comprehend/errors.go +++ b/service/comprehend/errors.go @@ -2,6 +2,10 @@ package comprehend +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBatchSizeLimitExceededException for service response error code @@ -114,3 +118,22 @@ const ( // languages, see supported-languages. ErrCodeUnsupportedLanguageException = "UnsupportedLanguageException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BatchSizeLimitExceededException": newErrorBatchSizeLimitExceededException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InternalServerException": newErrorInternalServerException, + "InvalidFilterException": newErrorInvalidFilterException, + "InvalidRequestException": newErrorInvalidRequestException, + "JobNotFoundException": newErrorJobNotFoundException, + "KmsKeyValidationException": newErrorKmsKeyValidationException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceUnavailableException": newErrorResourceUnavailableException, + "TextSizeLimitExceededException": newErrorTextSizeLimitExceededException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "TooManyTagKeysException": newErrorTooManyTagKeysException, + "TooManyTagsException": newErrorTooManyTagsException, + "UnsupportedLanguageException": newErrorUnsupportedLanguageException, +} diff --git a/service/comprehend/service.go b/service/comprehend/service.go index 458e5e215f8..bfb27237c5d 100644 --- a/service/comprehend/service.go +++ b/service/comprehend/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/comprehendmedical/api.go b/service/comprehendmedical/api.go index a5289cccabc..145a45abb1d 100644 --- a/service/comprehendmedical/api.go +++ b/service/comprehendmedical/api.go @@ -3,11 +3,13 @@ package comprehendmedical import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opDescribeEntitiesDetectionV2Job = "DescribeEntitiesDetectionV2Job" @@ -64,21 +66,21 @@ func (c *ComprehendMedical) DescribeEntitiesDetectionV2JobRequest(input *Describ // See the AWS API reference guide for AWS Comprehend Medical's // API operation DescribeEntitiesDetectionV2Job for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribeEntitiesDetectionV2Job @@ -157,21 +159,21 @@ func (c *ComprehendMedical) DescribePHIDetectionJobRequest(input *DescribePHIDet // See the AWS API reference guide for AWS Comprehend Medical's // API operation DescribePHIDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/DescribePHIDetectionJob @@ -259,28 +261,28 @@ func (c *ComprehendMedical) DetectEntitiesRequest(input *DetectEntitiesInput) (r // See the AWS API reference guide for AWS Comprehend Medical's // API operation DetectEntities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // An internal server error occurred. Retry your request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The Amazon Comprehend Medical service is temporarily unavailable. Please // wait and then retry your request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeInvalidEncodingException "InvalidEncodingException" +// * InvalidEncodingException // The input text was not in valid UTF-8 character encoding. Check your text // then retry your request. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the text you submitted exceeds the size limit. Reduce the size // of the text or use a smaller document and then retry your request. // @@ -373,28 +375,28 @@ func (c *ComprehendMedical) DetectEntitiesV2Request(input *DetectEntitiesV2Input // See the AWS API reference guide for AWS Comprehend Medical's // API operation DetectEntitiesV2 for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // An internal server error occurred. Retry your request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The Amazon Comprehend Medical service is temporarily unavailable. Please // wait and then retry your request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeInvalidEncodingException "InvalidEncodingException" +// * InvalidEncodingException // The input text was not in valid UTF-8 character encoding. Check your text // then retry your request. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the text you submitted exceeds the size limit. Reduce the size // of the text or use a smaller document and then retry your request. // @@ -474,28 +476,28 @@ func (c *ComprehendMedical) DetectPHIRequest(input *DetectPHIInput) (req *reques // See the AWS API reference guide for AWS Comprehend Medical's // API operation DetectPHI for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // An internal server error occurred. Retry your request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The Amazon Comprehend Medical service is temporarily unavailable. Please // wait and then retry your request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeInvalidEncodingException "InvalidEncodingException" +// * InvalidEncodingException // The input text was not in valid UTF-8 character encoding. Check your text // then retry your request. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the text you submitted exceeds the size limit. Reduce the size // of the text or use a smaller document and then retry your request. // @@ -576,28 +578,28 @@ func (c *ComprehendMedical) InferICD10CMRequest(input *InferICD10CMInput) (req * // See the AWS API reference guide for AWS Comprehend Medical's // API operation InferICD10CM for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // An internal server error occurred. Retry your request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The Amazon Comprehend Medical service is temporarily unavailable. Please // wait and then retry your request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeInvalidEncodingException "InvalidEncodingException" +// * InvalidEncodingException // The input text was not in valid UTF-8 character encoding. Check your text // then retry your request. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the text you submitted exceeds the size limit. Reduce the size // of the text or use a smaller document and then retry your request. // @@ -678,28 +680,28 @@ func (c *ComprehendMedical) InferRxNormRequest(input *InferRxNormInput) (req *re // See the AWS API reference guide for AWS Comprehend Medical's // API operation InferRxNorm for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // An internal server error occurred. Retry your request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The Amazon Comprehend Medical service is temporarily unavailable. Please // wait and then retry your request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeInvalidEncodingException "InvalidEncodingException" +// * InvalidEncodingException // The input text was not in valid UTF-8 character encoding. Check your text // then retry your request. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the text you submitted exceeds the size limit. Reduce the size // of the text or use a smaller document and then retry your request. // @@ -778,21 +780,21 @@ func (c *ComprehendMedical) ListEntitiesDetectionV2JobsRequest(input *ListEntiti // See the AWS API reference guide for AWS Comprehend Medical's // API operation ListEntitiesDetectionV2Jobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The filter that you specified for the operation is invalid. Check the filter // values that you entered and try your request again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListEntitiesDetectionV2Jobs @@ -871,21 +873,21 @@ func (c *ComprehendMedical) ListPHIDetectionJobsRequest(input *ListPHIDetectionJ // See the AWS API reference guide for AWS Comprehend Medical's // API operation ListPHIDetectionJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The filter that you specified for the operation is invalid. Check the filter // values that you entered and try your request again. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/ListPHIDetectionJobs @@ -965,21 +967,21 @@ func (c *ComprehendMedical) StartEntitiesDetectionV2JobRequest(input *StartEntit // See the AWS API reference guide for AWS Comprehend Medical's // API operation StartEntitiesDetectionV2Job for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartEntitiesDetectionV2Job @@ -1058,21 +1060,21 @@ func (c *ComprehendMedical) StartPHIDetectionJobRequest(input *StartPHIDetection // See the AWS API reference guide for AWS Comprehend Medical's // API operation StartPHIDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. Contact customer support for // more information about a service limit increase. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StartPHIDetectionJob @@ -1150,16 +1152,16 @@ func (c *ComprehendMedical) StopEntitiesDetectionV2JobRequest(input *StopEntitie // See the AWS API reference guide for AWS Comprehend Medical's // API operation StopEntitiesDetectionV2Job for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopEntitiesDetectionV2Job @@ -1237,16 +1239,16 @@ func (c *ComprehendMedical) StopPHIDetectionJobRequest(input *StopPHIDetectionJo // See the AWS API reference guide for AWS Comprehend Medical's // API operation StopPHIDetectionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource identified by the specified Amazon Resource Name (ARN) was not // found. Check the ARN and try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/StopPHIDetectionJob @@ -2645,6 +2647,176 @@ func (s *InputDataConfig) SetS3Key(v string) *InputDataConfig { return s } +// An internal server error occurred. Retry your request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input text was not in valid UTF-8 character encoding. Check your text +// then retry your request. +type InvalidEncodingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidEncodingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEncodingException) GoString() string { + return s.String() +} + +func newErrorInvalidEncodingException(v protocol.ResponseMetadata) error { + return &InvalidEncodingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEncodingException) Code() string { + return "InvalidEncodingException" +} + +// Message returns the exception's message. +func (s InvalidEncodingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEncodingException) OrigErr() error { + return nil +} + +func (s InvalidEncodingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEncodingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEncodingException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type ListEntitiesDetectionV2JobsInput struct { _ struct{} `type:"structure"` @@ -2893,6 +3065,63 @@ func (s *OutputDataConfig) SetS3Key(v string) *OutputDataConfig { return s } +// The resource identified by the specified Amazon Resource Name (ARN) was not +// found. Check the ARN and try your request again. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The extracted attributes that relate to this entity. The attributes recognized // by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE. type RxNormAttribute struct { @@ -3185,6 +3414,63 @@ func (s *RxNormTrait) SetScore(v float64) *RxNormTrait { return s } +// The Amazon Comprehend Medical service is temporarily unavailable. Please +// wait and then retry your request. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type StartEntitiesDetectionV2JobInput struct { _ struct{} `type:"structure"` @@ -3629,6 +3915,121 @@ func (s *StopPHIDetectionJobOutput) SetJobId(v string) *StopPHIDetectionJobOutpu return s } +// The size of the text you submitted exceeds the size limit. Reduce the size +// of the text or use a smaller document and then retry your request. +type TextSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TextSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TextSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTextSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &TextSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TextSizeLimitExceededException) Code() string { + return "TextSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s TextSizeLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TextSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s TextSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TextSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TextSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. Contact customer support for +// more information about a service limit increase. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides contextual information about the extracted entity. type Trait struct { _ struct{} `type:"structure"` @@ -3697,6 +4098,63 @@ func (s *UnmappedAttribute) SetType(v string) *UnmappedAttribute { return s } +// The filter that you specified for the operation is invalid. Check the filter +// values that you entered and try your request again. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // AttributeNameSign is a AttributeName enum value AttributeNameSign = "SIGN" diff --git a/service/comprehendmedical/errors.go b/service/comprehendmedical/errors.go index 1595b859669..ef823d0c881 100644 --- a/service/comprehendmedical/errors.go +++ b/service/comprehendmedical/errors.go @@ -2,6 +2,10 @@ package comprehendmedical +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerException for service response error code @@ -60,3 +64,14 @@ const ( // values that you entered and try your request again. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerException": newErrorInternalServerException, + "InvalidEncodingException": newErrorInvalidEncodingException, + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TextSizeLimitExceededException": newErrorTextSizeLimitExceededException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "ValidationException": newErrorValidationException, +} diff --git a/service/comprehendmedical/service.go b/service/comprehendmedical/service.go index 762838e9d61..8d42144262f 100644 --- a/service/comprehendmedical/service.go +++ b/service/comprehendmedical/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/computeoptimizer/api.go b/service/computeoptimizer/api.go index c62a07319b6..2d2e3017af9 100644 --- a/service/computeoptimizer/api.go +++ b/service/computeoptimizer/api.go @@ -3,11 +3,13 @@ package computeoptimizer import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetAutoScalingGroupRecommendations = "GetAutoScalingGroupRecommendations" @@ -71,31 +73,31 @@ func (c *ComputeOptimizer) GetAutoScalingGroupRecommendationsRequest(input *GetA // See the AWS API reference guide for AWS Compute Optimizer's // API operation GetAutoScalingGroupRecommendations for usage and error information. // -// Returned Error Codes: -// * ErrCodeOptInRequiredException "OptInRequiredException" +// Returned Error Types: +// * OptInRequiredException // You must opt in to the service to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the server. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // An invalid or out-of-range value was supplied for the input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeMissingAuthenticationToken "MissingAuthenticationToken" +// * MissingAuthenticationToken // The request must contain either a valid (registered) AWS access key ID or // X.509 certificate. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetAutoScalingGroupRecommendations @@ -178,31 +180,31 @@ func (c *ComputeOptimizer) GetEC2InstanceRecommendationsRequest(input *GetEC2Ins // See the AWS API reference guide for AWS Compute Optimizer's // API operation GetEC2InstanceRecommendations for usage and error information. // -// Returned Error Codes: -// * ErrCodeOptInRequiredException "OptInRequiredException" +// Returned Error Types: +// * OptInRequiredException // You must opt in to the service to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the server. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // An invalid or out-of-range value was supplied for the input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeMissingAuthenticationToken "MissingAuthenticationToken" +// * MissingAuthenticationToken // The request must contain either a valid (registered) AWS access key ID or // X.509 certificate. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEC2InstanceRecommendations @@ -280,31 +282,31 @@ func (c *ComputeOptimizer) GetEC2RecommendationProjectedMetricsRequest(input *Ge // See the AWS API reference guide for AWS Compute Optimizer's // API operation GetEC2RecommendationProjectedMetrics for usage and error information. // -// Returned Error Codes: -// * ErrCodeOptInRequiredException "OptInRequiredException" +// Returned Error Types: +// * OptInRequiredException // You must opt in to the service to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the server. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // An invalid or out-of-range value was supplied for the input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeMissingAuthenticationToken "MissingAuthenticationToken" +// * MissingAuthenticationToken // The request must contain either a valid (registered) AWS access key ID or // X.509 certificate. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEC2RecommendationProjectedMetrics @@ -386,25 +388,25 @@ func (c *ComputeOptimizer) GetEnrollmentStatusRequest(input *GetEnrollmentStatus // See the AWS API reference guide for AWS Compute Optimizer's // API operation GetEnrollmentStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the server. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // An invalid or out-of-range value was supplied for the input parameter. // -// * ErrCodeMissingAuthenticationToken "MissingAuthenticationToken" +// * MissingAuthenticationToken // The request must contain either a valid (registered) AWS access key ID or // X.509 certificate. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetEnrollmentStatus @@ -487,28 +489,28 @@ func (c *ComputeOptimizer) GetRecommendationSummariesRequest(input *GetRecommend // See the AWS API reference guide for AWS Compute Optimizer's // API operation GetRecommendationSummaries for usage and error information. // -// Returned Error Codes: -// * ErrCodeOptInRequiredException "OptInRequiredException" +// Returned Error Types: +// * OptInRequiredException // You must opt in to the service to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the server. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // An invalid or out-of-range value was supplied for the input parameter. // -// * ErrCodeMissingAuthenticationToken "MissingAuthenticationToken" +// * MissingAuthenticationToken // The request must contain either a valid (registered) AWS access key ID or // X.509 certificate. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/GetRecommendationSummaries @@ -590,25 +592,25 @@ func (c *ComputeOptimizer) UpdateEnrollmentStatusRequest(input *UpdateEnrollment // See the AWS API reference guide for AWS Compute Optimizer's // API operation UpdateEnrollmentStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request processing has failed because of an unknown error, exception, // or failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the server. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // An invalid or out-of-range value was supplied for the input parameter. // -// * ErrCodeMissingAuthenticationToken "MissingAuthenticationToken" +// * MissingAuthenticationToken // The request must contain either a valid (registered) AWS access key ID or // X.509 certificate. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer-2019-11-01/UpdateEnrollmentStatus @@ -633,6 +635,62 @@ func (c *ComputeOptimizer) UpdateEnrollmentStatusWithContext(ctx aws.Context, in return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the configuration of an Auto Scaling group. type AutoScalingGroupConfiguration struct { _ struct{} `type:"structure"` @@ -1621,6 +1679,232 @@ func (s *InstanceRecommendationOption) SetRank(v int64) *InstanceRecommendationO return s } +// The request processing has failed because of an unknown error, exception, +// or failure. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// An invalid or out-of-range value was supplied for the input parameter. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request must contain either a valid (registered) AWS access key ID or +// X.509 certificate. +type MissingAuthenticationToken struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MissingAuthenticationToken) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingAuthenticationToken) GoString() string { + return s.String() +} + +func newErrorMissingAuthenticationToken(v protocol.ResponseMetadata) error { + return &MissingAuthenticationToken{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingAuthenticationToken) Code() string { + return "MissingAuthenticationToken" +} + +// Message returns the exception's message. +func (s MissingAuthenticationToken) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingAuthenticationToken) OrigErr() error { + return nil +} + +func (s MissingAuthenticationToken) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingAuthenticationToken) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingAuthenticationToken) RequestID() string { + return s.respMetadata.RequestID +} + +// You must opt in to the service to perform this action. +type OptInRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OptInRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OptInRequiredException) GoString() string { + return s.String() +} + +func newErrorOptInRequiredException(v protocol.ResponseMetadata) error { + return &OptInRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OptInRequiredException) Code() string { + return "OptInRequiredException" +} + +// Message returns the exception's message. +func (s OptInRequiredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OptInRequiredException) OrigErr() error { + return nil +} + +func (s OptInRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OptInRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OptInRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a projected utilization metric of a recommendation option, such // as an Amazon EC2 instance. type ProjectedMetric struct { @@ -1792,6 +2076,118 @@ func (s *RecommendedOptionProjectedMetric) SetRecommendedInstanceType(v string) return s } +// The specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request has failed due to a temporary failure of the server. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // The summary of a recommendation. type Summary struct { _ struct{} `type:"structure"` @@ -1825,6 +2221,62 @@ func (s *Summary) SetValue(v float64) *Summary { return s } +// The limit on the number of requests per second was exceeded. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateEnrollmentStatusInput struct { _ struct{} `type:"structure"` diff --git a/service/computeoptimizer/errors.go b/service/computeoptimizer/errors.go index 9641f621796..663845aaded 100644 --- a/service/computeoptimizer/errors.go +++ b/service/computeoptimizer/errors.go @@ -2,6 +2,10 @@ package computeoptimizer +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -54,3 +58,14 @@ const ( // The limit on the number of requests per second was exceeded. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "InternalServerException": newErrorInternalServerException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "MissingAuthenticationToken": newErrorMissingAuthenticationToken, + "OptInRequiredException": newErrorOptInRequiredException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/computeoptimizer/service.go b/service/computeoptimizer/service.go index 8c645db048f..84b7c7e28cf 100644 --- a/service/computeoptimizer/service.go +++ b/service/computeoptimizer/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/configservice/api.go b/service/configservice/api.go index 23739d7ea4a..7e09b384c0e 100644 --- a/service/configservice/api.go +++ b/service/configservice/api.go @@ -74,11 +74,11 @@ func (c *ConfigService) BatchGetAggregateResourceConfigRequest(input *BatchGetAg // See the AWS API reference guide for AWS Config's // API operation BatchGetAggregateResourceConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/BatchGetAggregateResourceConfig @@ -164,11 +164,11 @@ func (c *ConfigService) BatchGetResourceConfigRequest(input *BatchGetResourceCon // See the AWS API reference guide for AWS Config's // API operation BatchGetResourceConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" +// * NoAvailableConfigurationRecorderException // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // @@ -249,8 +249,8 @@ func (c *ConfigService) DeleteAggregationAuthorizationRequest(input *DeleteAggre // See the AWS API reference guide for AWS Config's // API operation DeleteAggregationAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -336,12 +336,12 @@ func (c *ConfigService) DeleteConfigRuleRequest(input *DeleteConfigRuleInput) (r // See the AWS API reference guide for AWS Config's // API operation DeleteConfigRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// Returned Error Types: +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -445,8 +445,8 @@ func (c *ConfigService) DeleteConfigurationAggregatorRequest(input *DeleteConfig // See the AWS API reference guide for AWS Config's // API operation DeleteConfigurationAggregator for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// Returned Error Types: +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigurationAggregator @@ -534,8 +534,8 @@ func (c *ConfigService) DeleteConfigurationRecorderRequest(input *DeleteConfigur // See the AWS API reference guide for AWS Config's // API operation DeleteConfigurationRecorder for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" +// Returned Error Types: +// * NoSuchConfigurationRecorderException // You have specified a configuration recorder that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteConfigurationRecorder @@ -618,11 +618,11 @@ func (c *ConfigService) DeleteConformancePackRequest(input *DeleteConformancePac // See the AWS API reference guide for AWS Config's // API operation DeleteConformancePack for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConformancePackException "NoSuchConformancePackException" +// Returned Error Types: +// * NoSuchConformancePackException // You specified one or more conformance packs that do not exist. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -728,11 +728,11 @@ func (c *ConfigService) DeleteDeliveryChannelRequest(input *DeleteDeliveryChanne // See the AWS API reference guide for AWS Config's // API operation DeleteDeliveryChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" +// Returned Error Types: +// * NoSuchDeliveryChannelException // You have specified a delivery channel that does not exist. // -// * ErrCodeLastDeliveryChannelDeleteFailedException "LastDeliveryChannelDeleteFailedException" +// * LastDeliveryChannelDeleteFailedException // You cannot delete the delivery channel you specified because the configuration // recorder is running. // @@ -815,12 +815,12 @@ func (c *ConfigService) DeleteEvaluationResultsRequest(input *DeleteEvaluationRe // See the AWS API reference guide for AWS Config's // API operation DeleteEvaluationResults for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// Returned Error Types: +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -928,11 +928,11 @@ func (c *ConfigService) DeleteOrganizationConfigRuleRequest(input *DeleteOrganiz // See the AWS API reference guide for AWS Config's // API operation DeleteOrganizationConfigRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConfigRuleException "NoSuchOrganizationConfigRuleException" +// Returned Error Types: +// * NoSuchOrganizationConfigRuleException // You specified one or more organization config rules that do not exist. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -959,7 +959,7 @@ func (c *ConfigService) DeleteOrganizationConfigRuleRequest(input *DeleteOrganiz // * For DeleteConformancePack, a conformance pack creation, update, and // deletion is in progress. Try your request again later. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -1049,15 +1049,15 @@ func (c *ConfigService) DeleteOrganizationConformancePackRequest(input *DeleteOr // See the AWS API reference guide for AWS Config's // API operation DeleteOrganizationConformancePack for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConformancePackException "NoSuchOrganizationConformancePackException" +// Returned Error Types: +// * NoSuchOrganizationConformancePackException // AWS Config organization conformance pack that you passed in the filter does // not exist. // // For DeleteOrganizationConformancePack, you tried to delete an organization // conformance pack that does not exist. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -1084,7 +1084,7 @@ func (c *ConfigService) DeleteOrganizationConformancePackRequest(input *DeleteOr // * For DeleteConformancePack, a conformance pack creation, update, and // deletion is in progress. Try your request again later. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -1169,8 +1169,8 @@ func (c *ConfigService) DeletePendingAggregationRequestRequest(input *DeletePend // See the AWS API reference guide for AWS Config's // API operation DeletePendingAggregationRequest for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -1250,11 +1250,11 @@ func (c *ConfigService) DeleteRemediationConfigurationRequest(input *DeleteRemed // See the AWS API reference guide for AWS Config's // API operation DeleteRemediationConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchRemediationConfigurationException "NoSuchRemediationConfigurationException" +// Returned Error Types: +// * NoSuchRemediationConfigurationException // You specified an AWS Config rule without a remediation configuration. // -// * ErrCodeRemediationInProgressException "RemediationInProgressException" +// * RemediationInProgressException // Remediation action is in progress. You can either cancel execution in AWS // Systems Manager or wait and try again later. // @@ -1333,8 +1333,8 @@ func (c *ConfigService) DeleteRemediationExceptionsRequest(input *DeleteRemediat // See the AWS API reference guide for AWS Config's // API operation DeleteRemediationExceptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchRemediationExceptionException "NoSuchRemediationExceptionException" +// Returned Error Types: +// * NoSuchRemediationExceptionException // You tried to delete a remediation exception that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteRemediationExceptions @@ -1416,11 +1416,11 @@ func (c *ConfigService) DeleteResourceConfigRequest(input *DeleteResourceConfigI // See the AWS API reference guide for AWS Config's // API operation DeleteResourceConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeNoRunningConfigurationRecorderException "NoRunningConfigurationRecorderException" +// * NoRunningConfigurationRecorderException // There is no configuration recorder running. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteResourceConfig @@ -1499,12 +1499,12 @@ func (c *ConfigService) DeleteRetentionConfigurationRequest(input *DeleteRetenti // See the AWS API reference guide for AWS Config's // API operation DeleteRetentionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeNoSuchRetentionConfigurationException "NoSuchRetentionConfigurationException" +// * NoSuchRetentionConfigurationException // You have specified a retention configuration that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeleteRetentionConfiguration @@ -1592,15 +1592,15 @@ func (c *ConfigService) DeliverConfigSnapshotRequest(input *DeliverConfigSnapsho // See the AWS API reference guide for AWS Config's // API operation DeliverConfigSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" +// Returned Error Types: +// * NoSuchDeliveryChannelException // You have specified a delivery channel that does not exist. // -// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" +// * NoAvailableConfigurationRecorderException // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // -// * ErrCodeNoRunningConfigurationRecorderException "NoRunningConfigurationRecorderException" +// * NoRunningConfigurationRecorderException // There is no configuration recorder running. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DeliverConfigSnapshot @@ -1682,18 +1682,18 @@ func (c *ConfigService) DescribeAggregateComplianceByConfigRulesRequest(input *D // See the AWS API reference guide for AWS Config's // API operation DescribeAggregateComplianceByConfigRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeAggregateComplianceByConfigRules @@ -1772,16 +1772,16 @@ func (c *ConfigService) DescribeAggregationAuthorizationsRequest(input *Describe // See the AWS API reference guide for AWS Config's // API operation DescribeAggregationAuthorizations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeAggregationAuthorizations @@ -1881,16 +1881,16 @@ func (c *ConfigService) DescribeComplianceByConfigRuleRequest(input *DescribeCom // See the AWS API reference guide for AWS Config's // API operation DescribeComplianceByConfigRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -1993,12 +1993,12 @@ func (c *ConfigService) DescribeComplianceByResourceRequest(input *DescribeCompl // See the AWS API reference guide for AWS Config's // API operation DescribeComplianceByResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -2080,16 +2080,16 @@ func (c *ConfigService) DescribeConfigRuleEvaluationStatusRequest(input *Describ // See the AWS API reference guide for AWS Config's // API operation DescribeConfigRuleEvaluationStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// Returned Error Types: +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -2168,12 +2168,12 @@ func (c *ConfigService) DescribeConfigRulesRequest(input *DescribeConfigRulesInp // See the AWS API reference guide for AWS Config's // API operation DescribeConfigRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// Returned Error Types: +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -2255,19 +2255,19 @@ func (c *ConfigService) DescribeConfigurationAggregatorSourcesStatusRequest(inpu // See the AWS API reference guide for AWS Config's // API operation DescribeConfigurationAggregatorSourcesStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationAggregatorSourcesStatus @@ -2347,19 +2347,19 @@ func (c *ConfigService) DescribeConfigurationAggregatorsRequest(input *DescribeC // See the AWS API reference guide for AWS Config's // API operation DescribeConfigurationAggregators for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationAggregators @@ -2442,8 +2442,8 @@ func (c *ConfigService) DescribeConfigurationRecorderStatusRequest(input *Descri // See the AWS API reference guide for AWS Config's // API operation DescribeConfigurationRecorderStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" +// Returned Error Types: +// * NoSuchConfigurationRecorderException // You have specified a configuration recorder that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorderStatus @@ -2526,8 +2526,8 @@ func (c *ConfigService) DescribeConfigurationRecordersRequest(input *DescribeCon // See the AWS API reference guide for AWS Config's // API operation DescribeConfigurationRecorders for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" +// Returned Error Types: +// * NoSuchConfigurationRecorderException // You have specified a configuration recorder that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConfigurationRecorders @@ -2607,22 +2607,22 @@ func (c *ConfigService) DescribeConformancePackComplianceRequest(input *Describe // See the AWS API reference guide for AWS Config's // API operation DescribeConformancePackCompliance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidLimitException "InvalidLimitException" +// Returned Error Types: +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeNoSuchConfigRuleInConformancePackException "NoSuchConfigRuleInConformancePackException" +// * NoSuchConfigRuleInConformancePackException // AWS Config rule that you passed in the filter does not exist. // -// * ErrCodeNoSuchConformancePackException "NoSuchConformancePackException" +// * NoSuchConformancePackException // You specified one or more conformance packs that do not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeConformancePackCompliance @@ -2702,11 +2702,11 @@ func (c *ConfigService) DescribeConformancePackStatusRequest(input *DescribeConf // See the AWS API reference guide for AWS Config's // API operation DescribeConformancePackStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidLimitException "InvalidLimitException" +// Returned Error Types: +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -2785,14 +2785,14 @@ func (c *ConfigService) DescribeConformancePacksRequest(input *DescribeConforman // See the AWS API reference guide for AWS Config's // API operation DescribeConformancePacks for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConformancePackException "NoSuchConformancePackException" +// Returned Error Types: +// * NoSuchConformancePackException // You specified one or more conformance packs that do not exist. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -2875,8 +2875,8 @@ func (c *ConfigService) DescribeDeliveryChannelStatusRequest(input *DescribeDeli // See the AWS API reference guide for AWS Config's // API operation DescribeDeliveryChannelStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" +// Returned Error Types: +// * NoSuchDeliveryChannelException // You have specified a delivery channel that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannelStatus @@ -2958,8 +2958,8 @@ func (c *ConfigService) DescribeDeliveryChannelsRequest(input *DescribeDeliveryC // See the AWS API reference guide for AWS Config's // API operation DescribeDeliveryChannels for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchDeliveryChannelException "NoSuchDeliveryChannelException" +// Returned Error Types: +// * NoSuchDeliveryChannelException // You have specified a delivery channel that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribeDeliveryChannels @@ -3048,18 +3048,18 @@ func (c *ConfigService) DescribeOrganizationConfigRuleStatusesRequest(input *Des // See the AWS API reference guide for AWS Config's // API operation DescribeOrganizationConfigRuleStatuses for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConfigRuleException "NoSuchOrganizationConfigRuleException" +// Returned Error Types: +// * NoSuchOrganizationConfigRuleException // You specified one or more organization config rules that do not exist. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -3149,18 +3149,18 @@ func (c *ConfigService) DescribeOrganizationConfigRulesRequest(input *DescribeOr // See the AWS API reference guide for AWS Config's // API operation DescribeOrganizationConfigRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConfigRuleException "NoSuchOrganizationConfigRuleException" +// Returned Error Types: +// * NoSuchOrganizationConfigRuleException // You specified one or more organization config rules that do not exist. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -3254,22 +3254,22 @@ func (c *ConfigService) DescribeOrganizationConformancePackStatusesRequest(input // See the AWS API reference guide for AWS Config's // API operation DescribeOrganizationConformancePackStatuses for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConformancePackException "NoSuchOrganizationConformancePackException" +// Returned Error Types: +// * NoSuchOrganizationConformancePackException // AWS Config organization conformance pack that you passed in the filter does // not exist. // // For DeleteOrganizationConformancePack, you tried to delete an organization // conformance pack that does not exist. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -3360,22 +3360,22 @@ func (c *ConfigService) DescribeOrganizationConformancePacksRequest(input *Descr // See the AWS API reference guide for AWS Config's // API operation DescribeOrganizationConformancePacks for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConformancePackException "NoSuchOrganizationConformancePackException" +// Returned Error Types: +// * NoSuchOrganizationConformancePackException // AWS Config organization conformance pack that you passed in the filter does // not exist. // // For DeleteOrganizationConformancePack, you tried to delete an organization // conformance pack that does not exist. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -3458,16 +3458,16 @@ func (c *ConfigService) DescribePendingAggregationRequestsRequest(input *Describ // See the AWS API reference guide for AWS Config's // API operation DescribePendingAggregationRequests for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/DescribePendingAggregationRequests @@ -3633,12 +3633,12 @@ func (c *ConfigService) DescribeRemediationExceptionsRequest(input *DescribeReme // See the AWS API reference guide for AWS Config's // API operation DescribeRemediationExceptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -3778,11 +3778,11 @@ func (c *ConfigService) DescribeRemediationExecutionStatusRequest(input *Describ // See the AWS API reference guide for AWS Config's // API operation DescribeRemediationExecutionStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchRemediationConfigurationException "NoSuchRemediationConfigurationException" +// Returned Error Types: +// * NoSuchRemediationConfigurationException // You specified an AWS Config rule without a remediation configuration. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -3918,15 +3918,15 @@ func (c *ConfigService) DescribeRetentionConfigurationsRequest(input *DescribeRe // See the AWS API reference guide for AWS Config's // API operation DescribeRetentionConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeNoSuchRetentionConfigurationException "NoSuchRetentionConfigurationException" +// * NoSuchRetentionConfigurationException // You have specified a retention configuration that does not exist. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -4011,18 +4011,18 @@ func (c *ConfigService) GetAggregateComplianceDetailsByConfigRuleRequest(input * // See the AWS API reference guide for AWS Config's // API operation GetAggregateComplianceDetailsByConfigRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateComplianceDetailsByConfigRule @@ -4104,18 +4104,18 @@ func (c *ConfigService) GetAggregateConfigRuleComplianceSummaryRequest(input *Ge // See the AWS API reference guide for AWS Config's // API operation GetAggregateConfigRuleComplianceSummary for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateConfigRuleComplianceSummary @@ -4201,18 +4201,18 @@ func (c *ConfigService) GetAggregateDiscoveredResourceCountsRequest(input *GetAg // See the AWS API reference guide for AWS Config's // API operation GetAggregateDiscoveredResourceCounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateDiscoveredResourceCounts @@ -4291,17 +4291,17 @@ func (c *ConfigService) GetAggregateResourceConfigRequest(input *GetAggregateRes // See the AWS API reference guide for AWS Config's // API operation GetAggregateResourceConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // -// * ErrCodeOversizedConfigurationItemException "OversizedConfigurationItemException" +// * OversizedConfigurationItemException // The configuration item size is outside the allowable range. // -// * ErrCodeResourceNotDiscoveredException "ResourceNotDiscoveredException" +// * ResourceNotDiscoveredException // You have specified a resource that is either unknown or has not been discovered. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetAggregateResourceConfig @@ -4381,16 +4381,16 @@ func (c *ConfigService) GetComplianceDetailsByConfigRuleRequest(input *GetCompli // See the AWS API reference guide for AWS Config's // API operation GetComplianceDetailsByConfigRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // @@ -4471,8 +4471,8 @@ func (c *ConfigService) GetComplianceDetailsByResourceRequest(input *GetComplian // See the AWS API reference guide for AWS Config's // API operation GetComplianceDetailsByResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -4628,8 +4628,8 @@ func (c *ConfigService) GetComplianceSummaryByResourceTypeRequest(input *GetComp // See the AWS API reference guide for AWS Config's // API operation GetComplianceSummaryByResourceType for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -4709,21 +4709,21 @@ func (c *ConfigService) GetConformancePackComplianceDetailsRequest(input *GetCon // See the AWS API reference guide for AWS Config's // API operation GetConformancePackComplianceDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidLimitException "InvalidLimitException" +// Returned Error Types: +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoSuchConformancePackException "NoSuchConformancePackException" +// * NoSuchConformancePackException // You specified one or more conformance packs that do not exist. // -// * ErrCodeNoSuchConfigRuleInConformancePackException "NoSuchConfigRuleInConformancePackException" +// * NoSuchConfigRuleInConformancePackException // AWS Config rule that you passed in the filter does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -4803,14 +4803,14 @@ func (c *ConfigService) GetConformancePackComplianceSummaryRequest(input *GetCon // See the AWS API reference guide for AWS Config's // API operation GetConformancePackComplianceSummary for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConformancePackException "NoSuchConformancePackException" +// Returned Error Types: +// * NoSuchConformancePackException // You specified one or more conformance packs that do not exist. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -4922,14 +4922,14 @@ func (c *ConfigService) GetDiscoveredResourceCountsRequest(input *GetDiscoveredR // See the AWS API reference guide for AWS Config's // API operation GetDiscoveredResourceCounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -5011,18 +5011,18 @@ func (c *ConfigService) GetOrganizationConfigRuleDetailedStatusRequest(input *Ge // See the AWS API reference guide for AWS Config's // API operation GetOrganizationConfigRuleDetailedStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConfigRuleException "NoSuchOrganizationConfigRuleException" +// Returned Error Types: +// * NoSuchOrganizationConfigRuleException // You specified one or more organization config rules that do not exist. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -5108,22 +5108,22 @@ func (c *ConfigService) GetOrganizationConformancePackDetailedStatusRequest(inpu // See the AWS API reference guide for AWS Config's // API operation GetOrganizationConformancePackDetailedStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchOrganizationConformancePackException "NoSuchOrganizationConformancePackException" +// Returned Error Types: +// * NoSuchOrganizationConformancePackException // AWS Config organization conformance pack that you passed in the filter does // not exist. // // For DeleteOrganizationConformancePack, you tried to delete an organization // conformance pack that does not exist. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -5225,26 +5225,26 @@ func (c *ConfigService) GetResourceConfigHistoryRequest(input *GetResourceConfig // See the AWS API reference guide for AWS Config's // API operation GetResourceConfigHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidTimeRangeException "InvalidTimeRangeException" +// * InvalidTimeRangeException // The specified time range is not valid. The earlier time is not chronologically // before the later time. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" +// * NoAvailableConfigurationRecorderException // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // -// * ErrCodeResourceNotDiscoveredException "ResourceNotDiscoveredException" +// * ResourceNotDiscoveredException // You have specified a resource that is either unknown or has not been discovered. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/GetResourceConfigHistory @@ -5383,18 +5383,18 @@ func (c *ConfigService) ListAggregateDiscoveredResourcesRequest(input *ListAggre // See the AWS API reference guide for AWS Config's // API operation ListAggregateDiscoveredResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoSuchConfigurationAggregatorException "NoSuchConfigurationAggregatorException" +// * NoSuchConfigurationAggregatorException // You have specified a configuration aggregator that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/ListAggregateDiscoveredResources @@ -5485,18 +5485,18 @@ func (c *ConfigService) ListDiscoveredResourcesRequest(input *ListDiscoveredReso // See the AWS API reference guide for AWS Config's // API operation ListDiscoveredResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // -// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" +// * NoAvailableConfigurationRecorderException // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // @@ -5575,17 +5575,17 @@ func (c *ConfigService) ListTagsForResourceRequest(input *ListTagsForResourceInp // See the AWS API reference guide for AWS Config's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // You have specified a resource that does not exist. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The requested action is not valid. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -5665,8 +5665,8 @@ func (c *ConfigService) PutAggregationAuthorizationRequest(input *PutAggregation // See the AWS API reference guide for AWS Config's // API operation PutAggregationAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -5781,17 +5781,17 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re // See the AWS API reference guide for AWS Config's // API operation PutConfigRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeMaxNumberOfConfigRulesExceededException "MaxNumberOfConfigRulesExceededException" +// * MaxNumberOfConfigRulesExceededException // Failed to add the AWS Config rule because the account already contains the // maximum number of 150 rules. Consider deleting any deactivated rules before // you add new rules. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -5818,7 +5818,7 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re // * For DeleteConformancePack, a conformance pack creation, update, and // deletion is in progress. Try your request again later. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // Indicates one of the following errors: // // * For PutConfigRule, the rule cannot be created because the IAM role assigned @@ -5835,7 +5835,7 @@ func (c *ConfigService) PutConfigRuleRequest(input *PutConfigRuleInput) (req *re // pack cannot be created because you do not have permissions: To call IAM // GetRole action or create a service linked role. To read Amazon S3 bucket. // -// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" +// * NoAvailableConfigurationRecorderException // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // @@ -5923,12 +5923,12 @@ func (c *ConfigService) PutConfigurationAggregatorRequest(input *PutConfiguratio // See the AWS API reference guide for AWS Config's // API operation PutConfigurationAggregator for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // For StartConfigRulesEvaluation API, this exception is thrown if an evaluation // is in progress or if you call the StartConfigRulesEvaluation API more than // once per minute. @@ -5936,10 +5936,10 @@ func (c *ConfigService) PutConfigurationAggregatorRequest(input *PutConfiguratio // For PutConfigurationAggregator API, this exception is thrown if the number // of accounts and aggregators exceeds the limit. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // You have provided a null or empty role ARN. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -5947,10 +5947,10 @@ func (c *ConfigService) PutConfigurationAggregatorRequest(input *PutConfiguratio // Config throws an exception if APIs are called from member accounts. All APIs // must be called from organization master account. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // Organization is no longer available. // -// * ErrCodeOrganizationAllFeaturesNotEnabledException "OrganizationAllFeaturesNotEnabledException" +// * OrganizationAllFeaturesNotEnabledException // AWS Config resource cannot be created because your organization does not // have all features enabled. // @@ -6040,17 +6040,17 @@ func (c *ConfigService) PutConfigurationRecorderRequest(input *PutConfigurationR // See the AWS API reference guide for AWS Config's // API operation PutConfigurationRecorder for usage and error information. // -// Returned Error Codes: -// * ErrCodeMaxNumberOfConfigurationRecordersExceededException "MaxNumberOfConfigurationRecordersExceededException" +// Returned Error Types: +// * MaxNumberOfConfigurationRecordersExceededException // You have reached the limit of the number of recorders you can create. // -// * ErrCodeInvalidConfigurationRecorderNameException "InvalidConfigurationRecorderNameException" +// * InvalidConfigurationRecorderNameException // You have provided a configuration recorder name that is not valid. // -// * ErrCodeInvalidRoleException "InvalidRoleException" +// * InvalidRoleException // You have provided a null or empty role ARN. // -// * ErrCodeInvalidRecordingGroupException "InvalidRecordingGroupException" +// * InvalidRecordingGroupException // AWS Config throws an exception if the recording group does not contain a // valid list of resource types. Invalid values might also be incorrectly formatted. // @@ -6140,8 +6140,8 @@ func (c *ConfigService) PutConformancePackRequest(input *PutConformancePackInput // See the AWS API reference guide for AWS Config's // API operation PutConformancePack for usage and error information. // -// Returned Error Codes: -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// Returned Error Types: +// * InsufficientPermissionsException // Indicates one of the following errors: // // * For PutConfigRule, the rule cannot be created because the IAM role assigned @@ -6158,10 +6158,10 @@ func (c *ConfigService) PutConformancePackRequest(input *PutConformancePackInput // pack cannot be created because you do not have permissions: To call IAM // GetRole action or create a service linked role. To read Amazon S3 bucket. // -// * ErrCodeConformancePackTemplateValidationException "ConformancePackTemplateValidationException" +// * ConformancePackTemplateValidationException // You have specified a template that is not valid or supported. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -6188,11 +6188,11 @@ func (c *ConfigService) PutConformancePackRequest(input *PutConformancePackInput // * For DeleteConformancePack, a conformance pack creation, update, and // deletion is in progress. Try your request again later. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeMaxNumberOfConformancePacksExceededException "MaxNumberOfConformancePacksExceededException" +// * MaxNumberOfConformancePacksExceededException // You have reached the limit (6) of the number of conformance packs in an account // (6 conformance pack with 25 AWS Config rules per pack). // @@ -6285,27 +6285,27 @@ func (c *ConfigService) PutDeliveryChannelRequest(input *PutDeliveryChannelInput // See the AWS API reference guide for AWS Config's // API operation PutDeliveryChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeMaxNumberOfDeliveryChannelsExceededException "MaxNumberOfDeliveryChannelsExceededException" +// Returned Error Types: +// * MaxNumberOfDeliveryChannelsExceededException // You have reached the limit of the number of delivery channels you can create. // -// * ErrCodeNoAvailableConfigurationRecorderException "NoAvailableConfigurationRecorderException" +// * NoAvailableConfigurationRecorderException // There are no configuration recorders available to provide the role needed // to describe your resources. Create a configuration recorder. // -// * ErrCodeInvalidDeliveryChannelNameException "InvalidDeliveryChannelNameException" +// * InvalidDeliveryChannelNameException // The specified delivery channel name is not valid. // -// * ErrCodeNoSuchBucketException "NoSuchBucketException" +// * NoSuchBucketException // The specified Amazon S3 bucket does not exist. // -// * ErrCodeInvalidS3KeyPrefixException "InvalidS3KeyPrefixException" +// * InvalidS3KeyPrefixException // The specified Amazon S3 key prefix is not valid. // -// * ErrCodeInvalidSNSTopicARNException "InvalidSNSTopicARNException" +// * InvalidSNSTopicARNException // The specified Amazon SNS topic does not exist. // -// * ErrCodeInsufficientDeliveryPolicyException "InsufficientDeliveryPolicyException" +// * InsufficientDeliveryPolicyException // Your Amazon S3 bucket policy does not permit AWS Config to write to it. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutDeliveryChannel @@ -6385,15 +6385,15 @@ func (c *ConfigService) PutEvaluationsRequest(input *PutEvaluationsInput) (req * // See the AWS API reference guide for AWS Config's // API operation PutEvaluations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeInvalidResultTokenException "InvalidResultTokenException" +// * InvalidResultTokenException // The specified ResultToken is invalid. // -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // @@ -6493,12 +6493,12 @@ func (c *ConfigService) PutOrganizationConfigRuleRequest(input *PutOrganizationC // See the AWS API reference guide for AWS Config's // API operation PutOrganizationConfigRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeMaxNumberOfOrganizationConfigRulesExceededException "MaxNumberOfOrganizationConfigRulesExceededException" +// Returned Error Types: +// * MaxNumberOfOrganizationConfigRulesExceededException // You have reached the limit of the number of organization config rules you // can create. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -6525,14 +6525,14 @@ func (c *ConfigService) PutOrganizationConfigRuleRequest(input *PutOrganizationC // * For DeleteConformancePack, a conformance pack creation, update, and // deletion is in progress. Try your request again later. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The requested action is not valid. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -6540,14 +6540,14 @@ func (c *ConfigService) PutOrganizationConfigRuleRequest(input *PutOrganizationC // Config throws an exception if APIs are called from member accounts. All APIs // must be called from organization master account. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // Organization is no longer available. // -// * ErrCodeOrganizationAllFeaturesNotEnabledException "OrganizationAllFeaturesNotEnabledException" +// * OrganizationAllFeaturesNotEnabledException // AWS Config resource cannot be created because your organization does not // have all features enabled. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // Indicates one of the following errors: // // * For PutConfigRule, the rule cannot be created because the IAM role assigned @@ -6655,13 +6655,13 @@ func (c *ConfigService) PutOrganizationConformancePackRequest(input *PutOrganiza // See the AWS API reference guide for AWS Config's // API operation PutOrganizationConformancePack for usage and error information. // -// Returned Error Codes: -// * ErrCodeMaxNumberOfOrganizationConformancePacksExceededException "MaxNumberOfOrganizationConformancePacksExceededException" +// Returned Error Types: +// * MaxNumberOfOrganizationConformancePacksExceededException // You have reached the limit (6) of the number of organization conformance // packs in an account (6 conformance pack with 25 AWS Config rules per pack // per account). // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -6688,10 +6688,10 @@ func (c *ConfigService) PutOrganizationConformancePackRequest(input *PutOrganiza // * For DeleteConformancePack, a conformance pack creation, update, and // deletion is in progress. Try your request again later. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The requested action is not valid. // -// * ErrCodeOrganizationAccessDeniedException "OrganizationAccessDeniedException" +// * OrganizationAccessDeniedException // For PutConfigAggregator API, no permission to call EnableAWSServiceAccess // API. // @@ -6699,7 +6699,7 @@ func (c *ConfigService) PutOrganizationConformancePackRequest(input *PutOrganiza // Config throws an exception if APIs are called from member accounts. All APIs // must be called from organization master account. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // Indicates one of the following errors: // // * For PutConfigRule, the rule cannot be created because the IAM role assigned @@ -6716,14 +6716,14 @@ func (c *ConfigService) PutOrganizationConformancePackRequest(input *PutOrganiza // pack cannot be created because you do not have permissions: To call IAM // GetRole action or create a service linked role. To read Amazon S3 bucket. // -// * ErrCodeOrganizationConformancePackTemplateValidationException "OrganizationConformancePackTemplateValidationException" +// * OrganizationConformancePackTemplateValidationException // You have specified a template that is not valid or supported. // -// * ErrCodeOrganizationAllFeaturesNotEnabledException "OrganizationAllFeaturesNotEnabledException" +// * OrganizationAllFeaturesNotEnabledException // AWS Config resource cannot be created because your organization does not // have all features enabled. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // Organization is no longer available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/PutOrganizationConformancePack @@ -6805,8 +6805,8 @@ func (c *ConfigService) PutRemediationConfigurationsRequest(input *PutRemediatio // See the AWS API reference guide for AWS Config's // API operation PutRemediationConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// Returned Error Types: +// * InsufficientPermissionsException // Indicates one of the following errors: // // * For PutConfigRule, the rule cannot be created because the IAM role assigned @@ -6823,7 +6823,7 @@ func (c *ConfigService) PutRemediationConfigurationsRequest(input *PutRemediatio // pack cannot be created because you do not have permissions: To call IAM // GetRole action or create a service linked role. To read Amazon S3 bucket. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -6904,8 +6904,8 @@ func (c *ConfigService) PutRemediationExceptionsRequest(input *PutRemediationExc // See the AWS API reference guide for AWS Config's // API operation PutRemediationExceptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -6996,11 +6996,11 @@ func (c *ConfigService) PutResourceConfigRequest(input *PutResourceConfigInput) // See the AWS API reference guide for AWS Config's // API operation PutResourceConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // Indicates one of the following errors: // // * For PutConfigRule, the rule cannot be created because the IAM role assigned @@ -7017,10 +7017,10 @@ func (c *ConfigService) PutResourceConfigRequest(input *PutResourceConfigInput) // pack cannot be created because you do not have permissions: To call IAM // GetRole action or create a service linked role. To read Amazon S3 bucket. // -// * ErrCodeNoRunningConfigurationRecorderException "NoRunningConfigurationRecorderException" +// * NoRunningConfigurationRecorderException // There is no configuration recorder running. // -// * ErrCodeMaxActiveResourcesExceededException "MaxActiveResourcesExceededException" +// * MaxActiveResourcesExceededException // You have reached the limit (100,000) of active custom resource types in your // account. Delete unused resources using DeleteResourceConfig. // @@ -7106,12 +7106,12 @@ func (c *ConfigService) PutRetentionConfigurationRequest(input *PutRetentionConf // See the AWS API reference guide for AWS Config's // API operation PutRetentionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeMaxNumberOfRetentionConfigurationsExceededException "MaxNumberOfRetentionConfigurationsExceededException" +// * MaxNumberOfRetentionConfigurationsExceededException // Failed to add the retention configuration because a retention configuration // with that name already exists. // @@ -7194,14 +7194,14 @@ func (c *ConfigService) SelectResourceConfigRequest(input *SelectResourceConfigI // See the AWS API reference guide for AWS Config's // API operation SelectResourceConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidExpressionException "InvalidExpressionException" +// Returned Error Types: +// * InvalidExpressionException // The syntax of the query is incorrect. // -// * ErrCodeInvalidLimitException "InvalidLimitException" +// * InvalidLimitException // The specified limit is outside the allowable range. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified next token is invalid. Specify the nextToken string that was // returned in the previous response to get the next page of results. // @@ -7310,12 +7310,12 @@ func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRule // See the AWS API reference guide for AWS Config's // API operation StartConfigRulesEvaluation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigRuleException "NoSuchConfigRuleException" +// Returned Error Types: +// * NoSuchConfigRuleException // One or more AWS Config rules in the request are invalid. Verify that the // rule names are correct and try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // For StartConfigRulesEvaluation API, this exception is thrown if an evaluation // is in progress or if you call the StartConfigRulesEvaluation API more than // once per minute. @@ -7323,7 +7323,7 @@ func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRule // For PutConfigurationAggregator API, this exception is thrown if the number // of accounts and aggregators exceeds the limit. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // You see this exception in the following cases: // // * For DeleteConfigRule, AWS Config is deleting this rule. Try your request @@ -7350,7 +7350,7 @@ func (c *ConfigService) StartConfigRulesEvaluationRequest(input *StartConfigRule // * For DeleteConformancePack, a conformance pack creation, update, and // deletion is in progress. Try your request again later. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // @@ -7434,11 +7434,11 @@ func (c *ConfigService) StartConfigurationRecorderRequest(input *StartConfigurat // See the AWS API reference guide for AWS Config's // API operation StartConfigurationRecorder for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" +// Returned Error Types: +// * NoSuchConfigurationRecorderException // You have specified a configuration recorder that does not exist. // -// * ErrCodeNoAvailableDeliveryChannelException "NoAvailableDeliveryChannelException" +// * NoAvailableDeliveryChannelException // There is no delivery channel available to record configurations. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartConfigurationRecorder @@ -7522,12 +7522,12 @@ func (c *ConfigService) StartRemediationExecutionRequest(input *StartRemediation // See the AWS API reference guide for AWS Config's // API operation StartRemediationExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more of the specified parameters are invalid. Verify that your parameters // are valid and try again. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // Indicates one of the following errors: // // * For PutConfigRule, the rule cannot be created because the IAM role assigned @@ -7544,7 +7544,7 @@ func (c *ConfigService) StartRemediationExecutionRequest(input *StartRemediation // pack cannot be created because you do not have permissions: To call IAM // GetRole action or create a service linked role. To read Amazon S3 bucket. // -// * ErrCodeNoSuchRemediationConfigurationException "NoSuchRemediationConfigurationException" +// * NoSuchRemediationConfigurationException // You specified an AWS Config rule without a remediation configuration. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StartRemediationExecution @@ -7624,8 +7624,8 @@ func (c *ConfigService) StopConfigurationRecorderRequest(input *StopConfiguratio // See the AWS API reference guide for AWS Config's // API operation StopConfigurationRecorder for usage and error information. // -// Returned Error Codes: -// * ErrCodeNoSuchConfigurationRecorderException "NoSuchConfigurationRecorderException" +// Returned Error Types: +// * NoSuchConfigurationRecorderException // You have specified a configuration recorder that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/StopConfigurationRecorder @@ -7707,14 +7707,14 @@ func (c *ConfigService) TagResourceRequest(input *TagResourceInput) (req *reques // See the AWS API reference guide for AWS Config's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // You have specified a resource that does not exist. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit of the number of tags you can use. You have more // than 50 tags. // @@ -7794,11 +7794,11 @@ func (c *ConfigService) UntagResourceRequest(input *UntagResourceInput) (req *re // See the AWS API reference guide for AWS Config's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The requested action is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // You have specified a resource that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/config-2014-11-12/UntagResource @@ -10416,6 +10416,57 @@ func (s *ConformancePackStatusDetail) SetStackArn(v string) *ConformancePackStat return s } +// You have specified a template that is not valid or supported. +type ConformancePackTemplateValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConformancePackTemplateValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConformancePackTemplateValidationException) GoString() string { + return s.String() +} + +func newErrorConformancePackTemplateValidationException(v protocol.ResponseMetadata) error { + return &ConformancePackTemplateValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConformancePackTemplateValidationException) Code() string { + return "ConformancePackTemplateValidationException" +} + +// Message returns the exception's message. +func (s ConformancePackTemplateValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConformancePackTemplateValidationException) OrigErr() error { + return nil +} + +func (s ConformancePackTemplateValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConformancePackTemplateValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConformancePackTemplateValidationException) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteAggregationAuthorizationInput struct { _ struct{} `type:"structure"` @@ -15382,310 +15433,1150 @@ func (s *GroupedResourceCount) SetResourceCount(v int64) *GroupedResourceCount { return s } -type ListAggregateDiscoveredResourcesInput struct { - _ struct{} `type:"structure"` - - // The name of the configuration aggregator. - // - // ConfigurationAggregatorName is a required field - ConfigurationAggregatorName *string `min:"1" type:"string" required:"true"` - - // Filters the results based on the ResourceFilters object. - Filters *ResourceFilters `type:"structure"` - - // The maximum number of resource identifiers returned on each page. The default - // is 100. You cannot specify a number greater than 100. If you specify 0, AWS - // Config uses the default. - Limit *int64 `type:"integer"` - - // The nextToken string returned on a previous page that you use to get the - // next page of results in a paginated response. - NextToken *string `type:"string"` - - // The type of resources that you want AWS Config to list in the response. - // - // ResourceType is a required field - ResourceType *string `type:"string" required:"true" enum:"ResourceType"` +// Your Amazon S3 bucket policy does not permit AWS Config to write to it. +type InsufficientDeliveryPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListAggregateDiscoveredResourcesInput) String() string { +func (s InsufficientDeliveryPolicyException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAggregateDiscoveredResourcesInput) GoString() string { +func (s InsufficientDeliveryPolicyException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListAggregateDiscoveredResourcesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListAggregateDiscoveredResourcesInput"} - if s.ConfigurationAggregatorName == nil { - invalidParams.Add(request.NewErrParamRequired("ConfigurationAggregatorName")) - } - if s.ConfigurationAggregatorName != nil && len(*s.ConfigurationAggregatorName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ConfigurationAggregatorName", 1)) - } - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - if s.Filters != nil { - if err := s.Filters.Validate(); err != nil { - invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) - } - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInsufficientDeliveryPolicyException(v protocol.ResponseMetadata) error { + return &InsufficientDeliveryPolicyException{ + respMetadata: v, } - return nil } -// SetConfigurationAggregatorName sets the ConfigurationAggregatorName field's value. -func (s *ListAggregateDiscoveredResourcesInput) SetConfigurationAggregatorName(v string) *ListAggregateDiscoveredResourcesInput { - s.ConfigurationAggregatorName = &v - return s +// Code returns the exception type name. +func (s InsufficientDeliveryPolicyException) Code() string { + return "InsufficientDeliveryPolicyException" } -// SetFilters sets the Filters field's value. -func (s *ListAggregateDiscoveredResourcesInput) SetFilters(v *ResourceFilters) *ListAggregateDiscoveredResourcesInput { - s.Filters = v - return s +// Message returns the exception's message. +func (s InsufficientDeliveryPolicyException) Message() string { + return "" } -// SetLimit sets the Limit field's value. -func (s *ListAggregateDiscoveredResourcesInput) SetLimit(v int64) *ListAggregateDiscoveredResourcesInput { - s.Limit = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientDeliveryPolicyException) OrigErr() error { + return nil } -// SetNextToken sets the NextToken field's value. -func (s *ListAggregateDiscoveredResourcesInput) SetNextToken(v string) *ListAggregateDiscoveredResourcesInput { - s.NextToken = &v - return s +func (s InsufficientDeliveryPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetResourceType sets the ResourceType field's value. -func (s *ListAggregateDiscoveredResourcesInput) SetResourceType(v string) *ListAggregateDiscoveredResourcesInput { - s.ResourceType = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientDeliveryPolicyException) StatusCode() int { + return s.respMetadata.StatusCode } -type ListAggregateDiscoveredResourcesOutput struct { - _ struct{} `type:"structure"` - - // The nextToken string returned on a previous page that you use to get the - // next page of results in a paginated response. - NextToken *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InsufficientDeliveryPolicyException) RequestID() string { + return s.respMetadata.RequestID +} - // Returns a list of ResourceIdentifiers objects. - ResourceIdentifiers []*AggregateResourceIdentifier `type:"list"` +// Indicates one of the following errors: +// +// * For PutConfigRule, the rule cannot be created because the IAM role assigned +// to AWS Config lacks permissions to perform the config:Put* action. +// +// * For PutConfigRule, the AWS Lambda function cannot be invoked. Check +// the function ARN, and check the function's permissions. +// +// * For PutOrganizationConfigRule, organization config rule cannot be created +// because you do not have permissions to call IAM GetRole action or create +// a service linked role. +// +// * For PutConformancePack and PutOrganizationConformancePack, a conformance +// pack cannot be created because you do not have permissions: To call IAM +// GetRole action or create a service linked role. To read Amazon S3 bucket. +type InsufficientPermissionsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListAggregateDiscoveredResourcesOutput) String() string { +func (s InsufficientPermissionsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListAggregateDiscoveredResourcesOutput) GoString() string { +func (s InsufficientPermissionsException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListAggregateDiscoveredResourcesOutput) SetNextToken(v string) *ListAggregateDiscoveredResourcesOutput { - s.NextToken = &v - return s +func newErrorInsufficientPermissionsException(v protocol.ResponseMetadata) error { + return &InsufficientPermissionsException{ + respMetadata: v, + } } -// SetResourceIdentifiers sets the ResourceIdentifiers field's value. -func (s *ListAggregateDiscoveredResourcesOutput) SetResourceIdentifiers(v []*AggregateResourceIdentifier) *ListAggregateDiscoveredResourcesOutput { - s.ResourceIdentifiers = v - return s +// Code returns the exception type name. +func (s InsufficientPermissionsException) Code() string { + return "InsufficientPermissionsException" } -type ListDiscoveredResourcesInput struct { - _ struct{} `type:"structure"` - - // Specifies whether AWS Config includes deleted resources in the results. By - // default, deleted resources are not included. - IncludeDeletedResources *bool `locationName:"includeDeletedResources" type:"boolean"` +// Message returns the exception's message. +func (s InsufficientPermissionsException) Message() string { + return "" +} - // The maximum number of resource identifiers returned on each page. The default - // is 100. You cannot specify a number greater than 100. If you specify 0, AWS - // Config uses the default. - Limit *int64 `locationName:"limit" type:"integer"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientPermissionsException) OrigErr() error { + return nil +} - // The nextToken string returned on a previous page that you use to get the - // next page of results in a paginated response. - NextToken *string `locationName:"nextToken" type:"string"` +func (s InsufficientPermissionsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The IDs of only those resources that you want AWS Config to list in the response. - // If you do not specify this parameter, AWS Config lists all resources of the - // specified type that it has discovered. - ResourceIds []*string `locationName:"resourceIds" type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientPermissionsException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The custom name of only those resources that you want AWS Config to list - // in the response. If you do not specify this parameter, AWS Config lists all - // resources of the specified type that it has discovered. - ResourceName *string `locationName:"resourceName" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InsufficientPermissionsException) RequestID() string { + return s.respMetadata.RequestID +} - // The type of resources that you want AWS Config to list in the response. - // - // ResourceType is a required field - ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` +// You have provided a configuration recorder name that is not valid. +type InvalidConfigurationRecorderNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListDiscoveredResourcesInput) String() string { +func (s InvalidConfigurationRecorderNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDiscoveredResourcesInput) GoString() string { +func (s InvalidConfigurationRecorderNameException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListDiscoveredResourcesInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListDiscoveredResourcesInput"} - if s.ResourceType == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceType")) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInvalidConfigurationRecorderNameException(v protocol.ResponseMetadata) error { + return &InvalidConfigurationRecorderNameException{ + respMetadata: v, } - return nil } -// SetIncludeDeletedResources sets the IncludeDeletedResources field's value. -func (s *ListDiscoveredResourcesInput) SetIncludeDeletedResources(v bool) *ListDiscoveredResourcesInput { - s.IncludeDeletedResources = &v - return s +// Code returns the exception type name. +func (s InvalidConfigurationRecorderNameException) Code() string { + return "InvalidConfigurationRecorderNameException" } -// SetLimit sets the Limit field's value. -func (s *ListDiscoveredResourcesInput) SetLimit(v int64) *ListDiscoveredResourcesInput { - s.Limit = &v - return s +// Message returns the exception's message. +func (s InvalidConfigurationRecorderNameException) Message() string { + return "" } -// SetNextToken sets the NextToken field's value. -func (s *ListDiscoveredResourcesInput) SetNextToken(v string) *ListDiscoveredResourcesInput { - s.NextToken = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidConfigurationRecorderNameException) OrigErr() error { + return nil } -// SetResourceIds sets the ResourceIds field's value. -func (s *ListDiscoveredResourcesInput) SetResourceIds(v []*string) *ListDiscoveredResourcesInput { - s.ResourceIds = v - return s +func (s InvalidConfigurationRecorderNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetResourceName sets the ResourceName field's value. -func (s *ListDiscoveredResourcesInput) SetResourceName(v string) *ListDiscoveredResourcesInput { - s.ResourceName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidConfigurationRecorderNameException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetResourceType sets the ResourceType field's value. -func (s *ListDiscoveredResourcesInput) SetResourceType(v string) *ListDiscoveredResourcesInput { - s.ResourceType = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidConfigurationRecorderNameException) RequestID() string { + return s.respMetadata.RequestID } -type ListDiscoveredResourcesOutput struct { - _ struct{} `type:"structure"` - - // The string that you use in a subsequent request to get the next page of results - // in a paginated response. - NextToken *string `locationName:"nextToken" type:"string"` - - // The details that identify a resource that is discovered by AWS Config, including - // the resource type, ID, and (if available) the custom resource name. - ResourceIdentifiers []*ResourceIdentifier `locationName:"resourceIdentifiers" type:"list"` +// The specified delivery channel name is not valid. +type InvalidDeliveryChannelNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListDiscoveredResourcesOutput) String() string { +func (s InvalidDeliveryChannelNameException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListDiscoveredResourcesOutput) GoString() string { +func (s InvalidDeliveryChannelNameException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListDiscoveredResourcesOutput) SetNextToken(v string) *ListDiscoveredResourcesOutput { - s.NextToken = &v - return s +func newErrorInvalidDeliveryChannelNameException(v protocol.ResponseMetadata) error { + return &InvalidDeliveryChannelNameException{ + respMetadata: v, + } } -// SetResourceIdentifiers sets the ResourceIdentifiers field's value. -func (s *ListDiscoveredResourcesOutput) SetResourceIdentifiers(v []*ResourceIdentifier) *ListDiscoveredResourcesOutput { - s.ResourceIdentifiers = v - return s +// Code returns the exception type name. +func (s InvalidDeliveryChannelNameException) Code() string { + return "InvalidDeliveryChannelNameException" } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidDeliveryChannelNameException) Message() string { + return "" +} - // The maximum number of tags returned on each page. The limit maximum is 50. - // You cannot specify a number greater than 50. If you specify 0, AWS Config - // uses the default. - Limit *int64 `type:"integer"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeliveryChannelNameException) OrigErr() error { + return nil +} - // The nextToken string returned on a previous page that you use to get the - // next page of results in a paginated response. - NextToken *string `type:"string"` +func (s InvalidDeliveryChannelNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The Amazon Resource Name (ARN) that identifies the resource for which to - // list the tags. Currently, the supported resources are ConfigRule, ConfigurationAggregator - // and AggregatorAuthorization. - // - // ResourceArn is a required field - ResourceArn *string `min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeliveryChannelNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeliveryChannelNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The syntax of the query is incorrect. +type InvalidExpressionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsForResourceInput) String() string { +func (s InvalidExpressionException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceInput) GoString() string { +func (s InvalidExpressionException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) +func newErrorInvalidExpressionException(v protocol.ResponseMetadata) error { + return &InvalidExpressionException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } +// Code returns the exception type name. +func (s InvalidExpressionException) Code() string { + return "InvalidExpressionException" +} + +// Message returns the exception's message. +func (s InvalidExpressionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidExpressionException) OrigErr() error { return nil } -// SetLimit sets the Limit field's value. -func (s *ListTagsForResourceInput) SetLimit(v int64) *ListTagsForResourceInput { - s.Limit = &v - return s +func (s InvalidExpressionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { - s.NextToken = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidExpressionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidExpressionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified limit is outside the allowable range. +type InvalidLimitException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidLimitException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLimitException) GoString() string { + return s.String() +} + +func newErrorInvalidLimitException(v protocol.ResponseMetadata) error { + return &InvalidLimitException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLimitException) Code() string { + return "InvalidLimitException" +} + +// Message returns the exception's message. +func (s InvalidLimitException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLimitException) OrigErr() error { + return nil +} + +func (s InvalidLimitException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLimitException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLimitException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified next token is invalid. Specify the nextToken string that was +// returned in the previous response to get the next page of results. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more of the specified parameters are invalid. Verify that your parameters +// are valid and try again. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Config throws an exception if the recording group does not contain a +// valid list of resource types. Invalid values might also be incorrectly formatted. +type InvalidRecordingGroupException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidRecordingGroupException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRecordingGroupException) GoString() string { + return s.String() +} + +func newErrorInvalidRecordingGroupException(v protocol.ResponseMetadata) error { + return &InvalidRecordingGroupException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRecordingGroupException) Code() string { + return "InvalidRecordingGroupException" +} + +// Message returns the exception's message. +func (s InvalidRecordingGroupException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRecordingGroupException) OrigErr() error { + return nil +} + +func (s InvalidRecordingGroupException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRecordingGroupException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRecordingGroupException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified ResultToken is invalid. +type InvalidResultTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidResultTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResultTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidResultTokenException(v protocol.ResponseMetadata) error { + return &InvalidResultTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResultTokenException) Code() string { + return "InvalidResultTokenException" +} + +// Message returns the exception's message. +func (s InvalidResultTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResultTokenException) OrigErr() error { + return nil +} + +func (s InvalidResultTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResultTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResultTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have provided a null or empty role ARN. +type InvalidRoleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidRoleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRoleException) GoString() string { + return s.String() +} + +func newErrorInvalidRoleException(v protocol.ResponseMetadata) error { + return &InvalidRoleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRoleException) Code() string { + return "InvalidRoleException" +} + +// Message returns the exception's message. +func (s InvalidRoleException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRoleException) OrigErr() error { + return nil +} + +func (s InvalidRoleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRoleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRoleException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified Amazon S3 key prefix is not valid. +type InvalidS3KeyPrefixException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidS3KeyPrefixException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidS3KeyPrefixException) GoString() string { + return s.String() +} + +func newErrorInvalidS3KeyPrefixException(v protocol.ResponseMetadata) error { + return &InvalidS3KeyPrefixException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidS3KeyPrefixException) Code() string { + return "InvalidS3KeyPrefixException" +} + +// Message returns the exception's message. +func (s InvalidS3KeyPrefixException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidS3KeyPrefixException) OrigErr() error { + return nil +} + +func (s InvalidS3KeyPrefixException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidS3KeyPrefixException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidS3KeyPrefixException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified Amazon SNS topic does not exist. +type InvalidSNSTopicARNException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidSNSTopicARNException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSNSTopicARNException) GoString() string { + return s.String() +} + +func newErrorInvalidSNSTopicARNException(v protocol.ResponseMetadata) error { + return &InvalidSNSTopicARNException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSNSTopicARNException) Code() string { + return "InvalidSNSTopicARNException" +} + +// Message returns the exception's message. +func (s InvalidSNSTopicARNException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSNSTopicARNException) OrigErr() error { + return nil +} + +func (s InvalidSNSTopicARNException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSNSTopicARNException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSNSTopicARNException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified time range is not valid. The earlier time is not chronologically +// before the later time. +type InvalidTimeRangeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidTimeRangeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTimeRangeException) GoString() string { + return s.String() +} + +func newErrorInvalidTimeRangeException(v protocol.ResponseMetadata) error { + return &InvalidTimeRangeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTimeRangeException) Code() string { + return "InvalidTimeRangeException" +} + +// Message returns the exception's message. +func (s InvalidTimeRangeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTimeRangeException) OrigErr() error { + return nil +} + +func (s InvalidTimeRangeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTimeRangeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTimeRangeException) RequestID() string { + return s.respMetadata.RequestID +} + +// You cannot delete the delivery channel you specified because the configuration +// recorder is running. +type LastDeliveryChannelDeleteFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LastDeliveryChannelDeleteFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LastDeliveryChannelDeleteFailedException) GoString() string { + return s.String() +} + +func newErrorLastDeliveryChannelDeleteFailedException(v protocol.ResponseMetadata) error { + return &LastDeliveryChannelDeleteFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LastDeliveryChannelDeleteFailedException) Code() string { + return "LastDeliveryChannelDeleteFailedException" +} + +// Message returns the exception's message. +func (s LastDeliveryChannelDeleteFailedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LastDeliveryChannelDeleteFailedException) OrigErr() error { + return nil +} + +func (s LastDeliveryChannelDeleteFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LastDeliveryChannelDeleteFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LastDeliveryChannelDeleteFailedException) RequestID() string { + return s.respMetadata.RequestID +} + +// For StartConfigRulesEvaluation API, this exception is thrown if an evaluation +// is in progress or if you call the StartConfigRulesEvaluation API more than +// once per minute. +// +// For PutConfigurationAggregator API, this exception is thrown if the number +// of accounts and aggregators exceeds the limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +type ListAggregateDiscoveredResourcesInput struct { + _ struct{} `type:"structure"` + + // The name of the configuration aggregator. + // + // ConfigurationAggregatorName is a required field + ConfigurationAggregatorName *string `min:"1" type:"string" required:"true"` + + // Filters the results based on the ResourceFilters object. + Filters *ResourceFilters `type:"structure"` + + // The maximum number of resource identifiers returned on each page. The default + // is 100. You cannot specify a number greater than 100. If you specify 0, AWS + // Config uses the default. + Limit *int64 `type:"integer"` + + // The nextToken string returned on a previous page that you use to get the + // next page of results in a paginated response. + NextToken *string `type:"string"` + + // The type of resources that you want AWS Config to list in the response. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true" enum:"ResourceType"` +} + +// String returns the string representation +func (s ListAggregateDiscoveredResourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAggregateDiscoveredResourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListAggregateDiscoveredResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListAggregateDiscoveredResourcesInput"} + if s.ConfigurationAggregatorName == nil { + invalidParams.Add(request.NewErrParamRequired("ConfigurationAggregatorName")) + } + if s.ConfigurationAggregatorName != nil && len(*s.ConfigurationAggregatorName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ConfigurationAggregatorName", 1)) + } + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + if s.Filters != nil { + if err := s.Filters.Validate(); err != nil { + invalidParams.AddNested("Filters", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetConfigurationAggregatorName sets the ConfigurationAggregatorName field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetConfigurationAggregatorName(v string) *ListAggregateDiscoveredResourcesInput { + s.ConfigurationAggregatorName = &v + return s +} + +// SetFilters sets the Filters field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetFilters(v *ResourceFilters) *ListAggregateDiscoveredResourcesInput { + s.Filters = v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetLimit(v int64) *ListAggregateDiscoveredResourcesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetNextToken(v string) *ListAggregateDiscoveredResourcesInput { + s.NextToken = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListAggregateDiscoveredResourcesInput) SetResourceType(v string) *ListAggregateDiscoveredResourcesInput { + s.ResourceType = &v + return s +} + +type ListAggregateDiscoveredResourcesOutput struct { + _ struct{} `type:"structure"` + + // The nextToken string returned on a previous page that you use to get the + // next page of results in a paginated response. + NextToken *string `type:"string"` + + // Returns a list of ResourceIdentifiers objects. + ResourceIdentifiers []*AggregateResourceIdentifier `type:"list"` +} + +// String returns the string representation +func (s ListAggregateDiscoveredResourcesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListAggregateDiscoveredResourcesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListAggregateDiscoveredResourcesOutput) SetNextToken(v string) *ListAggregateDiscoveredResourcesOutput { + s.NextToken = &v + return s +} + +// SetResourceIdentifiers sets the ResourceIdentifiers field's value. +func (s *ListAggregateDiscoveredResourcesOutput) SetResourceIdentifiers(v []*AggregateResourceIdentifier) *ListAggregateDiscoveredResourcesOutput { + s.ResourceIdentifiers = v + return s +} + +type ListDiscoveredResourcesInput struct { + _ struct{} `type:"structure"` + + // Specifies whether AWS Config includes deleted resources in the results. By + // default, deleted resources are not included. + IncludeDeletedResources *bool `locationName:"includeDeletedResources" type:"boolean"` + + // The maximum number of resource identifiers returned on each page. The default + // is 100. You cannot specify a number greater than 100. If you specify 0, AWS + // Config uses the default. + Limit *int64 `locationName:"limit" type:"integer"` + + // The nextToken string returned on a previous page that you use to get the + // next page of results in a paginated response. + NextToken *string `locationName:"nextToken" type:"string"` + + // The IDs of only those resources that you want AWS Config to list in the response. + // If you do not specify this parameter, AWS Config lists all resources of the + // specified type that it has discovered. + ResourceIds []*string `locationName:"resourceIds" type:"list"` + + // The custom name of only those resources that you want AWS Config to list + // in the response. If you do not specify this parameter, AWS Config lists all + // resources of the specified type that it has discovered. + ResourceName *string `locationName:"resourceName" type:"string"` + + // The type of resources that you want AWS Config to list in the response. + // + // ResourceType is a required field + ResourceType *string `locationName:"resourceType" type:"string" required:"true" enum:"ResourceType"` +} + +// String returns the string representation +func (s ListDiscoveredResourcesInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDiscoveredResourcesInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListDiscoveredResourcesInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListDiscoveredResourcesInput"} + if s.ResourceType == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetIncludeDeletedResources sets the IncludeDeletedResources field's value. +func (s *ListDiscoveredResourcesInput) SetIncludeDeletedResources(v bool) *ListDiscoveredResourcesInput { + s.IncludeDeletedResources = &v + return s +} + +// SetLimit sets the Limit field's value. +func (s *ListDiscoveredResourcesInput) SetLimit(v int64) *ListDiscoveredResourcesInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDiscoveredResourcesInput) SetNextToken(v string) *ListDiscoveredResourcesInput { + s.NextToken = &v + return s +} + +// SetResourceIds sets the ResourceIds field's value. +func (s *ListDiscoveredResourcesInput) SetResourceIds(v []*string) *ListDiscoveredResourcesInput { + s.ResourceIds = v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ListDiscoveredResourcesInput) SetResourceName(v string) *ListDiscoveredResourcesInput { + s.ResourceName = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *ListDiscoveredResourcesInput) SetResourceType(v string) *ListDiscoveredResourcesInput { + s.ResourceType = &v + return s +} + +type ListDiscoveredResourcesOutput struct { + _ struct{} `type:"structure"` + + // The string that you use in a subsequent request to get the next page of results + // in a paginated response. + NextToken *string `locationName:"nextToken" type:"string"` + + // The details that identify a resource that is discovered by AWS Config, including + // the resource type, ID, and (if available) the custom resource name. + ResourceIdentifiers []*ResourceIdentifier `locationName:"resourceIdentifiers" type:"list"` +} + +// String returns the string representation +func (s ListDiscoveredResourcesOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListDiscoveredResourcesOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListDiscoveredResourcesOutput) SetNextToken(v string) *ListDiscoveredResourcesOutput { + s.NextToken = &v + return s +} + +// SetResourceIdentifiers sets the ResourceIdentifiers field's value. +func (s *ListDiscoveredResourcesOutput) SetResourceIdentifiers(v []*ResourceIdentifier) *ListDiscoveredResourcesOutput { + s.ResourceIdentifiers = v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The maximum number of tags returned on each page. The limit maximum is 50. + // You cannot specify a number greater than 50. If you specify 0, AWS Config + // uses the default. + Limit *int64 `type:"integer"` + + // The nextToken string returned on a previous page that you use to get the + // next page of results in a paginated response. + NextToken *string `type:"string"` + + // The Amazon Resource Name (ARN) that identifies the resource for which to + // list the tags. Currently, the supported resources are ConfigRule, ConfigurationAggregator + // and AggregatorAuthorization. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListTagsForResourceInput) SetLimit(v int64) *ListTagsForResourceInput { + s.Limit = &v + return s +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceInput) SetNextToken(v string) *ListTagsForResourceInput { + s.NextToken = &v + return s } // SetResourceArn sets the ResourceArn field's value. @@ -15694,141 +16585,1435 @@ func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResource return s } -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // The nextToken string returned on a previous page that you use to get the + // next page of results in a paginated response. + NextToken *string `type:"string"` + + // The tags for the resource. + Tags []*Tag `min:"1" type:"list"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { + s.Tags = v + return s +} + +// You have reached the limit (100,000) of active custom resource types in your +// account. Delete unused resources using DeleteResourceConfig. +type MaxActiveResourcesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxActiveResourcesExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxActiveResourcesExceededException) GoString() string { + return s.String() +} + +func newErrorMaxActiveResourcesExceededException(v protocol.ResponseMetadata) error { + return &MaxActiveResourcesExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxActiveResourcesExceededException) Code() string { + return "MaxActiveResourcesExceededException" +} + +// Message returns the exception's message. +func (s MaxActiveResourcesExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxActiveResourcesExceededException) OrigErr() error { + return nil +} + +func (s MaxActiveResourcesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxActiveResourcesExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxActiveResourcesExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Failed to add the AWS Config rule because the account already contains the +// maximum number of 150 rules. Consider deleting any deactivated rules before +// you add new rules. +type MaxNumberOfConfigRulesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxNumberOfConfigRulesExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxNumberOfConfigRulesExceededException) GoString() string { + return s.String() +} + +func newErrorMaxNumberOfConfigRulesExceededException(v protocol.ResponseMetadata) error { + return &MaxNumberOfConfigRulesExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxNumberOfConfigRulesExceededException) Code() string { + return "MaxNumberOfConfigRulesExceededException" +} + +// Message returns the exception's message. +func (s MaxNumberOfConfigRulesExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxNumberOfConfigRulesExceededException) OrigErr() error { + return nil +} + +func (s MaxNumberOfConfigRulesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxNumberOfConfigRulesExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxNumberOfConfigRulesExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have reached the limit of the number of recorders you can create. +type MaxNumberOfConfigurationRecordersExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxNumberOfConfigurationRecordersExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxNumberOfConfigurationRecordersExceededException) GoString() string { + return s.String() +} + +func newErrorMaxNumberOfConfigurationRecordersExceededException(v protocol.ResponseMetadata) error { + return &MaxNumberOfConfigurationRecordersExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxNumberOfConfigurationRecordersExceededException) Code() string { + return "MaxNumberOfConfigurationRecordersExceededException" +} + +// Message returns the exception's message. +func (s MaxNumberOfConfigurationRecordersExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxNumberOfConfigurationRecordersExceededException) OrigErr() error { + return nil +} + +func (s MaxNumberOfConfigurationRecordersExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxNumberOfConfigurationRecordersExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxNumberOfConfigurationRecordersExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have reached the limit (6) of the number of conformance packs in an account +// (6 conformance pack with 25 AWS Config rules per pack). +type MaxNumberOfConformancePacksExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxNumberOfConformancePacksExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxNumberOfConformancePacksExceededException) GoString() string { + return s.String() +} + +func newErrorMaxNumberOfConformancePacksExceededException(v protocol.ResponseMetadata) error { + return &MaxNumberOfConformancePacksExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxNumberOfConformancePacksExceededException) Code() string { + return "MaxNumberOfConformancePacksExceededException" +} + +// Message returns the exception's message. +func (s MaxNumberOfConformancePacksExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxNumberOfConformancePacksExceededException) OrigErr() error { + return nil +} + +func (s MaxNumberOfConformancePacksExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxNumberOfConformancePacksExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxNumberOfConformancePacksExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have reached the limit of the number of delivery channels you can create. +type MaxNumberOfDeliveryChannelsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxNumberOfDeliveryChannelsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxNumberOfDeliveryChannelsExceededException) GoString() string { + return s.String() +} + +func newErrorMaxNumberOfDeliveryChannelsExceededException(v protocol.ResponseMetadata) error { + return &MaxNumberOfDeliveryChannelsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxNumberOfDeliveryChannelsExceededException) Code() string { + return "MaxNumberOfDeliveryChannelsExceededException" +} + +// Message returns the exception's message. +func (s MaxNumberOfDeliveryChannelsExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxNumberOfDeliveryChannelsExceededException) OrigErr() error { + return nil +} + +func (s MaxNumberOfDeliveryChannelsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxNumberOfDeliveryChannelsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxNumberOfDeliveryChannelsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have reached the limit of the number of organization config rules you +// can create. +type MaxNumberOfOrganizationConfigRulesExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxNumberOfOrganizationConfigRulesExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxNumberOfOrganizationConfigRulesExceededException) GoString() string { + return s.String() +} + +func newErrorMaxNumberOfOrganizationConfigRulesExceededException(v protocol.ResponseMetadata) error { + return &MaxNumberOfOrganizationConfigRulesExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxNumberOfOrganizationConfigRulesExceededException) Code() string { + return "MaxNumberOfOrganizationConfigRulesExceededException" +} + +// Message returns the exception's message. +func (s MaxNumberOfOrganizationConfigRulesExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxNumberOfOrganizationConfigRulesExceededException) OrigErr() error { + return nil +} + +func (s MaxNumberOfOrganizationConfigRulesExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxNumberOfOrganizationConfigRulesExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxNumberOfOrganizationConfigRulesExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have reached the limit (6) of the number of organization conformance +// packs in an account (6 conformance pack with 25 AWS Config rules per pack +// per account). +type MaxNumberOfOrganizationConformancePacksExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxNumberOfOrganizationConformancePacksExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxNumberOfOrganizationConformancePacksExceededException) GoString() string { + return s.String() +} + +func newErrorMaxNumberOfOrganizationConformancePacksExceededException(v protocol.ResponseMetadata) error { + return &MaxNumberOfOrganizationConformancePacksExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxNumberOfOrganizationConformancePacksExceededException) Code() string { + return "MaxNumberOfOrganizationConformancePacksExceededException" +} + +// Message returns the exception's message. +func (s MaxNumberOfOrganizationConformancePacksExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxNumberOfOrganizationConformancePacksExceededException) OrigErr() error { + return nil +} + +func (s MaxNumberOfOrganizationConformancePacksExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxNumberOfOrganizationConformancePacksExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxNumberOfOrganizationConformancePacksExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Failed to add the retention configuration because a retention configuration +// with that name already exists. +type MaxNumberOfRetentionConfigurationsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MaxNumberOfRetentionConfigurationsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxNumberOfRetentionConfigurationsExceededException) GoString() string { + return s.String() +} + +func newErrorMaxNumberOfRetentionConfigurationsExceededException(v protocol.ResponseMetadata) error { + return &MaxNumberOfRetentionConfigurationsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxNumberOfRetentionConfigurationsExceededException) Code() string { + return "MaxNumberOfRetentionConfigurationsExceededException" +} + +// Message returns the exception's message. +func (s MaxNumberOfRetentionConfigurationsExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxNumberOfRetentionConfigurationsExceededException) OrigErr() error { + return nil +} + +func (s MaxNumberOfRetentionConfigurationsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxNumberOfRetentionConfigurationsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxNumberOfRetentionConfigurationsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Organization config rule creation or deletion status in each member account. +// This includes the name of the rule, the status, error code and error message +// when the rule creation or deletion failed. +type MemberAccountStatus struct { + _ struct{} `type:"structure"` + + // The 12-digit account ID of a member account. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` + + // The name of config rule deployed in the member account. + // + // ConfigRuleName is a required field + ConfigRuleName *string `min:"1" type:"string" required:"true"` + + // An error code that is returned when config rule creation or deletion failed + // in the member account. + ErrorCode *string `type:"string"` + + // An error message indicating that config rule account creation or deletion + // has failed due to an error in the member account. + ErrorMessage *string `type:"string"` + + // The timestamp of the last status update. + LastUpdateTime *time.Time `type:"timestamp"` + + // Indicates deployment status for config rule in the member account. When master + // account calls PutOrganizationConfigRule action for the first time, config + // rule status is created in the member account. When master account calls PutOrganizationConfigRule + // action for the second time, config rule status is updated in the member account. + // Config rule status is deleted when the master account deletes OrganizationConfigRule + // and disables service access for config-multiaccountsetup.amazonaws.com. + // + // AWS Config sets the state of the rule to: + // + // * CREATE_SUCCESSFUL when config rule has been created in the member account. + // + // * CREATE_IN_PROGRESS when config rule is being created in the member account. + // + // * CREATE_FAILED when config rule creation has failed in the member account. + // + // * DELETE_FAILED when config rule deletion has failed in the member account. + // + // * DELETE_IN_PROGRESS when config rule is being deleted in the member account. + // + // * DELETE_SUCCESSFUL when config rule has been deleted in the member account. + // + // * UPDATE_SUCCESSFUL when config rule has been updated in the member account. + // + // * UPDATE_IN_PROGRESS when config rule is being updated in the member account. + // + // * UPDATE_FAILED when config rule deletion has failed in the member account. + // + // MemberAccountRuleStatus is a required field + MemberAccountRuleStatus *string `type:"string" required:"true" enum:"MemberAccountRuleStatus"` +} + +// String returns the string representation +func (s MemberAccountStatus) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MemberAccountStatus) GoString() string { + return s.String() +} + +// SetAccountId sets the AccountId field's value. +func (s *MemberAccountStatus) SetAccountId(v string) *MemberAccountStatus { + s.AccountId = &v + return s +} + +// SetConfigRuleName sets the ConfigRuleName field's value. +func (s *MemberAccountStatus) SetConfigRuleName(v string) *MemberAccountStatus { + s.ConfigRuleName = &v + return s +} + +// SetErrorCode sets the ErrorCode field's value. +func (s *MemberAccountStatus) SetErrorCode(v string) *MemberAccountStatus { + s.ErrorCode = &v + return s +} + +// SetErrorMessage sets the ErrorMessage field's value. +func (s *MemberAccountStatus) SetErrorMessage(v string) *MemberAccountStatus { + s.ErrorMessage = &v + return s +} + +// SetLastUpdateTime sets the LastUpdateTime field's value. +func (s *MemberAccountStatus) SetLastUpdateTime(v time.Time) *MemberAccountStatus { + s.LastUpdateTime = &v + return s +} + +// SetMemberAccountRuleStatus sets the MemberAccountRuleStatus field's value. +func (s *MemberAccountStatus) SetMemberAccountRuleStatus(v string) *MemberAccountStatus { + s.MemberAccountRuleStatus = &v + return s +} + +// There are no configuration recorders available to provide the role needed +// to describe your resources. Create a configuration recorder. +type NoAvailableConfigurationRecorderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoAvailableConfigurationRecorderException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoAvailableConfigurationRecorderException) GoString() string { + return s.String() +} + +func newErrorNoAvailableConfigurationRecorderException(v protocol.ResponseMetadata) error { + return &NoAvailableConfigurationRecorderException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoAvailableConfigurationRecorderException) Code() string { + return "NoAvailableConfigurationRecorderException" +} + +// Message returns the exception's message. +func (s NoAvailableConfigurationRecorderException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoAvailableConfigurationRecorderException) OrigErr() error { + return nil +} + +func (s NoAvailableConfigurationRecorderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoAvailableConfigurationRecorderException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoAvailableConfigurationRecorderException) RequestID() string { + return s.respMetadata.RequestID +} + +// There is no delivery channel available to record configurations. +type NoAvailableDeliveryChannelException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoAvailableDeliveryChannelException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoAvailableDeliveryChannelException) GoString() string { + return s.String() +} + +func newErrorNoAvailableDeliveryChannelException(v protocol.ResponseMetadata) error { + return &NoAvailableDeliveryChannelException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoAvailableDeliveryChannelException) Code() string { + return "NoAvailableDeliveryChannelException" +} + +// Message returns the exception's message. +func (s NoAvailableDeliveryChannelException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoAvailableDeliveryChannelException) OrigErr() error { + return nil +} + +func (s NoAvailableDeliveryChannelException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoAvailableDeliveryChannelException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoAvailableDeliveryChannelException) RequestID() string { + return s.respMetadata.RequestID +} + +// Organization is no longer available. +type NoAvailableOrganizationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoAvailableOrganizationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoAvailableOrganizationException) GoString() string { + return s.String() +} + +func newErrorNoAvailableOrganizationException(v protocol.ResponseMetadata) error { + return &NoAvailableOrganizationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoAvailableOrganizationException) Code() string { + return "NoAvailableOrganizationException" +} + +// Message returns the exception's message. +func (s NoAvailableOrganizationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoAvailableOrganizationException) OrigErr() error { + return nil +} + +func (s NoAvailableOrganizationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoAvailableOrganizationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoAvailableOrganizationException) RequestID() string { + return s.respMetadata.RequestID +} + +// There is no configuration recorder running. +type NoRunningConfigurationRecorderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoRunningConfigurationRecorderException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoRunningConfigurationRecorderException) GoString() string { + return s.String() +} + +func newErrorNoRunningConfigurationRecorderException(v protocol.ResponseMetadata) error { + return &NoRunningConfigurationRecorderException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoRunningConfigurationRecorderException) Code() string { + return "NoRunningConfigurationRecorderException" +} + +// Message returns the exception's message. +func (s NoRunningConfigurationRecorderException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoRunningConfigurationRecorderException) OrigErr() error { + return nil +} + +func (s NoRunningConfigurationRecorderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoRunningConfigurationRecorderException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoRunningConfigurationRecorderException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified Amazon S3 bucket does not exist. +type NoSuchBucketException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchBucketException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchBucketException) GoString() string { + return s.String() +} + +func newErrorNoSuchBucketException(v protocol.ResponseMetadata) error { + return &NoSuchBucketException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchBucketException) Code() string { + return "NoSuchBucketException" +} + +// Message returns the exception's message. +func (s NoSuchBucketException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchBucketException) OrigErr() error { + return nil +} + +func (s NoSuchBucketException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchBucketException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchBucketException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more AWS Config rules in the request are invalid. Verify that the +// rule names are correct and try again. +type NoSuchConfigRuleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchConfigRuleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchConfigRuleException) GoString() string { + return s.String() +} + +func newErrorNoSuchConfigRuleException(v protocol.ResponseMetadata) error { + return &NoSuchConfigRuleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchConfigRuleException) Code() string { + return "NoSuchConfigRuleException" +} + +// Message returns the exception's message. +func (s NoSuchConfigRuleException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchConfigRuleException) OrigErr() error { + return nil +} + +func (s NoSuchConfigRuleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchConfigRuleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchConfigRuleException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Config rule that you passed in the filter does not exist. +type NoSuchConfigRuleInConformancePackException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchConfigRuleInConformancePackException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchConfigRuleInConformancePackException) GoString() string { + return s.String() +} + +func newErrorNoSuchConfigRuleInConformancePackException(v protocol.ResponseMetadata) error { + return &NoSuchConfigRuleInConformancePackException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchConfigRuleInConformancePackException) Code() string { + return "NoSuchConfigRuleInConformancePackException" +} + +// Message returns the exception's message. +func (s NoSuchConfigRuleInConformancePackException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchConfigRuleInConformancePackException) OrigErr() error { + return nil +} + +func (s NoSuchConfigRuleInConformancePackException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchConfigRuleInConformancePackException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchConfigRuleInConformancePackException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have specified a configuration aggregator that does not exist. +type NoSuchConfigurationAggregatorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchConfigurationAggregatorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchConfigurationAggregatorException) GoString() string { + return s.String() +} + +func newErrorNoSuchConfigurationAggregatorException(v protocol.ResponseMetadata) error { + return &NoSuchConfigurationAggregatorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchConfigurationAggregatorException) Code() string { + return "NoSuchConfigurationAggregatorException" +} + +// Message returns the exception's message. +func (s NoSuchConfigurationAggregatorException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchConfigurationAggregatorException) OrigErr() error { + return nil +} + +func (s NoSuchConfigurationAggregatorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchConfigurationAggregatorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchConfigurationAggregatorException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have specified a configuration recorder that does not exist. +type NoSuchConfigurationRecorderException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchConfigurationRecorderException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchConfigurationRecorderException) GoString() string { + return s.String() +} + +func newErrorNoSuchConfigurationRecorderException(v protocol.ResponseMetadata) error { + return &NoSuchConfigurationRecorderException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchConfigurationRecorderException) Code() string { + return "NoSuchConfigurationRecorderException" +} + +// Message returns the exception's message. +func (s NoSuchConfigurationRecorderException) Message() string { + return "" +} - // The nextToken string returned on a previous page that you use to get the - // next page of results in a paginated response. - NextToken *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchConfigurationRecorderException) OrigErr() error { + return nil +} - // The tags for the resource. - Tags []*Tag `min:"1" type:"list"` +func (s NoSuchConfigurationRecorderException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchConfigurationRecorderException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchConfigurationRecorderException) RequestID() string { + return s.respMetadata.RequestID +} + +// You specified one or more conformance packs that do not exist. +type NoSuchConformancePackException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsForResourceOutput) String() string { +func (s NoSuchConformancePackException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceOutput) GoString() string { +func (s NoSuchConformancePackException) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsForResourceOutput) SetNextToken(v string) *ListTagsForResourceOutput { - s.NextToken = &v - return s +func newErrorNoSuchConformancePackException(v protocol.ResponseMetadata) error { + return &NoSuchConformancePackException{ + respMetadata: v, + } } -// SetTags sets the Tags field's value. -func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput { - s.Tags = v - return s +// Code returns the exception type name. +func (s NoSuchConformancePackException) Code() string { + return "NoSuchConformancePackException" } -// Organization config rule creation or deletion status in each member account. -// This includes the name of the rule, the status, error code and error message -// when the rule creation or deletion failed. -type MemberAccountStatus struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s NoSuchConformancePackException) Message() string { + return "" +} - // The 12-digit account ID of a member account. - // - // AccountId is a required field - AccountId *string `type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchConformancePackException) OrigErr() error { + return nil +} - // The name of config rule deployed in the member account. - // - // ConfigRuleName is a required field - ConfigRuleName *string `min:"1" type:"string" required:"true"` +func (s NoSuchConformancePackException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // An error code that is returned when config rule creation or deletion failed - // in the member account. - ErrorCode *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchConformancePackException) StatusCode() int { + return s.respMetadata.StatusCode +} - // An error message indicating that config rule account creation or deletion - // has failed due to an error in the member account. - ErrorMessage *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s NoSuchConformancePackException) RequestID() string { + return s.respMetadata.RequestID +} - // The timestamp of the last status update. - LastUpdateTime *time.Time `type:"timestamp"` +// You have specified a delivery channel that does not exist. +type NoSuchDeliveryChannelException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // Indicates deployment status for config rule in the member account. When master - // account calls PutOrganizationConfigRule action for the first time, config - // rule status is created in the member account. When master account calls PutOrganizationConfigRule - // action for the second time, config rule status is updated in the member account. - // Config rule status is deleted when the master account deletes OrganizationConfigRule - // and disables service access for config-multiaccountsetup.amazonaws.com. - // - // AWS Config sets the state of the rule to: - // - // * CREATE_SUCCESSFUL when config rule has been created in the member account. - // - // * CREATE_IN_PROGRESS when config rule is being created in the member account. - // - // * CREATE_FAILED when config rule creation has failed in the member account. - // - // * DELETE_FAILED when config rule deletion has failed in the member account. - // - // * DELETE_IN_PROGRESS when config rule is being deleted in the member account. - // - // * DELETE_SUCCESSFUL when config rule has been deleted in the member account. - // - // * UPDATE_SUCCESSFUL when config rule has been updated in the member account. - // - // * UPDATE_IN_PROGRESS when config rule is being updated in the member account. - // - // * UPDATE_FAILED when config rule deletion has failed in the member account. - // - // MemberAccountRuleStatus is a required field - MemberAccountRuleStatus *string `type:"string" required:"true" enum:"MemberAccountRuleStatus"` +// String returns the string representation +func (s NoSuchDeliveryChannelException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchDeliveryChannelException) GoString() string { + return s.String() +} + +func newErrorNoSuchDeliveryChannelException(v protocol.ResponseMetadata) error { + return &NoSuchDeliveryChannelException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchDeliveryChannelException) Code() string { + return "NoSuchDeliveryChannelException" +} + +// Message returns the exception's message. +func (s NoSuchDeliveryChannelException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchDeliveryChannelException) OrigErr() error { + return nil +} + +func (s NoSuchDeliveryChannelException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchDeliveryChannelException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchDeliveryChannelException) RequestID() string { + return s.respMetadata.RequestID +} + +// You specified one or more organization config rules that do not exist. +type NoSuchOrganizationConfigRuleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s MemberAccountStatus) String() string { +func (s NoSuchOrganizationConfigRuleException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MemberAccountStatus) GoString() string { +func (s NoSuchOrganizationConfigRuleException) GoString() string { return s.String() } -// SetAccountId sets the AccountId field's value. -func (s *MemberAccountStatus) SetAccountId(v string) *MemberAccountStatus { - s.AccountId = &v - return s +func newErrorNoSuchOrganizationConfigRuleException(v protocol.ResponseMetadata) error { + return &NoSuchOrganizationConfigRuleException{ + respMetadata: v, + } } -// SetConfigRuleName sets the ConfigRuleName field's value. -func (s *MemberAccountStatus) SetConfigRuleName(v string) *MemberAccountStatus { - s.ConfigRuleName = &v - return s +// Code returns the exception type name. +func (s NoSuchOrganizationConfigRuleException) Code() string { + return "NoSuchOrganizationConfigRuleException" } -// SetErrorCode sets the ErrorCode field's value. -func (s *MemberAccountStatus) SetErrorCode(v string) *MemberAccountStatus { - s.ErrorCode = &v - return s +// Message returns the exception's message. +func (s NoSuchOrganizationConfigRuleException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchOrganizationConfigRuleException) OrigErr() error { + return nil +} + +func (s NoSuchOrganizationConfigRuleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchOrganizationConfigRuleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchOrganizationConfigRuleException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Config organization conformance pack that you passed in the filter does +// not exist. +// +// For DeleteOrganizationConformancePack, you tried to delete an organization +// conformance pack that does not exist. +type NoSuchOrganizationConformancePackException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchOrganizationConformancePackException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchOrganizationConformancePackException) GoString() string { + return s.String() +} + +func newErrorNoSuchOrganizationConformancePackException(v protocol.ResponseMetadata) error { + return &NoSuchOrganizationConformancePackException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchOrganizationConformancePackException) Code() string { + return "NoSuchOrganizationConformancePackException" +} + +// Message returns the exception's message. +func (s NoSuchOrganizationConformancePackException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchOrganizationConformancePackException) OrigErr() error { + return nil +} + +func (s NoSuchOrganizationConformancePackException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchOrganizationConformancePackException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchOrganizationConformancePackException) RequestID() string { + return s.respMetadata.RequestID +} + +// You specified an AWS Config rule without a remediation configuration. +type NoSuchRemediationConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchRemediationConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchRemediationConfigurationException) GoString() string { + return s.String() +} + +func newErrorNoSuchRemediationConfigurationException(v protocol.ResponseMetadata) error { + return &NoSuchRemediationConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchRemediationConfigurationException) Code() string { + return "NoSuchRemediationConfigurationException" +} + +// Message returns the exception's message. +func (s NoSuchRemediationConfigurationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchRemediationConfigurationException) OrigErr() error { + return nil +} + +func (s NoSuchRemediationConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchRemediationConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchRemediationConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// You tried to delete a remediation exception that does not exist. +type NoSuchRemediationExceptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchRemediationExceptionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchRemediationExceptionException) GoString() string { + return s.String() +} + +func newErrorNoSuchRemediationExceptionException(v protocol.ResponseMetadata) error { + return &NoSuchRemediationExceptionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchRemediationExceptionException) Code() string { + return "NoSuchRemediationExceptionException" +} + +// Message returns the exception's message. +func (s NoSuchRemediationExceptionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchRemediationExceptionException) OrigErr() error { + return nil +} + +func (s NoSuchRemediationExceptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchRemediationExceptionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchRemediationExceptionException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have specified a retention configuration that does not exist. +type NoSuchRetentionConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoSuchRetentionConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchRetentionConfigurationException) GoString() string { + return s.String() +} + +func newErrorNoSuchRetentionConfigurationException(v protocol.ResponseMetadata) error { + return &NoSuchRetentionConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchRetentionConfigurationException) Code() string { + return "NoSuchRetentionConfigurationException" +} + +// Message returns the exception's message. +func (s NoSuchRetentionConfigurationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchRetentionConfigurationException) OrigErr() error { + return nil +} + +func (s NoSuchRetentionConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchRetentionConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchRetentionConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// For PutConfigAggregator API, no permission to call EnableAWSServiceAccess +// API. +// +// For all OrganizationConfigRule and OrganizationConformancePack APIs, AWS +// Config throws an exception if APIs are called from member accounts. All APIs +// must be called from organization master account. +type OrganizationAccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OrganizationAccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationAccessDeniedException) GoString() string { + return s.String() +} + +func newErrorOrganizationAccessDeniedException(v protocol.ResponseMetadata) error { + return &OrganizationAccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationAccessDeniedException) Code() string { + return "OrganizationAccessDeniedException" +} + +// Message returns the exception's message. +func (s OrganizationAccessDeniedException) Message() string { + return "" } -// SetErrorMessage sets the ErrorMessage field's value. -func (s *MemberAccountStatus) SetErrorMessage(v string) *MemberAccountStatus { - s.ErrorMessage = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationAccessDeniedException) OrigErr() error { + return nil } -// SetLastUpdateTime sets the LastUpdateTime field's value. -func (s *MemberAccountStatus) SetLastUpdateTime(v time.Time) *MemberAccountStatus { - s.LastUpdateTime = &v - return s +func (s OrganizationAccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetMemberAccountRuleStatus sets the MemberAccountRuleStatus field's value. -func (s *MemberAccountStatus) SetMemberAccountRuleStatus(v string) *MemberAccountStatus { - s.MemberAccountRuleStatus = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationAccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationAccessDeniedException) RequestID() string { + return s.respMetadata.RequestID } // This object contains regions to set up the aggregator and an IAM role to @@ -15893,6 +18078,58 @@ func (s *OrganizationAggregationSource) SetRoleArn(v string) *OrganizationAggreg return s } +// AWS Config resource cannot be created because your organization does not +// have all features enabled. +type OrganizationAllFeaturesNotEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OrganizationAllFeaturesNotEnabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationAllFeaturesNotEnabledException) GoString() string { + return s.String() +} + +func newErrorOrganizationAllFeaturesNotEnabledException(v protocol.ResponseMetadata) error { + return &OrganizationAllFeaturesNotEnabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationAllFeaturesNotEnabledException) Code() string { + return "OrganizationAllFeaturesNotEnabledException" +} + +// Message returns the exception's message. +func (s OrganizationAllFeaturesNotEnabledException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationAllFeaturesNotEnabledException) OrigErr() error { + return nil +} + +func (s OrganizationAllFeaturesNotEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationAllFeaturesNotEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationAllFeaturesNotEnabledException) RequestID() string { + return s.respMetadata.RequestID +} + // An organization config rule that has information about config rules that // AWS Config creates in member accounts. type OrganizationConfigRule struct { @@ -16371,6 +18608,57 @@ func (s *OrganizationConformancePackStatus) SetStatus(v string) *OrganizationCon return s } +// You have specified a template that is not valid or supported. +type OrganizationConformancePackTemplateValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OrganizationConformancePackTemplateValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationConformancePackTemplateValidationException) GoString() string { + return s.String() +} + +func newErrorOrganizationConformancePackTemplateValidationException(v protocol.ResponseMetadata) error { + return &OrganizationConformancePackTemplateValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationConformancePackTemplateValidationException) Code() string { + return "OrganizationConformancePackTemplateValidationException" +} + +// Message returns the exception's message. +func (s OrganizationConformancePackTemplateValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationConformancePackTemplateValidationException) OrigErr() error { + return nil +} + +func (s OrganizationConformancePackTemplateValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationConformancePackTemplateValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationConformancePackTemplateValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that specifies organization custom rule metadata such as resource // type, resource ID of AWS resource, Lamdba function ARN, and organization // trigger types that trigger AWS Config to evaluate your AWS resources against @@ -16726,6 +19014,57 @@ func (s *OrganizationResourceDetailedStatusFilters) SetStatus(v string) *Organiz return s } +// The configuration item size is outside the allowable range. +type OversizedConfigurationItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OversizedConfigurationItemException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OversizedConfigurationItemException) GoString() string { + return s.String() +} + +func newErrorOversizedConfigurationItemException(v protocol.ResponseMetadata) error { + return &OversizedConfigurationItemException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OversizedConfigurationItemException) Code() string { + return "OversizedConfigurationItemException" +} + +// Message returns the exception's message. +func (s OversizedConfigurationItemException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OversizedConfigurationItemException) OrigErr() error { + return nil +} + +func (s OversizedConfigurationItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OversizedConfigurationItemException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OversizedConfigurationItemException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that represents the account ID and region of an aggregator account // that is requesting authorization but is not yet authorized. type PendingAggregationRequest struct { @@ -18658,6 +20997,58 @@ func (s *RemediationExecutionStep) SetStopTime(v time.Time) *RemediationExecutio return s } +// Remediation action is in progress. You can either cancel execution in AWS +// Systems Manager or wait and try again later. +type RemediationInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s RemediationInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemediationInProgressException) GoString() string { + return s.String() +} + +func newErrorRemediationInProgressException(v protocol.ResponseMetadata) error { + return &RemediationInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RemediationInProgressException) Code() string { + return "RemediationInProgressException" +} + +// Message returns the exception's message. +func (s RemediationInProgressException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RemediationInProgressException) OrigErr() error { + return nil +} + +func (s RemediationInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RemediationInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RemediationInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + // The value is either a dynamic (resource) value or a static value. You must // select either a dynamic value or a static value. type RemediationParameterValue struct { @@ -18920,6 +21311,81 @@ func (s *ResourceIdentifier) SetResourceType(v string) *ResourceIdentifier { return s } +// You see this exception in the following cases: +// +// * For DeleteConfigRule, AWS Config is deleting this rule. Try your request +// again later. +// +// * For DeleteConfigRule, the rule is deleting your evaluation results. +// Try your request again later. +// +// * For DeleteConfigRule, a remediation action is associated with the rule +// and AWS Config cannot delete this rule. Delete the remediation action +// associated with the rule before deleting the rule and try your request +// again later. +// +// * For PutConfigOrganizationRule, organization config rule deletion is +// in progress. Try your request again later. +// +// * For DeleteOrganizationConfigRule, organization config rule creation +// is in progress. Try your request again later. +// +// * For PutConformancePack and PutOrganizationConformancePack, a conformance +// pack creation, update, and deletion is in progress. Try your request again +// later. +// +// * For DeleteConformancePack, a conformance pack creation, update, and +// deletion is in progress. Try your request again later. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + // The details that identify a resource within AWS Config, including the resource // type and resource ID. type ResourceKey struct { @@ -18977,6 +21443,108 @@ func (s *ResourceKey) SetResourceType(v string) *ResourceKey { return s } +// You have specified a resource that is either unknown or has not been discovered. +type ResourceNotDiscoveredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotDiscoveredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotDiscoveredException) GoString() string { + return s.String() +} + +func newErrorResourceNotDiscoveredException(v protocol.ResponseMetadata) error { + return &ResourceNotDiscoveredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotDiscoveredException) Code() string { + return "ResourceNotDiscoveredException" +} + +// Message returns the exception's message. +func (s ResourceNotDiscoveredException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotDiscoveredException) OrigErr() error { + return nil +} + +func (s ResourceNotDiscoveredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotDiscoveredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotDiscoveredException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have specified a resource that does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The dynamic value of the resource. type ResourceValue struct { _ struct{} `type:"structure"` @@ -19947,6 +22515,58 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// You have reached the limit of the number of tags you can use. You have more +// than 50 tags. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -20021,6 +22641,57 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +// The requested action is not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // AggregatedSourceStatusTypeFailed is a AggregatedSourceStatusType enum value AggregatedSourceStatusTypeFailed = "FAILED" diff --git a/service/configservice/errors.go b/service/configservice/errors.go index 803805bc6fc..2a43fb4db19 100644 --- a/service/configservice/errors.go +++ b/service/configservice/errors.go @@ -2,6 +2,10 @@ package configservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConformancePackTemplateValidationException for service response error code @@ -380,3 +384,57 @@ const ( // The requested action is not valid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConformancePackTemplateValidationException": newErrorConformancePackTemplateValidationException, + "InsufficientDeliveryPolicyException": newErrorInsufficientDeliveryPolicyException, + "InsufficientPermissionsException": newErrorInsufficientPermissionsException, + "InvalidConfigurationRecorderNameException": newErrorInvalidConfigurationRecorderNameException, + "InvalidDeliveryChannelNameException": newErrorInvalidDeliveryChannelNameException, + "InvalidExpressionException": newErrorInvalidExpressionException, + "InvalidLimitException": newErrorInvalidLimitException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidRecordingGroupException": newErrorInvalidRecordingGroupException, + "InvalidResultTokenException": newErrorInvalidResultTokenException, + "InvalidRoleException": newErrorInvalidRoleException, + "InvalidS3KeyPrefixException": newErrorInvalidS3KeyPrefixException, + "InvalidSNSTopicARNException": newErrorInvalidSNSTopicARNException, + "InvalidTimeRangeException": newErrorInvalidTimeRangeException, + "LastDeliveryChannelDeleteFailedException": newErrorLastDeliveryChannelDeleteFailedException, + "LimitExceededException": newErrorLimitExceededException, + "MaxActiveResourcesExceededException": newErrorMaxActiveResourcesExceededException, + "MaxNumberOfConfigRulesExceededException": newErrorMaxNumberOfConfigRulesExceededException, + "MaxNumberOfConfigurationRecordersExceededException": newErrorMaxNumberOfConfigurationRecordersExceededException, + "MaxNumberOfConformancePacksExceededException": newErrorMaxNumberOfConformancePacksExceededException, + "MaxNumberOfDeliveryChannelsExceededException": newErrorMaxNumberOfDeliveryChannelsExceededException, + "MaxNumberOfOrganizationConfigRulesExceededException": newErrorMaxNumberOfOrganizationConfigRulesExceededException, + "MaxNumberOfOrganizationConformancePacksExceededException": newErrorMaxNumberOfOrganizationConformancePacksExceededException, + "MaxNumberOfRetentionConfigurationsExceededException": newErrorMaxNumberOfRetentionConfigurationsExceededException, + "NoAvailableConfigurationRecorderException": newErrorNoAvailableConfigurationRecorderException, + "NoAvailableDeliveryChannelException": newErrorNoAvailableDeliveryChannelException, + "NoAvailableOrganizationException": newErrorNoAvailableOrganizationException, + "NoRunningConfigurationRecorderException": newErrorNoRunningConfigurationRecorderException, + "NoSuchBucketException": newErrorNoSuchBucketException, + "NoSuchConfigRuleException": newErrorNoSuchConfigRuleException, + "NoSuchConfigRuleInConformancePackException": newErrorNoSuchConfigRuleInConformancePackException, + "NoSuchConfigurationAggregatorException": newErrorNoSuchConfigurationAggregatorException, + "NoSuchConfigurationRecorderException": newErrorNoSuchConfigurationRecorderException, + "NoSuchConformancePackException": newErrorNoSuchConformancePackException, + "NoSuchDeliveryChannelException": newErrorNoSuchDeliveryChannelException, + "NoSuchOrganizationConfigRuleException": newErrorNoSuchOrganizationConfigRuleException, + "NoSuchOrganizationConformancePackException": newErrorNoSuchOrganizationConformancePackException, + "NoSuchRemediationConfigurationException": newErrorNoSuchRemediationConfigurationException, + "NoSuchRemediationExceptionException": newErrorNoSuchRemediationExceptionException, + "NoSuchRetentionConfigurationException": newErrorNoSuchRetentionConfigurationException, + "OrganizationAccessDeniedException": newErrorOrganizationAccessDeniedException, + "OrganizationAllFeaturesNotEnabledException": newErrorOrganizationAllFeaturesNotEnabledException, + "OrganizationConformancePackTemplateValidationException": newErrorOrganizationConformancePackTemplateValidationException, + "OversizedConfigurationItemException": newErrorOversizedConfigurationItemException, + "RemediationInProgressException": newErrorRemediationInProgressException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotDiscoveredException": newErrorResourceNotDiscoveredException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyTagsException": newErrorTooManyTagsException, + "ValidationException": newErrorValidationException, +} diff --git a/service/configservice/service.go b/service/configservice/service.go index 5a5f0771655..94347635d98 100644 --- a/service/configservice/service.go +++ b/service/configservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/connect/api.go b/service/connect/api.go index 627051e2e5b..7975430733a 100644 --- a/service/connect/api.go +++ b/service/connect/api.go @@ -3,6 +3,7 @@ package connect import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,26 +66,26 @@ func (c *Connect) CreateUserRequest(input *CreateUserInput) (req *request.Reques // See the AWS API reference guide for Amazon Connect Service's // API operation CreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The allowed limit for the resource has been exceeded. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // A resource with the specified name already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateUser @@ -163,20 +164,20 @@ func (c *Connect) DeleteUserRequest(input *DeleteUserInput) (req *request.Reques // See the AWS API reference guide for Amazon Connect Service's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteUser @@ -256,20 +257,20 @@ func (c *Connect) DescribeUserRequest(input *DescribeUserInput) (req *request.Re // See the AWS API reference guide for Amazon Connect Service's // API operation DescribeUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUser @@ -347,20 +348,20 @@ func (c *Connect) DescribeUserHierarchyGroupRequest(input *DescribeUserHierarchy // See the AWS API reference guide for Amazon Connect Service's // API operation DescribeUserHierarchyGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUserHierarchyGroup @@ -438,20 +439,20 @@ func (c *Connect) DescribeUserHierarchyStructureRequest(input *DescribeUserHiera // See the AWS API reference guide for Amazon Connect Service's // API operation DescribeUserHierarchyStructure for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribeUserHierarchyStructure @@ -529,14 +530,14 @@ func (c *Connect) GetContactAttributesRequest(input *GetContactAttributesInput) // See the AWS API reference guide for Amazon Connect Service's // API operation GetContactAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetContactAttributes @@ -623,20 +624,20 @@ func (c *Connect) GetCurrentMetricDataRequest(input *GetCurrentMetricDataInput) // See the AWS API reference guide for Amazon Connect Service's // API operation GetCurrentMetricData for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetCurrentMetricData @@ -766,23 +767,23 @@ func (c *Connect) GetFederationTokenRequest(input *GetFederationTokenInput) (req // See the AWS API reference guide for Amazon Connect Service's // API operation GetFederationToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeUserNotFoundException "UserNotFoundException" +// * UserNotFoundException // No user with the specified credentials was found in the Amazon Connect instance. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // A resource with the specified name already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetFederationToken @@ -869,20 +870,20 @@ func (c *Connect) GetMetricDataRequest(input *GetMetricDataInput) (req *request. // See the AWS API reference guide for Amazon Connect Service's // API operation GetMetricData for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetMetricData @@ -1019,20 +1020,20 @@ func (c *Connect) ListContactFlowsRequest(input *ListContactFlowsInput) (req *re // See the AWS API reference guide for Amazon Connect Service's // API operation ListContactFlows for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListContactFlows @@ -1169,20 +1170,20 @@ func (c *Connect) ListHoursOfOperationsRequest(input *ListHoursOfOperationsInput // See the AWS API reference guide for Amazon Connect Service's // API operation ListHoursOfOperations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListHoursOfOperations @@ -1319,20 +1320,20 @@ func (c *Connect) ListPhoneNumbersRequest(input *ListPhoneNumbersInput) (req *re // See the AWS API reference guide for Amazon Connect Service's // API operation ListPhoneNumbers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPhoneNumbers @@ -1468,20 +1469,20 @@ func (c *Connect) ListQueuesRequest(input *ListQueuesInput) (req *request.Reques // See the AWS API reference guide for Amazon Connect Service's // API operation ListQueues for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListQueues @@ -1618,20 +1619,20 @@ func (c *Connect) ListRoutingProfilesRequest(input *ListRoutingProfilesInput) (r // See the AWS API reference guide for Amazon Connect Service's // API operation ListRoutingProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListRoutingProfiles @@ -1768,20 +1769,20 @@ func (c *Connect) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) // See the AWS API reference guide for Amazon Connect Service's // API operation ListSecurityProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListSecurityProfiles @@ -1911,20 +1912,20 @@ func (c *Connect) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // See the AWS API reference guide for Amazon Connect Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListTagsForResource @@ -2009,20 +2010,20 @@ func (c *Connect) ListUserHierarchyGroupsRequest(input *ListUserHierarchyGroupsI // See the AWS API reference guide for Amazon Connect Service's // API operation ListUserHierarchyGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUserHierarchyGroups @@ -2159,20 +2160,20 @@ func (c *Connect) ListUsersRequest(input *ListUsersInput) (req *request.Request, // See the AWS API reference guide for Amazon Connect Service's // API operation ListUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListUsers @@ -2310,20 +2311,20 @@ func (c *Connect) StartChatContactRequest(input *StartChatContactInput) (req *re // See the AWS API reference guide for Amazon Connect Service's // API operation StartChatContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The allowed limit for the resource has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartChatContact @@ -2404,26 +2405,26 @@ func (c *Connect) StartOutboundVoiceContactRequest(input *StartOutboundVoiceCont // See the AWS API reference guide for Amazon Connect Service's // API operation StartOutboundVoiceContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The allowed limit for the resource has been exceeded. // -// * ErrCodeDestinationNotAllowedException "DestinationNotAllowedException" +// * DestinationNotAllowedException // Outbound calls to the destination number are not allowed. // -// * ErrCodeOutboundContactNotPermittedException "OutboundContactNotPermittedException" +// * OutboundContactNotPermittedException // The contact is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StartOutboundVoiceContact @@ -2502,20 +2503,20 @@ func (c *Connect) StopContactRequest(input *StopContactInput) (req *request.Requ // See the AWS API reference guide for Amazon Connect Service's // API operation StopContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeContactNotFoundException "ContactNotFoundException" +// * ContactNotFoundException // The contact with the specified ID is not active or does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/StopContact @@ -2596,20 +2597,20 @@ func (c *Connect) TagResourceRequest(input *TagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon Connect Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/TagResource @@ -2688,20 +2689,20 @@ func (c *Connect) UntagResourceRequest(input *UntagResourceInput) (req *request. // See the AWS API reference guide for Amazon Connect Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UntagResource @@ -2800,17 +2801,17 @@ func (c *Connect) UpdateContactAttributesRequest(input *UpdateContactAttributesI // See the AWS API reference guide for Amazon Connect Service's // API operation UpdateContactAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateContactAttributes @@ -2889,20 +2890,20 @@ func (c *Connect) UpdateUserHierarchyRequest(input *UpdateUserHierarchyInput) (r // See the AWS API reference guide for Amazon Connect Service's // API operation UpdateUserHierarchy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserHierarchy @@ -2981,20 +2982,20 @@ func (c *Connect) UpdateUserIdentityInfoRequest(input *UpdateUserIdentityInfoInp // See the AWS API reference guide for Amazon Connect Service's // API operation UpdateUserIdentityInfo for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserIdentityInfo @@ -3073,20 +3074,20 @@ func (c *Connect) UpdateUserPhoneConfigRequest(input *UpdateUserPhoneConfigInput // See the AWS API reference guide for Amazon Connect Service's // API operation UpdateUserPhoneConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserPhoneConfig @@ -3165,20 +3166,20 @@ func (c *Connect) UpdateUserRoutingProfileRequest(input *UpdateUserRoutingProfil // See the AWS API reference guide for Amazon Connect Service's // API operation UpdateUserRoutingProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserRoutingProfile @@ -3257,20 +3258,20 @@ func (c *Connect) UpdateUserSecurityProfilesRequest(input *UpdateUserSecurityPro // See the AWS API reference guide for Amazon Connect Service's // API operation UpdateUserSecurityProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the specified parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The throttling limit has been exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Request processing failed due to an error or failure with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserSecurityProfiles @@ -3405,6 +3406,63 @@ func (s *ContactFlowSummary) SetName(v string) *ContactFlowSummary { return s } +// The contact with the specified ID is not active or does not exist. +type ContactNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ContactNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContactNotFoundException) GoString() string { + return s.String() +} + +func newErrorContactNotFoundException(v protocol.ResponseMetadata) error { + return &ContactNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ContactNotFoundException) Code() string { + return "ContactNotFoundException" +} + +// Message returns the exception's message. +func (s ContactNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ContactNotFoundException) OrigErr() error { + return nil +} + +func (s ContactNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ContactNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ContactNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateUserInput struct { _ struct{} `type:"structure"` @@ -4061,6 +4119,63 @@ func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { return s } +// Outbound calls to the destination number are not allowed. +type DestinationNotAllowedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DestinationNotAllowedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DestinationNotAllowedException) GoString() string { + return s.String() +} + +func newErrorDestinationNotAllowedException(v protocol.ResponseMetadata) error { + return &DestinationNotAllowedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DestinationNotAllowedException) Code() string { + return "DestinationNotAllowedException" +} + +// Message returns the exception's message. +func (s DestinationNotAllowedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DestinationNotAllowedException) OrigErr() error { + return nil +} + +func (s DestinationNotAllowedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DestinationNotAllowedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DestinationNotAllowedException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about the dimensions for a set of metrics. type Dimensions struct { _ struct{} `type:"structure"` @@ -4094,6 +4209,62 @@ func (s *Dimensions) SetQueue(v *QueueReference) *Dimensions { return s } +// A resource with the specified name already exists. +type DuplicateResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateResourceException) GoString() string { + return s.String() +} + +func newErrorDuplicateResourceException(v protocol.ResponseMetadata) error { + return &DuplicateResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateResourceException) Code() string { + return "DuplicateResourceException" +} + +// Message returns the exception's message. +func (s DuplicateResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateResourceException) OrigErr() error { + return nil +} + +func (s DuplicateResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateResourceException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the filter to apply when retrieving metrics. type Filters struct { _ struct{} `type:"structure"` @@ -5269,6 +5440,234 @@ func (s *HoursOfOperationSummary) SetName(v string) *HoursOfOperationSummary { return s } +// Request processing failed due to an error or failure with the service. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more of the specified parameters are not valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is not valid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The allowed limit for the resource has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListContactFlowsInput struct { _ struct{} `type:"structure"` @@ -6129,6 +6528,63 @@ func (s *ListUsersOutput) SetUserSummaryList(v []*UserSummary) *ListUsersOutput return s } +// The contact is not permitted. +type OutboundContactNotPermittedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OutboundContactNotPermittedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OutboundContactNotPermittedException) GoString() string { + return s.String() +} + +func newErrorOutboundContactNotPermittedException(v protocol.ResponseMetadata) error { + return &OutboundContactNotPermittedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OutboundContactNotPermittedException) Code() string { + return "OutboundContactNotPermittedException" +} + +// Message returns the exception's message. +func (s OutboundContactNotPermittedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OutboundContactNotPermittedException) OrigErr() error { + return nil +} + +func (s OutboundContactNotPermittedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OutboundContactNotPermittedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OutboundContactNotPermittedException) RequestID() string { + return s.respMetadata.RequestID +} + // The customer's details. type ParticipantDetails struct { _ struct{} `type:"structure"` @@ -6315,6 +6771,63 @@ func (s *QueueSummary) SetQueueType(v string) *QueueSummary { return s } +// The specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains summary information about a routing profile. type RoutingProfileSummary struct { _ struct{} `type:"structure"` @@ -6873,6 +7386,62 @@ func (s *Threshold) SetThresholdValue(v float64) *Threshold { return s } +// The throttling limit has been exceeded. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -7640,6 +8209,62 @@ func (s *UserIdentityInfo) SetLastName(v string) *UserIdentityInfo { return s } +// No user with the specified credentials was found in the Amazon Connect instance. +type UserNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UserNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserNotFoundException) GoString() string { + return s.String() +} + +func newErrorUserNotFoundException(v protocol.ResponseMetadata) error { + return &UserNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserNotFoundException) Code() string { + return "UserNotFoundException" +} + +// Message returns the exception's message. +func (s UserNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserNotFoundException) OrigErr() error { + return nil +} + +func (s UserNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about the phone configuration settings for a user. type UserPhoneConfig struct { _ struct{} `type:"structure"` diff --git a/service/connect/errors.go b/service/connect/errors.go index 9634fb8b67f..afbf88eee0b 100644 --- a/service/connect/errors.go +++ b/service/connect/errors.go @@ -2,6 +2,10 @@ package connect +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeContactNotFoundException for service response error code @@ -70,3 +74,17 @@ const ( // No user with the specified credentials was found in the Amazon Connect instance. ErrCodeUserNotFoundException = "UserNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ContactNotFoundException": newErrorContactNotFoundException, + "DestinationNotAllowedException": newErrorDestinationNotAllowedException, + "DuplicateResourceException": newErrorDuplicateResourceException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "OutboundContactNotPermittedException": newErrorOutboundContactNotPermittedException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ThrottlingException": newErrorThrottlingException, + "UserNotFoundException": newErrorUserNotFoundException, +} diff --git a/service/connect/service.go b/service/connect/service.go index ac04e52f5c4..0c0c22cd34d 100644 --- a/service/connect/service.go +++ b/service/connect/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/connectparticipant/api.go b/service/connectparticipant/api.go index cec2fd1c621..35f8c7475a4 100644 --- a/service/connectparticipant/api.go +++ b/service/connectparticipant/api.go @@ -3,6 +3,8 @@ package connectparticipant import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -80,18 +82,18 @@ func (c *ConnectParticipant) CreateParticipantConnectionRequest(input *CreatePar // See the AWS API reference guide for Amazon Connect Participant Service's // API operation CreateParticipantConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // This exception occurs when there is an internal failure in the Amazon Connect // service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by Amazon Connect. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/CreateParticipantConnection @@ -171,18 +173,18 @@ func (c *ConnectParticipant) DisconnectParticipantRequest(input *DisconnectParti // See the AWS API reference guide for Amazon Connect Participant Service's // API operation DisconnectParticipant for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // This exception occurs when there is an internal failure in the Amazon Connect // service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by Amazon Connect. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/DisconnectParticipant @@ -267,18 +269,18 @@ func (c *ConnectParticipant) GetTranscriptRequest(input *GetTranscriptInput) (re // See the AWS API reference guide for Amazon Connect Participant Service's // API operation GetTranscript for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // This exception occurs when there is an internal failure in the Amazon Connect // service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by Amazon Connect. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/GetTranscript @@ -409,18 +411,18 @@ func (c *ConnectParticipant) SendEventRequest(input *SendEventInput) (req *reque // See the AWS API reference guide for Amazon Connect Participant Service's // API operation SendEvent for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // This exception occurs when there is an internal failure in the Amazon Connect // service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by Amazon Connect. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/SendEvent @@ -499,18 +501,18 @@ func (c *ConnectParticipant) SendMessageRequest(input *SendMessageInput) (req *r // See the AWS API reference guide for Amazon Connect Participant Service's // API operation SendMessage for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // This exception occurs when there is an internal failure in the Amazon Connect // service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by Amazon Connect. // // See also, https://docs.aws.amazon.com/goto/WebAPI/connectparticipant-2018-09-07/SendMessage @@ -535,6 +537,62 @@ func (c *ConnectParticipant) SendMessageWithContext(ctx aws.Context, input *Send return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Connection credentials. type ConnectionCredentials struct { _ struct{} `type:"structure"` @@ -878,6 +936,63 @@ func (s *GetTranscriptOutput) SetTranscript(v []*Item) *GetTranscriptOutput { return s } +// This exception occurs when there is an internal failure in the Amazon Connect +// service. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + // An item - message or event - that has been sent. type Item struct { _ struct{} `type:"structure"` @@ -1270,6 +1385,118 @@ func (s *StartPosition) SetMostRecent(v int64) *StartPosition { return s } +// The request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input fails to satisfy the constraints specified by Amazon Connect. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // The websocket for the participant's connection. type Websocket struct { _ struct{} `type:"structure"` diff --git a/service/connectparticipant/errors.go b/service/connectparticipant/errors.go index c382fcd0674..310d2d41547 100644 --- a/service/connectparticipant/errors.go +++ b/service/connectparticipant/errors.go @@ -2,6 +2,10 @@ package connectparticipant +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -29,3 +33,10 @@ const ( // The input fails to satisfy the constraints specified by Amazon Connect. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "InternalServerException": newErrorInternalServerException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/connectparticipant/service.go b/service/connectparticipant/service.go index 3bd278c8cc2..73b73c3af12 100644 --- a/service/connectparticipant/service.go +++ b/service/connectparticipant/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/costandusagereportservice/api.go b/service/costandusagereportservice/api.go index 9ae48a197a0..b29c73560f7 100644 --- a/service/costandusagereportservice/api.go +++ b/service/costandusagereportservice/api.go @@ -3,6 +3,8 @@ package costandusagereportservice import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -63,12 +65,12 @@ func (c *CostandUsageReportService) DeleteReportDefinitionRequest(input *DeleteR // See the AWS API reference guide for AWS Cost and Usage Report Service's // API operation DeleteReportDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/DeleteReportDefinition @@ -152,8 +154,8 @@ func (c *CostandUsageReportService) DescribeReportDefinitionsRequest(input *Desc // See the AWS API reference guide for AWS Cost and Usage Report Service's // API operation DescribeReportDefinitions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // @@ -285,12 +287,12 @@ func (c *CostandUsageReportService) ModifyReportDefinitionRequest(input *ModifyR // See the AWS API reference guide for AWS Cost and Usage Report Service's // API operation ModifyReportDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/ModifyReportDefinition @@ -369,20 +371,20 @@ func (c *CostandUsageReportService) PutReportDefinitionRequest(input *PutReportD // See the AWS API reference guide for AWS Cost and Usage Report Service's // API operation PutReportDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateReportNameException "DuplicateReportNameException" +// Returned Error Types: +// * DuplicateReportNameException // A report with the specified name already exists in the account. Specify a // different report name. // -// * ErrCodeReportLimitReachedException "ReportLimitReachedException" +// * ReportLimitReachedException // This account already has five reports defined. To define a new report, you // must delete an existing report. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The input fails to satisfy the constraints specified by an AWS service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/cur-2017-01-06/PutReportDefinition @@ -535,6 +537,122 @@ func (s *DescribeReportDefinitionsOutput) SetReportDefinitions(v []*ReportDefini return s } +// A report with the specified name already exists in the account. Specify a +// different report name. +type DuplicateReportNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message to show the detail of the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateReportNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateReportNameException) GoString() string { + return s.String() +} + +func newErrorDuplicateReportNameException(v protocol.ResponseMetadata) error { + return &DuplicateReportNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateReportNameException) Code() string { + return "DuplicateReportNameException" +} + +// Message returns the exception's message. +func (s DuplicateReportNameException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateReportNameException) OrigErr() error { + return nil +} + +func (s DuplicateReportNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateReportNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateReportNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error on the server occurred during the processing of your request. Try +// again later. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message to show the detail of the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} + +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} + +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ModifyReportDefinitionInput struct { _ struct{} `type:"structure"` @@ -843,6 +961,121 @@ func (s *ReportDefinition) SetTimeUnit(v string) *ReportDefinition { return s } +// This account already has five reports defined. To define a new report, you +// must delete an existing report. +type ReportLimitReachedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message to show the detail of the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ReportLimitReachedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReportLimitReachedException) GoString() string { + return s.String() +} + +func newErrorReportLimitReachedException(v protocol.ResponseMetadata) error { + return &ReportLimitReachedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReportLimitReachedException) Code() string { + return "ReportLimitReachedException" +} + +// Message returns the exception's message. +func (s ReportLimitReachedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReportLimitReachedException) OrigErr() error { + return nil +} + +func (s ReportLimitReachedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReportLimitReachedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReportLimitReachedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input fails to satisfy the constraints specified by an AWS service. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message to show the detail of the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // The region of the S3 bucket that AWS delivers the report into. const ( // AWSRegionUsEast1 is a AWSRegion enum value diff --git a/service/costandusagereportservice/errors.go b/service/costandusagereportservice/errors.go index 0602538036c..8ce7a64bd25 100644 --- a/service/costandusagereportservice/errors.go +++ b/service/costandusagereportservice/errors.go @@ -2,6 +2,10 @@ package costandusagereportservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDuplicateReportNameException for service response error code @@ -31,3 +35,10 @@ const ( // The input fails to satisfy the constraints specified by an AWS service. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DuplicateReportNameException": newErrorDuplicateReportNameException, + "InternalErrorException": newErrorInternalErrorException, + "ReportLimitReachedException": newErrorReportLimitReachedException, + "ValidationException": newErrorValidationException, +} diff --git a/service/costandusagereportservice/service.go b/service/costandusagereportservice/service.go index 7d628445daf..060ccd01257 100644 --- a/service/costandusagereportservice/service.go +++ b/service/costandusagereportservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/costexplorer/api.go b/service/costexplorer/api.go index ff7ddbaef76..bc87d796610 100644 --- a/service/costexplorer/api.go +++ b/service/costexplorer/api.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCreateCostCategoryDefinition = "CreateCostCategoryDefinition" @@ -69,12 +70,12 @@ func (c *CostExplorer) CreateCostCategoryDefinitionRequest(input *CreateCostCate // See the AWS API reference guide for AWS Cost Explorer Service's // API operation CreateCostCategoryDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// Returned Error Types: +// * ServiceQuotaExceededException // You've reached the limit on the number of resources you can create, or exceeded // the size of an individual resources. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/CreateCostCategoryDefinition @@ -159,11 +160,11 @@ func (c *CostExplorer) DeleteCostCategoryDefinitionRequest(input *DeleteCostCate // See the AWS API reference guide for AWS Cost Explorer Service's // API operation DeleteCostCategoryDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified ARN in the request doesn't exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/DeleteCostCategoryDefinition @@ -253,11 +254,11 @@ func (c *CostExplorer) DescribeCostCategoryDefinitionRequest(input *DescribeCost // See the AWS API reference guide for AWS Cost Explorer Service's // API operation DescribeCostCategoryDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified ARN in the request doesn't exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/DescribeCostCategoryDefinition @@ -341,20 +342,20 @@ func (c *CostExplorer) GetCostAndUsageRequest(input *GetCostAndUsageInput) (req // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetCostAndUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeBillExpirationException "BillExpirationException" +// * BillExpirationException // The requested report expired. Update the date interval and try again. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // -// * ErrCodeRequestChangedException "RequestChangedException" +// * RequestChangedException // Your request parameters changed between pages. Try again with the old parameters // or without a pagination token. // @@ -445,20 +446,20 @@ func (c *CostExplorer) GetCostAndUsageWithResourcesRequest(input *GetCostAndUsag // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetCostAndUsageWithResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeDataUnavailableException "DataUnavailableException" +// Returned Error Types: +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeBillExpirationException "BillExpirationException" +// * BillExpirationException // The requested report expired. Update the date interval and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // -// * ErrCodeRequestChangedException "RequestChangedException" +// * RequestChangedException // Your request parameters changed between pages. Try again with the old parameters // or without a pagination token. // @@ -538,11 +539,11 @@ func (c *CostExplorer) GetCostForecastRequest(input *GetCostForecastInput) (req // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetCostForecast for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetCostForecast @@ -621,20 +622,20 @@ func (c *CostExplorer) GetDimensionValuesRequest(input *GetDimensionValuesInput) // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetDimensionValues for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeBillExpirationException "BillExpirationException" +// * BillExpirationException // The requested report expired. Update the date interval and try again. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // -// * ErrCodeRequestChangedException "RequestChangedException" +// * RequestChangedException // Your request parameters changed between pages. Try again with the old parameters // or without a pagination token. // @@ -744,14 +745,14 @@ func (c *CostExplorer) GetReservationCoverageRequest(input *GetReservationCovera // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetReservationCoverage for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationCoverage @@ -846,14 +847,14 @@ func (c *CostExplorer) GetReservationPurchaseRecommendationRequest(input *GetRes // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetReservationPurchaseRecommendation for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationPurchaseRecommendation @@ -934,14 +935,14 @@ func (c *CostExplorer) GetReservationUtilizationRequest(input *GetReservationUti // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetReservationUtilization for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetReservationUtilization @@ -1024,11 +1025,11 @@ func (c *CostExplorer) GetRightsizingRecommendationRequest(input *GetRightsizing // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetRightsizingRecommendation for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetRightsizingRecommendation @@ -1126,14 +1127,14 @@ func (c *CostExplorer) GetSavingsPlansCoverageRequest(input *GetSavingsPlansCove // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetSavingsPlansCoverage for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetSavingsPlansCoverage @@ -1264,11 +1265,11 @@ func (c *CostExplorer) GetSavingsPlansPurchaseRecommendationRequest(input *GetSa // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetSavingsPlansPurchaseRecommendation for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetSavingsPlansPurchaseRecommendation @@ -1351,11 +1352,11 @@ func (c *CostExplorer) GetSavingsPlansUtilizationRequest(input *GetSavingsPlansU // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetSavingsPlansUtilization for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetSavingsPlansUtilization @@ -1447,14 +1448,14 @@ func (c *CostExplorer) GetSavingsPlansUtilizationDetailsRequest(input *GetSaving // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetSavingsPlansUtilizationDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/GetSavingsPlansUtilizationDetails @@ -1585,20 +1586,20 @@ func (c *CostExplorer) GetTagsRequest(input *GetTagsInput) (req *request.Request // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeBillExpirationException "BillExpirationException" +// * BillExpirationException // The requested report expired. Update the date interval and try again. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // -// * ErrCodeRequestChangedException "RequestChangedException" +// * RequestChangedException // Your request parameters changed between pages. Try again with the old parameters // or without a pagination token. // @@ -1678,14 +1679,14 @@ func (c *CostExplorer) GetUsageForecastRequest(input *GetUsageForecastInput) (re // See the AWS API reference guide for AWS Cost Explorer Service's // API operation GetUsageForecast for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // -// * ErrCodeDataUnavailableException "DataUnavailableException" +// * DataUnavailableException // The requested data is unavailable. // -// * ErrCodeUnresolvableUsageUnitException "UnresolvableUsageUnitException" +// * UnresolvableUsageUnitException // Cost Explorer was unable to identify the usage unit. Provide UsageType/UsageTypeGroup // filter selections that contain matching units, for example: hours. // @@ -1775,8 +1776,8 @@ func (c *CostExplorer) ListCostCategoryDefinitionsRequest(input *ListCostCategor // See the AWS API reference guide for AWS Cost Explorer Service's // API operation ListCostCategoryDefinitions for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/ListCostCategoryDefinitions @@ -1862,15 +1863,15 @@ func (c *CostExplorer) UpdateCostCategoryDefinitionRequest(input *UpdateCostCate // See the AWS API reference guide for AWS Cost Explorer Service's // API operation UpdateCostCategoryDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified ARN in the request doesn't exist. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // You've reached the limit on the number of resources you can create, or exceeded // the size of an individual resources. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You made too many calls in a short period of time. Try again later. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ce-2017-10-25/UpdateCostCategoryDefinition @@ -1895,6 +1896,62 @@ func (c *CostExplorer) UpdateCostCategoryDefinitionWithContext(ctx aws.Context, return out, req.Send() } +// The requested report expired. Update the date interval and try again. +type BillExpirationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BillExpirationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BillExpirationException) GoString() string { + return s.String() +} + +func newErrorBillExpirationException(v protocol.ResponseMetadata) error { + return &BillExpirationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BillExpirationException) Code() string { + return "BillExpirationException" +} + +// Message returns the exception's message. +func (s BillExpirationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BillExpirationException) OrigErr() error { + return nil +} + +func (s BillExpirationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BillExpirationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BillExpirationException) RequestID() string { + return s.respMetadata.RequestID +} + // // Cost Category is in public beta for AWS Billing and Cost Management and // is subject to change. Your use of Cost Categories is subject to the Beta @@ -2619,6 +2676,62 @@ func (s *CurrentInstance) SetTotalRunningHoursInLookbackPeriod(v string) *Curren return s } +// The requested data is unavailable. +type DataUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DataUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataUnavailableException) GoString() string { + return s.String() +} + +func newErrorDataUnavailableException(v protocol.ResponseMetadata) error { + return &DataUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DataUnavailableException) Code() string { + return "DataUnavailableException" +} + +// Message returns the exception's message. +func (s DataUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DataUnavailableException) OrigErr() error { + return nil +} + +func (s DataUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DataUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DataUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // The time period that you want the usage and costs for. type DateInterval struct { _ struct{} `type:"structure"` @@ -5973,6 +6086,118 @@ func (s *InstanceDetails) SetRedshiftInstanceDetails(v *RedshiftInstanceDetails) return s } +// The pagination token is invalid. Try again without a pagination token. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// You made too many calls in a short period of time. Try again later. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListCostCategoryDefinitionsInput struct { _ struct{} `type:"structure"` @@ -6274,6 +6499,63 @@ func (s *RedshiftInstanceDetails) SetSizeFlexEligible(v bool) *RedshiftInstanceD return s } +// Your request parameters changed between pages. Try again with the old parameters +// or without a pagination token. +type RequestChangedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s RequestChangedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestChangedException) GoString() string { + return s.String() +} + +func newErrorRequestChangedException(v protocol.ResponseMetadata) error { + return &RequestChangedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestChangedException) Code() string { + return "RequestChangedException" +} + +// Message returns the exception's message. +func (s RequestChangedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestChangedException) OrigErr() error { + return nil +} + +func (s RequestChangedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestChangedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestChangedException) RequestID() string { + return s.respMetadata.RequestID +} + // The aggregated numbers for your reservation usage. type ReservationAggregates struct { _ struct{} `type:"structure"` @@ -6892,6 +7174,62 @@ func (s *ResourceDetails) SetEC2ResourceDetails(v *EC2ResourceDetails) *Resource return s } +// The specified ARN in the request doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Resource utilization of current resource. type ResourceUtilization struct { _ struct{} `type:"structure"` @@ -7976,6 +8314,63 @@ func (s *SavingsPlansUtilizationDetail) SetUtilization(v *SavingsPlansUtilizatio return s } +// You've reached the limit on the number of resources you can create, or exceeded +// the size of an individual resources. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Hardware specifications for the service that you want recommendations for. type ServiceSpecification struct { _ struct{} `type:"structure"` @@ -8139,6 +8534,63 @@ func (s *TerminateRecommendationDetail) SetEstimatedMonthlySavings(v string) *Te return s } +// Cost Explorer was unable to identify the usage unit. Provide UsageType/UsageTypeGroup +// filter selections that contain matching units, for example: hours. +type UnresolvableUsageUnitException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnresolvableUsageUnitException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnresolvableUsageUnitException) GoString() string { + return s.String() +} + +func newErrorUnresolvableUsageUnitException(v protocol.ResponseMetadata) error { + return &UnresolvableUsageUnitException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnresolvableUsageUnitException) Code() string { + return "UnresolvableUsageUnitException" +} + +// Message returns the exception's message. +func (s UnresolvableUsageUnitException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnresolvableUsageUnitException) OrigErr() error { + return nil +} + +func (s UnresolvableUsageUnitException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnresolvableUsageUnitException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnresolvableUsageUnitException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateCostCategoryDefinitionInput struct { _ struct{} `type:"structure"` diff --git a/service/costexplorer/errors.go b/service/costexplorer/errors.go index 56bc1fb910b..27fd874c48c 100644 --- a/service/costexplorer/errors.go +++ b/service/costexplorer/errors.go @@ -2,6 +2,10 @@ package costexplorer +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBillExpirationException for service response error code @@ -55,3 +59,14 @@ const ( // filter selections that contain matching units, for example: hours. ErrCodeUnresolvableUsageUnitException = "UnresolvableUsageUnitException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BillExpirationException": newErrorBillExpirationException, + "DataUnavailableException": newErrorDataUnavailableException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "RequestChangedException": newErrorRequestChangedException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "UnresolvableUsageUnitException": newErrorUnresolvableUsageUnitException, +} diff --git a/service/costexplorer/service.go b/service/costexplorer/service.go index 89116641589..2cfc8ccb5c4 100644 --- a/service/costexplorer/service.go +++ b/service/costexplorer/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/databasemigrationservice/api.go b/service/databasemigrationservice/api.go index f5682aca71d..7bcdf0d814b 100644 --- a/service/databasemigrationservice/api.go +++ b/service/databasemigrationservice/api.go @@ -70,8 +70,8 @@ func (c *DatabaseMigrationService) AddTagsToResourceRequest(input *AddTagsToReso // See the AWS API reference guide for AWS Database Migration Service's // API operation AddTagsToResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/AddTagsToResource @@ -150,8 +150,8 @@ func (c *DatabaseMigrationService) ApplyPendingMaintenanceActionRequest(input *A // See the AWS API reference guide for AWS Database Migration Service's // API operation ApplyPendingMaintenanceAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ApplyPendingMaintenanceAction @@ -229,24 +229,24 @@ func (c *DatabaseMigrationService) CreateEndpointRequest(input *CreateEndpointIn // See the AWS API reference guide for AWS Database Migration Service's // API operation CreateEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// Returned Error Types: +// * KMSKeyNotAccessibleFault // AWS DMS cannot access the AWS KMS key. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // @@ -341,36 +341,36 @@ func (c *DatabaseMigrationService) CreateEventSubscriptionRequest(input *CreateE // See the AWS API reference guide for AWS Database Migration Service's // API operation CreateEventSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// Returned Error Types: +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopicFault" +// * SNSInvalidTopicFault // The SNS topic is invalid. // -// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorizationFault" +// * SNSNoAuthorizationFault // You are not authorized for the SNS subscription. // -// * ErrCodeKMSAccessDeniedFault "KMSAccessDeniedFault" +// * KMSAccessDeniedFault // The ciphertext references a key that doesn't exist or that the DMS account // doesn't have access to. // -// * ErrCodeKMSDisabledFault "KMSDisabledFault" +// * KMSDisabledFault // The specified master key (CMK) isn't enabled. // -// * ErrCodeKMSInvalidStateFault "KMSInvalidStateFault" +// * KMSInvalidStateFault // The state of the specified AWS KMS resource isn't valid for this request. // -// * ErrCodeKMSNotFoundFault "KMSNotFoundFault" +// * KMSNotFoundFault // The specified AWS KMS entity or resource can't be found. // -// * ErrCodeKMSThrottlingFault "KMSThrottlingFault" +// * KMSThrottlingFault // This request triggered AWS KMS request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateEventSubscription @@ -455,38 +455,38 @@ func (c *DatabaseMigrationService) CreateReplicationInstanceRequest(input *Creat // See the AWS API reference guide for AWS Database Migration Service's // API operation CreateReplicationInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// Returned Error Types: +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeInsufficientResourceCapacityFault "InsufficientResourceCapacityFault" +// * InsufficientResourceCapacityFault // There are not enough resources allocated to the database migration. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // -// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceededFault" +// * StorageQuotaExceededFault // The storage quota has been exceeded. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs "ReplicationSubnetGroupDoesNotCoverEnoughAZs" +// * ReplicationSubnetGroupDoesNotCoverEnoughAZs // The replication subnet group does not cover enough Availability Zones (AZs). // Edit the replication subnet group and add more AZs. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeInvalidSubnet "InvalidSubnet" +// * InvalidSubnet // The subnet provided is invalid. // -// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// * KMSKeyNotAccessibleFault // AWS DMS cannot access the AWS KMS key. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationInstance @@ -564,25 +564,25 @@ func (c *DatabaseMigrationService) CreateReplicationSubnetGroupRequest(input *Cr // See the AWS API reference guide for AWS Database Migration Service's // API operation CreateReplicationSubnetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// Returned Error Types: +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // -// * ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs "ReplicationSubnetGroupDoesNotCoverEnoughAZs" +// * ReplicationSubnetGroupDoesNotCoverEnoughAZs // The replication subnet group does not cover enough Availability Zones (AZs). // Edit the replication subnet group and add more AZs. // -// * ErrCodeInvalidSubnet "InvalidSubnet" +// * InvalidSubnet // The subnet provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationSubnetGroup @@ -660,25 +660,25 @@ func (c *DatabaseMigrationService) CreateReplicationTaskRequest(input *CreateRep // See the AWS API reference guide for AWS Database Migration Service's // API operation CreateReplicationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// Returned Error Types: +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// * KMSKeyNotAccessibleFault // AWS DMS cannot access the AWS KMS key. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/CreateReplicationTask @@ -756,11 +756,11 @@ func (c *DatabaseMigrationService) DeleteCertificateRequest(input *DeleteCertifi // See the AWS API reference guide for AWS Database Migration Service's // API operation DeleteCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -839,15 +839,15 @@ func (c *DatabaseMigrationService) DeleteConnectionRequest(input *DeleteConnecti // See the AWS API reference guide for AWS Database Migration Service's // API operation DeleteConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// Returned Error Types: +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -929,11 +929,11 @@ func (c *DatabaseMigrationService) DeleteEndpointRequest(input *DeleteEndpointIn // See the AWS API reference guide for AWS Database Migration Service's // API operation DeleteEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -1012,11 +1012,11 @@ func (c *DatabaseMigrationService) DeleteEventSubscriptionRequest(input *DeleteE // See the AWS API reference guide for AWS Database Migration Service's // API operation DeleteEventSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -1098,12 +1098,12 @@ func (c *DatabaseMigrationService) DeleteReplicationInstanceRequest(input *Delet // See the AWS API reference guide for AWS Database Migration Service's // API operation DeleteReplicationInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationInstance @@ -1182,12 +1182,12 @@ func (c *DatabaseMigrationService) DeleteReplicationSubnetGroupRequest(input *De // See the AWS API reference guide for AWS Database Migration Service's // API operation DeleteReplicationSubnetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DeleteReplicationSubnetGroup @@ -1265,11 +1265,11 @@ func (c *DatabaseMigrationService) DeleteReplicationTaskRequest(input *DeleteRep // See the AWS API reference guide for AWS Database Migration Service's // API operation DeleteReplicationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -1436,8 +1436,8 @@ func (c *DatabaseMigrationService) DescribeCertificatesRequest(input *DescribeCe // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeCertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeCertificates @@ -1574,8 +1574,8 @@ func (c *DatabaseMigrationService) DescribeConnectionsRequest(input *DescribeCon // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeConnections for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeConnections @@ -1843,8 +1843,8 @@ func (c *DatabaseMigrationService) DescribeEndpointsRequest(input *DescribeEndpo // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEndpoints @@ -2062,8 +2062,8 @@ func (c *DatabaseMigrationService) DescribeEventSubscriptionsRequest(input *Desc // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeEventSubscriptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeEventSubscriptions @@ -2467,8 +2467,8 @@ func (c *DatabaseMigrationService) DescribePendingMaintenanceActionsRequest(inpu // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribePendingMaintenanceActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribePendingMaintenanceActions @@ -2598,12 +2598,12 @@ func (c *DatabaseMigrationService) DescribeRefreshSchemasStatusRequest(input *De // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeRefreshSchemasStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeRefreshSchemasStatus @@ -2687,11 +2687,11 @@ func (c *DatabaseMigrationService) DescribeReplicationInstanceTaskLogsRequest(in // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeReplicationInstanceTaskLogs for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -2829,8 +2829,8 @@ func (c *DatabaseMigrationService) DescribeReplicationInstancesRequest(input *De // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeReplicationInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationInstances @@ -2966,8 +2966,8 @@ func (c *DatabaseMigrationService) DescribeReplicationSubnetGroupsRequest(input // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeReplicationSubnetGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationSubnetGroups @@ -3104,8 +3104,8 @@ func (c *DatabaseMigrationService) DescribeReplicationTaskAssessmentResultsReque // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeReplicationTaskAssessmentResults for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTaskAssessmentResults @@ -3242,8 +3242,8 @@ func (c *DatabaseMigrationService) DescribeReplicationTasksRequest(input *Descri // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeReplicationTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeReplicationTasks @@ -3379,12 +3379,12 @@ func (c *DatabaseMigrationService) DescribeSchemasRequest(input *DescribeSchemas // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeSchemas for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/DescribeSchemas @@ -3525,11 +3525,11 @@ func (c *DatabaseMigrationService) DescribeTableStatisticsRequest(input *Describ // See the AWS API reference guide for AWS Database Migration Service's // API operation DescribeTableStatistics for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -3660,14 +3660,14 @@ func (c *DatabaseMigrationService) ImportCertificateRequest(input *ImportCertifi // See the AWS API reference guide for AWS Database Migration Service's // API operation ImportCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// Returned Error Types: +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeInvalidCertificateFault "InvalidCertificateFault" +// * InvalidCertificateFault // The certificate was not valid. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ImportCertificate @@ -3745,8 +3745,8 @@ func (c *DatabaseMigrationService) ListTagsForResourceRequest(input *ListTagsFor // See the AWS API reference guide for AWS Database Migration Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ListTagsForResource @@ -3824,21 +3824,21 @@ func (c *DatabaseMigrationService) ModifyEndpointRequest(input *ModifyEndpointIn // See the AWS API reference guide for AWS Database Migration Service's // API operation ModifyEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// * KMSKeyNotAccessibleFault // AWS DMS cannot access the AWS KMS key. // -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // @@ -3917,33 +3917,33 @@ func (c *DatabaseMigrationService) ModifyEventSubscriptionRequest(input *ModifyE // See the AWS API reference guide for AWS Database Migration Service's // API operation ModifyEventSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// Returned Error Types: +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeSNSInvalidTopicFault "SNSInvalidTopicFault" +// * SNSInvalidTopicFault // The SNS topic is invalid. // -// * ErrCodeSNSNoAuthorizationFault "SNSNoAuthorizationFault" +// * SNSNoAuthorizationFault // You are not authorized for the SNS subscription. // -// * ErrCodeKMSAccessDeniedFault "KMSAccessDeniedFault" +// * KMSAccessDeniedFault // The ciphertext references a key that doesn't exist or that the DMS account // doesn't have access to. // -// * ErrCodeKMSDisabledFault "KMSDisabledFault" +// * KMSDisabledFault // The specified master key (CMK) isn't enabled. // -// * ErrCodeKMSInvalidStateFault "KMSInvalidStateFault" +// * KMSInvalidStateFault // The state of the specified AWS KMS resource isn't valid for this request. // -// * ErrCodeKMSNotFoundFault "KMSNotFoundFault" +// * KMSNotFoundFault // The specified AWS KMS entity or resource can't be found. // -// * ErrCodeKMSThrottlingFault "KMSThrottlingFault" +// * KMSThrottlingFault // This request triggered AWS KMS request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyEventSubscription @@ -4025,28 +4025,28 @@ func (c *DatabaseMigrationService) ModifyReplicationInstanceRequest(input *Modif // See the AWS API reference guide for AWS Database Migration Service's // API operation ModifyReplicationInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// Returned Error Types: +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInsufficientResourceCapacityFault "InsufficientResourceCapacityFault" +// * InsufficientResourceCapacityFault // There are not enough resources allocated to the database migration. // -// * ErrCodeStorageQuotaExceededFault "StorageQuotaExceededFault" +// * StorageQuotaExceededFault // The storage quota has been exceeded. // -// * ErrCodeUpgradeDependencyFailureFault "UpgradeDependencyFailureFault" +// * UpgradeDependencyFailureFault // An upgrade dependency is preventing the database migration. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationInstance @@ -4124,25 +4124,25 @@ func (c *DatabaseMigrationService) ModifyReplicationSubnetGroupRequest(input *Mo // See the AWS API reference guide for AWS Database Migration Service's // API operation ModifyReplicationSubnetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// Returned Error Types: +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // -// * ErrCodeSubnetAlreadyInUse "SubnetAlreadyInUse" +// * SubnetAlreadyInUse // The specified subnet is already in use. // -// * ErrCodeReplicationSubnetGroupDoesNotCoverEnoughAZs "ReplicationSubnetGroupDoesNotCoverEnoughAZs" +// * ReplicationSubnetGroupDoesNotCoverEnoughAZs // The replication subnet group does not cover enough Availability Zones (AZs). // Edit the replication subnet group and add more AZs. // -// * ErrCodeInvalidSubnet "InvalidSubnet" +// * InvalidSubnet // The subnet provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationSubnetGroup @@ -4227,18 +4227,18 @@ func (c *DatabaseMigrationService) ModifyReplicationTaskRequest(input *ModifyRep // See the AWS API reference guide for AWS Database Migration Service's // API operation ModifyReplicationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeResourceAlreadyExistsFault "ResourceAlreadyExistsFault" +// * ResourceAlreadyExistsFault // The resource you are attempting to create already exists. // -// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// * KMSKeyNotAccessibleFault // AWS DMS cannot access the AWS KMS key. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/ModifyReplicationTask @@ -4317,11 +4317,11 @@ func (c *DatabaseMigrationService) RebootReplicationInstanceRequest(input *Reboo // See the AWS API reference guide for AWS Database Migration Service's // API operation RebootReplicationInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -4402,18 +4402,18 @@ func (c *DatabaseMigrationService) RefreshSchemasRequest(input *RefreshSchemasIn // See the AWS API reference guide for AWS Database Migration Service's // API operation RefreshSchemas for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// * KMSKeyNotAccessibleFault // AWS DMS cannot access the AWS KMS key. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RefreshSchemas @@ -4491,11 +4491,11 @@ func (c *DatabaseMigrationService) ReloadTablesRequest(input *ReloadTablesInput) // See the AWS API reference guide for AWS Database Migration Service's // API operation ReloadTables for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -4575,8 +4575,8 @@ func (c *DatabaseMigrationService) RemoveTagsFromResourceRequest(input *RemoveTa // See the AWS API reference guide for AWS Database Migration Service's // API operation RemoveTagsFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/RemoveTagsFromResource @@ -4658,15 +4658,15 @@ func (c *DatabaseMigrationService) StartReplicationTaskRequest(input *StartRepli // See the AWS API reference guide for AWS Database Migration Service's // API operation StartReplicationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeAccessDeniedFault "AccessDeniedFault" +// * AccessDeniedFault // AWS DMS was denied access to the endpoint. Check that the role is correctly // configured. // @@ -4746,12 +4746,12 @@ func (c *DatabaseMigrationService) StartReplicationTaskAssessmentRequest(input * // See the AWS API reference guide for AWS Database Migration Service's // API operation StartReplicationTaskAssessment for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// Returned Error Types: +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// * ResourceNotFoundFault // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/StartReplicationTaskAssessment @@ -4829,11 +4829,11 @@ func (c *DatabaseMigrationService) StopReplicationTaskRequest(input *StopReplica // See the AWS API reference guide for AWS Database Migration Service's // API operation StopReplicationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // @@ -4912,18 +4912,18 @@ func (c *DatabaseMigrationService) TestConnectionRequest(input *TestConnectionIn // See the AWS API reference guide for AWS Database Migration Service's // API operation TestConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundFault "ResourceNotFoundFault" +// Returned Error Types: +// * ResourceNotFoundFault // The resource could not be found. // -// * ErrCodeInvalidResourceStateFault "InvalidResourceStateFault" +// * InvalidResourceStateFault // The resource is in a state that prevents it from being used for database // migration. // -// * ErrCodeKMSKeyNotAccessibleFault "KMSKeyNotAccessibleFault" +// * KMSKeyNotAccessibleFault // AWS DMS cannot access the AWS KMS key. // -// * ErrCodeResourceQuotaExceededFault "ResourceQuotaExceededFault" +// * ResourceQuotaExceededFault // The quota for this resource quota has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dms-2016-01-01/TestConnection @@ -4948,6 +4948,63 @@ func (c *DatabaseMigrationService) TestConnectionWithContext(ctx aws.Context, in return out, req.Send() } +// AWS DMS was denied access to the endpoint. Check that the role is correctly +// configured. +type AccessDeniedFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedFault) GoString() string { + return s.String() +} + +func newErrorAccessDeniedFault(v protocol.ResponseMetadata) error { + return &AccessDeniedFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedFault) Code() string { + return "AccessDeniedFault" +} + +// Message returns the exception's message. +func (s AccessDeniedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedFault) OrigErr() error { + return nil +} + +func (s AccessDeniedFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedFault) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a quota for an AWS account, for example, the number of replication // instances allowed. type AccountQuota struct { @@ -9376,272 +9433,834 @@ func (s *ImportCertificateOutput) SetCertificate(v *Certificate) *ImportCertific return s } -type KinesisSettings struct { - _ struct{} `type:"structure"` - - // The output format for the records created on the endpoint. The message format - // is JSON. - MessageFormat *string `type:"string" enum:"MessageFormatValue"` - - // The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to - // the Amazon Kinesis data stream. - ServiceAccessRoleArn *string `type:"string"` +// There are not enough resources allocated to the database migration. +type InsufficientResourceCapacityFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint. - StreamArn *string `type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s KinesisSettings) String() string { +func (s InsufficientResourceCapacityFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s KinesisSettings) GoString() string { +func (s InsufficientResourceCapacityFault) GoString() string { return s.String() } -// SetMessageFormat sets the MessageFormat field's value. -func (s *KinesisSettings) SetMessageFormat(v string) *KinesisSettings { - s.MessageFormat = &v - return s +func newErrorInsufficientResourceCapacityFault(v protocol.ResponseMetadata) error { + return &InsufficientResourceCapacityFault{ + respMetadata: v, + } } -// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. -func (s *KinesisSettings) SetServiceAccessRoleArn(v string) *KinesisSettings { - s.ServiceAccessRoleArn = &v - return s +// Code returns the exception type name. +func (s InsufficientResourceCapacityFault) Code() string { + return "InsufficientResourceCapacityFault" } -// SetStreamArn sets the StreamArn field's value. -func (s *KinesisSettings) SetStreamArn(v string) *KinesisSettings { - s.StreamArn = &v - return s +// Message returns the exception's message. +func (s InsufficientResourceCapacityFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -type ListTagsForResourceInput struct { - _ struct{} `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientResourceCapacityFault) OrigErr() error { + return nil +} - // The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS - // resource. - // - // ResourceArn is a required field - ResourceArn *string `type:"string" required:"true"` +func (s InsufficientResourceCapacityFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientResourceCapacityFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsufficientResourceCapacityFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The certificate was not valid. +type InvalidCertificateFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ListTagsForResourceInput) String() string { +func (s InvalidCertificateFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceInput) GoString() string { +func (s InvalidCertificateFault) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsForResourceInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) +func newErrorInvalidCertificateFault(v protocol.ResponseMetadata) error { + return &InvalidCertificateFault{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s InvalidCertificateFault) Code() string { + return "InvalidCertificateFault" +} + +// Message returns the exception's message. +func (s InvalidCertificateFault) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCertificateFault) OrigErr() error { return nil } -// SetResourceArn sets the ResourceArn field's value. -func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { - s.ResourceArn = &v - return s +func (s InvalidCertificateFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type ListTagsForResourceOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCertificateFault) StatusCode() int { + return s.respMetadata.StatusCode +} - // A list of tags for the resource. - TagList []*Tag `type:"list"` +// RequestID returns the service's response RequestID for request. +func (s InvalidCertificateFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource is in a state that prevents it from being used for database +// migration. +type InvalidResourceStateFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ListTagsForResourceOutput) String() string { +func (s InvalidResourceStateFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsForResourceOutput) GoString() string { +func (s InvalidResourceStateFault) GoString() string { return s.String() } -// SetTagList sets the TagList field's value. -func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { - s.TagList = v - return s +func newErrorInvalidResourceStateFault(v protocol.ResponseMetadata) error { + return &InvalidResourceStateFault{ + respMetadata: v, + } } -type ModifyEndpointInput struct { - _ struct{} `type:"structure"` - - // The Amazon Resource Name (ARN) of the certificate used for SSL connection. - CertificateArn *string `type:"string"` - - // The name of the endpoint database. - DatabaseName *string `type:"string"` - - // The settings in JSON format for the DMS transfer type of source endpoint. - // - // Attributes include the following: - // - // * serviceAccessRoleArn - The IAM role that has permission to access the - // Amazon S3 bucket. - // - // * BucketName - The name of the S3 bucket to use. - // - // * compressionType - An optional parameter to use GZIP to compress the - // target files. Set to NONE (the default) or do not use to leave the files - // uncompressed. - // - // Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string - // - // JSON syntax: - // - // { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": - // "none"|"gzip" } - DmsTransferSettings *DmsTransferSettings `type:"structure"` +// Code returns the exception type name. +func (s InvalidResourceStateFault) Code() string { + return "InvalidResourceStateFault" +} - // Settings in JSON format for the target Amazon DynamoDB endpoint. For more - // information about the available settings, see Using Object Mapping to Migrate - // Data to DynamoDB (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html) - // in the AWS Database Migration Service User Guide. - DynamoDbSettings *DynamoDbSettings `type:"structure"` +// Message returns the exception's message. +func (s InvalidResourceStateFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // Settings in JSON format for the target Elasticsearch endpoint. For more information - // about the available settings, see Extra Connection Attributes When Using - // Elasticsearch as a Target for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration) - // in the AWS Database Migration User Guide. - ElasticsearchSettings *ElasticsearchSettings `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceStateFault) OrigErr() error { + return nil +} - // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. - // - // EndpointArn is a required field - EndpointArn *string `type:"string" required:"true"` +func (s InvalidResourceStateFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The database endpoint identifier. Identifiers must begin with a letter; must - // contain only ASCII letters, digits, and hyphens; and must not end with a - // hyphen or contain two consecutive hyphens. - EndpointIdentifier *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceStateFault) StatusCode() int { + return s.respMetadata.StatusCode +} - // The type of endpoint. Valid values are source and target. - EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceStateFault) RequestID() string { + return s.respMetadata.RequestID +} - // The type of engine for the endpoint. Valid values, depending on the EndpointType, - // include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, - // s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver. - EngineName *string `type:"string"` +// The subnet provided is invalid. +type InvalidSubnet struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The external table definition. - ExternalTableDefinition *string `type:"string"` + Message_ *string `locationName:"message" type:"string"` +} - // Additional attributes associated with the connection. To reset this parameter, - // pass the empty string ("") as an argument. - ExtraConnectionAttributes *string `type:"string"` +// String returns the string representation +func (s InvalidSubnet) String() string { + return awsutil.Prettify(s) +} - // Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. - // For more information about the available settings, see Using Object Mapping - // to Migrate Data to a Kinesis Data Stream (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping) - // in the AWS Database Migration User Guide. - KinesisSettings *KinesisSettings `type:"structure"` +// GoString returns the string representation +func (s InvalidSubnet) GoString() string { + return s.String() +} - // Settings in JSON format for the source MongoDB endpoint. For more information - // about the available settings, see the configuration properties section in - // Using MongoDB as a Target for AWS Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html) - // in the AWS Database Migration Service User Guide. - MongoDbSettings *MongoDbSettings `type:"structure"` +func newErrorInvalidSubnet(v protocol.ResponseMetadata) error { + return &InvalidSubnet{ + respMetadata: v, + } +} - // The password to be used to login to the endpoint database. - Password *string `type:"string" sensitive:"true"` +// Code returns the exception type name. +func (s InvalidSubnet) Code() string { + return "InvalidSubnet" +} - // The port used by the endpoint database. - Port *int64 `type:"integer"` +// Message returns the exception's message. +func (s InvalidSubnet) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - RedshiftSettings *RedshiftSettings `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSubnet) OrigErr() error { + return nil +} - // Settings in JSON format for the target Amazon S3 endpoint. For more information - // about the available settings, see Extra Connection Attributes When Using - // Amazon S3 as a Target for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring) - // in the AWS Database Migration Service User Guide. - S3Settings *S3Settings `type:"structure"` +func (s InvalidSubnet) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the server where the endpoint database resides. - ServerName *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSubnet) StatusCode() int { + return s.respMetadata.StatusCode +} - // The Amazon Resource Name (ARN) for the service access role you want to use - // to modify the endpoint. - ServiceAccessRoleArn *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidSubnet) RequestID() string { + return s.respMetadata.RequestID +} - // The SSL mode used to connect to the endpoint. The default value is none. - SslMode *string `type:"string" enum:"DmsSslModeValue"` +// The ciphertext references a key that doesn't exist or that the DMS account +// doesn't have access to. +type KMSAccessDeniedFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The user name to be used to login to the endpoint database. - Username *string `type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ModifyEndpointInput) String() string { +func (s KMSAccessDeniedFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyEndpointInput) GoString() string { +func (s KMSAccessDeniedFault) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyEndpointInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyEndpointInput"} - if s.EndpointArn == nil { - invalidParams.Add(request.NewErrParamRequired("EndpointArn")) - } - if s.DynamoDbSettings != nil { - if err := s.DynamoDbSettings.Validate(); err != nil { - invalidParams.AddNested("DynamoDbSettings", err.(request.ErrInvalidParams)) - } - } - if s.ElasticsearchSettings != nil { - if err := s.ElasticsearchSettings.Validate(); err != nil { - invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams)) - } +func newErrorKMSAccessDeniedFault(v protocol.ResponseMetadata) error { + return &KMSAccessDeniedFault{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s KMSAccessDeniedFault) Code() string { + return "KMSAccessDeniedFault" +} + +// Message returns the exception's message. +func (s KMSAccessDeniedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSAccessDeniedFault) OrigErr() error { return nil } -// SetCertificateArn sets the CertificateArn field's value. -func (s *ModifyEndpointInput) SetCertificateArn(v string) *ModifyEndpointInput { - s.CertificateArn = &v - return s +func (s KMSAccessDeniedFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetDatabaseName sets the DatabaseName field's value. -func (s *ModifyEndpointInput) SetDatabaseName(v string) *ModifyEndpointInput { - s.DatabaseName = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s KMSAccessDeniedFault) StatusCode() int { + return s.respMetadata.StatusCode } -// SetDmsTransferSettings sets the DmsTransferSettings field's value. -func (s *ModifyEndpointInput) SetDmsTransferSettings(v *DmsTransferSettings) *ModifyEndpointInput { - s.DmsTransferSettings = v - return s +// RequestID returns the service's response RequestID for request. +func (s KMSAccessDeniedFault) RequestID() string { + return s.respMetadata.RequestID } -// SetDynamoDbSettings sets the DynamoDbSettings field's value. -func (s *ModifyEndpointInput) SetDynamoDbSettings(v *DynamoDbSettings) *ModifyEndpointInput { - s.DynamoDbSettings = v +// The specified master key (CMK) isn't enabled. +type KMSDisabledFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s KMSDisabledFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSDisabledFault) GoString() string { + return s.String() +} + +func newErrorKMSDisabledFault(v protocol.ResponseMetadata) error { + return &KMSDisabledFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSDisabledFault) Code() string { + return "KMSDisabledFault" +} + +// Message returns the exception's message. +func (s KMSDisabledFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSDisabledFault) OrigErr() error { + return nil +} + +func (s KMSDisabledFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSDisabledFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSDisabledFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The state of the specified AWS KMS resource isn't valid for this request. +type KMSInvalidStateFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s KMSInvalidStateFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSInvalidStateFault) GoString() string { + return s.String() +} + +func newErrorKMSInvalidStateFault(v protocol.ResponseMetadata) error { + return &KMSInvalidStateFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSInvalidStateFault) Code() string { + return "KMSInvalidStateFault" +} + +// Message returns the exception's message. +func (s KMSInvalidStateFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSInvalidStateFault) OrigErr() error { + return nil +} + +func (s KMSInvalidStateFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSInvalidStateFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSInvalidStateFault) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS DMS cannot access the AWS KMS key. +type KMSKeyNotAccessibleFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s KMSKeyNotAccessibleFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSKeyNotAccessibleFault) GoString() string { + return s.String() +} + +func newErrorKMSKeyNotAccessibleFault(v protocol.ResponseMetadata) error { + return &KMSKeyNotAccessibleFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSKeyNotAccessibleFault) Code() string { + return "KMSKeyNotAccessibleFault" +} + +// Message returns the exception's message. +func (s KMSKeyNotAccessibleFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSKeyNotAccessibleFault) OrigErr() error { + return nil +} + +func (s KMSKeyNotAccessibleFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSKeyNotAccessibleFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSKeyNotAccessibleFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified AWS KMS entity or resource can't be found. +type KMSNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s KMSNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSNotFoundFault) GoString() string { + return s.String() +} + +func newErrorKMSNotFoundFault(v protocol.ResponseMetadata) error { + return &KMSNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSNotFoundFault) Code() string { + return "KMSNotFoundFault" +} + +// Message returns the exception's message. +func (s KMSNotFoundFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSNotFoundFault) OrigErr() error { + return nil +} + +func (s KMSNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + +// This request triggered AWS KMS request throttling. +type KMSThrottlingFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s KMSThrottlingFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSThrottlingFault) GoString() string { + return s.String() +} + +func newErrorKMSThrottlingFault(v protocol.ResponseMetadata) error { + return &KMSThrottlingFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSThrottlingFault) Code() string { + return "KMSThrottlingFault" +} + +// Message returns the exception's message. +func (s KMSThrottlingFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSThrottlingFault) OrigErr() error { + return nil +} + +func (s KMSThrottlingFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSThrottlingFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSThrottlingFault) RequestID() string { + return s.respMetadata.RequestID +} + +type KinesisSettings struct { + _ struct{} `type:"structure"` + + // The output format for the records created on the endpoint. The message format + // is JSON. + MessageFormat *string `type:"string" enum:"MessageFormatValue"` + + // The Amazon Resource Name (ARN) for the IAM role that DMS uses to write to + // the Amazon Kinesis data stream. + ServiceAccessRoleArn *string `type:"string"` + + // The Amazon Resource Name (ARN) for the Amazon Kinesis Data Streams endpoint. + StreamArn *string `type:"string"` +} + +// String returns the string representation +func (s KinesisSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KinesisSettings) GoString() string { + return s.String() +} + +// SetMessageFormat sets the MessageFormat field's value. +func (s *KinesisSettings) SetMessageFormat(v string) *KinesisSettings { + s.MessageFormat = &v + return s +} + +// SetServiceAccessRoleArn sets the ServiceAccessRoleArn field's value. +func (s *KinesisSettings) SetServiceAccessRoleArn(v string) *KinesisSettings { + s.ServiceAccessRoleArn = &v + return s +} + +// SetStreamArn sets the StreamArn field's value. +func (s *KinesisSettings) SetStreamArn(v string) *KinesisSettings { + s.StreamArn = &v + return s +} + +type ListTagsForResourceInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) string that uniquely identifies the AWS DMS + // resource. + // + // ResourceArn is a required field + ResourceArn *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsForResourceInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsForResourceInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { + s.ResourceArn = &v + return s +} + +type ListTagsForResourceOutput struct { + _ struct{} `type:"structure"` + + // A list of tags for the resource. + TagList []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsForResourceOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsForResourceOutput) GoString() string { + return s.String() +} + +// SetTagList sets the TagList field's value. +func (s *ListTagsForResourceOutput) SetTagList(v []*Tag) *ListTagsForResourceOutput { + s.TagList = v + return s +} + +type ModifyEndpointInput struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the certificate used for SSL connection. + CertificateArn *string `type:"string"` + + // The name of the endpoint database. + DatabaseName *string `type:"string"` + + // The settings in JSON format for the DMS transfer type of source endpoint. + // + // Attributes include the following: + // + // * serviceAccessRoleArn - The IAM role that has permission to access the + // Amazon S3 bucket. + // + // * BucketName - The name of the S3 bucket to use. + // + // * compressionType - An optional parameter to use GZIP to compress the + // target files. Set to NONE (the default) or do not use to leave the files + // uncompressed. + // + // Shorthand syntax: ServiceAccessRoleArn=string ,BucketName=string,CompressionType=string + // + // JSON syntax: + // + // { "ServiceAccessRoleArn": "string", "BucketName": "string", "CompressionType": + // "none"|"gzip" } + DmsTransferSettings *DmsTransferSettings `type:"structure"` + + // Settings in JSON format for the target Amazon DynamoDB endpoint. For more + // information about the available settings, see Using Object Mapping to Migrate + // Data to DynamoDB (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.DynamoDB.html) + // in the AWS Database Migration Service User Guide. + DynamoDbSettings *DynamoDbSettings `type:"structure"` + + // Settings in JSON format for the target Elasticsearch endpoint. For more information + // about the available settings, see Extra Connection Attributes When Using + // Elasticsearch as a Target for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Elasticsearch.html#CHAP_Target.Elasticsearch.Configuration) + // in the AWS Database Migration User Guide. + ElasticsearchSettings *ElasticsearchSettings `type:"structure"` + + // The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. + // + // EndpointArn is a required field + EndpointArn *string `type:"string" required:"true"` + + // The database endpoint identifier. Identifiers must begin with a letter; must + // contain only ASCII letters, digits, and hyphens; and must not end with a + // hyphen or contain two consecutive hyphens. + EndpointIdentifier *string `type:"string"` + + // The type of endpoint. Valid values are source and target. + EndpointType *string `type:"string" enum:"ReplicationEndpointTypeValue"` + + // The type of engine for the endpoint. Valid values, depending on the EndpointType, + // include mysql, oracle, postgres, mariadb, aurora, aurora-postgresql, redshift, + // s3, db2, azuredb, sybase, dynamodb, mongodb, and sqlserver. + EngineName *string `type:"string"` + + // The external table definition. + ExternalTableDefinition *string `type:"string"` + + // Additional attributes associated with the connection. To reset this parameter, + // pass the empty string ("") as an argument. + ExtraConnectionAttributes *string `type:"string"` + + // Settings in JSON format for the target Amazon Kinesis Data Streams endpoint. + // For more information about the available settings, see Using Object Mapping + // to Migrate Data to a Kinesis Data Stream (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Kinesis.html#CHAP_Target.Kinesis.ObjectMapping) + // in the AWS Database Migration User Guide. + KinesisSettings *KinesisSettings `type:"structure"` + + // Settings in JSON format for the source MongoDB endpoint. For more information + // about the available settings, see the configuration properties section in + // Using MongoDB as a Target for AWS Database Migration Service (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html) + // in the AWS Database Migration Service User Guide. + MongoDbSettings *MongoDbSettings `type:"structure"` + + // The password to be used to login to the endpoint database. + Password *string `type:"string" sensitive:"true"` + + // The port used by the endpoint database. + Port *int64 `type:"integer"` + + RedshiftSettings *RedshiftSettings `type:"structure"` + + // Settings in JSON format for the target Amazon S3 endpoint. For more information + // about the available settings, see Extra Connection Attributes When Using + // Amazon S3 as a Target for AWS DMS (https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.S3.html#CHAP_Target.S3.Configuring) + // in the AWS Database Migration Service User Guide. + S3Settings *S3Settings `type:"structure"` + + // The name of the server where the endpoint database resides. + ServerName *string `type:"string"` + + // The Amazon Resource Name (ARN) for the service access role you want to use + // to modify the endpoint. + ServiceAccessRoleArn *string `type:"string"` + + // The SSL mode used to connect to the endpoint. The default value is none. + SslMode *string `type:"string" enum:"DmsSslModeValue"` + + // The user name to be used to login to the endpoint database. + Username *string `type:"string"` +} + +// String returns the string representation +func (s ModifyEndpointInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyEndpointInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyEndpointInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyEndpointInput"} + if s.EndpointArn == nil { + invalidParams.Add(request.NewErrParamRequired("EndpointArn")) + } + if s.DynamoDbSettings != nil { + if err := s.DynamoDbSettings.Validate(); err != nil { + invalidParams.AddNested("DynamoDbSettings", err.(request.ErrInvalidParams)) + } + } + if s.ElasticsearchSettings != nil { + if err := s.ElasticsearchSettings.Validate(); err != nil { + invalidParams.AddNested("ElasticsearchSettings", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCertificateArn sets the CertificateArn field's value. +func (s *ModifyEndpointInput) SetCertificateArn(v string) *ModifyEndpointInput { + s.CertificateArn = &v + return s +} + +// SetDatabaseName sets the DatabaseName field's value. +func (s *ModifyEndpointInput) SetDatabaseName(v string) *ModifyEndpointInput { + s.DatabaseName = &v + return s +} + +// SetDmsTransferSettings sets the DmsTransferSettings field's value. +func (s *ModifyEndpointInput) SetDmsTransferSettings(v *DmsTransferSettings) *ModifyEndpointInput { + s.DmsTransferSettings = v + return s +} + +// SetDynamoDbSettings sets the DynamoDbSettings field's value. +func (s *ModifyEndpointInput) SetDynamoDbSettings(v *DynamoDbSettings) *ModifyEndpointInput { + s.DynamoDbSettings = v return s } @@ -11695,6 +12314,63 @@ func (s *ReplicationSubnetGroup) SetVpcId(v string) *ReplicationSubnetGroup { return s } +// The replication subnet group does not cover enough Availability Zones (AZs). +// Edit the replication subnet group and add more AZs. +type ReplicationSubnetGroupDoesNotCoverEnoughAZs struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) GoString() string { + return s.String() +} + +func newErrorReplicationSubnetGroupDoesNotCoverEnoughAZs(v protocol.ResponseMetadata) error { + return &ReplicationSubnetGroupDoesNotCoverEnoughAZs{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) Code() string { + return "ReplicationSubnetGroupDoesNotCoverEnoughAZs" +} + +// Message returns the exception's message. +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) OrigErr() error { + return nil +} + +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReplicationSubnetGroupDoesNotCoverEnoughAZs) RequestID() string { + return s.respMetadata.RequestID +} + type ReplicationTask struct { _ struct{} `type:"structure"` @@ -12083,6 +12759,120 @@ func (s *ReplicationTaskStats) SetTablesQueued(v int64) *ReplicationTaskStats { return s } +// The resource you are attempting to create already exists. +type ResourceAlreadyExistsFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ResourceArn *string `locationName:"resourceArn" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsFault) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsFault(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsFault) Code() string { + return "ResourceAlreadyExistsFault" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsFault) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource could not be found. +type ResourceNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundFault) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundFault(v protocol.ResponseMetadata) error { + return &ResourceNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundFault) Code() string { + return "ResourceNotFoundFault" +} + +// Message returns the exception's message. +func (s ResourceNotFoundFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundFault) OrigErr() error { + return nil +} + +func (s ResourceNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + type ResourcePendingMaintenanceActions struct { _ struct{} `type:"structure"` @@ -12118,6 +12908,62 @@ func (s *ResourcePendingMaintenanceActions) SetResourceIdentifier(v string) *Res return s } +// The quota for this resource quota has been exceeded. +type ResourceQuotaExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceQuotaExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceQuotaExceededFault) GoString() string { + return s.String() +} + +func newErrorResourceQuotaExceededFault(v protocol.ResponseMetadata) error { + return &ResourceQuotaExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceQuotaExceededFault) Code() string { + return "ResourceQuotaExceededFault" +} + +// Message returns the exception's message. +func (s ResourceQuotaExceededFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceQuotaExceededFault) OrigErr() error { + return nil +} + +func (s ResourceQuotaExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceQuotaExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceQuotaExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + // Settings for exporting data to Amazon S3. type S3Settings struct { _ struct{} `type:"structure"` @@ -12456,6 +13302,118 @@ func (s *S3Settings) SetTimestampColumnName(v string) *S3Settings { return s } +// The SNS topic is invalid. +type SNSInvalidTopicFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SNSInvalidTopicFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SNSInvalidTopicFault) GoString() string { + return s.String() +} + +func newErrorSNSInvalidTopicFault(v protocol.ResponseMetadata) error { + return &SNSInvalidTopicFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SNSInvalidTopicFault) Code() string { + return "SNSInvalidTopicFault" +} + +// Message returns the exception's message. +func (s SNSInvalidTopicFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SNSInvalidTopicFault) OrigErr() error { + return nil +} + +func (s SNSInvalidTopicFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SNSInvalidTopicFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SNSInvalidTopicFault) RequestID() string { + return s.respMetadata.RequestID +} + +// You are not authorized for the SNS subscription. +type SNSNoAuthorizationFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SNSNoAuthorizationFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SNSNoAuthorizationFault) GoString() string { + return s.String() +} + +func newErrorSNSNoAuthorizationFault(v protocol.ResponseMetadata) error { + return &SNSNoAuthorizationFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SNSNoAuthorizationFault) Code() string { + return "SNSNoAuthorizationFault" +} + +// Message returns the exception's message. +func (s SNSNoAuthorizationFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SNSNoAuthorizationFault) OrigErr() error { + return nil +} + +func (s SNSNoAuthorizationFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SNSNoAuthorizationFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SNSNoAuthorizationFault) RequestID() string { + return s.respMetadata.RequestID +} + type StartReplicationTaskAssessmentInput struct { _ struct{} `type:"structure"` @@ -12706,6 +13664,62 @@ func (s *StopReplicationTaskOutput) SetReplicationTask(v *ReplicationTask) *Stop return s } +// The storage quota has been exceeded. +type StorageQuotaExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StorageQuotaExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageQuotaExceededFault) GoString() string { + return s.String() +} + +func newErrorStorageQuotaExceededFault(v protocol.ResponseMetadata) error { + return &StorageQuotaExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StorageQuotaExceededFault) Code() string { + return "StorageQuotaExceededFault" +} + +// Message returns the exception's message. +func (s StorageQuotaExceededFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StorageQuotaExceededFault) OrigErr() error { + return nil +} + +func (s StorageQuotaExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StorageQuotaExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StorageQuotaExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + type Subnet struct { _ struct{} `type:"structure"` @@ -12747,6 +13761,62 @@ func (s *Subnet) SetSubnetStatus(v string) *Subnet { return s } +// The specified subnet is already in use. +type SubnetAlreadyInUse struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SubnetAlreadyInUse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetAlreadyInUse) GoString() string { + return s.String() +} + +func newErrorSubnetAlreadyInUse(v protocol.ResponseMetadata) error { + return &SubnetAlreadyInUse{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetAlreadyInUse) Code() string { + return "SubnetAlreadyInUse" +} + +// Message returns the exception's message. +func (s SubnetAlreadyInUse) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetAlreadyInUse) OrigErr() error { + return nil +} + +func (s SubnetAlreadyInUse) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetAlreadyInUse) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetAlreadyInUse) RequestID() string { + return s.respMetadata.RequestID +} + type SupportedEndpointType struct { _ struct{} `type:"structure"` @@ -13133,6 +14203,62 @@ func (s *TestConnectionOutput) SetConnection(v *Connection) *TestConnectionOutpu return s } +// An upgrade dependency is preventing the database migration. +type UpgradeDependencyFailureFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UpgradeDependencyFailureFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpgradeDependencyFailureFault) GoString() string { + return s.String() +} + +func newErrorUpgradeDependencyFailureFault(v protocol.ResponseMetadata) error { + return &UpgradeDependencyFailureFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UpgradeDependencyFailureFault) Code() string { + return "UpgradeDependencyFailureFault" +} + +// Message returns the exception's message. +func (s UpgradeDependencyFailureFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UpgradeDependencyFailureFault) OrigErr() error { + return nil +} + +func (s UpgradeDependencyFailureFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UpgradeDependencyFailureFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UpgradeDependencyFailureFault) RequestID() string { + return s.respMetadata.RequestID +} + type VpcSecurityGroupMembership struct { _ struct{} `type:"structure"` diff --git a/service/databasemigrationservice/errors.go b/service/databasemigrationservice/errors.go index 35ed259eb45..e2e32caf6f0 100644 --- a/service/databasemigrationservice/errors.go +++ b/service/databasemigrationservice/errors.go @@ -2,6 +2,10 @@ package databasemigrationservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedFault for service response error code @@ -128,3 +132,26 @@ const ( // An upgrade dependency is preventing the database migration. ErrCodeUpgradeDependencyFailureFault = "UpgradeDependencyFailureFault" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedFault": newErrorAccessDeniedFault, + "InsufficientResourceCapacityFault": newErrorInsufficientResourceCapacityFault, + "InvalidCertificateFault": newErrorInvalidCertificateFault, + "InvalidResourceStateFault": newErrorInvalidResourceStateFault, + "InvalidSubnet": newErrorInvalidSubnet, + "KMSAccessDeniedFault": newErrorKMSAccessDeniedFault, + "KMSDisabledFault": newErrorKMSDisabledFault, + "KMSInvalidStateFault": newErrorKMSInvalidStateFault, + "KMSKeyNotAccessibleFault": newErrorKMSKeyNotAccessibleFault, + "KMSNotFoundFault": newErrorKMSNotFoundFault, + "KMSThrottlingFault": newErrorKMSThrottlingFault, + "ReplicationSubnetGroupDoesNotCoverEnoughAZs": newErrorReplicationSubnetGroupDoesNotCoverEnoughAZs, + "ResourceAlreadyExistsFault": newErrorResourceAlreadyExistsFault, + "ResourceNotFoundFault": newErrorResourceNotFoundFault, + "ResourceQuotaExceededFault": newErrorResourceQuotaExceededFault, + "SNSInvalidTopicFault": newErrorSNSInvalidTopicFault, + "SNSNoAuthorizationFault": newErrorSNSNoAuthorizationFault, + "StorageQuotaExceededFault": newErrorStorageQuotaExceededFault, + "SubnetAlreadyInUse": newErrorSubnetAlreadyInUse, + "UpgradeDependencyFailureFault": newErrorUpgradeDependencyFailureFault, +} diff --git a/service/databasemigrationservice/service.go b/service/databasemigrationservice/service.go index c5d52dd4ed9..fbb9d0055d0 100644 --- a/service/databasemigrationservice/service.go +++ b/service/databasemigrationservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/dataexchange/api.go b/service/dataexchange/api.go index 12c87299c0e..c95c96bec5d 100644 --- a/service/dataexchange/api.go +++ b/service/dataexchange/api.go @@ -68,20 +68,20 @@ func (c *DataExchange) CancelJobRequest(input *CancelJobInput) (req *request.Req // See the AWS API reference guide for AWS Data Exchange's // API operation CancelJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request couldn't be completed because it conflicted with the current // state of the resource. // @@ -160,20 +160,20 @@ func (c *DataExchange) CreateDataSetRequest(input *CreateDataSetInput) (req *req // See the AWS API reference guide for AWS Data Exchange's // API operation CreateDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeServiceLimitExceededException "ServiceLimitExceededException" +// * ServiceLimitExceededException // The request has exceeded the quotas imposed by the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateDataSet @@ -251,20 +251,20 @@ func (c *DataExchange) CreateJobRequest(input *CreateJobInput) (req *request.Req // See the AWS API reference guide for AWS Data Exchange's // API operation CreateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateJob @@ -342,20 +342,20 @@ func (c *DataExchange) CreateRevisionRequest(input *CreateRevisionInput) (req *r // See the AWS API reference guide for AWS Data Exchange's // API operation CreateRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/CreateRevision @@ -434,23 +434,23 @@ func (c *DataExchange) DeleteAssetRequest(input *DeleteAssetInput) (req *request // See the AWS API reference guide for AWS Data Exchange's // API operation DeleteAsset for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request couldn't be completed because it conflicted with the current // state of the resource. // @@ -530,23 +530,23 @@ func (c *DataExchange) DeleteDataSetRequest(input *DeleteDataSetInput) (req *req // See the AWS API reference guide for AWS Data Exchange's // API operation DeleteDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request couldn't be completed because it conflicted with the current // state of the resource. // @@ -626,23 +626,23 @@ func (c *DataExchange) DeleteRevisionRequest(input *DeleteRevisionInput) (req *r // See the AWS API reference guide for AWS Data Exchange's // API operation DeleteRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request couldn't be completed because it conflicted with the current // state of the resource. // @@ -721,17 +721,17 @@ func (c *DataExchange) GetAssetRequest(input *GetAssetInput) (req *request.Reque // See the AWS API reference guide for AWS Data Exchange's // API operation GetAsset for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetAsset @@ -809,17 +809,17 @@ func (c *DataExchange) GetDataSetRequest(input *GetDataSetInput) (req *request.R // See the AWS API reference guide for AWS Data Exchange's // API operation GetDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetDataSet @@ -897,17 +897,17 @@ func (c *DataExchange) GetJobRequest(input *GetJobInput) (req *request.Request, // See the AWS API reference guide for AWS Data Exchange's // API operation GetJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetJob @@ -985,17 +985,17 @@ func (c *DataExchange) GetRevisionRequest(input *GetRevisionInput) (req *request // See the AWS API reference guide for AWS Data Exchange's // API operation GetRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/GetRevision @@ -1080,17 +1080,17 @@ func (c *DataExchange) ListDataSetRevisionsRequest(input *ListDataSetRevisionsIn // See the AWS API reference guide for AWS Data Exchange's // API operation ListDataSetRevisions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSetRevisions @@ -1228,17 +1228,17 @@ func (c *DataExchange) ListDataSetsRequest(input *ListDataSetsInput) (req *reque // See the AWS API reference guide for AWS Data Exchange's // API operation ListDataSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListDataSets @@ -1374,17 +1374,17 @@ func (c *DataExchange) ListJobsRequest(input *ListJobsInput) (req *request.Reque // See the AWS API reference guide for AWS Data Exchange's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListJobs @@ -1521,17 +1521,17 @@ func (c *DataExchange) ListRevisionAssetsRequest(input *ListRevisionAssetsInput) // See the AWS API reference guide for AWS Data Exchange's // API operation ListRevisionAssets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ListRevisionAssets @@ -1736,23 +1736,23 @@ func (c *DataExchange) StartJobRequest(input *StartJobInput) (req *request.Reque // See the AWS API reference guide for AWS Data Exchange's // API operation StartJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request couldn't be completed because it conflicted with the current // state of the resource. // @@ -1981,23 +1981,23 @@ func (c *DataExchange) UpdateAssetRequest(input *UpdateAssetInput) (req *request // See the AWS API reference guide for AWS Data Exchange's // API operation UpdateAsset for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request couldn't be completed because it conflicted with the current // state of the resource. // @@ -2076,20 +2076,20 @@ func (c *DataExchange) UpdateDataSetRequest(input *UpdateDataSetInput) (req *req // See the AWS API reference guide for AWS Data Exchange's // API operation UpdateDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/UpdateDataSet @@ -2167,23 +2167,23 @@ func (c *DataExchange) UpdateRevisionRequest(input *UpdateRevisionInput) (req *r // See the AWS API reference guide for AWS Data Exchange's // API operation UpdateRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The request was invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception occurred with the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to the resource is denied. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource couldn't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The limit on the number of requests per second was exceeded. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The request couldn't be completed because it conflicted with the current // state of the resource. // @@ -2209,6 +2209,63 @@ func (c *DataExchange) UpdateRevisionWithContext(ctx aws.Context, input *UpdateR return out, req.Send() } +// Access to the resource is denied. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Access to the resource is denied. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // The destination for the asset. type AssetDestinationEntry struct { _ struct{} `type:"structure"` @@ -2531,6 +2588,71 @@ func (s CancelJobOutput) GoString() string { return s.String() } +// The request couldn't be completed because it conflicted with the current +// state of the resource. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The request couldn't be completed because it conflicted with the current + // state of the resource. + Message_ *string `locationName:"Message" type:"string"` + + // The unique identifier for the resource with the conflict. + ResourceId *string `type:"string"` + + // The type of the resource with the conflict. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // A request to create a data set that contains one or more revisions. type CreateDataSetInput struct { _ struct{} `type:"structure"` @@ -4559,6 +4681,63 @@ func (s *ImportAssetsFromS3ResponseDetails) SetRevisionId(v string) *ImportAsset return s } +// An exception occurred with the service. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message identifying the service exception that occurred. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + // AWS Data Exchange Jobs are asynchronous import or export operations used // to create or copy assets. A data set owner can both import and export as // they see fit. Someone with an entitlement to a data set can only export. @@ -5279,6 +5458,69 @@ func (s *RequestDetails) SetImportAssetsFromS3(v *ImportAssetsFromS3RequestDetai return s } +// The resource couldn't be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The resource couldn't be found. + Message_ *string `locationName:"Message" type:"string"` + + // The unique identifier for the resource that couldn't be found. + ResourceId *string `type:"string"` + + // The type of resource that couldn't be found. + ResourceType *string `type:"string" enum:"ResourceType"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Details for the response. type ResponseDetails struct { _ struct{} `type:"structure"` @@ -5463,6 +5705,66 @@ func (s *S3SnapshotAsset) SetSize(v float64) *S3SnapshotAsset { return s } +// The request has exceeded the quotas imposed by the service. +type ServiceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + LimitName *string `type:"string" enum:"LimitName"` + + LimitValue *float64 `type:"double"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorServiceLimitExceededException(v protocol.ResponseMetadata) error { + return &ServiceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceLimitExceededException) Code() string { + return "ServiceLimitExceededException" +} + +// Message returns the exception's message. +func (s ServiceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceLimitExceededException) OrigErr() error { + return nil +} + +func (s ServiceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type StartJobInput struct { _ struct{} `type:"structure"` @@ -5581,6 +5883,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The limit on the number of requests per second was exceeded. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The limit on the number of requests per second was exceeded. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -6162,6 +6521,63 @@ func (s *UpdateRevisionOutput) SetUpdatedAt(v time.Time) *UpdateRevisionOutput { return s } +// The request was invalid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message that informs you about what was invalid about the request. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // The type of file your data is stored in. Currently, the supported asset type // is S3_SNAPSHOT. const ( diff --git a/service/dataexchange/errors.go b/service/dataexchange/errors.go index 3264cff683c..7211a5637c6 100644 --- a/service/dataexchange/errors.go +++ b/service/dataexchange/errors.go @@ -2,6 +2,10 @@ package dataexchange +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -47,3 +51,13 @@ const ( // The request was invalid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceLimitExceededException": newErrorServiceLimitExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/dataexchange/service.go b/service/dataexchange/service.go index 9d144192982..ccf045d612a 100644 --- a/service/dataexchange/service.go +++ b/service/dataexchange/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/datapipeline/api.go b/service/datapipeline/api.go index d31631d8264..196fab8abbf 100644 --- a/service/datapipeline/api.go +++ b/service/datapipeline/api.go @@ -74,18 +74,18 @@ func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (re // See the AWS API reference guide for AWS Data Pipeline's // API operation ActivatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// Returned Error Types: +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -166,20 +166,20 @@ func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request // See the AWS API reference guide for AWS Data Pipeline's // API operation AddTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags @@ -258,11 +258,11 @@ func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *r // See the AWS API reference guide for AWS Data Pipeline's // API operation CreatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -348,18 +348,18 @@ func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) // See the AWS API reference guide for AWS Data Pipeline's // API operation DeactivatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// Returned Error Types: +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -447,15 +447,15 @@ func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *r // See the AWS API reference guide for AWS Data Pipeline's // API operation DeletePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// Returned Error Types: +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -543,20 +543,20 @@ func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req // See the AWS API reference guide for AWS Data Pipeline's // API operation DescribeObjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjects @@ -694,18 +694,18 @@ func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) ( // See the AWS API reference guide for AWS Data Pipeline's // API operation DescribePipelines for usage and error information. // -// Returned Error Codes: -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// Returned Error Types: +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -787,23 +787,23 @@ func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) // See the AWS API reference guide for AWS Data Pipeline's // API operation EvaluateExpression for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeTaskNotFoundException "TaskNotFoundException" +// * TaskNotFoundException // The specified task was not found. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression @@ -882,20 +882,20 @@ func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinition // See the AWS API reference guide for AWS Data Pipeline's // API operation GetPipelineDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinition @@ -980,11 +980,11 @@ func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *req // See the AWS API reference guide for AWS Data Pipeline's // API operation ListPipelines for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -1129,16 +1129,16 @@ func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request // See the AWS API reference guide for AWS Data Pipeline's // API operation PollForTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodeTaskNotFoundException "TaskNotFoundException" +// * TaskNotFoundException // The specified task was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTask @@ -1226,20 +1226,20 @@ func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinition // See the AWS API reference guide for AWS Data Pipeline's // API operation PutPipelineDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinition @@ -1324,18 +1324,18 @@ func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *reque // See the AWS API reference guide for AWS Data Pipeline's // API operation QueryObjects for usage and error information. // -// Returned Error Codes: -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// Returned Error Types: +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -1468,20 +1468,20 @@ func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.R // See the AWS API reference guide for AWS Data Pipeline's // API operation RemoveTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTags @@ -1570,23 +1570,23 @@ func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) // See the AWS API reference guide for AWS Data Pipeline's // API operation ReportTaskProgress for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodeTaskNotFoundException "TaskNotFoundException" +// * TaskNotFoundException // The specified task was not found. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgress @@ -1668,11 +1668,11 @@ func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerH // See the AWS API reference guide for AWS Data Pipeline's // API operation ReportTaskRunnerHeartbeat for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -1757,18 +1757,18 @@ func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Req // See the AWS API reference guide for AWS Data Pipeline's // API operation SetStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// Returned Error Types: +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. @@ -1853,23 +1853,23 @@ func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *req // See the AWS API reference guide for AWS Data Pipeline's // API operation SetTaskStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeTaskNotFoundException "TaskNotFoundException" +// * TaskNotFoundException // The specified task was not found. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatus @@ -1948,20 +1948,20 @@ func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipeline // See the AWS API reference guide for AWS Data Pipeline's // API operation ValidatePipelineDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceError "InternalServiceError" +// Returned Error Types: +// * InternalServiceError // An internal service error occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. Verify that your request was properly formatted, // that the signature was generated with the correct credentials, and that you // haven't exceeded any of the service limits for your account. // -// * ErrCodePipelineNotFoundException "PipelineNotFoundException" +// * PipelineNotFoundException // The specified pipeline was not found. Verify that you used the correct user // and account identifiers. // -// * ErrCodePipelineDeletedException "PipelineDeletedException" +// * PipelineDeletedException // The specified pipeline has been deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinition @@ -2897,6 +2897,122 @@ func (s *InstanceIdentity) SetSignature(v string) *InstanceIdentity { return s } +// An internal service error occurred. +type InternalServiceError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Description of the error message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceError) GoString() string { + return s.String() +} + +func newErrorInternalServiceError(v protocol.ResponseMetadata) error { + return &InternalServiceError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceError) Code() string { + return "InternalServiceError" +} + +// Message returns the exception's message. +func (s InternalServiceError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceError) OrigErr() error { + return nil +} + +func (s InternalServiceError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceError) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was not valid. Verify that your request was properly formatted, +// that the signature was generated with the correct credentials, and that you +// haven't exceeded any of the service limits for your account. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Description of the error message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the parameters for ListPipelines. type ListPipelinesInput struct { _ struct{} `type:"structure"` @@ -3226,6 +3342,63 @@ func (s *ParameterValue) SetStringValue(v string) *ParameterValue { return s } +// The specified pipeline has been deleted. +type PipelineDeletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Description of the error message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PipelineDeletedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PipelineDeletedException) GoString() string { + return s.String() +} + +func newErrorPipelineDeletedException(v protocol.ResponseMetadata) error { + return &PipelineDeletedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PipelineDeletedException) Code() string { + return "PipelineDeletedException" +} + +// Message returns the exception's message. +func (s PipelineDeletedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PipelineDeletedException) OrigErr() error { + return nil +} + +func (s PipelineDeletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PipelineDeletedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PipelineDeletedException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains pipeline metadata. type PipelineDescription struct { _ struct{} `type:"structure"` @@ -3331,6 +3504,64 @@ func (s *PipelineIdName) SetName(v string) *PipelineIdName { return s } +// The specified pipeline was not found. Verify that you used the correct user +// and account identifiers. +type PipelineNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Description of the error message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PipelineNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PipelineNotFoundException) GoString() string { + return s.String() +} + +func newErrorPipelineNotFoundException(v protocol.ResponseMetadata) error { + return &PipelineNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PipelineNotFoundException) Code() string { + return "PipelineNotFoundException" +} + +// Message returns the exception's message. +func (s PipelineNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PipelineNotFoundException) OrigErr() error { + return nil +} + +func (s PipelineNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PipelineNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PipelineNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a pipeline object. This can be a logical, physical, // or physical attempt pipeline object. The complete set of components of a // pipeline defines the pipeline. @@ -4379,6 +4610,63 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// The specified task was not found. +type TaskNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Description of the error message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TaskNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskNotFoundException) GoString() string { + return s.String() +} + +func newErrorTaskNotFoundException(v protocol.ResponseMetadata) error { + return &TaskNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TaskNotFoundException) Code() string { + return "TaskNotFoundException" +} + +// Message returns the exception's message. +func (s TaskNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TaskNotFoundException) OrigErr() error { + return nil +} + +func (s TaskNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TaskNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TaskNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a pipeline task that is assigned to a task runner. type TaskObject struct { _ struct{} `type:"structure"` diff --git a/service/datapipeline/errors.go b/service/datapipeline/errors.go index f60b7da9f17..872ff496372 100644 --- a/service/datapipeline/errors.go +++ b/service/datapipeline/errors.go @@ -2,6 +2,10 @@ package datapipeline +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServiceError for service response error code @@ -37,3 +41,11 @@ const ( // The specified task was not found. ErrCodeTaskNotFoundException = "TaskNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServiceError": newErrorInternalServiceError, + "InvalidRequestException": newErrorInvalidRequestException, + "PipelineDeletedException": newErrorPipelineDeletedException, + "PipelineNotFoundException": newErrorPipelineNotFoundException, + "TaskNotFoundException": newErrorTaskNotFoundException, +} diff --git a/service/datapipeline/service.go b/service/datapipeline/service.go index c8a669da911..560d0e31e4a 100644 --- a/service/datapipeline/service.go +++ b/service/datapipeline/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/datasync/api.go b/service/datasync/api.go index dc6d21a23c8..6791019bcbb 100644 --- a/service/datasync/api.go +++ b/service/datasync/api.go @@ -76,11 +76,11 @@ func (c *DataSync) CancelTaskExecutionRequest(input *CancelTaskExecutionInput) ( // See the AWS API reference guide for AWS DataSync's // API operation CancelTaskExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CancelTaskExecution @@ -175,11 +175,11 @@ func (c *DataSync) CreateAgentRequest(input *CreateAgentInput) (req *request.Req // See the AWS API reference guide for AWS DataSync's // API operation CreateAgent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateAgent @@ -257,11 +257,11 @@ func (c *DataSync) CreateLocationEfsRequest(input *CreateLocationEfsInput) (req // See the AWS API reference guide for AWS DataSync's // API operation CreateLocationEfs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationEfs @@ -340,11 +340,11 @@ func (c *DataSync) CreateLocationNfsRequest(input *CreateLocationNfsInput) (req // See the AWS API reference guide for AWS DataSync's // API operation CreateLocationNfs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationNfs @@ -431,11 +431,11 @@ func (c *DataSync) CreateLocationS3Request(input *CreateLocationS3Input) (req *r // See the AWS API reference guide for AWS DataSync's // API operation CreateLocationS3 for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationS3 @@ -514,11 +514,11 @@ func (c *DataSync) CreateLocationSmbRequest(input *CreateLocationSmbInput) (req // See the AWS API reference guide for AWS DataSync's // API operation CreateLocationSmb for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateLocationSmb @@ -612,11 +612,11 @@ func (c *DataSync) CreateTaskRequest(input *CreateTaskInput) (req *request.Reque // See the AWS API reference guide for AWS DataSync's // API operation CreateTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/CreateTask @@ -698,11 +698,11 @@ func (c *DataSync) DeleteAgentRequest(input *DeleteAgentInput) (req *request.Req // See the AWS API reference guide for AWS DataSync's // API operation DeleteAgent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteAgent @@ -781,11 +781,11 @@ func (c *DataSync) DeleteLocationRequest(input *DeleteLocationInput) (req *reque // See the AWS API reference guide for AWS DataSync's // API operation DeleteLocation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteLocation @@ -864,11 +864,11 @@ func (c *DataSync) DeleteTaskRequest(input *DeleteTaskInput) (req *request.Reque // See the AWS API reference guide for AWS DataSync's // API operation DeleteTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DeleteTask @@ -949,11 +949,11 @@ func (c *DataSync) DescribeAgentRequest(input *DescribeAgentInput) (req *request // See the AWS API reference guide for AWS DataSync's // API operation DescribeAgent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeAgent @@ -1031,11 +1031,11 @@ func (c *DataSync) DescribeLocationEfsRequest(input *DescribeLocationEfsInput) ( // See the AWS API reference guide for AWS DataSync's // API operation DescribeLocationEfs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationEfs @@ -1113,11 +1113,11 @@ func (c *DataSync) DescribeLocationNfsRequest(input *DescribeLocationNfsInput) ( // See the AWS API reference guide for AWS DataSync's // API operation DescribeLocationNfs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationNfs @@ -1195,11 +1195,11 @@ func (c *DataSync) DescribeLocationS3Request(input *DescribeLocationS3Input) (re // See the AWS API reference guide for AWS DataSync's // API operation DescribeLocationS3 for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationS3 @@ -1277,11 +1277,11 @@ func (c *DataSync) DescribeLocationSmbRequest(input *DescribeLocationSmbInput) ( // See the AWS API reference guide for AWS DataSync's // API operation DescribeLocationSmb for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeLocationSmb @@ -1359,11 +1359,11 @@ func (c *DataSync) DescribeTaskRequest(input *DescribeTaskInput) (req *request.R // See the AWS API reference guide for AWS DataSync's // API operation DescribeTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTask @@ -1441,11 +1441,11 @@ func (c *DataSync) DescribeTaskExecutionRequest(input *DescribeTaskExecutionInpu // See the AWS API reference guide for AWS DataSync's // API operation DescribeTaskExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/DescribeTaskExecution @@ -1539,11 +1539,11 @@ func (c *DataSync) ListAgentsRequest(input *ListAgentsInput) (req *request.Reque // See the AWS API reference guide for AWS DataSync's // API operation ListAgents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListAgents @@ -1684,11 +1684,11 @@ func (c *DataSync) ListLocationsRequest(input *ListLocationsInput) (req *request // See the AWS API reference guide for AWS DataSync's // API operation ListLocations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListLocations @@ -1824,11 +1824,11 @@ func (c *DataSync) ListTagsForResourceRequest(input *ListTagsForResourceInput) ( // See the AWS API reference guide for AWS DataSync's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTagsForResource @@ -1964,11 +1964,11 @@ func (c *DataSync) ListTaskExecutionsRequest(input *ListTaskExecutionsInput) (re // See the AWS API reference guide for AWS DataSync's // API operation ListTaskExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTaskExecutions @@ -2104,11 +2104,11 @@ func (c *DataSync) ListTasksRequest(input *ListTasksInput) (req *request.Request // See the AWS API reference guide for AWS DataSync's // API operation ListTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/ListTasks @@ -2246,11 +2246,11 @@ func (c *DataSync) StartTaskExecutionRequest(input *StartTaskExecutionInput) (re // See the AWS API reference guide for AWS DataSync's // API operation StartTaskExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/StartTaskExecution @@ -2329,11 +2329,11 @@ func (c *DataSync) TagResourceRequest(input *TagResourceInput) (req *request.Req // See the AWS API reference guide for AWS DataSync's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/TagResource @@ -2412,11 +2412,11 @@ func (c *DataSync) UntagResourceRequest(input *UntagResourceInput) (req *request // See the AWS API reference guide for AWS DataSync's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UntagResource @@ -2495,11 +2495,11 @@ func (c *DataSync) UpdateAgentRequest(input *UpdateAgentInput) (req *request.Req // See the AWS API reference guide for AWS DataSync's // API operation UpdateAgent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateAgent @@ -2578,11 +2578,11 @@ func (c *DataSync) UpdateTaskRequest(input *UpdateTaskInput) (req *request.Reque // See the AWS API reference guide for AWS DataSync's // API operation UpdateTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception is thrown when an error occurs in the AWS DataSync service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/datasync-2018-11-09/UpdateTask @@ -4845,6 +4845,122 @@ func (s *FilterRule) SetValue(v string) *FilterRule { return s } +// This exception is thrown when an error occurs in the AWS DataSync service. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorCode *string `locationName:"errorCode" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the client submits a malformed request. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorCode *string `locationName:"errorCode" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // ListAgentsRequest type ListAgentsInput struct { _ struct{} `type:"structure"` diff --git a/service/datasync/errors.go b/service/datasync/errors.go index 0d709f459e5..af152d2d168 100644 --- a/service/datasync/errors.go +++ b/service/datasync/errors.go @@ -2,6 +2,10 @@ package datasync +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalException for service response error code @@ -16,3 +20,8 @@ const ( // This exception is thrown when the client submits a malformed request. ErrCodeInvalidRequestException = "InvalidRequestException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalException": newErrorInternalException, + "InvalidRequestException": newErrorInvalidRequestException, +} diff --git a/service/datasync/service.go b/service/datasync/service.go index a39c5374c5e..aa64e77bcde 100644 --- a/service/datasync/service.go +++ b/service/datasync/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/dax/api.go b/service/dax/api.go index d58a11c5464..6259cc86a6b 100644 --- a/service/dax/api.go +++ b/service/dax/api.go @@ -3,11 +3,13 @@ package dax import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCreateCluster = "CreateCluster" @@ -64,49 +66,49 @@ func (c *DAX) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation CreateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterAlreadyExistsFault "ClusterAlreadyExistsFault" +// Returned Error Types: +// * ClusterAlreadyExistsFault // You already have a DAX cluster with the given identifier. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacityFault" +// * InsufficientClusterCapacityFault // There are not enough system resources to create the cluster you requested // (or to resize an already-existing cluster). // -// * ErrCodeSubnetGroupNotFoundFault "SubnetGroupNotFoundFault" +// * SubnetGroupNotFoundFault // The requested subnet group name does not refer to an existing subnet group. // -// * ErrCodeInvalidParameterGroupStateFault "InvalidParameterGroupStateFault" +// * InvalidParameterGroupStateFault // One or more parameters in a parameter group are in an invalid state. // -// * ErrCodeParameterGroupNotFoundFault "ParameterGroupNotFoundFault" +// * ParameterGroupNotFoundFault // The specified parameter group does not exist. // -// * ErrCodeClusterQuotaForCustomerExceededFault "ClusterQuotaForCustomerExceededFault" +// * ClusterQuotaForCustomerExceededFault // You have attempted to exceed the maximum number of DAX clusters for your // AWS account. // -// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceededFault" +// * NodeQuotaForClusterExceededFault // You have attempted to exceed the maximum number of nodes for a DAX cluster. // -// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceededFault" +// * NodeQuotaForCustomerExceededFault // You have attempted to exceed the maximum number of nodes for your AWS account. // -// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" +// * InvalidVPCNetworkStateFault // The VPC network is in an invalid state. // -// * ErrCodeTagQuotaPerResourceExceeded "TagQuotaPerResourceExceeded" +// * TagQuotaPerResourceExceeded // You have exceeded the maximum number of tags for this DAX cluster. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/CreateCluster @@ -185,23 +187,23 @@ func (c *DAX) CreateParameterGroupRequest(input *CreateParameterGroupInput) (req // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation CreateParameterGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeParameterGroupQuotaExceededFault "ParameterGroupQuotaExceededFault" +// Returned Error Types: +// * ParameterGroupQuotaExceededFault // You have attempted to exceed the maximum number of parameter groups. // -// * ErrCodeParameterGroupAlreadyExistsFault "ParameterGroupAlreadyExistsFault" +// * ParameterGroupAlreadyExistsFault // The specified parameter group already exists. // -// * ErrCodeInvalidParameterGroupStateFault "InvalidParameterGroupStateFault" +// * InvalidParameterGroupStateFault // One or more parameters in a parameter group are in an invalid state. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/CreateParameterGroup @@ -279,22 +281,22 @@ func (c *DAX) CreateSubnetGroupRequest(input *CreateSubnetGroupInput) (req *requ // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation CreateSubnetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeSubnetGroupAlreadyExistsFault "SubnetGroupAlreadyExistsFault" +// Returned Error Types: +// * SubnetGroupAlreadyExistsFault // The specified subnet group already exists. // -// * ErrCodeSubnetGroupQuotaExceededFault "SubnetGroupQuotaExceededFault" +// * SubnetGroupQuotaExceededFault // The request cannot be processed because it would exceed the allowed number // of subnets in a subnet group. // -// * ErrCodeSubnetQuotaExceededFault "SubnetQuotaExceededFault" +// * SubnetQuotaExceededFault // The request cannot be processed because it would exceed the allowed number // of subnets in a subnet group. // -// * ErrCodeInvalidSubnet "InvalidSubnet" +// * InvalidSubnet // An invalid subnet identifier was specified. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/CreateSubnetGroup @@ -375,23 +377,23 @@ func (c *DAX) DecreaseReplicationFactorRequest(input *DecreaseReplicationFactorI // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DecreaseReplicationFactor for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeNodeNotFoundFault "NodeNotFoundFault" +// * NodeNotFoundFault // None of the nodes in the cluster have the given node ID. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DecreaseReplicationFactor @@ -472,20 +474,20 @@ func (c *DAX) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DeleteCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DeleteCluster @@ -564,20 +566,20 @@ func (c *DAX) DeleteParameterGroupRequest(input *DeleteParameterGroupInput) (req // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DeleteParameterGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterGroupStateFault "InvalidParameterGroupStateFault" +// Returned Error Types: +// * InvalidParameterGroupStateFault // One or more parameters in a parameter group are in an invalid state. // -// * ErrCodeParameterGroupNotFoundFault "ParameterGroupNotFoundFault" +// * ParameterGroupNotFoundFault // The specified parameter group does not exist. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DeleteParameterGroup @@ -657,14 +659,14 @@ func (c *DAX) DeleteSubnetGroupRequest(input *DeleteSubnetGroupInput) (req *requ // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DeleteSubnetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeSubnetGroupInUseFault "SubnetGroupInUseFault" +// Returned Error Types: +// * SubnetGroupInUseFault // The specified subnet group is currently in use. // -// * ErrCodeSubnetGroupNotFoundFault "SubnetGroupNotFoundFault" +// * SubnetGroupNotFoundFault // The requested subnet group name does not refer to an existing subnet group. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DeleteSubnetGroup @@ -758,17 +760,17 @@ func (c *DAX) DescribeClustersRequest(input *DescribeClustersInput) (req *reques // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DescribeClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeClusters @@ -846,14 +848,14 @@ func (c *DAX) DescribeDefaultParametersRequest(input *DescribeDefaultParametersI // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DescribeDefaultParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// Returned Error Types: +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeDefaultParameters @@ -936,14 +938,14 @@ func (c *DAX) DescribeEventsRequest(input *DescribeEventsInput) (req *request.Re // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DescribeEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// Returned Error Types: +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeEvents @@ -1022,17 +1024,17 @@ func (c *DAX) DescribeParameterGroupsRequest(input *DescribeParameterGroupsInput // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DescribeParameterGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeParameterGroupNotFoundFault "ParameterGroupNotFoundFault" +// Returned Error Types: +// * ParameterGroupNotFoundFault // The specified parameter group does not exist. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeParameterGroups @@ -1110,17 +1112,17 @@ func (c *DAX) DescribeParametersRequest(input *DescribeParametersInput) (req *re // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DescribeParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeParameterGroupNotFoundFault "ParameterGroupNotFoundFault" +// Returned Error Types: +// * ParameterGroupNotFoundFault // The specified parameter group does not exist. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeParameters @@ -1199,11 +1201,11 @@ func (c *DAX) DescribeSubnetGroupsRequest(input *DescribeSubnetGroupsInput) (req // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation DescribeSubnetGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeSubnetGroupNotFoundFault "SubnetGroupNotFoundFault" +// Returned Error Types: +// * SubnetGroupNotFoundFault // The requested subnet group name does not refer to an existing subnet group. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeSubnetGroups @@ -1281,33 +1283,33 @@ func (c *DAX) IncreaseReplicationFactorRequest(input *IncreaseReplicationFactorI // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation IncreaseReplicationFactor for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeInsufficientClusterCapacityFault "InsufficientClusterCapacityFault" +// * InsufficientClusterCapacityFault // There are not enough system resources to create the cluster you requested // (or to resize an already-existing cluster). // -// * ErrCodeInvalidVPCNetworkStateFault "InvalidVPCNetworkStateFault" +// * InvalidVPCNetworkStateFault // The VPC network is in an invalid state. // -// * ErrCodeNodeQuotaForClusterExceededFault "NodeQuotaForClusterExceededFault" +// * NodeQuotaForClusterExceededFault // You have attempted to exceed the maximum number of nodes for a DAX cluster. // -// * ErrCodeNodeQuotaForCustomerExceededFault "NodeQuotaForCustomerExceededFault" +// * NodeQuotaForCustomerExceededFault // You have attempted to exceed the maximum number of nodes for your AWS account. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/IncreaseReplicationFactor @@ -1386,23 +1388,23 @@ func (c *DAX) ListTagsRequest(input *ListTagsInput) (req *request.Request, outpu // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeInvalidARNFault "InvalidARNFault" +// * InvalidARNFault // The Amazon Resource Name (ARN) supplied in the request is not valid. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/ListTags @@ -1484,23 +1486,23 @@ func (c *DAX) RebootNodeRequest(input *RebootNodeInput) (req *request.Request, o // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation RebootNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeNodeNotFoundFault "NodeNotFoundFault" +// * NodeNotFoundFault // None of the nodes in the cluster have the given node ID. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/RebootNode @@ -1579,26 +1581,26 @@ func (c *DAX) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeTagQuotaPerResourceExceeded "TagQuotaPerResourceExceeded" +// * TagQuotaPerResourceExceeded // You have exceeded the maximum number of tags for this DAX cluster. // -// * ErrCodeInvalidARNFault "InvalidARNFault" +// * InvalidARNFault // The Amazon Resource Name (ARN) supplied in the request is not valid. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/TagResource @@ -1677,26 +1679,26 @@ func (c *DAX) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// Returned Error Types: +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeInvalidARNFault "InvalidARNFault" +// * InvalidARNFault // The Amazon Resource Name (ARN) supplied in the request is not valid. // -// * ErrCodeTagNotFoundFault "TagNotFoundFault" +// * TagNotFoundFault // The tag does not exist. // -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/UntagResource @@ -1776,26 +1778,26 @@ func (c *DAX) UpdateClusterRequest(input *UpdateClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation UpdateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidClusterStateFault "InvalidClusterStateFault" +// Returned Error Types: +// * InvalidClusterStateFault // The requested DAX cluster is not in the available state. // -// * ErrCodeClusterNotFoundFault "ClusterNotFoundFault" +// * ClusterNotFoundFault // The requested cluster ID does not refer to an existing DAX cluster. // -// * ErrCodeInvalidParameterGroupStateFault "InvalidParameterGroupStateFault" +// * InvalidParameterGroupStateFault // One or more parameters in a parameter group are in an invalid state. // -// * ErrCodeParameterGroupNotFoundFault "ParameterGroupNotFoundFault" +// * ParameterGroupNotFoundFault // The specified parameter group does not exist. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/UpdateCluster @@ -1874,20 +1876,20 @@ func (c *DAX) UpdateParameterGroupRequest(input *UpdateParameterGroupInput) (req // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation UpdateParameterGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterGroupStateFault "InvalidParameterGroupStateFault" +// Returned Error Types: +// * InvalidParameterGroupStateFault // One or more parameters in a parameter group are in an invalid state. // -// * ErrCodeParameterGroupNotFoundFault "ParameterGroupNotFoundFault" +// * ParameterGroupNotFoundFault // The specified parameter group does not exist. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value for a parameter is invalid. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // Two or more incompatible parameters were specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/UpdateParameterGroup @@ -1965,21 +1967,21 @@ func (c *DAX) UpdateSubnetGroupRequest(input *UpdateSubnetGroupInput) (req *requ // See the AWS API reference guide for Amazon DynamoDB Accelerator (DAX)'s // API operation UpdateSubnetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeSubnetGroupNotFoundFault "SubnetGroupNotFoundFault" +// Returned Error Types: +// * SubnetGroupNotFoundFault // The requested subnet group name does not refer to an existing subnet group. // -// * ErrCodeSubnetQuotaExceededFault "SubnetQuotaExceededFault" +// * SubnetQuotaExceededFault // The request cannot be processed because it would exceed the allowed number // of subnets in a subnet group. // -// * ErrCodeSubnetInUse "SubnetInUse" +// * SubnetInUse // The requested subnet is being used by another subnet group. // -// * ErrCodeInvalidSubnet "InvalidSubnet" +// * InvalidSubnet // An invalid subnet identifier was specified. // -// * ErrCodeServiceLinkedRoleNotFoundFault "ServiceLinkedRoleNotFoundFault" +// * ServiceLinkedRoleNotFoundFault // The specified service linked role (SLR) was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/UpdateSubnetGroup @@ -2184,6 +2186,160 @@ func (s *Cluster) SetTotalNodes(v int64) *Cluster { return s } +// You already have a DAX cluster with the given identifier. +type ClusterAlreadyExistsFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ClusterAlreadyExistsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterAlreadyExistsFault) GoString() string { + return s.String() +} + +func newErrorClusterAlreadyExistsFault(v protocol.ResponseMetadata) error { + return &ClusterAlreadyExistsFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterAlreadyExistsFault) Code() string { + return "ClusterAlreadyExistsFault" +} + +// Message returns the exception's message. +func (s ClusterAlreadyExistsFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterAlreadyExistsFault) OrigErr() error { + return nil +} + +func (s ClusterAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterAlreadyExistsFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterAlreadyExistsFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested cluster ID does not refer to an existing DAX cluster. +type ClusterNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ClusterNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterNotFoundFault) GoString() string { + return s.String() +} + +func newErrorClusterNotFoundFault(v protocol.ResponseMetadata) error { + return &ClusterNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterNotFoundFault) Code() string { + return "ClusterNotFoundFault" +} + +// Message returns the exception's message. +func (s ClusterNotFoundFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterNotFoundFault) OrigErr() error { + return nil +} + +func (s ClusterNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + +// You have attempted to exceed the maximum number of DAX clusters for your +// AWS account. +type ClusterQuotaForCustomerExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ClusterQuotaForCustomerExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterQuotaForCustomerExceededFault) GoString() string { + return s.String() +} + +func newErrorClusterQuotaForCustomerExceededFault(v protocol.ResponseMetadata) error { + return &ClusterQuotaForCustomerExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterQuotaForCustomerExceededFault) Code() string { + return "ClusterQuotaForCustomerExceededFault" +} + +// Message returns the exception's message. +func (s ClusterQuotaForCustomerExceededFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterQuotaForCustomerExceededFault) OrigErr() error { + return nil +} + +func (s ClusterQuotaForCustomerExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterQuotaForCustomerExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterQuotaForCustomerExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + type CreateClusterInput struct { _ struct{} `type:"structure"` @@ -3570,248 +3726,820 @@ func (s *IncreaseReplicationFactorOutput) SetCluster(v *Cluster) *IncreaseReplic return s } -type ListTagsInput struct { - _ struct{} `type:"structure"` - - // An optional token returned from a prior request. Use this token for pagination - // of results from this action. If this parameter is specified, the response - // includes only results beyond the token. - NextToken *string `type:"string"` - - // The name of the DAX resource to which the tags belong. - // - // ResourceName is a required field - ResourceName *string `type:"string" required:"true"` +// There are not enough system resources to create the cluster you requested +// (or to resize an already-existing cluster). +type InsufficientClusterCapacityFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsInput) String() string { +func (s InsufficientClusterCapacityFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsInput) GoString() string { +func (s InsufficientClusterCapacityFault) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListTagsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} - if s.ResourceName == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceName")) +func newErrorInsufficientClusterCapacityFault(v protocol.ResponseMetadata) error { + return &InsufficientClusterCapacityFault{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InsufficientClusterCapacityFault) Code() string { + return "InsufficientClusterCapacityFault" } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { - s.NextToken = &v - return s +// Message returns the exception's message. +func (s InsufficientClusterCapacityFault) Message() string { + return "" } -// SetResourceName sets the ResourceName field's value. -func (s *ListTagsInput) SetResourceName(v string) *ListTagsInput { - s.ResourceName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientClusterCapacityFault) OrigErr() error { + return nil } -type ListTagsOutput struct { - _ struct{} `type:"structure"` +func (s InsufficientClusterCapacityFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // If this value is present, there are additional results to be displayed. To - // retrieve them, call ListTags again, with NextToken set to this value. - NextToken *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientClusterCapacityFault) StatusCode() int { + return s.respMetadata.StatusCode +} - // A list of tags currently associated with the DAX cluster. - Tags []*Tag `type:"list"` +// RequestID returns the service's response RequestID for request. +func (s InsufficientClusterCapacityFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The Amazon Resource Name (ARN) supplied in the request is not valid. +type InvalidARNFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListTagsOutput) String() string { +func (s InvalidARNFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListTagsOutput) GoString() string { +func (s InvalidARNFault) GoString() string { return s.String() } -// SetNextToken sets the NextToken field's value. -func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { - s.NextToken = &v - return s +func newErrorInvalidARNFault(v protocol.ResponseMetadata) error { + return &InvalidARNFault{ + respMetadata: v, + } } -// SetTags sets the Tags field's value. -func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { - s.Tags = v - return s +// Code returns the exception type name. +func (s InvalidARNFault) Code() string { + return "InvalidARNFault" } -// Represents an individual node within a DAX cluster. -type Node struct { - _ struct{} `type:"structure"` - - // The Availability Zone (AZ) in which the node has been deployed. - AvailabilityZone *string `type:"string"` +// Message returns the exception's message. +func (s InvalidARNFault) Message() string { + return "" +} - // The endpoint for the node, consisting of a DNS name and a port number. Client - // applications can connect directly to a node endpoint, if desired (as an alternative - // to allowing DAX client software to intelligently route requests and responses - // to nodes in the DAX cluster. - Endpoint *Endpoint `type:"structure"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidARNFault) OrigErr() error { + return nil +} - // The date and time (in UNIX epoch format) when the node was launched. - NodeCreateTime *time.Time `type:"timestamp"` +func (s InvalidARNFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // A system-generated identifier for the node. - NodeId *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidARNFault) StatusCode() int { + return s.respMetadata.StatusCode +} - // The current status of the node. For example: available. - NodeStatus *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidARNFault) RequestID() string { + return s.respMetadata.RequestID +} - // The status of the parameter group associated with this node. For example, - // in-sync. - ParameterGroupStatus *string `type:"string"` +// The requested DAX cluster is not in the available state. +type InvalidClusterStateFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s Node) String() string { +func (s InvalidClusterStateFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Node) GoString() string { +func (s InvalidClusterStateFault) GoString() string { return s.String() } -// SetAvailabilityZone sets the AvailabilityZone field's value. -func (s *Node) SetAvailabilityZone(v string) *Node { - s.AvailabilityZone = &v - return s +func newErrorInvalidClusterStateFault(v protocol.ResponseMetadata) error { + return &InvalidClusterStateFault{ + respMetadata: v, + } } -// SetEndpoint sets the Endpoint field's value. -func (s *Node) SetEndpoint(v *Endpoint) *Node { - s.Endpoint = v - return s +// Code returns the exception type name. +func (s InvalidClusterStateFault) Code() string { + return "InvalidClusterStateFault" } -// SetNodeCreateTime sets the NodeCreateTime field's value. -func (s *Node) SetNodeCreateTime(v time.Time) *Node { - s.NodeCreateTime = &v - return s +// Message returns the exception's message. +func (s InvalidClusterStateFault) Message() string { + return "" } -// SetNodeId sets the NodeId field's value. -func (s *Node) SetNodeId(v string) *Node { - s.NodeId = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidClusterStateFault) OrigErr() error { + return nil } -// SetNodeStatus sets the NodeStatus field's value. -func (s *Node) SetNodeStatus(v string) *Node { - s.NodeStatus = &v - return s +func (s InvalidClusterStateFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetParameterGroupStatus sets the ParameterGroupStatus field's value. -func (s *Node) SetParameterGroupStatus(v string) *Node { - s.ParameterGroupStatus = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidClusterStateFault) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents a parameter value that is applicable to a particular node type. -type NodeTypeSpecificValue struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidClusterStateFault) RequestID() string { + return s.respMetadata.RequestID +} - // A node type to which the parameter value applies. - NodeType *string `type:"string"` +// Two or more incompatible parameters were specified. +type InvalidParameterCombinationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The parameter value for this node type. - Value *string `type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s NodeTypeSpecificValue) String() string { +func (s InvalidParameterCombinationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NodeTypeSpecificValue) GoString() string { +func (s InvalidParameterCombinationException) GoString() string { return s.String() } -// SetNodeType sets the NodeType field's value. -func (s *NodeTypeSpecificValue) SetNodeType(v string) *NodeTypeSpecificValue { - s.NodeType = &v - return s +func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error { + return &InvalidParameterCombinationException{ + respMetadata: v, + } } -// SetValue sets the Value field's value. -func (s *NodeTypeSpecificValue) SetValue(v string) *NodeTypeSpecificValue { - s.Value = &v - return s +// Code returns the exception type name. +func (s InvalidParameterCombinationException) Code() string { + return "InvalidParameterCombinationException" } -// Describes a notification topic and its status. Notification topics are used -// for publishing DAX events to subscribers using Amazon Simple Notification -// Service (SNS). -type NotificationConfiguration struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidParameterCombinationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The Amazon Resource Name (ARN) that identifies the topic. - TopicArn *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterCombinationException) OrigErr() error { + return nil +} - // The current state of the topic. - TopicStatus *string `type:"string"` +func (s InvalidParameterCombinationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterCombinationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterCombinationException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more parameters in a parameter group are in an invalid state. +type InvalidParameterGroupStateFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s NotificationConfiguration) String() string { +func (s InvalidParameterGroupStateFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s NotificationConfiguration) GoString() string { +func (s InvalidParameterGroupStateFault) GoString() string { return s.String() } -// SetTopicArn sets the TopicArn field's value. -func (s *NotificationConfiguration) SetTopicArn(v string) *NotificationConfiguration { - s.TopicArn = &v - return s +func newErrorInvalidParameterGroupStateFault(v protocol.ResponseMetadata) error { + return &InvalidParameterGroupStateFault{ + respMetadata: v, + } } -// SetTopicStatus sets the TopicStatus field's value. -func (s *NotificationConfiguration) SetTopicStatus(v string) *NotificationConfiguration { - s.TopicStatus = &v - return s +// Code returns the exception type name. +func (s InvalidParameterGroupStateFault) Code() string { + return "InvalidParameterGroupStateFault" } -// Describes an individual setting that controls some aspect of DAX behavior. -type Parameter struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidParameterGroupStateFault) Message() string { + return "" +} - // A range of values within which the parameter can be set. - AllowedValues *string `type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterGroupStateFault) OrigErr() error { + return nil +} - // The conditions under which changes to this parameter can be applied. For - // example, requires-reboot indicates that a new value for this parameter will - // only take effect if a node is rebooted. - ChangeType *string `type:"string" enum:"ChangeType"` +func (s InvalidParameterGroupStateFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The data type of the parameter. For example, integer: - DataType *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterGroupStateFault) StatusCode() int { + return s.respMetadata.StatusCode +} - // A description of the parameter - Description *string `type:"string"` +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterGroupStateFault) RequestID() string { + return s.respMetadata.RequestID +} - // Whether the customer is allowed to modify the parameter. +// The value for a parameter is invalid. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// An invalid subnet identifier was specified. +type InvalidSubnet struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidSubnet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSubnet) GoString() string { + return s.String() +} + +func newErrorInvalidSubnet(v protocol.ResponseMetadata) error { + return &InvalidSubnet{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSubnet) Code() string { + return "InvalidSubnet" +} + +// Message returns the exception's message. +func (s InvalidSubnet) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSubnet) OrigErr() error { + return nil +} + +func (s InvalidSubnet) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSubnet) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSubnet) RequestID() string { + return s.respMetadata.RequestID +} + +// The VPC network is in an invalid state. +type InvalidVPCNetworkStateFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidVPCNetworkStateFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidVPCNetworkStateFault) GoString() string { + return s.String() +} + +func newErrorInvalidVPCNetworkStateFault(v protocol.ResponseMetadata) error { + return &InvalidVPCNetworkStateFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidVPCNetworkStateFault) Code() string { + return "InvalidVPCNetworkStateFault" +} + +// Message returns the exception's message. +func (s InvalidVPCNetworkStateFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidVPCNetworkStateFault) OrigErr() error { + return nil +} + +func (s InvalidVPCNetworkStateFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidVPCNetworkStateFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidVPCNetworkStateFault) RequestID() string { + return s.respMetadata.RequestID +} + +type ListTagsInput struct { + _ struct{} `type:"structure"` + + // An optional token returned from a prior request. Use this token for pagination + // of results from this action. If this parameter is specified, the response + // includes only results beyond the token. + NextToken *string `type:"string"` + + // The name of the DAX resource to which the tags belong. + // + // ResourceName is a required field + ResourceName *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ListTagsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListTagsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"} + if s.ResourceName == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceName")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsInput) SetNextToken(v string) *ListTagsInput { + s.NextToken = &v + return s +} + +// SetResourceName sets the ResourceName field's value. +func (s *ListTagsInput) SetResourceName(v string) *ListTagsInput { + s.ResourceName = &v + return s +} + +type ListTagsOutput struct { + _ struct{} `type:"structure"` + + // If this value is present, there are additional results to be displayed. To + // retrieve them, call ListTags again, with NextToken set to this value. + NextToken *string `type:"string"` + + // A list of tags currently associated with the DAX cluster. + Tags []*Tag `type:"list"` +} + +// String returns the string representation +func (s ListTagsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListTagsOutput) GoString() string { + return s.String() +} + +// SetNextToken sets the NextToken field's value. +func (s *ListTagsOutput) SetNextToken(v string) *ListTagsOutput { + s.NextToken = &v + return s +} + +// SetTags sets the Tags field's value. +func (s *ListTagsOutput) SetTags(v []*Tag) *ListTagsOutput { + s.Tags = v + return s +} + +// Represents an individual node within a DAX cluster. +type Node struct { + _ struct{} `type:"structure"` + + // The Availability Zone (AZ) in which the node has been deployed. + AvailabilityZone *string `type:"string"` + + // The endpoint for the node, consisting of a DNS name and a port number. Client + // applications can connect directly to a node endpoint, if desired (as an alternative + // to allowing DAX client software to intelligently route requests and responses + // to nodes in the DAX cluster. + Endpoint *Endpoint `type:"structure"` + + // The date and time (in UNIX epoch format) when the node was launched. + NodeCreateTime *time.Time `type:"timestamp"` + + // A system-generated identifier for the node. + NodeId *string `type:"string"` + + // The current status of the node. For example: available. + NodeStatus *string `type:"string"` + + // The status of the parameter group associated with this node. For example, + // in-sync. + ParameterGroupStatus *string `type:"string"` +} + +// String returns the string representation +func (s Node) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Node) GoString() string { + return s.String() +} + +// SetAvailabilityZone sets the AvailabilityZone field's value. +func (s *Node) SetAvailabilityZone(v string) *Node { + s.AvailabilityZone = &v + return s +} + +// SetEndpoint sets the Endpoint field's value. +func (s *Node) SetEndpoint(v *Endpoint) *Node { + s.Endpoint = v + return s +} + +// SetNodeCreateTime sets the NodeCreateTime field's value. +func (s *Node) SetNodeCreateTime(v time.Time) *Node { + s.NodeCreateTime = &v + return s +} + +// SetNodeId sets the NodeId field's value. +func (s *Node) SetNodeId(v string) *Node { + s.NodeId = &v + return s +} + +// SetNodeStatus sets the NodeStatus field's value. +func (s *Node) SetNodeStatus(v string) *Node { + s.NodeStatus = &v + return s +} + +// SetParameterGroupStatus sets the ParameterGroupStatus field's value. +func (s *Node) SetParameterGroupStatus(v string) *Node { + s.ParameterGroupStatus = &v + return s +} + +// None of the nodes in the cluster have the given node ID. +type NodeNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NodeNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeNotFoundFault) GoString() string { + return s.String() +} + +func newErrorNodeNotFoundFault(v protocol.ResponseMetadata) error { + return &NodeNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NodeNotFoundFault) Code() string { + return "NodeNotFoundFault" +} + +// Message returns the exception's message. +func (s NodeNotFoundFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NodeNotFoundFault) OrigErr() error { + return nil +} + +func (s NodeNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NodeNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NodeNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + +// You have attempted to exceed the maximum number of nodes for a DAX cluster. +type NodeQuotaForClusterExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NodeQuotaForClusterExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeQuotaForClusterExceededFault) GoString() string { + return s.String() +} + +func newErrorNodeQuotaForClusterExceededFault(v protocol.ResponseMetadata) error { + return &NodeQuotaForClusterExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NodeQuotaForClusterExceededFault) Code() string { + return "NodeQuotaForClusterExceededFault" +} + +// Message returns the exception's message. +func (s NodeQuotaForClusterExceededFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NodeQuotaForClusterExceededFault) OrigErr() error { + return nil +} + +func (s NodeQuotaForClusterExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NodeQuotaForClusterExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NodeQuotaForClusterExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + +// You have attempted to exceed the maximum number of nodes for your AWS account. +type NodeQuotaForCustomerExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NodeQuotaForCustomerExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeQuotaForCustomerExceededFault) GoString() string { + return s.String() +} + +func newErrorNodeQuotaForCustomerExceededFault(v protocol.ResponseMetadata) error { + return &NodeQuotaForCustomerExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NodeQuotaForCustomerExceededFault) Code() string { + return "NodeQuotaForCustomerExceededFault" +} + +// Message returns the exception's message. +func (s NodeQuotaForCustomerExceededFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NodeQuotaForCustomerExceededFault) OrigErr() error { + return nil +} + +func (s NodeQuotaForCustomerExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NodeQuotaForCustomerExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NodeQuotaForCustomerExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + +// Represents a parameter value that is applicable to a particular node type. +type NodeTypeSpecificValue struct { + _ struct{} `type:"structure"` + + // A node type to which the parameter value applies. + NodeType *string `type:"string"` + + // The parameter value for this node type. + Value *string `type:"string"` +} + +// String returns the string representation +func (s NodeTypeSpecificValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NodeTypeSpecificValue) GoString() string { + return s.String() +} + +// SetNodeType sets the NodeType field's value. +func (s *NodeTypeSpecificValue) SetNodeType(v string) *NodeTypeSpecificValue { + s.NodeType = &v + return s +} + +// SetValue sets the Value field's value. +func (s *NodeTypeSpecificValue) SetValue(v string) *NodeTypeSpecificValue { + s.Value = &v + return s +} + +// Describes a notification topic and its status. Notification topics are used +// for publishing DAX events to subscribers using Amazon Simple Notification +// Service (SNS). +type NotificationConfiguration struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) that identifies the topic. + TopicArn *string `type:"string"` + + // The current state of the topic. + TopicStatus *string `type:"string"` +} + +// String returns the string representation +func (s NotificationConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotificationConfiguration) GoString() string { + return s.String() +} + +// SetTopicArn sets the TopicArn field's value. +func (s *NotificationConfiguration) SetTopicArn(v string) *NotificationConfiguration { + s.TopicArn = &v + return s +} + +// SetTopicStatus sets the TopicStatus field's value. +func (s *NotificationConfiguration) SetTopicStatus(v string) *NotificationConfiguration { + s.TopicStatus = &v + return s +} + +// Describes an individual setting that controls some aspect of DAX behavior. +type Parameter struct { + _ struct{} `type:"structure"` + + // A range of values within which the parameter can be set. + AllowedValues *string `type:"string"` + + // The conditions under which changes to this parameter can be applied. For + // example, requires-reboot indicates that a new value for this parameter will + // only take effect if a node is rebooted. + ChangeType *string `type:"string" enum:"ChangeType"` + + // The data type of the parameter. For example, integer: + DataType *string `type:"string"` + + // A description of the parameter + Description *string `type:"string"` + + // Whether the customer is allowed to modify the parameter. IsModifiable *string `type:"string" enum:"IsModifiable"` // A list of node types, and specific parameter values for each node. @@ -3914,25 +4642,178 @@ type ParameterGroup struct { } // String returns the string representation -func (s ParameterGroup) String() string { +func (s ParameterGroup) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterGroup) GoString() string { + return s.String() +} + +// SetDescription sets the Description field's value. +func (s *ParameterGroup) SetDescription(v string) *ParameterGroup { + s.Description = &v + return s +} + +// SetParameterGroupName sets the ParameterGroupName field's value. +func (s *ParameterGroup) SetParameterGroupName(v string) *ParameterGroup { + s.ParameterGroupName = &v + return s +} + +// The specified parameter group already exists. +type ParameterGroupAlreadyExistsFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ParameterGroupAlreadyExistsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterGroupAlreadyExistsFault) GoString() string { + return s.String() +} + +func newErrorParameterGroupAlreadyExistsFault(v protocol.ResponseMetadata) error { + return &ParameterGroupAlreadyExistsFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterGroupAlreadyExistsFault) Code() string { + return "ParameterGroupAlreadyExistsFault" +} + +// Message returns the exception's message. +func (s ParameterGroupAlreadyExistsFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterGroupAlreadyExistsFault) OrigErr() error { + return nil +} + +func (s ParameterGroupAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterGroupAlreadyExistsFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterGroupAlreadyExistsFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified parameter group does not exist. +type ParameterGroupNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ParameterGroupNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterGroupNotFoundFault) GoString() string { + return s.String() +} + +func newErrorParameterGroupNotFoundFault(v protocol.ResponseMetadata) error { + return &ParameterGroupNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterGroupNotFoundFault) Code() string { + return "ParameterGroupNotFoundFault" +} + +// Message returns the exception's message. +func (s ParameterGroupNotFoundFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterGroupNotFoundFault) OrigErr() error { + return nil +} + +func (s ParameterGroupNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterGroupNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterGroupNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + +// You have attempted to exceed the maximum number of parameter groups. +type ParameterGroupQuotaExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ParameterGroupQuotaExceededFault) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ParameterGroup) GoString() string { +func (s ParameterGroupQuotaExceededFault) GoString() string { return s.String() } -// SetDescription sets the Description field's value. -func (s *ParameterGroup) SetDescription(v string) *ParameterGroup { - s.Description = &v - return s +func newErrorParameterGroupQuotaExceededFault(v protocol.ResponseMetadata) error { + return &ParameterGroupQuotaExceededFault{ + respMetadata: v, + } } -// SetParameterGroupName sets the ParameterGroupName field's value. -func (s *ParameterGroup) SetParameterGroupName(v string) *ParameterGroup { - s.ParameterGroupName = &v - return s +// Code returns the exception type name. +func (s ParameterGroupQuotaExceededFault) Code() string { + return "ParameterGroupQuotaExceededFault" +} + +// Message returns the exception's message. +func (s ParameterGroupQuotaExceededFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterGroupQuotaExceededFault) OrigErr() error { + return nil +} + +func (s ParameterGroupQuotaExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterGroupQuotaExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterGroupQuotaExceededFault) RequestID() string { + return s.respMetadata.RequestID } // The status of a parameter group. @@ -4191,6 +5072,57 @@ func (s *SecurityGroupMembership) SetStatus(v string) *SecurityGroupMembership { return s } +// The specified service linked role (SLR) was not found. +type ServiceLinkedRoleNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ServiceLinkedRoleNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceLinkedRoleNotFoundFault) GoString() string { + return s.String() +} + +func newErrorServiceLinkedRoleNotFoundFault(v protocol.ResponseMetadata) error { + return &ServiceLinkedRoleNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceLinkedRoleNotFoundFault) Code() string { + return "ServiceLinkedRoleNotFoundFault" +} + +// Message returns the exception's message. +func (s ServiceLinkedRoleNotFoundFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceLinkedRoleNotFoundFault) OrigErr() error { + return nil +} + +func (s ServiceLinkedRoleNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceLinkedRoleNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceLinkedRoleNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the subnet associated with a DAX cluster. This parameter refers // to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used // with DAX. @@ -4281,6 +5213,314 @@ func (s *SubnetGroup) SetVpcId(v string) *SubnetGroup { return s } +// The specified subnet group already exists. +type SubnetGroupAlreadyExistsFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SubnetGroupAlreadyExistsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetGroupAlreadyExistsFault) GoString() string { + return s.String() +} + +func newErrorSubnetGroupAlreadyExistsFault(v protocol.ResponseMetadata) error { + return &SubnetGroupAlreadyExistsFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetGroupAlreadyExistsFault) Code() string { + return "SubnetGroupAlreadyExistsFault" +} + +// Message returns the exception's message. +func (s SubnetGroupAlreadyExistsFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetGroupAlreadyExistsFault) OrigErr() error { + return nil +} + +func (s SubnetGroupAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetGroupAlreadyExistsFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetGroupAlreadyExistsFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified subnet group is currently in use. +type SubnetGroupInUseFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SubnetGroupInUseFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetGroupInUseFault) GoString() string { + return s.String() +} + +func newErrorSubnetGroupInUseFault(v protocol.ResponseMetadata) error { + return &SubnetGroupInUseFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetGroupInUseFault) Code() string { + return "SubnetGroupInUseFault" +} + +// Message returns the exception's message. +func (s SubnetGroupInUseFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetGroupInUseFault) OrigErr() error { + return nil +} + +func (s SubnetGroupInUseFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetGroupInUseFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetGroupInUseFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested subnet group name does not refer to an existing subnet group. +type SubnetGroupNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SubnetGroupNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetGroupNotFoundFault) GoString() string { + return s.String() +} + +func newErrorSubnetGroupNotFoundFault(v protocol.ResponseMetadata) error { + return &SubnetGroupNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetGroupNotFoundFault) Code() string { + return "SubnetGroupNotFoundFault" +} + +// Message returns the exception's message. +func (s SubnetGroupNotFoundFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetGroupNotFoundFault) OrigErr() error { + return nil +} + +func (s SubnetGroupNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetGroupNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetGroupNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The request cannot be processed because it would exceed the allowed number +// of subnets in a subnet group. +type SubnetGroupQuotaExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SubnetGroupQuotaExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetGroupQuotaExceededFault) GoString() string { + return s.String() +} + +func newErrorSubnetGroupQuotaExceededFault(v protocol.ResponseMetadata) error { + return &SubnetGroupQuotaExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetGroupQuotaExceededFault) Code() string { + return "SubnetGroupQuotaExceededFault" +} + +// Message returns the exception's message. +func (s SubnetGroupQuotaExceededFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetGroupQuotaExceededFault) OrigErr() error { + return nil +} + +func (s SubnetGroupQuotaExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetGroupQuotaExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetGroupQuotaExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested subnet is being used by another subnet group. +type SubnetInUse struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SubnetInUse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetInUse) GoString() string { + return s.String() +} + +func newErrorSubnetInUse(v protocol.ResponseMetadata) error { + return &SubnetInUse{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetInUse) Code() string { + return "SubnetInUse" +} + +// Message returns the exception's message. +func (s SubnetInUse) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetInUse) OrigErr() error { + return nil +} + +func (s SubnetInUse) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetInUse) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetInUse) RequestID() string { + return s.respMetadata.RequestID +} + +// The request cannot be processed because it would exceed the allowed number +// of subnets in a subnet group. +type SubnetQuotaExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SubnetQuotaExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetQuotaExceededFault) GoString() string { + return s.String() +} + +func newErrorSubnetQuotaExceededFault(v protocol.ResponseMetadata) error { + return &SubnetQuotaExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetQuotaExceededFault) Code() string { + return "SubnetQuotaExceededFault" +} + +// Message returns the exception's message. +func (s SubnetQuotaExceededFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetQuotaExceededFault) OrigErr() error { + return nil +} + +func (s SubnetQuotaExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetQuotaExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetQuotaExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + // A description of a tag. Every tag is a key-value pair. You can add up to // 50 tags to a single DAX cluster. // @@ -4323,6 +5563,108 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// The tag does not exist. +type TagNotFoundFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagNotFoundFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagNotFoundFault) GoString() string { + return s.String() +} + +func newErrorTagNotFoundFault(v protocol.ResponseMetadata) error { + return &TagNotFoundFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagNotFoundFault) Code() string { + return "TagNotFoundFault" +} + +// Message returns the exception's message. +func (s TagNotFoundFault) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagNotFoundFault) OrigErr() error { + return nil +} + +func (s TagNotFoundFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagNotFoundFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagNotFoundFault) RequestID() string { + return s.respMetadata.RequestID +} + +// You have exceeded the maximum number of tags for this DAX cluster. +type TagQuotaPerResourceExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagQuotaPerResourceExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagQuotaPerResourceExceeded) GoString() string { + return s.String() +} + +func newErrorTagQuotaPerResourceExceeded(v protocol.ResponseMetadata) error { + return &TagQuotaPerResourceExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagQuotaPerResourceExceeded) Code() string { + return "TagQuotaPerResourceExceeded" +} + +// Message returns the exception's message. +func (s TagQuotaPerResourceExceeded) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagQuotaPerResourceExceeded) OrigErr() error { + return nil +} + +func (s TagQuotaPerResourceExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagQuotaPerResourceExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagQuotaPerResourceExceeded) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/dax/errors.go b/service/dax/errors.go index 20b67ab768a..c42b6b81713 100644 --- a/service/dax/errors.go +++ b/service/dax/errors.go @@ -2,6 +2,10 @@ package dax +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeClusterAlreadyExistsFault for service response error code @@ -164,3 +168,32 @@ const ( // You have exceeded the maximum number of tags for this DAX cluster. ErrCodeTagQuotaPerResourceExceeded = "TagQuotaPerResourceExceeded" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ClusterAlreadyExistsFault": newErrorClusterAlreadyExistsFault, + "ClusterNotFoundFault": newErrorClusterNotFoundFault, + "ClusterQuotaForCustomerExceededFault": newErrorClusterQuotaForCustomerExceededFault, + "InsufficientClusterCapacityFault": newErrorInsufficientClusterCapacityFault, + "InvalidARNFault": newErrorInvalidARNFault, + "InvalidClusterStateFault": newErrorInvalidClusterStateFault, + "InvalidParameterCombinationException": newErrorInvalidParameterCombinationException, + "InvalidParameterGroupStateFault": newErrorInvalidParameterGroupStateFault, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidSubnet": newErrorInvalidSubnet, + "InvalidVPCNetworkStateFault": newErrorInvalidVPCNetworkStateFault, + "NodeNotFoundFault": newErrorNodeNotFoundFault, + "NodeQuotaForClusterExceededFault": newErrorNodeQuotaForClusterExceededFault, + "NodeQuotaForCustomerExceededFault": newErrorNodeQuotaForCustomerExceededFault, + "ParameterGroupAlreadyExistsFault": newErrorParameterGroupAlreadyExistsFault, + "ParameterGroupNotFoundFault": newErrorParameterGroupNotFoundFault, + "ParameterGroupQuotaExceededFault": newErrorParameterGroupQuotaExceededFault, + "ServiceLinkedRoleNotFoundFault": newErrorServiceLinkedRoleNotFoundFault, + "SubnetGroupAlreadyExistsFault": newErrorSubnetGroupAlreadyExistsFault, + "SubnetGroupInUseFault": newErrorSubnetGroupInUseFault, + "SubnetGroupNotFoundFault": newErrorSubnetGroupNotFoundFault, + "SubnetGroupQuotaExceededFault": newErrorSubnetGroupQuotaExceededFault, + "SubnetInUse": newErrorSubnetInUse, + "SubnetQuotaExceededFault": newErrorSubnetQuotaExceededFault, + "TagNotFoundFault": newErrorTagNotFoundFault, + "TagQuotaPerResourceExceeded": newErrorTagQuotaPerResourceExceeded, +} diff --git a/service/dax/service.go b/service/dax/service.go index 6a03327a924..36cad4f0c4f 100644 --- a/service/dax/service.go +++ b/service/dax/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/detective/api.go b/service/detective/api.go index 48a8b1df913..294623d7489 100644 --- a/service/detective/api.go +++ b/service/detective/api.go @@ -74,17 +74,17 @@ func (c *Detective) AcceptInvitationRequest(input *AcceptInvitationInput) (req * // See the AWS API reference guide for Amazon Detective's // API operation AcceptInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The request attempted an invalid action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/AcceptInvitation @@ -177,11 +177,11 @@ func (c *Detective) CreateGraphRequest(input *CreateGraphInput) (req *request.Re // See the AWS API reference guide for Amazon Detective's // API operation CreateGraph for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The request attempted an invalid action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request was valid but failed because of a problem with the service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/CreateGraph @@ -279,17 +279,17 @@ func (c *Detective) CreateMembersRequest(input *CreateMembersInput) (req *reques // See the AWS API reference guide for Amazon Detective's // API operation CreateMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // This request would cause the number of member accounts in the behavior graph // to exceed the maximum allowed. A behavior graph cannot have more than 1000 // member accounts. @@ -375,14 +375,14 @@ func (c *Detective) DeleteGraphRequest(input *DeleteGraphInput) (req *request.Re // See the AWS API reference guide for Amazon Detective's // API operation DeleteGraph for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/DeleteGraph @@ -466,17 +466,17 @@ func (c *Detective) DeleteMembersRequest(input *DeleteMembersInput) (req *reques // See the AWS API reference guide for Amazon Detective's // API operation DeleteMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The request attempted an invalid action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/DeleteMembers @@ -558,17 +558,17 @@ func (c *Detective) DisassociateMembershipRequest(input *DisassociateMembershipI // See the AWS API reference guide for Amazon Detective's // API operation DisassociateMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The request attempted an invalid action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/DisassociateMembership @@ -649,14 +649,14 @@ func (c *Detective) GetMembersRequest(input *GetMembersInput) (req *request.Requ // See the AWS API reference guide for Amazon Detective's // API operation GetMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/GetMembers @@ -746,11 +746,11 @@ func (c *Detective) ListGraphsRequest(input *ListGraphsInput) (req *request.Requ // See the AWS API reference guide for Amazon Detective's // API operation ListGraphs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListGraphs @@ -896,11 +896,11 @@ func (c *Detective) ListInvitationsRequest(input *ListInvitationsInput) (req *re // See the AWS API reference guide for Amazon Detective's // API operation ListInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListInvitations @@ -1039,14 +1039,14 @@ func (c *Detective) ListMembersRequest(input *ListMembersInput) (req *request.Re // See the AWS API reference guide for Amazon Detective's // API operation ListMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/ListMembers @@ -1180,17 +1180,17 @@ func (c *Detective) RejectInvitationRequest(input *RejectInvitationInput) (req * // See the AWS API reference guide for Amazon Detective's // API operation RejectInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The request attempted an invalid action. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request was valid but failed because of a problem with the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request refers to a nonexistent resource. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // The request parameters are invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/detective-2018-10-26/RejectInvitation @@ -1331,6 +1331,62 @@ func (s *Account) SetEmailAddress(v string) *Account { return s } +// The request attempted an invalid action. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateGraphInput struct { _ struct{} `type:"structure"` } @@ -1814,6 +1870,62 @@ func (s *Graph) SetCreatedTime(v time.Time) *Graph { return s } +// The request was valid but failed because of a problem with the service. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListGraphsInput struct { _ struct{} `type:"structure"` @@ -2247,6 +2359,120 @@ func (s RejectInvitationOutput) GoString() string { return s.String() } +// The request refers to a nonexistent resource. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// This request would cause the number of member accounts in the behavior graph +// to exceed the maximum allowed. A behavior graph cannot have more than 1000 +// member accounts. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Amazon Detective is currently in preview. // // A member account that was included in a request but for which the request @@ -2283,6 +2509,62 @@ func (s *UnprocessedAccount) SetReason(v string) *UnprocessedAccount { return s } +// The request parameters are invalid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // MemberStatusInvited is a MemberStatus enum value MemberStatusInvited = "INVITED" diff --git a/service/detective/errors.go b/service/detective/errors.go index 86a0ef6dc8d..c959ecf3cfb 100644 --- a/service/detective/errors.go +++ b/service/detective/errors.go @@ -2,6 +2,10 @@ package detective +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConflictException for service response error code @@ -36,3 +40,11 @@ const ( // The request parameters are invalid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ValidationException": newErrorValidationException, +} diff --git a/service/detective/service.go b/service/detective/service.go index 3477d875f6d..e141cd8c1b8 100644 --- a/service/detective/service.go +++ b/service/detective/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/devicefarm/api.go b/service/devicefarm/api.go index ddba35cc07d..a458895b251 100644 --- a/service/devicefarm/api.go +++ b/service/devicefarm/api.go @@ -66,17 +66,17 @@ func (c *DeviceFarm) CreateDevicePoolRequest(input *CreateDevicePoolInput) (req // See the AWS API reference guide for AWS Device Farm's // API operation CreateDevicePool for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateDevicePool @@ -155,17 +155,17 @@ func (c *DeviceFarm) CreateInstanceProfileRequest(input *CreateInstanceProfileIn // See the AWS API reference guide for AWS Device Farm's // API operation CreateInstanceProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateInstanceProfile @@ -243,17 +243,17 @@ func (c *DeviceFarm) CreateNetworkProfileRequest(input *CreateNetworkProfileInpu // See the AWS API reference guide for AWS Device Farm's // API operation CreateNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateNetworkProfile @@ -331,20 +331,20 @@ func (c *DeviceFarm) CreateProjectRequest(input *CreateProjectInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation CreateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // -// * ErrCodeTagOperationException "TagOperationException" +// * TagOperationException // The operation was not successful. Try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProject @@ -422,17 +422,17 @@ func (c *DeviceFarm) CreateRemoteAccessSessionRequest(input *CreateRemoteAccessS // See the AWS API reference guide for AWS Device Farm's // API operation CreateRemoteAccessSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateRemoteAccessSession @@ -511,8 +511,8 @@ func (c *DeviceFarm) CreateTestGridProjectRequest(input *CreateTestGridProjectIn // See the AWS API reference guide for AWS Device Farm's // API operation CreateTestGridProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -592,14 +592,14 @@ func (c *DeviceFarm) CreateTestGridUrlRequest(input *CreateTestGridUrlInput) (re // See the AWS API reference guide for AWS Device Farm's // API operation CreateTestGridUrl for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -678,17 +678,17 @@ func (c *DeviceFarm) CreateUploadRequest(input *CreateUploadInput) (req *request // See the AWS API reference guide for AWS Device Farm's // API operation CreateUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateUpload @@ -767,14 +767,14 @@ func (c *DeviceFarm) CreateVPCEConfigurationRequest(input *CreateVPCEConfigurati // See the AWS API reference guide for AWS Device Farm's // API operation CreateVPCEConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateVPCEConfiguration @@ -854,17 +854,17 @@ func (c *DeviceFarm) DeleteDevicePoolRequest(input *DeleteDevicePoolInput) (req // See the AWS API reference guide for AWS Device Farm's // API operation DeleteDevicePool for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteDevicePool @@ -943,17 +943,17 @@ func (c *DeviceFarm) DeleteInstanceProfileRequest(input *DeleteInstanceProfileIn // See the AWS API reference guide for AWS Device Farm's // API operation DeleteInstanceProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteInstanceProfile @@ -1032,17 +1032,17 @@ func (c *DeviceFarm) DeleteNetworkProfileRequest(input *DeleteNetworkProfileInpu // See the AWS API reference guide for AWS Device Farm's // API operation DeleteNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteNetworkProfile @@ -1123,17 +1123,17 @@ func (c *DeviceFarm) DeleteProjectRequest(input *DeleteProjectInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation DeleteProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteProject @@ -1212,17 +1212,17 @@ func (c *DeviceFarm) DeleteRemoteAccessSessionRequest(input *DeleteRemoteAccessS // See the AWS API reference guide for AWS Device Farm's // API operation DeleteRemoteAccessSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRemoteAccessSession @@ -1303,17 +1303,17 @@ func (c *DeviceFarm) DeleteRunRequest(input *DeleteRunInput) (req *request.Reque // See the AWS API reference guide for AWS Device Farm's // API operation DeleteRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteRun @@ -1396,17 +1396,17 @@ func (c *DeviceFarm) DeleteTestGridProjectRequest(input *DeleteTestGridProjectIn // See the AWS API reference guide for AWS Device Farm's // API operation DeleteTestGridProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeCannotDeleteException "CannotDeleteException" +// * CannotDeleteException // The requested object could not be deleted. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -1486,17 +1486,17 @@ func (c *DeviceFarm) DeleteUploadRequest(input *DeleteUploadInput) (req *request // See the AWS API reference guide for AWS Device Farm's // API operation DeleteUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/DeleteUpload @@ -1575,17 +1575,17 @@ func (c *DeviceFarm) DeleteVPCEConfigurationRequest(input *DeleteVPCEConfigurati // See the AWS API reference guide for AWS Device Farm's // API operation DeleteVPCEConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // There was an error with the update request, or you do not have sufficient // permissions to update this VPC endpoint configuration. // @@ -1665,17 +1665,17 @@ func (c *DeviceFarm) GetAccountSettingsRequest(input *GetAccountSettingsInput) ( // See the AWS API reference guide for AWS Device Farm's // API operation GetAccountSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettings @@ -1753,17 +1753,17 @@ func (c *DeviceFarm) GetDeviceRequest(input *GetDeviceInput) (req *request.Reque // See the AWS API reference guide for AWS Device Farm's // API operation GetDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevice @@ -1842,17 +1842,17 @@ func (c *DeviceFarm) GetDeviceInstanceRequest(input *GetDeviceInstanceInput) (re // See the AWS API reference guide for AWS Device Farm's // API operation GetDeviceInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDeviceInstance @@ -1930,17 +1930,17 @@ func (c *DeviceFarm) GetDevicePoolRequest(input *GetDevicePoolInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation GetDevicePool for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePool @@ -2018,17 +2018,17 @@ func (c *DeviceFarm) GetDevicePoolCompatibilityRequest(input *GetDevicePoolCompa // See the AWS API reference guide for AWS Device Farm's // API operation GetDevicePoolCompatibility for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetDevicePoolCompatibility @@ -2106,17 +2106,17 @@ func (c *DeviceFarm) GetInstanceProfileRequest(input *GetInstanceProfileInput) ( // See the AWS API reference guide for AWS Device Farm's // API operation GetInstanceProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetInstanceProfile @@ -2194,17 +2194,17 @@ func (c *DeviceFarm) GetJobRequest(input *GetJobInput) (req *request.Request, ou // See the AWS API reference guide for AWS Device Farm's // API operation GetJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetJob @@ -2282,17 +2282,17 @@ func (c *DeviceFarm) GetNetworkProfileRequest(input *GetNetworkProfileInput) (re // See the AWS API reference guide for AWS Device Farm's // API operation GetNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetNetworkProfile @@ -2381,21 +2381,21 @@ func (c *DeviceFarm) GetOfferingStatusRequest(input *GetOfferingStatusInput) (re // See the AWS API reference guide for AWS Device Farm's // API operation GetOfferingStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeNotEligibleException "NotEligibleException" +// * NotEligibleException // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetOfferingStatus @@ -2525,17 +2525,17 @@ func (c *DeviceFarm) GetProjectRequest(input *GetProjectInput) (req *request.Req // See the AWS API reference guide for AWS Device Farm's // API operation GetProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProject @@ -2613,17 +2613,17 @@ func (c *DeviceFarm) GetRemoteAccessSessionRequest(input *GetRemoteAccessSession // See the AWS API reference guide for AWS Device Farm's // API operation GetRemoteAccessSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRemoteAccessSession @@ -2701,17 +2701,17 @@ func (c *DeviceFarm) GetRunRequest(input *GetRunInput) (req *request.Request, ou // See the AWS API reference guide for AWS Device Farm's // API operation GetRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRun @@ -2789,17 +2789,17 @@ func (c *DeviceFarm) GetSuiteRequest(input *GetSuiteInput) (req *request.Request // See the AWS API reference guide for AWS Device Farm's // API operation GetSuite for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetSuite @@ -2877,17 +2877,17 @@ func (c *DeviceFarm) GetTestRequest(input *GetTestInput) (req *request.Request, // See the AWS API reference guide for AWS Device Farm's // API operation GetTest for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetTest @@ -2965,14 +2965,14 @@ func (c *DeviceFarm) GetTestGridProjectRequest(input *GetTestGridProjectInput) ( // See the AWS API reference guide for AWS Device Farm's // API operation GetTestGridProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -3058,14 +3058,14 @@ func (c *DeviceFarm) GetTestGridSessionRequest(input *GetTestGridSessionInput) ( // See the AWS API reference guide for AWS Device Farm's // API operation GetTestGridSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -3144,17 +3144,17 @@ func (c *DeviceFarm) GetUploadRequest(input *GetUploadInput) (req *request.Reque // See the AWS API reference guide for AWS Device Farm's // API operation GetUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetUpload @@ -3233,14 +3233,14 @@ func (c *DeviceFarm) GetVPCEConfigurationRequest(input *GetVPCEConfigurationInpu // See the AWS API reference guide for AWS Device Farm's // API operation GetVPCEConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetVPCEConfiguration @@ -3320,17 +3320,17 @@ func (c *DeviceFarm) InstallToRemoteAccessSessionRequest(input *InstallToRemoteA // See the AWS API reference guide for AWS Device Farm's // API operation InstallToRemoteAccessSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/InstallToRemoteAccessSession @@ -3414,17 +3414,17 @@ func (c *DeviceFarm) ListArtifactsRequest(input *ListArtifactsInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation ListArtifacts for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListArtifacts @@ -3555,17 +3555,17 @@ func (c *DeviceFarm) ListDeviceInstancesRequest(input *ListDeviceInstancesInput) // See the AWS API reference guide for AWS Device Farm's // API operation ListDeviceInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDeviceInstances @@ -3649,17 +3649,17 @@ func (c *DeviceFarm) ListDevicePoolsRequest(input *ListDevicePoolsInput) (req *r // See the AWS API reference guide for AWS Device Farm's // API operation ListDevicePools for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevicePools @@ -3795,17 +3795,17 @@ func (c *DeviceFarm) ListDevicesRequest(input *ListDevicesInput) (req *request.R // See the AWS API reference guide for AWS Device Farm's // API operation ListDevices for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListDevices @@ -3935,17 +3935,17 @@ func (c *DeviceFarm) ListInstanceProfilesRequest(input *ListInstanceProfilesInpu // See the AWS API reference guide for AWS Device Farm's // API operation ListInstanceProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListInstanceProfiles @@ -4029,17 +4029,17 @@ func (c *DeviceFarm) ListJobsRequest(input *ListJobsInput) (req *request.Request // See the AWS API reference guide for AWS Device Farm's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListJobs @@ -4169,17 +4169,17 @@ func (c *DeviceFarm) ListNetworkProfilesRequest(input *ListNetworkProfilesInput) // See the AWS API reference guide for AWS Device Farm's // API operation ListNetworkProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListNetworkProfiles @@ -4261,21 +4261,21 @@ func (c *DeviceFarm) ListOfferingPromotionsRequest(input *ListOfferingPromotions // See the AWS API reference guide for AWS Device Farm's // API operation ListOfferingPromotions for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeNotEligibleException "NotEligibleException" +// * NotEligibleException // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingPromotions @@ -4364,21 +4364,21 @@ func (c *DeviceFarm) ListOfferingTransactionsRequest(input *ListOfferingTransact // See the AWS API reference guide for AWS Device Farm's // API operation ListOfferingTransactions for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeNotEligibleException "NotEligibleException" +// * NotEligibleException // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferingTransactions @@ -4518,21 +4518,21 @@ func (c *DeviceFarm) ListOfferingsRequest(input *ListOfferingsInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation ListOfferings for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeNotEligibleException "NotEligibleException" +// * NotEligibleException // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListOfferings @@ -4668,17 +4668,17 @@ func (c *DeviceFarm) ListProjectsRequest(input *ListProjectsInput) (req *request // See the AWS API reference guide for AWS Device Farm's // API operation ListProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjects @@ -4808,17 +4808,17 @@ func (c *DeviceFarm) ListRemoteAccessSessionsRequest(input *ListRemoteAccessSess // See the AWS API reference guide for AWS Device Farm's // API operation ListRemoteAccessSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRemoteAccessSessions @@ -4902,17 +4902,17 @@ func (c *DeviceFarm) ListRunsRequest(input *ListRunsInput) (req *request.Request // See the AWS API reference guide for AWS Device Farm's // API operation ListRuns for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRuns @@ -5048,17 +5048,17 @@ func (c *DeviceFarm) ListSamplesRequest(input *ListSamplesInput) (req *request.R // See the AWS API reference guide for AWS Device Farm's // API operation ListSamples for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSamples @@ -5194,17 +5194,17 @@ func (c *DeviceFarm) ListSuitesRequest(input *ListSuitesInput) (req *request.Req // See the AWS API reference guide for AWS Device Farm's // API operation ListSuites for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListSuites @@ -5334,14 +5334,14 @@ func (c *DeviceFarm) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS Device Farm's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeTagOperationException "TagOperationException" +// * TagOperationException // The operation was not successful. Try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTagsForResource @@ -5425,11 +5425,11 @@ func (c *DeviceFarm) ListTestGridProjectsRequest(input *ListTestGridProjectsInpu // See the AWS API reference guide for AWS Device Farm's // API operation ListTestGridProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -5566,14 +5566,14 @@ func (c *DeviceFarm) ListTestGridSessionActionsRequest(input *ListTestGridSessio // See the AWS API reference guide for AWS Device Farm's // API operation ListTestGridSessionActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -5710,14 +5710,14 @@ func (c *DeviceFarm) ListTestGridSessionArtifactsRequest(input *ListTestGridSess // See the AWS API reference guide for AWS Device Farm's // API operation ListTestGridSessionArtifacts for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -5854,14 +5854,14 @@ func (c *DeviceFarm) ListTestGridSessionsRequest(input *ListTestGridSessionsInpu // See the AWS API reference guide for AWS Device Farm's // API operation ListTestGridSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -5998,17 +5998,17 @@ func (c *DeviceFarm) ListTestsRequest(input *ListTestsInput) (req *request.Reque // See the AWS API reference guide for AWS Device Farm's // API operation ListTests for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTests @@ -6149,17 +6149,17 @@ func (c *DeviceFarm) ListUniqueProblemsRequest(input *ListUniqueProblemsInput) ( // See the AWS API reference guide for AWS Device Farm's // API operation ListUniqueProblems for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUniqueProblems @@ -6295,17 +6295,17 @@ func (c *DeviceFarm) ListUploadsRequest(input *ListUploadsInput) (req *request.R // See the AWS API reference guide for AWS Device Farm's // API operation ListUploads for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListUploads @@ -6436,11 +6436,11 @@ func (c *DeviceFarm) ListVPCEConfigurationsRequest(input *ListVPCEConfigurations // See the AWS API reference guide for AWS Device Farm's // API operation ListVPCEConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListVPCEConfigurations @@ -6522,21 +6522,21 @@ func (c *DeviceFarm) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req // See the AWS API reference guide for AWS Device Farm's // API operation PurchaseOffering for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeNotEligibleException "NotEligibleException" +// * NotEligibleException // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/PurchaseOffering @@ -6618,21 +6618,21 @@ func (c *DeviceFarm) RenewOfferingRequest(input *RenewOfferingInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation RenewOffering for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeNotEligibleException "NotEligibleException" +// * NotEligibleException // Exception gets thrown when a user is not eligible to perform the specified // transaction. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/RenewOffering @@ -6710,20 +6710,20 @@ func (c *DeviceFarm) ScheduleRunRequest(input *ScheduleRunInput) (req *request.R // See the AWS API reference guide for AWS Device Farm's // API operation ScheduleRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeIdempotencyException "IdempotencyException" +// * IdempotencyException // An entity with the same name already exists. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRun @@ -6805,17 +6805,17 @@ func (c *DeviceFarm) StopJobRequest(input *StopJobInput) (req *request.Request, // See the AWS API reference guide for AWS Device Farm's // API operation StopJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopJob @@ -6893,17 +6893,17 @@ func (c *DeviceFarm) StopRemoteAccessSessionRequest(input *StopRemoteAccessSessi // See the AWS API reference guide for AWS Device Farm's // API operation StopRemoteAccessSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRemoteAccessSession @@ -6985,17 +6985,17 @@ func (c *DeviceFarm) StopRunRequest(input *StopRunInput) (req *request.Request, // See the AWS API reference guide for AWS Device Farm's // API operation StopRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRun @@ -7077,21 +7077,21 @@ func (c *DeviceFarm) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for AWS Device Farm's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeTagOperationException "TagOperationException" +// * TagOperationException // The operation was not successful. Try again. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The list of tags on the repository is over the limit. The maximum number // of tags that can be applied to a repository is 50. // -// * ErrCodeTagPolicyException "TagPolicyException" +// * TagPolicyException // The request doesn't comply with the AWS Identity and Access Management (IAM) // tag policy. Correct your request and then retry it. // @@ -7171,14 +7171,14 @@ func (c *DeviceFarm) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeTagOperationException "TagOperationException" +// * TagOperationException // The operation was not successful. Try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UntagResource @@ -7256,17 +7256,17 @@ func (c *DeviceFarm) UpdateDeviceInstanceRequest(input *UpdateDeviceInstanceInpu // See the AWS API reference guide for AWS Device Farm's // API operation UpdateDeviceInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDeviceInstance @@ -7346,17 +7346,17 @@ func (c *DeviceFarm) UpdateDevicePoolRequest(input *UpdateDevicePoolInput) (req // See the AWS API reference guide for AWS Device Farm's // API operation UpdateDevicePool for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateDevicePool @@ -7434,17 +7434,17 @@ func (c *DeviceFarm) UpdateInstanceProfileRequest(input *UpdateInstanceProfileIn // See the AWS API reference guide for AWS Device Farm's // API operation UpdateInstanceProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateInstanceProfile @@ -7522,17 +7522,17 @@ func (c *DeviceFarm) UpdateNetworkProfileRequest(input *UpdateNetworkProfileInpu // See the AWS API reference guide for AWS Device Farm's // API operation UpdateNetworkProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateNetworkProfile @@ -7610,17 +7610,17 @@ func (c *DeviceFarm) UpdateProjectRequest(input *UpdateProjectInput) (req *reque // See the AWS API reference guide for AWS Device Farm's // API operation UpdateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProject @@ -7698,14 +7698,14 @@ func (c *DeviceFarm) UpdateTestGridProjectRequest(input *UpdateTestGridProjectIn // See the AWS API reference guide for AWS Device Farm's // API operation UpdateTestGridProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The specified entity was not found. // -// * ErrCodeArgumentException "ArgumentException" +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com // (mailto:aws-devicefarm-support@amazon.com) if you see this error. // @@ -7784,17 +7784,17 @@ func (c *DeviceFarm) UpdateUploadRequest(input *UpdateUploadInput) (req *request // See the AWS API reference guide for AWS Device Farm's // API operation UpdateUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // // See also, https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateUpload @@ -7873,17 +7873,17 @@ func (c *DeviceFarm) UpdateVPCEConfigurationRequest(input *UpdateVPCEConfigurati // See the AWS API reference guide for AWS Device Farm's // API operation UpdateVPCEConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeArgumentException "ArgumentException" +// Returned Error Types: +// * ArgumentException // An invalid argument was specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified entity was not found. // -// * ErrCodeServiceAccountException "ServiceAccountException" +// * ServiceAccountException // There was a problem with the service account. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // There was an error with the update request, or you do not have sufficient // permissions to update this VPC endpoint configuration. // @@ -8005,6 +8005,63 @@ func (s *AccountSettings) SetUnmeteredRemoteAccessDevices(v map[string]*int64) * return s } +// An invalid argument was specified. +type ArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Any additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ArgumentException) GoString() string { + return s.String() +} + +func newErrorArgumentException(v protocol.ResponseMetadata) error { + return &ArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ArgumentException) Code() string { + return "ArgumentException" +} + +// Message returns the exception's message. +func (s ArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ArgumentException) OrigErr() error { + return nil +} + +func (s ArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the output of a test. Examples of artifacts include logs and screenshots. type Artifact struct { _ struct{} `type:"structure"` @@ -8169,6 +8226,62 @@ func (s *CPU) SetFrequency(v string) *CPU { return s } +// The requested object could not be deleted. +type CannotDeleteException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CannotDeleteException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CannotDeleteException) GoString() string { + return s.String() +} + +func newErrorCannotDeleteException(v protocol.ResponseMetadata) error { + return &CannotDeleteException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CannotDeleteException) Code() string { + return "CannotDeleteException" +} + +// Message returns the exception's message. +func (s CannotDeleteException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CannotDeleteException) OrigErr() error { + return nil +} + +func (s CannotDeleteException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CannotDeleteException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CannotDeleteException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents entity counters. type Counters struct { _ struct{} `type:"structure"` @@ -12062,6 +12175,63 @@ func (s *GetVPCEConfigurationOutput) SetVpceConfiguration(v *VPCEConfiguration) return s } +// An entity with the same name already exists. +type IdempotencyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Any additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IdempotencyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotencyException) GoString() string { + return s.String() +} + +func newErrorIdempotencyException(v protocol.ResponseMetadata) error { + return &IdempotencyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotencyException) Code() string { + return "IdempotencyException" +} + +// Message returns the exception's message. +func (s IdempotencyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotencyException) OrigErr() error { + return nil +} + +func (s IdempotencyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotencyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotencyException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about incompatibility. type IncompatibilityMessage struct { _ struct{} `type:"structure"` @@ -12269,6 +12439,120 @@ func (s *InstanceProfile) SetRebootAfterUse(v bool) *InstanceProfile { return s } +// An internal exception was raised in the service. Contact aws-devicefarm-support@amazon.com +// (mailto:aws-devicefarm-support@amazon.com) if you see this error. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// There was an error with the update request, or you do not have sufficient +// permissions to update this VPC endpoint configuration. +type InvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOperationException) GoString() string { + return s.String() +} + +func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { + return &InvalidOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOperationException) Code() string { + return "InvalidOperationException" +} + +// Message returns the exception's message. +func (s InvalidOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOperationException) OrigErr() error { + return nil +} + +func (s InvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOperationException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a device. type Job struct { _ struct{} `type:"structure"` @@ -12495,6 +12779,63 @@ func (s *Job) SetVideoEndpoint(v string) *Job { return s } +// A limit was exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Any additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a request to the list artifacts operation. type ListArtifactsInput struct { _ struct{} `type:"structure"` @@ -15005,6 +15346,121 @@ func (s *NetworkProfile) SetUplinkLossPercent(v int64) *NetworkProfile { return s } +// Exception gets thrown when a user is not eligible to perform the specified +// transaction. +type NotEligibleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The HTTP response code of a Not Eligible exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotEligibleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotEligibleException) GoString() string { + return s.String() +} + +func newErrorNotEligibleException(v protocol.ResponseMetadata) error { + return &NotEligibleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotEligibleException) Code() string { + return "NotEligibleException" +} + +// Message returns the exception's message. +func (s NotEligibleException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotEligibleException) OrigErr() error { + return nil +} + +func (s NotEligibleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotEligibleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotEligibleException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified entity was not found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Any additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the metadata of a device offering. type Offering struct { _ struct{} `type:"structure"` @@ -16999,6 +17455,63 @@ func (s *ScheduleRunTest) SetType(v string) *ScheduleRunTest { return s } +// There was a problem with the service account. +type ServiceAccountException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Any additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceAccountException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceAccountException) GoString() string { + return s.String() +} + +func newErrorServiceAccountException(v protocol.ResponseMetadata) error { + return &ServiceAccountException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceAccountException) Code() string { + return "ServiceAccountException" +} + +// Message returns the exception's message. +func (s ServiceAccountException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceAccountException) OrigErr() error { + return nil +} + +func (s ServiceAccountException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceAccountException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceAccountException) RequestID() string { + return s.respMetadata.RequestID +} + type StopJobInput struct { _ struct{} `type:"structure"` @@ -17448,6 +17961,123 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// The operation was not successful. Try again. +type TagOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ResourceName *string `locationName:"resourceName" min:"32" type:"string"` +} + +// String returns the string representation +func (s TagOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagOperationException) GoString() string { + return s.String() +} + +func newErrorTagOperationException(v protocol.ResponseMetadata) error { + return &TagOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagOperationException) Code() string { + return "TagOperationException" +} + +// Message returns the exception's message. +func (s TagOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagOperationException) OrigErr() error { + return nil +} + +func (s TagOperationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request doesn't comply with the AWS Identity and Access Management (IAM) +// tag policy. Correct your request and then retry it. +type TagPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ResourceName *string `locationName:"resourceName" min:"32" type:"string"` +} + +// String returns the string representation +func (s TagPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagPolicyException) GoString() string { + return s.String() +} + +func newErrorTagPolicyException(v protocol.ResponseMetadata) error { + return &TagPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagPolicyException) Code() string { + return "TagPolicyException" +} + +// Message returns the exception's message. +func (s TagPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagPolicyException) OrigErr() error { + return nil +} + +func (s TagPolicyException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -17948,6 +18578,65 @@ func (s *TestGridSessionArtifact) SetUrl(v string) *TestGridSessionArtifact { return s } +// The list of tags on the repository is over the limit. The maximum number +// of tags that can be applied to a repository is 50. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ResourceName *string `locationName:"resourceName" min:"32" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents information about free trial device minutes for an AWS account. type TrialMinutes struct { _ struct{} `type:"structure"` diff --git a/service/devicefarm/errors.go b/service/devicefarm/errors.go index 8046bf9f1a6..b56f95d69a1 100644 --- a/service/devicefarm/errors.go +++ b/service/devicefarm/errors.go @@ -2,6 +2,10 @@ package devicefarm +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeArgumentException for service response error code @@ -81,3 +85,18 @@ const ( // of tags that can be applied to a repository is 50. ErrCodeTooManyTagsException = "TooManyTagsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ArgumentException": newErrorArgumentException, + "CannotDeleteException": newErrorCannotDeleteException, + "IdempotencyException": newErrorIdempotencyException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidOperationException": newErrorInvalidOperationException, + "LimitExceededException": newErrorLimitExceededException, + "NotEligibleException": newErrorNotEligibleException, + "NotFoundException": newErrorNotFoundException, + "ServiceAccountException": newErrorServiceAccountException, + "TagOperationException": newErrorTagOperationException, + "TagPolicyException": newErrorTagPolicyException, + "TooManyTagsException": newErrorTooManyTagsException, +} diff --git a/service/devicefarm/service.go b/service/devicefarm/service.go index 405e4635568..ded494a33f0 100644 --- a/service/devicefarm/service.go +++ b/service/devicefarm/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/directconnect/api.go b/service/directconnect/api.go index 100f224d179..31a405f1c41 100644 --- a/service/directconnect/api.go +++ b/service/directconnect/api.go @@ -67,11 +67,11 @@ func (c *DirectConnect) AcceptDirectConnectGatewayAssociationProposalRequest(inp // See the AWS API reference guide for AWS Direct Connect's // API operation AcceptDirectConnectGatewayAssociationProposal for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AcceptDirectConnectGatewayAssociationProposal @@ -161,11 +161,11 @@ func (c *DirectConnect) AllocateConnectionOnInterconnectRequest(input *AllocateC // See the AWS API reference guide for AWS Direct Connect's // API operation AllocateConnectionOnInterconnect for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateConnectionOnInterconnect @@ -256,17 +256,17 @@ func (c *DirectConnect) AllocateHostedConnectionRequest(input *AllocateHostedCon // See the AWS API reference guide for AWS Direct Connect's // API operation AllocateHostedConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateHostedConnection @@ -348,17 +348,17 @@ func (c *DirectConnect) AllocatePrivateVirtualInterfaceRequest(input *AllocatePr // See the AWS API reference guide for AWS Direct Connect's // API operation AllocatePrivateVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePrivateVirtualInterface @@ -448,17 +448,17 @@ func (c *DirectConnect) AllocatePublicVirtualInterfaceRequest(input *AllocatePub // See the AWS API reference guide for AWS Direct Connect's // API operation AllocatePublicVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocatePublicVirtualInterface @@ -546,17 +546,17 @@ func (c *DirectConnect) AllocateTransitVirtualInterfaceRequest(input *AllocateTr // See the AWS API reference guide for AWS Direct Connect's // API operation AllocateTransitVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AllocateTransitVirtualInterface @@ -650,11 +650,11 @@ func (c *DirectConnect) AssociateConnectionWithLagRequest(input *AssociateConnec // See the AWS API reference guide for AWS Direct Connect's // API operation AssociateConnectionWithLag for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateConnectionWithLag @@ -738,11 +738,11 @@ func (c *DirectConnect) AssociateHostedConnectionRequest(input *AssociateHostedC // See the AWS API reference guide for AWS Direct Connect's // API operation AssociateHostedConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateHostedConnection @@ -833,11 +833,11 @@ func (c *DirectConnect) AssociateVirtualInterfaceRequest(input *AssociateVirtual // See the AWS API reference guide for AWS Direct Connect's // API operation AssociateVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/AssociateVirtualInterface @@ -919,11 +919,11 @@ func (c *DirectConnect) ConfirmConnectionRequest(input *ConfirmConnectionInput) // See the AWS API reference guide for AWS Direct Connect's // API operation ConfirmConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmConnection @@ -1005,11 +1005,11 @@ func (c *DirectConnect) ConfirmPrivateVirtualInterfaceRequest(input *ConfirmPriv // See the AWS API reference guide for AWS Direct Connect's // API operation ConfirmPrivateVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPrivateVirtualInterface @@ -1090,11 +1090,11 @@ func (c *DirectConnect) ConfirmPublicVirtualInterfaceRequest(input *ConfirmPubli // See the AWS API reference guide for AWS Direct Connect's // API operation ConfirmPublicVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmPublicVirtualInterface @@ -1175,11 +1175,11 @@ func (c *DirectConnect) ConfirmTransitVirtualInterfaceRequest(input *ConfirmTran // See the AWS API reference guide for AWS Direct Connect's // API operation ConfirmTransitVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/ConfirmTransitVirtualInterface @@ -1271,11 +1271,11 @@ func (c *DirectConnect) CreateBGPPeerRequest(input *CreateBGPPeerInput) (req *re // See the AWS API reference guide for AWS Direct Connect's // API operation CreateBGPPeer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateBGPPeer @@ -1366,17 +1366,17 @@ func (c *DirectConnect) CreateConnectionRequest(input *CreateConnectionInput) (r // See the AWS API reference guide for AWS Direct Connect's // API operation CreateConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateConnection @@ -1460,11 +1460,11 @@ func (c *DirectConnect) CreateDirectConnectGatewayRequest(input *CreateDirectCon // See the AWS API reference guide for AWS Direct Connect's // API operation CreateDirectConnectGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateDirectConnectGateway @@ -1544,11 +1544,11 @@ func (c *DirectConnect) CreateDirectConnectGatewayAssociationRequest(input *Crea // See the AWS API reference guide for AWS Direct Connect's // API operation CreateDirectConnectGatewayAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateDirectConnectGatewayAssociation @@ -1632,11 +1632,11 @@ func (c *DirectConnect) CreateDirectConnectGatewayAssociationProposalRequest(inp // See the AWS API reference guide for AWS Direct Connect's // API operation CreateDirectConnectGatewayAssociationProposal for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateDirectConnectGatewayAssociationProposal @@ -1736,17 +1736,17 @@ func (c *DirectConnect) CreateInterconnectRequest(input *CreateInterconnectInput // See the AWS API reference guide for AWS Direct Connect's // API operation CreateInterconnect for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateInterconnect @@ -1848,17 +1848,17 @@ func (c *DirectConnect) CreateLagRequest(input *CreateLagInput) (req *request.Re // See the AWS API reference guide for AWS Direct Connect's // API operation CreateLag for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateLag @@ -1942,17 +1942,17 @@ func (c *DirectConnect) CreatePrivateVirtualInterfaceRequest(input *CreatePrivat // See the AWS API reference guide for AWS Direct Connect's // API operation CreatePrivateVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePrivateVirtualInterface @@ -2036,17 +2036,17 @@ func (c *DirectConnect) CreatePublicVirtualInterfaceRequest(input *CreatePublicV // See the AWS API reference guide for AWS Direct Connect's // API operation CreatePublicVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreatePublicVirtualInterface @@ -2133,17 +2133,17 @@ func (c *DirectConnect) CreateTransitVirtualInterfaceRequest(input *CreateTransi // See the AWS API reference guide for AWS Direct Connect's // API operation CreateTransitVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/CreateTransitVirtualInterface @@ -2224,11 +2224,11 @@ func (c *DirectConnect) DeleteBGPPeerRequest(input *DeleteBGPPeerInput) (req *re // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteBGPPeer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteBGPPeer @@ -2311,11 +2311,11 @@ func (c *DirectConnect) DeleteConnectionRequest(input *DeleteConnectionInput) (r // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteConnection @@ -2395,11 +2395,11 @@ func (c *DirectConnect) DeleteDirectConnectGatewayRequest(input *DeleteDirectCon // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteDirectConnectGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteDirectConnectGateway @@ -2483,11 +2483,11 @@ func (c *DirectConnect) DeleteDirectConnectGatewayAssociationRequest(input *Dele // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteDirectConnectGatewayAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteDirectConnectGatewayAssociation @@ -2566,11 +2566,11 @@ func (c *DirectConnect) DeleteDirectConnectGatewayAssociationProposalRequest(inp // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteDirectConnectGatewayAssociationProposal for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteDirectConnectGatewayAssociationProposal @@ -2650,11 +2650,11 @@ func (c *DirectConnect) DeleteInterconnectRequest(input *DeleteInterconnectInput // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteInterconnect for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteInterconnect @@ -2733,11 +2733,11 @@ func (c *DirectConnect) DeleteLagRequest(input *DeleteLagInput) (req *request.Re // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteLag for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteLag @@ -2815,11 +2815,11 @@ func (c *DirectConnect) DeleteVirtualInterfaceRequest(input *DeleteVirtualInterf // See the AWS API reference guide for AWS Direct Connect's // API operation DeleteVirtualInterface for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DeleteVirtualInterface @@ -2910,11 +2910,11 @@ func (c *DirectConnect) DescribeConnectionLoaRequest(input *DescribeConnectionLo // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeConnectionLoa for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionLoa @@ -2996,11 +2996,11 @@ func (c *DirectConnect) DescribeConnectionsRequest(input *DescribeConnectionsInp // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeConnections for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnections @@ -3087,11 +3087,11 @@ func (c *DirectConnect) DescribeConnectionsOnInterconnectRequest(input *Describe // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeConnectionsOnInterconnect for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeConnectionsOnInterconnect @@ -3174,11 +3174,11 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAssociationProposalsRequest( // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeDirectConnectGatewayAssociationProposals for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeDirectConnectGatewayAssociationProposals @@ -3263,11 +3263,11 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAssociationsRequest(input *D // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeDirectConnectGatewayAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeDirectConnectGatewayAssociations @@ -3351,11 +3351,11 @@ func (c *DirectConnect) DescribeDirectConnectGatewayAttachmentsRequest(input *De // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeDirectConnectGatewayAttachments for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeDirectConnectGatewayAttachments @@ -3434,11 +3434,11 @@ func (c *DirectConnect) DescribeDirectConnectGatewaysRequest(input *DescribeDire // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeDirectConnectGateways for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeDirectConnectGateways @@ -3519,11 +3519,11 @@ func (c *DirectConnect) DescribeHostedConnectionsRequest(input *DescribeHostedCo // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeHostedConnections for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeHostedConnections @@ -3614,11 +3614,11 @@ func (c *DirectConnect) DescribeInterconnectLoaRequest(input *DescribeInterconne // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeInterconnectLoa for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnectLoa @@ -3700,11 +3700,11 @@ func (c *DirectConnect) DescribeInterconnectsRequest(input *DescribeInterconnect // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeInterconnects for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeInterconnects @@ -3782,11 +3782,11 @@ func (c *DirectConnect) DescribeLagsRequest(input *DescribeLagsInput) (req *requ // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeLags for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLags @@ -3871,11 +3871,11 @@ func (c *DirectConnect) DescribeLoaRequest(input *DescribeLoaInput) (req *reques // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeLoa for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLoa @@ -3954,11 +3954,11 @@ func (c *DirectConnect) DescribeLocationsRequest(input *DescribeLocationsInput) // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeLocations for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeLocations @@ -4036,11 +4036,11 @@ func (c *DirectConnect) DescribeTagsRequest(input *DescribeTagsInput) (req *requ // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeTags @@ -4121,11 +4121,11 @@ func (c *DirectConnect) DescribeVirtualGatewaysRequest(input *DescribeVirtualGat // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeVirtualGateways for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualGateways @@ -4210,11 +4210,11 @@ func (c *DirectConnect) DescribeVirtualInterfacesRequest(input *DescribeVirtualI // See the AWS API reference guide for AWS Direct Connect's // API operation DescribeVirtualInterfaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DescribeVirtualInterfaces @@ -4302,11 +4302,11 @@ func (c *DirectConnect) DisassociateConnectionFromLagRequest(input *Disassociate // See the AWS API reference guide for AWS Direct Connect's // API operation DisassociateConnectionFromLag for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/DisassociateConnectionFromLag @@ -4389,17 +4389,17 @@ func (c *DirectConnect) TagResourceRequest(input *TagResourceInput) (req *reques // See the AWS API reference guide for AWS Direct Connect's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateTagKeysException "DuplicateTagKeysException" +// Returned Error Types: +// * DuplicateTagKeysException // A tag key was specified more than once. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // You have reached the limit on the number of tags that can be assigned. // -// * ErrCodeServerException "DirectConnectServerException" +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/TagResource @@ -4478,11 +4478,11 @@ func (c *DirectConnect) UntagResourceRequest(input *UntagResourceInput) (req *re // See the AWS API reference guide for AWS Direct Connect's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UntagResource @@ -4562,11 +4562,11 @@ func (c *DirectConnect) UpdateDirectConnectGatewayAssociationRequest(input *Upda // See the AWS API reference guide for AWS Direct Connect's // API operation UpdateDirectConnectGatewayAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateDirectConnectGatewayAssociation @@ -4658,11 +4658,11 @@ func (c *DirectConnect) UpdateLagRequest(input *UpdateLagInput) (req *request.Re // See the AWS API reference guide for AWS Direct Connect's // API operation UpdateLag for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateLag @@ -4747,11 +4747,11 @@ func (c *DirectConnect) UpdateVirtualInterfaceAttributesRequest(input *UpdateVir // See the AWS API reference guide for AWS Direct Connect's // API operation UpdateVirtualInterfaceAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "DirectConnectServerException" +// Returned Error Types: +// * ServerException // A server-side error occurred. // -// * ErrCodeClientException "DirectConnectClientException" +// * ClientException // One or more parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/directconnect-2012-10-25/UpdateVirtualInterfaceAttributes @@ -5658,6 +5658,62 @@ func (s *BGPPeer) SetCustomerAddress(v string) *BGPPeer { return s } +// One or more parameters are not valid. +type ClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientException) GoString() string { + return s.String() +} + +func newErrorClientException(v protocol.ResponseMetadata) error { + return &ClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientException) Code() string { + return "DirectConnectClientException" +} + +// Message returns the exception's message. +func (s ClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientException) OrigErr() error { + return nil +} + +func (s ClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientException) RequestID() string { + return s.respMetadata.RequestID +} + type ConfirmConnectionInput struct { _ struct{} `type:"structure"` @@ -8656,6 +8712,57 @@ func (s *DisassociateConnectionFromLagInput) SetLagId(v string) *DisassociateCon return s } +// A tag key was specified more than once. +type DuplicateTagKeysException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DuplicateTagKeysException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateTagKeysException) GoString() string { + return s.String() +} + +func newErrorDuplicateTagKeysException(v protocol.ResponseMetadata) error { + return &DuplicateTagKeysException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateTagKeysException) Code() string { + return "DuplicateTagKeysException" +} + +// Message returns the exception's message. +func (s DuplicateTagKeysException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateTagKeysException) OrigErr() error { + return nil +} + +func (s DuplicateTagKeysException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateTagKeysException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateTagKeysException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a Direct Connect gateway, which enables you to connect // virtual interfaces and virtual private gateway or transit gateways. type Gateway struct { @@ -10420,6 +10527,62 @@ func (s *RouteFilterPrefix) SetCidr(v string) *RouteFilterPrefix { return s } +// A server-side error occurred. +type ServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerException) GoString() string { + return s.String() +} + +func newErrorServerException(v protocol.ResponseMetadata) error { + return &ServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerException) Code() string { + return "DirectConnectServerException" +} + +// Message returns the exception's message. +func (s ServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerException) OrigErr() error { + return nil +} + +func (s ServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a tag. type Tag struct { _ struct{} `type:"structure"` @@ -10550,6 +10713,57 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// You have reached the limit on the number of tags that can be assigned. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/directconnect/errors.go b/service/directconnect/errors.go index 9d6f810311e..98915589ad9 100644 --- a/service/directconnect/errors.go +++ b/service/directconnect/errors.go @@ -2,6 +2,10 @@ package directconnect +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeClientException for service response error code @@ -28,3 +32,10 @@ const ( // You have reached the limit on the number of tags that can be assigned. ErrCodeTooManyTagsException = "TooManyTagsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DirectConnectClientException": newErrorClientException, + "DuplicateTagKeysException": newErrorDuplicateTagKeysException, + "DirectConnectServerException": newErrorServerException, + "TooManyTagsException": newErrorTooManyTagsException, +} diff --git a/service/directconnect/service.go b/service/directconnect/service.go index 37572561113..1ed5cd0debd 100644 --- a/service/directconnect/service.go +++ b/service/directconnect/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/directoryservice/api.go b/service/directoryservice/api.go index 81be2de4899..a97a126d3f2 100644 --- a/service/directoryservice/api.go +++ b/service/directoryservice/api.go @@ -67,20 +67,20 @@ func (c *DirectoryService) AcceptSharedDirectoryRequest(input *AcceptSharedDirec // See the AWS API reference guide for AWS Directory Service's // API operation AcceptSharedDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" +// * DirectoryAlreadySharedException // The specified directory has already been shared with this AWS account. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AcceptSharedDirectory @@ -168,27 +168,27 @@ func (c *DirectoryService) AddIpRoutesRequest(input *AddIpRoutesInput) (req *req // See the AWS API reference guide for AWS Directory Service's // API operation AddIpRoutes for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// * EntityAlreadyExistsException // The specified entity already exists. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeIpRouteLimitExceededException "IpRouteLimitExceededException" +// * IpRouteLimitExceededException // The maximum allowed number of IP addresses was exceeded. The default limit // is 100 IP address blocks. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddIpRoutes @@ -269,20 +269,20 @@ func (c *DirectoryService) AddTagsToResourceRequest(input *AddTagsToResourceInpu // See the AWS API reference guide for AWS Directory Service's // API operation AddTagsToResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeTagLimitExceededException "TagLimitExceededException" +// * TagLimitExceededException // The maximum allowed number of tags was exceeded. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/AddTagsToResource @@ -364,14 +364,14 @@ func (c *DirectoryService) CancelSchemaExtensionRequest(input *CancelSchemaExten // See the AWS API reference guide for AWS Directory Service's // API operation CancelSchemaExtension for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CancelSchemaExtension @@ -454,19 +454,19 @@ func (c *DirectoryService) ConnectDirectoryRequest(input *ConnectDirectoryInput) // See the AWS API reference guide for AWS Directory Service's // API operation ConnectDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" +// Returned Error Types: +// * DirectoryLimitExceededException // The maximum number of directories in the region has been reached. You can // use the GetDirectoryLimits operation to determine your directory limits in // the region. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ConnectDirectory @@ -549,20 +549,20 @@ func (c *DirectoryService) CreateAliasRequest(input *CreateAliasInput) (req *req // See the AWS API reference guide for AWS Directory Service's // API operation CreateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// Returned Error Types: +// * EntityAlreadyExistsException // The specified entity already exists. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateAlias @@ -641,29 +641,29 @@ func (c *DirectoryService) CreateComputerRequest(input *CreateComputerInput) (re // See the AWS API reference guide for AWS Directory Service's // API operation CreateComputer for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthenticationFailedException "AuthenticationFailedException" +// Returned Error Types: +// * AuthenticationFailedException // An authentication error occurred. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// * EntityAlreadyExistsException // The specified entity already exists. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateComputer @@ -744,26 +744,26 @@ func (c *DirectoryService) CreateConditionalForwarderRequest(input *CreateCondit // See the AWS API reference guide for AWS Directory Service's // API operation CreateConditionalForwarder for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// Returned Error Types: +// * EntityAlreadyExistsException // The specified entity already exists. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarder @@ -848,19 +848,19 @@ func (c *DirectoryService) CreateDirectoryRequest(input *CreateDirectoryInput) ( // See the AWS API reference guide for AWS Directory Service's // API operation CreateDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" +// Returned Error Types: +// * DirectoryLimitExceededException // The maximum number of directories in the region has been reached. You can // use the GetDirectoryLimits operation to determine your directory limits in // the region. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateDirectory @@ -940,23 +940,23 @@ func (c *DirectoryService) CreateLogSubscriptionRequest(input *CreateLogSubscrip // See the AWS API reference guide for AWS Directory Service's // API operation CreateLogSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// Returned Error Types: +// * EntityAlreadyExistsException // The specified entity already exists. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // The account does not have sufficient permission to perform the operation. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateLogSubscription @@ -1041,22 +1041,22 @@ func (c *DirectoryService) CreateMicrosoftADRequest(input *CreateMicrosoftADInpu // See the AWS API reference guide for AWS Directory Service's // API operation CreateMicrosoftAD for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryLimitExceededException "DirectoryLimitExceededException" +// Returned Error Types: +// * DirectoryLimitExceededException // The maximum number of directories in the region has been reached. You can // use the GetDirectoryLimits operation to determine your directory limits in // the region. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateMicrosoftAD @@ -1136,22 +1136,22 @@ func (c *DirectoryService) CreateSnapshotRequest(input *CreateSnapshotInput) (re // See the AWS API reference guide for AWS Directory Service's // API operation CreateSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeSnapshotLimitExceededException "SnapshotLimitExceededException" +// * SnapshotLimitExceededException // The maximum number of manual snapshots for the directory has been reached. // You can use the GetSnapshotLimits operation to determine the snapshot limits // for a directory. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateSnapshot @@ -1237,23 +1237,23 @@ func (c *DirectoryService) CreateTrustRequest(input *CreateTrustInput) (req *req // See the AWS API reference guide for AWS Directory Service's // API operation CreateTrust for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// Returned Error Types: +// * EntityAlreadyExistsException // The specified entity already exists. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateTrust @@ -1332,23 +1332,23 @@ func (c *DirectoryService) DeleteConditionalForwarderRequest(input *DeleteCondit // See the AWS API reference guide for AWS Directory Service's // API operation DeleteConditionalForwarder for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteConditionalForwarder @@ -1431,14 +1431,14 @@ func (c *DirectoryService) DeleteDirectoryRequest(input *DeleteDirectoryInput) ( // See the AWS API reference guide for AWS Directory Service's // API operation DeleteDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteDirectory @@ -1517,17 +1517,17 @@ func (c *DirectoryService) DeleteLogSubscriptionRequest(input *DeleteLogSubscrip // See the AWS API reference guide for AWS Directory Service's // API operation DeleteLogSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteLogSubscription @@ -1605,17 +1605,17 @@ func (c *DirectoryService) DeleteSnapshotRequest(input *DeleteSnapshotInput) (re // See the AWS API reference guide for AWS Directory Service's // API operation DeleteSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteSnapshot @@ -1694,20 +1694,20 @@ func (c *DirectoryService) DeleteTrustRequest(input *DeleteTrustInput) (req *req // See the AWS API reference guide for AWS Directory Service's // API operation DeleteTrust for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeleteTrust @@ -1787,30 +1787,30 @@ func (c *DirectoryService) DeregisterCertificateRequest(input *DeregisterCertifi // See the AWS API reference guide for AWS Directory Service's // API operation DeregisterCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// Returned Error Types: +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeDirectoryDoesNotExistException "DirectoryDoesNotExistException" +// * DirectoryDoesNotExistException // The specified directory does not exist in the system. // -// * ErrCodeCertificateDoesNotExistException "CertificateDoesNotExistException" +// * CertificateDoesNotExistException // The certificate is not present in the system for describe or deregister activities. // -// * ErrCodeCertificateInUseException "CertificateInUseException" +// * CertificateInUseException // The certificate is being used for the LDAP security connection and cannot // be removed without disabling LDAP security. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterCertificate @@ -1889,17 +1889,17 @@ func (c *DirectoryService) DeregisterEventTopicRequest(input *DeregisterEventTop // See the AWS API reference guide for AWS Directory Service's // API operation DeregisterEventTopic for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DeregisterEventTopic @@ -1978,23 +1978,23 @@ func (c *DirectoryService) DescribeCertificateRequest(input *DescribeCertificate // See the AWS API reference guide for AWS Directory Service's // API operation DescribeCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryDoesNotExistException "DirectoryDoesNotExistException" +// Returned Error Types: +// * DirectoryDoesNotExistException // The specified directory does not exist in the system. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeCertificateDoesNotExistException "CertificateDoesNotExistException" +// * CertificateDoesNotExistException // The certificate is not present in the system for describe or deregister activities. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeCertificate @@ -2075,23 +2075,23 @@ func (c *DirectoryService) DescribeConditionalForwardersRequest(input *DescribeC // See the AWS API reference guide for AWS Directory Service's // API operation DescribeConditionalForwarders for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeConditionalForwarders @@ -2180,20 +2180,20 @@ func (c *DirectoryService) DescribeDirectoriesRequest(input *DescribeDirectories // See the AWS API reference guide for AWS Directory Service's // API operation DescribeDirectories for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDirectories @@ -2277,23 +2277,23 @@ func (c *DirectoryService) DescribeDomainControllersRequest(input *DescribeDomai // See the AWS API reference guide for AWS Directory Service's // API operation DescribeDomainControllers for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeDomainControllers @@ -2427,17 +2427,17 @@ func (c *DirectoryService) DescribeEventTopicsRequest(input *DescribeEventTopics // See the AWS API reference guide for AWS Directory Service's // API operation DescribeEventTopics for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeEventTopics @@ -2515,23 +2515,23 @@ func (c *DirectoryService) DescribeLDAPSSettingsRequest(input *DescribeLDAPSSett // See the AWS API reference guide for AWS Directory Service's // API operation DescribeLDAPSSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryDoesNotExistException "DirectoryDoesNotExistException" +// Returned Error Types: +// * DirectoryDoesNotExistException // The specified directory does not exist in the system. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeLDAPSSettings @@ -2609,23 +2609,23 @@ func (c *DirectoryService) DescribeSharedDirectoriesRequest(input *DescribeShare // See the AWS API reference guide for AWS Directory Service's // API operation DescribeSharedDirectories for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSharedDirectories @@ -2710,20 +2710,20 @@ func (c *DirectoryService) DescribeSnapshotsRequest(input *DescribeSnapshotsInpu // See the AWS API reference guide for AWS Directory Service's // API operation DescribeSnapshots for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeSnapshots @@ -2804,23 +2804,23 @@ func (c *DirectoryService) DescribeTrustsRequest(input *DescribeTrustsInput) (re // See the AWS API reference guide for AWS Directory Service's // API operation DescribeTrusts for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DescribeTrusts @@ -2899,27 +2899,27 @@ func (c *DirectoryService) DisableLDAPSRequest(input *DisableLDAPSInput) (req *r // See the AWS API reference guide for AWS Directory Service's // API operation DisableLDAPS for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// Returned Error Types: +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeDirectoryDoesNotExistException "DirectoryDoesNotExistException" +// * DirectoryDoesNotExistException // The specified directory does not exist in the system. // -// * ErrCodeInvalidLDAPSStatusException "InvalidLDAPSStatusException" +// * InvalidLDAPSStatusException // The LDAP activities could not be performed because they are limited by the // LDAPS status. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableLDAPS @@ -3000,14 +3000,14 @@ func (c *DirectoryService) DisableRadiusRequest(input *DisableRadiusInput) (req // See the AWS API reference guide for AWS Directory Service's // API operation DisableRadius for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableRadius @@ -3086,20 +3086,20 @@ func (c *DirectoryService) DisableSsoRequest(input *DisableSsoInput) (req *reque // See the AWS API reference guide for AWS Directory Service's // API operation DisableSso for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // The account does not have sufficient permission to perform the operation. // -// * ErrCodeAuthenticationFailedException "AuthenticationFailedException" +// * AuthenticationFailedException // An authentication error occurred. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/DisableSso @@ -3179,31 +3179,31 @@ func (c *DirectoryService) EnableLDAPSRequest(input *EnableLDAPSInput) (req *req // See the AWS API reference guide for AWS Directory Service's // API operation EnableLDAPS for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// Returned Error Types: +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeDirectoryDoesNotExistException "DirectoryDoesNotExistException" +// * DirectoryDoesNotExistException // The specified directory does not exist in the system. // -// * ErrCodeNoAvailableCertificateException "NoAvailableCertificateException" +// * NoAvailableCertificateException // The LDAP activities could not be performed because at least one valid certificate // must be registered with the system. // -// * ErrCodeInvalidLDAPSStatusException "InvalidLDAPSStatusException" +// * InvalidLDAPSStatusException // The LDAP activities could not be performed because they are limited by the // LDAPS status. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableLDAPS @@ -3284,20 +3284,20 @@ func (c *DirectoryService) EnableRadiusRequest(input *EnableRadiusInput) (req *r // See the AWS API reference guide for AWS Directory Service's // API operation EnableRadius for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// * EntityAlreadyExistsException // The specified entity already exists. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableRadius @@ -3378,20 +3378,20 @@ func (c *DirectoryService) EnableSsoRequest(input *EnableSsoInput) (req *request // See the AWS API reference guide for AWS Directory Service's // API operation EnableSso for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInsufficientPermissionsException "InsufficientPermissionsException" +// * InsufficientPermissionsException // The account does not have sufficient permission to perform the operation. // -// * ErrCodeAuthenticationFailedException "AuthenticationFailedException" +// * AuthenticationFailedException // An authentication error occurred. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/EnableSso @@ -3469,14 +3469,14 @@ func (c *DirectoryService) GetDirectoryLimitsRequest(input *GetDirectoryLimitsIn // See the AWS API reference guide for AWS Directory Service's // API operation GetDirectoryLimits for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetDirectoryLimits @@ -3554,14 +3554,14 @@ func (c *DirectoryService) GetSnapshotLimitsRequest(input *GetSnapshotLimitsInpu // See the AWS API reference guide for AWS Directory Service's // API operation GetSnapshotLimits for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/GetSnapshotLimits @@ -3640,23 +3640,23 @@ func (c *DirectoryService) ListCertificatesRequest(input *ListCertificatesInput) // See the AWS API reference guide for AWS Directory Service's // API operation ListCertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryDoesNotExistException "DirectoryDoesNotExistException" +// Returned Error Types: +// * DirectoryDoesNotExistException // The specified directory does not exist in the system. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListCertificates @@ -3734,20 +3734,20 @@ func (c *DirectoryService) ListIpRoutesRequest(input *ListIpRoutesInput) (req *r // See the AWS API reference guide for AWS Directory Service's // API operation ListIpRoutes for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListIpRoutes @@ -3825,17 +3825,17 @@ func (c *DirectoryService) ListLogSubscriptionsRequest(input *ListLogSubscriptio // See the AWS API reference guide for AWS Directory Service's // API operation ListLogSubscriptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListLogSubscriptions @@ -3913,17 +3913,17 @@ func (c *DirectoryService) ListSchemaExtensionsRequest(input *ListSchemaExtensio // See the AWS API reference guide for AWS Directory Service's // API operation ListSchemaExtensions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListSchemaExtensions @@ -4001,20 +4001,20 @@ func (c *DirectoryService) ListTagsForResourceRequest(input *ListTagsForResource // See the AWS API reference guide for AWS Directory Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ListTagsForResource @@ -4092,33 +4092,33 @@ func (c *DirectoryService) RegisterCertificateRequest(input *RegisterCertificate // See the AWS API reference guide for AWS Directory Service's // API operation RegisterCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// Returned Error Types: +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeDirectoryDoesNotExistException "DirectoryDoesNotExistException" +// * DirectoryDoesNotExistException // The specified directory does not exist in the system. // -// * ErrCodeInvalidCertificateException "InvalidCertificateException" +// * InvalidCertificateException // The certificate PEM that was provided has incorrect encoding. // -// * ErrCodeCertificateLimitExceededException "CertificateLimitExceededException" +// * CertificateLimitExceededException // The certificate could not be added because the certificate limit has been // reached. // -// * ErrCodeCertificateAlreadyExistsException "CertificateAlreadyExistsException" +// * CertificateAlreadyExistsException // The certificate has already been registered into the system. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterCertificate @@ -4202,17 +4202,17 @@ func (c *DirectoryService) RegisterEventTopicRequest(input *RegisterEventTopicIn // See the AWS API reference guide for AWS Directory Service's // API operation RegisterEventTopic for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RegisterEventTopic @@ -4291,20 +4291,20 @@ func (c *DirectoryService) RejectSharedDirectoryRequest(input *RejectSharedDirec // See the AWS API reference guide for AWS Directory Service's // API operation RejectSharedDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" +// * DirectoryAlreadySharedException // The specified directory has already been shared with this AWS account. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RejectSharedDirectory @@ -4383,20 +4383,20 @@ func (c *DirectoryService) RemoveIpRoutesRequest(input *RemoveIpRoutesInput) (re // See the AWS API reference guide for AWS Directory Service's // API operation RemoveIpRoutes for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutes @@ -4475,17 +4475,17 @@ func (c *DirectoryService) RemoveTagsFromResourceRequest(input *RemoveTagsFromRe // See the AWS API reference guide for AWS Directory Service's // API operation RemoveTagsFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveTagsFromResource @@ -4579,27 +4579,27 @@ func (c *DirectoryService) ResetUserPasswordRequest(input *ResetUserPasswordInpu // See the AWS API reference guide for AWS Directory Service's // API operation ResetUserPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// Returned Error Types: +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeUserDoesNotExistException "UserDoesNotExistException" +// * UserDoesNotExistException // The user provided a username that does not exist in your directory. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // The new password provided by the user does not meet the password complexity // requirements defined in your directory. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ResetUserPassword @@ -4686,17 +4686,17 @@ func (c *DirectoryService) RestoreFromSnapshotRequest(input *RestoreFromSnapshot // See the AWS API reference guide for AWS Directory Service's // API operation RestoreFromSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RestoreFromSnapshot @@ -4791,36 +4791,36 @@ func (c *DirectoryService) ShareDirectoryRequest(input *ShareDirectoryInput) (re // See the AWS API reference guide for AWS Directory Service's // API operation ShareDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryAlreadySharedException "DirectoryAlreadySharedException" +// Returned Error Types: +// * DirectoryAlreadySharedException // The specified directory has already been shared with this AWS account. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidTargetException "InvalidTargetException" +// * InvalidTargetException // The specified shared target is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeShareLimitExceededException "ShareLimitExceededException" +// * ShareLimitExceededException // The maximum number of AWS accounts that you can share with this directory // has been reached. // -// * ErrCodeOrganizationsException "OrganizationsException" +// * OrganizationsException // Exception encountered while trying to access your AWS organization. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/ShareDirectory @@ -4898,25 +4898,25 @@ func (c *DirectoryService) StartSchemaExtensionRequest(input *StartSchemaExtensi // See the AWS API reference guide for AWS Directory Service's // API operation StartSchemaExtension for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// Returned Error Types: +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeSnapshotLimitExceededException "SnapshotLimitExceededException" +// * SnapshotLimitExceededException // The maximum number of manual snapshots for the directory has been reached. // You can use the GetSnapshotLimits operation to determine the snapshot limits // for a directory. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/StartSchemaExtension @@ -4994,20 +4994,20 @@ func (c *DirectoryService) UnshareDirectoryRequest(input *UnshareDirectoryInput) // See the AWS API reference guide for AWS Directory Service's // API operation UnshareDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidTargetException "InvalidTargetException" +// * InvalidTargetException // The specified shared target is not valid. // -// * ErrCodeDirectoryNotSharedException "DirectoryNotSharedException" +// * DirectoryNotSharedException // The specified directory has not been shared with this AWS account. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UnshareDirectory @@ -5086,23 +5086,23 @@ func (c *DirectoryService) UpdateConditionalForwarderRequest(input *UpdateCondit // See the AWS API reference guide for AWS Directory Service's // API operation UpdateConditionalForwarder for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateConditionalForwarder @@ -5186,27 +5186,27 @@ func (c *DirectoryService) UpdateNumberOfDomainControllersRequest(input *UpdateN // See the AWS API reference guide for AWS Directory Service's // API operation UpdateNumberOfDomainControllers for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The specified directory is unavailable or could not be found. // -// * ErrCodeDomainControllerLimitExceededException "DomainControllerLimitExceededException" +// * DomainControllerLimitExceededException // The maximum allowed number of domain controllers per directory was exceeded. // The default limit per directory is 20 domain controllers. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateNumberOfDomainControllers @@ -5286,17 +5286,17 @@ func (c *DirectoryService) UpdateRadiusRequest(input *UpdateRadiusInput) (req *r // See the AWS API reference guide for AWS Directory Service's // API operation UpdateRadius for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateRadius @@ -5375,17 +5375,17 @@ func (c *DirectoryService) UpdateTrustRequest(input *UpdateTrustInput) (req *req // See the AWS API reference guide for AWS Directory Service's // API operation UpdateTrust for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/UpdateTrust @@ -5467,20 +5467,20 @@ func (c *DirectoryService) VerifyTrustRequest(input *VerifyTrustInput) (req *req // See the AWS API reference guide for AWS Directory Service's // API operation VerifyTrust for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityDoesNotExistException "EntityDoesNotExistException" +// Returned Error Types: +// * EntityDoesNotExistException // The specified entity could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeClientException "ClientException" +// * ClientException // A client exception has occurred. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // An exception has occurred in AWS Directory Service. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/VerifyTrust @@ -5567,6 +5567,66 @@ func (s *AcceptSharedDirectoryOutput) SetSharedDirectory(v *SharedDirectory) *Ac return s } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AddIpRoutesInput struct { _ struct{} `type:"structure"` @@ -5810,6 +5870,66 @@ func (s *Attribute) SetValue(v string) *Attribute { return s } +// An authentication error occurred. +type AuthenticationFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The textual message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The identifier of the request that caused the exception. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s AuthenticationFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthenticationFailedException) GoString() string { + return s.String() +} + +func newErrorAuthenticationFailedException(v protocol.ResponseMetadata) error { + return &AuthenticationFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AuthenticationFailedException) Code() string { + return "AuthenticationFailedException" +} + +// Message returns the exception's message. +func (s AuthenticationFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AuthenticationFailedException) OrigErr() error { + return nil +} + +func (s AuthenticationFailedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AuthenticationFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AuthenticationFailedException) RequestID() string { + return s.respMetadata.RequestID +} + type CancelSchemaExtensionInput struct { _ struct{} `type:"structure"` @@ -5945,6 +6065,187 @@ func (s *Certificate) SetStateReason(v string) *Certificate { return s } +// The certificate has already been registered into the system. +type CertificateAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s CertificateAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorCertificateAlreadyExistsException(v protocol.ResponseMetadata) error { + return &CertificateAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateAlreadyExistsException) Code() string { + return "CertificateAlreadyExistsException" +} + +// Message returns the exception's message. +func (s CertificateAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateAlreadyExistsException) OrigErr() error { + return nil +} + +func (s CertificateAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The certificate is not present in the system for describe or deregister activities. +type CertificateDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s CertificateDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorCertificateDoesNotExistException(v protocol.ResponseMetadata) error { + return &CertificateDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateDoesNotExistException) Code() string { + return "CertificateDoesNotExistException" +} + +// Message returns the exception's message. +func (s CertificateDoesNotExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateDoesNotExistException) OrigErr() error { + return nil +} + +func (s CertificateDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The certificate is being used for the LDAP security connection and cannot +// be removed without disabling LDAP security. +type CertificateInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s CertificateInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateInUseException) GoString() string { + return s.String() +} + +func newErrorCertificateInUseException(v protocol.ResponseMetadata) error { + return &CertificateInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateInUseException) Code() string { + return "CertificateInUseException" +} + +// Message returns the exception's message. +func (s CertificateInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateInUseException) OrigErr() error { + return nil +} + +func (s CertificateInUseException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateInUseException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains general information about a certificate. type CertificateInfo struct { _ struct{} `type:"structure"` @@ -5987,6 +6288,127 @@ func (s *CertificateInfo) SetState(v string) *CertificateInfo { return s } +// The certificate could not be added because the certificate limit has been +// reached. +type CertificateLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s CertificateLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateLimitExceededException) GoString() string { + return s.String() +} + +func newErrorCertificateLimitExceededException(v protocol.ResponseMetadata) error { + return &CertificateLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateLimitExceededException) Code() string { + return "CertificateLimitExceededException" +} + +// Message returns the exception's message. +func (s CertificateLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateLimitExceededException) OrigErr() error { + return nil +} + +func (s CertificateLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A client exception has occurred. +type ClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s ClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientException) GoString() string { + return s.String() +} + +func newErrorClientException(v protocol.ResponseMetadata) error { + return &ClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientException) Code() string { + return "ClientException" +} + +// Message returns the exception's message. +func (s ClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientException) OrigErr() error { + return nil +} + +func (s ClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a computer account in a directory. type Computer struct { _ struct{} `type:"structure"` @@ -8381,6 +8803,66 @@ func (s *DescribeTrustsOutput) SetTrusts(v []*Trust) *DescribeTrustsOutput { return s } +// The specified directory has already been shared with this AWS account. +type DirectoryAlreadySharedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s DirectoryAlreadySharedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryAlreadySharedException) GoString() string { + return s.String() +} + +func newErrorDirectoryAlreadySharedException(v protocol.ResponseMetadata) error { + return &DirectoryAlreadySharedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryAlreadySharedException) Code() string { + return "DirectoryAlreadySharedException" +} + +// Message returns the exception's message. +func (s DirectoryAlreadySharedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryAlreadySharedException) OrigErr() error { + return nil +} + +func (s DirectoryAlreadySharedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryAlreadySharedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryAlreadySharedException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information for the ConnectDirectory operation when an AD Connector // directory is being created. type DirectoryConnectSettings struct { @@ -8792,17 +9274,139 @@ func (s *DirectoryDescription) SetVpcSettings(v *DirectoryVpcSettingsDescription return s } -// Contains directory limit information for a Region. -type DirectoryLimits struct { - _ struct{} `type:"structure"` - - // The current number of cloud directories in the Region. - CloudOnlyDirectoriesCurrentCount *int64 `type:"integer"` +// The specified directory does not exist in the system. +type DirectoryDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The maximum number of cloud directories allowed in the Region. - CloudOnlyDirectoriesLimit *int64 `type:"integer"` + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` - // Indicates if the cloud directory limit has been reached. + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s DirectoryDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorDirectoryDoesNotExistException(v protocol.ResponseMetadata) error { + return &DirectoryDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryDoesNotExistException) Code() string { + return "DirectoryDoesNotExistException" +} + +// Message returns the exception's message. +func (s DirectoryDoesNotExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryDoesNotExistException) OrigErr() error { + return nil +} + +func (s DirectoryDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of directories in the region has been reached. You can +// use the GetDirectoryLimits operation to determine your directory limits in +// the region. +type DirectoryLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s DirectoryLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryLimitExceededException) GoString() string { + return s.String() +} + +func newErrorDirectoryLimitExceededException(v protocol.ResponseMetadata) error { + return &DirectoryLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryLimitExceededException) Code() string { + return "DirectoryLimitExceededException" +} + +// Message returns the exception's message. +func (s DirectoryLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryLimitExceededException) OrigErr() error { + return nil +} + +func (s DirectoryLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Contains directory limit information for a Region. +type DirectoryLimits struct { + _ struct{} `type:"structure"` + + // The current number of cloud directories in the Region. + CloudOnlyDirectoriesCurrentCount *int64 `type:"integer"` + + // The maximum number of cloud directories allowed in the Region. + CloudOnlyDirectoriesLimit *int64 `type:"integer"` + + // Indicates if the cloud directory limit has been reached. CloudOnlyDirectoriesLimitReached *bool `type:"boolean"` // The current number of AWS Managed Microsoft AD directories in the region. @@ -8889,6 +9493,126 @@ func (s *DirectoryLimits) SetConnectedDirectoriesLimitReached(v bool) *Directory return s } +// The specified directory has not been shared with this AWS account. +type DirectoryNotSharedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s DirectoryNotSharedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryNotSharedException) GoString() string { + return s.String() +} + +func newErrorDirectoryNotSharedException(v protocol.ResponseMetadata) error { + return &DirectoryNotSharedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryNotSharedException) Code() string { + return "DirectoryNotSharedException" +} + +// Message returns the exception's message. +func (s DirectoryNotSharedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryNotSharedException) OrigErr() error { + return nil +} + +func (s DirectoryNotSharedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryNotSharedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryNotSharedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified directory is unavailable or could not be found. +type DirectoryUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s DirectoryUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryUnavailableException) GoString() string { + return s.String() +} + +func newErrorDirectoryUnavailableException(v protocol.ResponseMetadata) error { + return &DirectoryUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryUnavailableException) Code() string { + return "DirectoryUnavailableException" +} + +// Message returns the exception's message. +func (s DirectoryUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryUnavailableException) OrigErr() error { + return nil +} + +func (s DirectoryUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation. type DirectoryVpcSettings struct { _ struct{} `type:"structure"` @@ -9305,6 +10029,67 @@ func (s *DomainController) SetVpcId(v string) *DomainController { return s } +// The maximum allowed number of domain controllers per directory was exceeded. +// The default limit per directory is 20 domain controllers. +type DomainControllerLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s DomainControllerLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainControllerLimitExceededException) GoString() string { + return s.String() +} + +func newErrorDomainControllerLimitExceededException(v protocol.ResponseMetadata) error { + return &DomainControllerLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DomainControllerLimitExceededException) Code() string { + return "DomainControllerLimitExceededException" +} + +// Message returns the exception's message. +func (s DomainControllerLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DomainControllerLimitExceededException) OrigErr() error { + return nil +} + +func (s DomainControllerLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DomainControllerLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DomainControllerLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type EnableLDAPSInput struct { _ struct{} `type:"structure"` @@ -9528,6 +10313,126 @@ func (s EnableSsoOutput) GoString() string { return s.String() } +// The specified entity already exists. +type EntityAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s EntityAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorEntityAlreadyExistsException(v protocol.ResponseMetadata) error { + return &EntityAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityAlreadyExistsException) Code() string { + return "EntityAlreadyExistsException" +} + +// Message returns the exception's message. +func (s EntityAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityAlreadyExistsException) OrigErr() error { + return nil +} + +func (s EntityAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified entity could not be found. +type EntityDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s EntityDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorEntityDoesNotExistException(v protocol.ResponseMetadata) error { + return &EntityDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityDoesNotExistException) Code() string { + return "EntityDoesNotExistException" +} + +// Message returns the exception's message. +func (s EntityDoesNotExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityDoesNotExistException) OrigErr() error { + return nil +} + +func (s EntityDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about SNS topic and AWS Directory Service directory associations. type EventTopic struct { _ struct{} `type:"structure"` @@ -9693,6 +10598,428 @@ func (s *GetSnapshotLimitsOutput) SetSnapshotLimits(v *SnapshotLimits) *GetSnaps return s } +// The account does not have sufficient permission to perform the operation. +type InsufficientPermissionsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InsufficientPermissionsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InsufficientPermissionsException) GoString() string { + return s.String() +} + +func newErrorInsufficientPermissionsException(v protocol.ResponseMetadata) error { + return &InsufficientPermissionsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InsufficientPermissionsException) Code() string { + return "InsufficientPermissionsException" +} + +// Message returns the exception's message. +func (s InsufficientPermissionsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientPermissionsException) OrigErr() error { + return nil +} + +func (s InsufficientPermissionsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientPermissionsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsufficientPermissionsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The certificate PEM that was provided has incorrect encoding. +type InvalidCertificateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidCertificateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCertificateException) GoString() string { + return s.String() +} + +func newErrorInvalidCertificateException(v protocol.ResponseMetadata) error { + return &InvalidCertificateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCertificateException) Code() string { + return "InvalidCertificateException" +} + +// Message returns the exception's message. +func (s InvalidCertificateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCertificateException) OrigErr() error { + return nil +} + +func (s InvalidCertificateException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCertificateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCertificateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The LDAP activities could not be performed because they are limited by the +// LDAPS status. +type InvalidLDAPSStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidLDAPSStatusException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLDAPSStatusException) GoString() string { + return s.String() +} + +func newErrorInvalidLDAPSStatusException(v protocol.ResponseMetadata) error { + return &InvalidLDAPSStatusException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLDAPSStatusException) Code() string { + return "InvalidLDAPSStatusException" +} + +// Message returns the exception's message. +func (s InvalidLDAPSStatusException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLDAPSStatusException) OrigErr() error { + return nil +} + +func (s InvalidLDAPSStatusException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLDAPSStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLDAPSStatusException) RequestID() string { + return s.respMetadata.RequestID +} + +// The NextToken value is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more parameters are not valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The new password provided by the user does not meet the password complexity +// requirements defined in your directory. +type InvalidPasswordException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidPasswordException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPasswordException) GoString() string { + return s.String() +} + +func newErrorInvalidPasswordException(v protocol.ResponseMetadata) error { + return &InvalidPasswordException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPasswordException) Code() string { + return "InvalidPasswordException" +} + +// Message returns the exception's message. +func (s InvalidPasswordException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPasswordException) OrigErr() error { + return nil +} + +func (s InvalidPasswordException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPasswordException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPasswordException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified shared target is not valid. +type InvalidTargetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidTargetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTargetException) GoString() string { + return s.String() +} + +func newErrorInvalidTargetException(v protocol.ResponseMetadata) error { + return &InvalidTargetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTargetException) Code() string { + return "InvalidTargetException" +} + +// Message returns the exception's message. +func (s InvalidTargetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTargetException) OrigErr() error { + return nil +} + +func (s InvalidTargetException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTargetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTargetException) RequestID() string { + return s.respMetadata.RequestID +} + // IP address block. This is often the address block of the DNS server used // for your on-premises domain. type IpRoute struct { @@ -9786,16 +11113,77 @@ func (s *IpRouteInfo) SetDirectoryId(v string) *IpRouteInfo { return s } -// SetIpRouteStatusMsg sets the IpRouteStatusMsg field's value. -func (s *IpRouteInfo) SetIpRouteStatusMsg(v string) *IpRouteInfo { - s.IpRouteStatusMsg = &v - return s +// SetIpRouteStatusMsg sets the IpRouteStatusMsg field's value. +func (s *IpRouteInfo) SetIpRouteStatusMsg(v string) *IpRouteInfo { + s.IpRouteStatusMsg = &v + return s +} + +// SetIpRouteStatusReason sets the IpRouteStatusReason field's value. +func (s *IpRouteInfo) SetIpRouteStatusReason(v string) *IpRouteInfo { + s.IpRouteStatusReason = &v + return s +} + +// The maximum allowed number of IP addresses was exceeded. The default limit +// is 100 IP address blocks. +type IpRouteLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s IpRouteLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IpRouteLimitExceededException) GoString() string { + return s.String() +} + +func newErrorIpRouteLimitExceededException(v protocol.ResponseMetadata) error { + return &IpRouteLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IpRouteLimitExceededException) Code() string { + return "IpRouteLimitExceededException" +} + +// Message returns the exception's message. +func (s IpRouteLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IpRouteLimitExceededException) OrigErr() error { + return nil +} + +func (s IpRouteLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IpRouteLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetIpRouteStatusReason sets the IpRouteStatusReason field's value. -func (s *IpRouteInfo) SetIpRouteStatusReason(v string) *IpRouteInfo { - s.IpRouteStatusReason = &v - return s +// RequestID returns the service's response RequestID for request. +func (s IpRouteLimitExceededException) RequestID() string { + return s.respMetadata.RequestID } // Contains general information about the LDAPS settings. @@ -10328,6 +11716,127 @@ func (s *LogSubscription) SetSubscriptionCreatedDateTime(v time.Time) *LogSubscr return s } +// The LDAP activities could not be performed because at least one valid certificate +// must be registered with the system. +type NoAvailableCertificateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s NoAvailableCertificateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoAvailableCertificateException) GoString() string { + return s.String() +} + +func newErrorNoAvailableCertificateException(v protocol.ResponseMetadata) error { + return &NoAvailableCertificateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoAvailableCertificateException) Code() string { + return "NoAvailableCertificateException" +} + +// Message returns the exception's message. +func (s NoAvailableCertificateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoAvailableCertificateException) OrigErr() error { + return nil +} + +func (s NoAvailableCertificateException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoAvailableCertificateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoAvailableCertificateException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception encountered while trying to access your AWS organization. +type OrganizationsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s OrganizationsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationsException) GoString() string { + return s.String() +} + +func newErrorOrganizationsException(v protocol.ResponseMetadata) error { + return &OrganizationsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationsException) Code() string { + return "OrganizationsException" +} + +// Message returns the exception's message. +func (s OrganizationsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationsException) OrigErr() error { + return nil +} + +func (s OrganizationsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationsException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the directory owner account details that have been shared to the // directory consumer account. type OwnerDirectoryDescription struct { @@ -11077,6 +12586,66 @@ func (s *SchemaExtensionInfo) SetStartDateTime(v time.Time) *SchemaExtensionInfo return s } +// An exception has occurred in AWS Directory Service. +type ServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s ServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceException) GoString() string { + return s.String() +} + +func newErrorServiceException(v protocol.ResponseMetadata) error { + return &ServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceException) Code() string { + return "ServiceException" +} + +// Message returns the exception's message. +func (s ServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceException) OrigErr() error { + return nil +} + +func (s ServiceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceException) RequestID() string { + return s.respMetadata.RequestID +} + type ShareDirectoryInput struct { _ struct{} `type:"structure"` @@ -11187,6 +12756,67 @@ func (s *ShareDirectoryOutput) SetSharedDirectoryId(v string) *ShareDirectoryOut return s } +// The maximum number of AWS accounts that you can share with this directory +// has been reached. +type ShareLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s ShareLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ShareLimitExceededException) GoString() string { + return s.String() +} + +func newErrorShareLimitExceededException(v protocol.ResponseMetadata) error { + return &ShareLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ShareLimitExceededException) Code() string { + return "ShareLimitExceededException" +} + +// Message returns the exception's message. +func (s ShareLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ShareLimitExceededException) OrigErr() error { + return nil +} + +func (s ShareLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ShareLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ShareLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Identifier that contains details about the directory consumer account. type ShareTarget struct { _ struct{} `type:"structure"` @@ -11416,6 +13046,68 @@ func (s *Snapshot) SetType(v string) *Snapshot { return s } +// The maximum number of manual snapshots for the directory has been reached. +// You can use the GetSnapshotLimits operation to determine the snapshot limits +// for a directory. +type SnapshotLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s SnapshotLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SnapshotLimitExceededException) GoString() string { + return s.String() +} + +func newErrorSnapshotLimitExceededException(v protocol.ResponseMetadata) error { + return &SnapshotLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SnapshotLimitExceededException) Code() string { + return "SnapshotLimitExceededException" +} + +// Message returns the exception's message. +func (s SnapshotLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SnapshotLimitExceededException) OrigErr() error { + return nil +} + +func (s SnapshotLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SnapshotLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SnapshotLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains manual snapshot limit information for a directory. type SnapshotLimits struct { _ struct{} `type:"structure"` @@ -11628,6 +13320,66 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// The maximum allowed number of tags was exceeded. +type TagLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s TagLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error { + return &TagLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagLimitExceededException) Code() string { + return "TagLimitExceededException" +} + +// Message returns the exception's message. +func (s TagLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagLimitExceededException) OrigErr() error { + return nil +} + +func (s TagLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a trust relationship between an AWS Managed Microsoft AD directory // and an external domain. type Trust struct { @@ -11884,6 +13636,66 @@ func (s *UnshareTarget) SetType(v string) *UnshareTarget { return s } +// The operation is not supported. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s UnsupportedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + // Updates a conditional forwarder. type UpdateConditionalForwarderInput struct { _ struct{} `type:"structure"` @@ -12191,6 +14003,66 @@ func (s *UpdateTrustOutput) SetTrustId(v string) *UpdateTrustOutput { return s } +// The user provided a username that does not exist in your directory. +type UserDoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The descriptive message for the exception. + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request identifier. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s UserDoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserDoesNotExistException) GoString() string { + return s.String() +} + +func newErrorUserDoesNotExistException(v protocol.ResponseMetadata) error { + return &UserDoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserDoesNotExistException) Code() string { + return "UserDoesNotExistException" +} + +// Message returns the exception's message. +func (s UserDoesNotExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserDoesNotExistException) OrigErr() error { + return nil +} + +func (s UserDoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserDoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserDoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + // Initiates the verification of an existing trust relationship between an AWS // Managed Microsoft AD directory and an external domain. type VerifyTrustInput struct { diff --git a/service/directoryservice/errors.go b/service/directoryservice/errors.go index f1d96a05acc..c33562c88e4 100644 --- a/service/directoryservice/errors.go +++ b/service/directoryservice/errors.go @@ -2,6 +2,10 @@ package directoryservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -202,3 +206,37 @@ const ( // The user provided a username that does not exist in your directory. ErrCodeUserDoesNotExistException = "UserDoesNotExistException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AuthenticationFailedException": newErrorAuthenticationFailedException, + "CertificateAlreadyExistsException": newErrorCertificateAlreadyExistsException, + "CertificateDoesNotExistException": newErrorCertificateDoesNotExistException, + "CertificateInUseException": newErrorCertificateInUseException, + "CertificateLimitExceededException": newErrorCertificateLimitExceededException, + "ClientException": newErrorClientException, + "DirectoryAlreadySharedException": newErrorDirectoryAlreadySharedException, + "DirectoryDoesNotExistException": newErrorDirectoryDoesNotExistException, + "DirectoryLimitExceededException": newErrorDirectoryLimitExceededException, + "DirectoryNotSharedException": newErrorDirectoryNotSharedException, + "DirectoryUnavailableException": newErrorDirectoryUnavailableException, + "DomainControllerLimitExceededException": newErrorDomainControllerLimitExceededException, + "EntityAlreadyExistsException": newErrorEntityAlreadyExistsException, + "EntityDoesNotExistException": newErrorEntityDoesNotExistException, + "InsufficientPermissionsException": newErrorInsufficientPermissionsException, + "InvalidCertificateException": newErrorInvalidCertificateException, + "InvalidLDAPSStatusException": newErrorInvalidLDAPSStatusException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidPasswordException": newErrorInvalidPasswordException, + "InvalidTargetException": newErrorInvalidTargetException, + "IpRouteLimitExceededException": newErrorIpRouteLimitExceededException, + "NoAvailableCertificateException": newErrorNoAvailableCertificateException, + "OrganizationsException": newErrorOrganizationsException, + "ServiceException": newErrorServiceException, + "ShareLimitExceededException": newErrorShareLimitExceededException, + "SnapshotLimitExceededException": newErrorSnapshotLimitExceededException, + "TagLimitExceededException": newErrorTagLimitExceededException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, + "UserDoesNotExistException": newErrorUserDoesNotExistException, +} diff --git a/service/directoryservice/service.go b/service/directoryservice/service.go index 8abd769889e..9d44741af41 100644 --- a/service/directoryservice/service.go +++ b/service/directoryservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/dlm/api.go b/service/dlm/api.go index 415373a634a..4cfc6a01146 100644 --- a/service/dlm/api.go +++ b/service/dlm/api.go @@ -67,14 +67,14 @@ func (c *DLM) CreateLifecyclePolicyRequest(input *CreateLifecyclePolicyInput) (r // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation CreateLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Bad request. The request is missing required parameters or has invalid parameters. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because a limit was exceeded. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The service failed in an unexpected way. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/CreateLifecyclePolicy @@ -154,14 +154,14 @@ func (c *DLM) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) (r // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation DeleteLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A requested resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The service failed in an unexpected way. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because a limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/DeleteLifecyclePolicy @@ -241,17 +241,17 @@ func (c *DLM) GetLifecyclePoliciesRequest(input *GetLifecyclePoliciesInput) (req // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation GetLifecyclePolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A requested resource was not found. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Bad request. The request is missing required parameters or has invalid parameters. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The service failed in an unexpected way. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because a limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicies @@ -329,14 +329,14 @@ func (c *DLM) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) (req *re // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation GetLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A requested resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The service failed in an unexpected way. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because a limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/GetLifecyclePolicy @@ -414,14 +414,14 @@ func (c *DLM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The service failed in an unexpected way. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Bad request. The request is missing required parameters or has invalid parameters. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/ListTagsForResource @@ -500,14 +500,14 @@ func (c *DLM) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The service failed in an unexpected way. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Bad request. The request is missing required parameters or has invalid parameters. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/TagResource @@ -586,14 +586,14 @@ func (c *DLM) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // The service failed in an unexpected way. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Bad request. The request is missing required parameters or has invalid parameters. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UntagResource @@ -672,17 +672,17 @@ func (c *DLM) UpdateLifecyclePolicyRequest(input *UpdateLifecyclePolicyInput) (r // See the AWS API reference guide for Amazon Data Lifecycle Manager's // API operation UpdateLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A requested resource was not found. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // Bad request. The request is missing required parameters or has invalid parameters. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The service failed in an unexpected way. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because a limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dlm-2018-01-12/UpdateLifecyclePolicy @@ -1335,6 +1335,128 @@ func (s *GetLifecyclePolicyOutput) SetPolicy(v *LifecyclePolicy) *GetLifecyclePo return s } +// The service failed in an unexpected way. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// Bad request. The request is missing required parameters or has invalid parameters. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The request included parameters that cannot be provided together. + MutuallyExclusiveParameters []*string `type:"list"` + + // The request omitted one or more required parameters. + RequiredParameters []*string `type:"list"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Detailed information about a lifecycle policy. type LifecyclePolicy struct { _ struct{} `type:"structure"` @@ -1492,6 +1614,67 @@ func (s *LifecyclePolicySummary) SetTags(v map[string]*string) *LifecyclePolicyS return s } +// The request failed because a limit was exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // Value is the type of resource for which a limit was exceeded. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -1683,6 +1866,70 @@ func (s *PolicyDetails) SetTargetTags(v []*Tag) *PolicyDetails { return s } +// A requested resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // Value is a list of resource IDs that were not found. + ResourceIds []*string `type:"list"` + + // Value is the type of resource that was not found. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the retention rule for a lifecycle policy. You can retain snapshots // based on either a count or a time interval. type RetainRule struct { diff --git a/service/dlm/errors.go b/service/dlm/errors.go index f2f7e4b92bb..ea4d3e590df 100644 --- a/service/dlm/errors.go +++ b/service/dlm/errors.go @@ -2,6 +2,10 @@ package dlm +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerException for service response error code @@ -28,3 +32,10 @@ const ( // A requested resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerException": newErrorInternalServerException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/dlm/service.go b/service/dlm/service.go index 5f8841f5b89..31c39ef3716 100644 --- a/service/dlm/service.go +++ b/service/dlm/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/dynamodb/api.go b/service/dynamodb/api.go index 222f445b416..5fe0248729c 100644 --- a/service/dynamodb/api.go +++ b/service/dynamodb/api.go @@ -143,8 +143,8 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // See the AWS API reference guide for Amazon DynamoDB's // API operation BatchGetItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// Returned Error Types: +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -152,16 +152,16 @@ func (c *DynamoDB) BatchGetItemRequest(input *BatchGetItemInput) (req *request.R // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchGetItem @@ -381,8 +381,8 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // See the AWS API reference guide for Amazon DynamoDB's // API operation BatchWriteItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// Returned Error Types: +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -390,20 +390,20 @@ func (c *DynamoDB) BatchWriteItemRequest(input *BatchWriteItemInput) (req *reque // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" +// * ItemCollectionSizeLimitExceededException // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/BatchWriteItem @@ -530,22 +530,22 @@ func (c *DynamoDB) CreateBackupRequest(input *CreateBackupInput) (req *request.R // See the AWS API reference guide for Amazon DynamoDB's // API operation CreateBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeTableNotFoundException "TableNotFoundException" +// Returned Error Types: +// * TableNotFoundException // A source table with the name TableName does not currently exist within the // subscriber's account. // -// * ErrCodeTableInUseException "TableInUseException" +// * TableInUseException // A target table with the specified name is either being created or deleted. // -// * ErrCodeContinuousBackupsUnavailableException "ContinuousBackupsUnavailableException" +// * ContinuousBackupsUnavailableException // Backups have not yet been enabled for this table. // -// * ErrCodeBackupInUseException "BackupInUseException" +// * BackupInUseException // There is another ongoing conflicting backup control plane operation on the // table. The backup is either being created, deleted or restored to a table. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -559,7 +559,7 @@ func (c *DynamoDB) CreateBackupRequest(input *CreateBackupInput) (req *request.R // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateBackup @@ -693,8 +693,8 @@ func (c *DynamoDB) CreateGlobalTableRequest(input *CreateGlobalTableInput) (req // See the AWS API reference guide for Amazon DynamoDB's // API operation CreateGlobalTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -708,13 +708,13 @@ func (c *DynamoDB) CreateGlobalTableRequest(input *CreateGlobalTableInput) (req // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeGlobalTableAlreadyExistsException "GlobalTableAlreadyExistsException" +// * GlobalTableAlreadyExistsException // The specified global table already exists. // -// * ErrCodeTableNotFoundException "TableNotFoundException" +// * TableNotFoundException // A source table with the name TableName does not currently exist within the // subscriber's account. // @@ -828,13 +828,13 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // See the AWS API reference guide for Amazon DynamoDB's // API operation CreateTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -848,7 +848,7 @@ func (c *DynamoDB) CreateTableRequest(input *CreateTableInput) (req *request.Req // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTable @@ -949,15 +949,15 @@ func (c *DynamoDB) DeleteBackupRequest(input *DeleteBackupInput) (req *request.R // See the AWS API reference guide for Amazon DynamoDB's // API operation DeleteBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBackupNotFoundException "BackupNotFoundException" +// Returned Error Types: +// * BackupNotFoundException // Backup not found for the given BackupARN. // -// * ErrCodeBackupInUseException "BackupInUseException" +// * BackupInUseException // There is another ongoing conflicting backup control plane operation on the // table. The backup is either being created, deleted or restored to a table. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -971,7 +971,7 @@ func (c *DynamoDB) DeleteBackupRequest(input *DeleteBackupInput) (req *request.R // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteBackup @@ -1083,11 +1083,11 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque // See the AWS API reference guide for Amazon DynamoDB's // API operation DeleteItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" +// Returned Error Types: +// * ConditionalCheckFailedException // A condition specified in the operation could not be evaluated. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -1095,23 +1095,23 @@ func (c *DynamoDB) DeleteItemRequest(input *DeleteItemInput) (req *request.Reque // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" +// * ItemCollectionSizeLimitExceededException // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * ErrCodeTransactionConflictException "TransactionConflictException" +// * TransactionConflictException // Operation was rejected because there is an ongoing transaction for the item. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteItem @@ -1227,17 +1227,17 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // See the AWS API reference guide for Amazon DynamoDB's // API operation DeleteTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -1251,7 +1251,7 @@ func (c *DynamoDB) DeleteTableRequest(input *DeleteTableInput) (req *request.Req // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable @@ -1352,11 +1352,11 @@ func (c *DynamoDB) DescribeBackupRequest(input *DescribeBackupInput) (req *reque // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBackupNotFoundException "BackupNotFoundException" +// Returned Error Types: +// * BackupNotFoundException // Backup not found for the given BackupARN. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeBackup @@ -1467,12 +1467,12 @@ func (c *DynamoDB) DescribeContinuousBackupsRequest(input *DescribeContinuousBac // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeContinuousBackups for usage and error information. // -// Returned Error Codes: -// * ErrCodeTableNotFoundException "TableNotFoundException" +// Returned Error Types: +// * TableNotFoundException // A source table with the name TableName does not currently exist within the // subscriber's account. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeContinuousBackups @@ -1551,12 +1551,12 @@ func (c *DynamoDB) DescribeContributorInsightsRequest(input *DescribeContributor // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeContributorInsights for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeContributorInsights @@ -1791,11 +1791,11 @@ func (c *DynamoDB) DescribeGlobalTableRequest(input *DescribeGlobalTableInput) ( // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeGlobalTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeGlobalTableNotFoundException "GlobalTableNotFoundException" +// * GlobalTableNotFoundException // The specified global table does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeGlobalTable @@ -1897,11 +1897,11 @@ func (c *DynamoDB) DescribeGlobalTableSettingsRequest(input *DescribeGlobalTable // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeGlobalTableSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeGlobalTableNotFoundException "GlobalTableNotFoundException" +// Returned Error Types: +// * GlobalTableNotFoundException // The specified global table does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeGlobalTableSettings @@ -2057,8 +2057,8 @@ func (c *DynamoDB) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reque // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeLimits for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeLimits @@ -2165,12 +2165,12 @@ func (c *DynamoDB) DescribeTableRequest(input *DescribeTableInput) (req *request // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTable @@ -2251,12 +2251,12 @@ func (c *DynamoDB) DescribeTableReplicaAutoScalingRequest(input *DescribeTableRe // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeTableReplicaAutoScaling for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTableReplicaAutoScaling @@ -2355,12 +2355,12 @@ func (c *DynamoDB) DescribeTimeToLiveRequest(input *DescribeTimeToLiveInput) (re // See the AWS API reference guide for Amazon DynamoDB's // API operation DescribeTimeToLive for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeTimeToLive @@ -2466,8 +2466,8 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // See the AWS API reference guide for Amazon DynamoDB's // API operation GetItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// Returned Error Types: +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -2475,16 +2475,16 @@ func (c *DynamoDB) GetItemRequest(input *GetItemInput) (req *request.Request, ou // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GetItem @@ -2591,8 +2591,8 @@ func (c *DynamoDB) ListBackupsRequest(input *ListBackupsInput) (req *request.Req // See the AWS API reference guide for Amazon DynamoDB's // API operation ListBackups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListBackups @@ -2677,12 +2677,12 @@ func (c *DynamoDB) ListContributorInsightsRequest(input *ListContributorInsights // See the AWS API reference guide for Amazon DynamoDB's // API operation ListContributorInsights for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListContributorInsights @@ -2836,8 +2836,8 @@ func (c *DynamoDB) ListGlobalTablesRequest(input *ListGlobalTablesInput) (req *r // See the AWS API reference guide for Amazon DynamoDB's // API operation ListGlobalTables for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListGlobalTables @@ -2944,8 +2944,8 @@ func (c *DynamoDB) ListTablesRequest(input *ListTablesInput) (req *request.Reque // See the AWS API reference guide for Amazon DynamoDB's // API operation ListTables for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTables @@ -3100,12 +3100,12 @@ func (c *DynamoDB) ListTagsOfResourceRequest(input *ListTagsOfResourceInput) (re // See the AWS API reference guide for Amazon DynamoDB's // API operation ListTagsOfResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ListTagsOfResource @@ -3247,11 +3247,11 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // See the AWS API reference guide for Amazon DynamoDB's // API operation PutItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" +// Returned Error Types: +// * ConditionalCheckFailedException // A condition specified in the operation could not be evaluated. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -3259,23 +3259,23 @@ func (c *DynamoDB) PutItemRequest(input *PutItemInput) (req *request.Request, ou // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" +// * ItemCollectionSizeLimitExceededException // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * ErrCodeTransactionConflictException "TransactionConflictException" +// * TransactionConflictException // Operation was rejected because there is an ongoing transaction for the item. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PutItem @@ -3427,8 +3427,8 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // See the AWS API reference guide for Amazon DynamoDB's // API operation Query for usage and error information. // -// Returned Error Codes: -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// Returned Error Types: +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -3436,16 +3436,16 @@ func (c *DynamoDB) QueryRequest(input *QueryInput) (req *request.Request, output // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Query @@ -3613,21 +3613,21 @@ func (c *DynamoDB) RestoreTableFromBackupRequest(input *RestoreTableFromBackupIn // See the AWS API reference guide for Amazon DynamoDB's // API operation RestoreTableFromBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeTableAlreadyExistsException "TableAlreadyExistsException" +// Returned Error Types: +// * TableAlreadyExistsException // A target table with the specified name already exists. // -// * ErrCodeTableInUseException "TableInUseException" +// * TableInUseException // A target table with the specified name is either being created or deleted. // -// * ErrCodeBackupNotFoundException "BackupNotFoundException" +// * BackupNotFoundException // Backup not found for the given BackupARN. // -// * ErrCodeBackupInUseException "BackupInUseException" +// * BackupInUseException // There is another ongoing conflicting backup control plane operation on the // table. The backup is either being created, deleted or restored to a table. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -3641,7 +3641,7 @@ func (c *DynamoDB) RestoreTableFromBackupRequest(input *RestoreTableFromBackupIn // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableFromBackup @@ -3775,18 +3775,18 @@ func (c *DynamoDB) RestoreTableToPointInTimeRequest(input *RestoreTableToPointIn // See the AWS API reference guide for Amazon DynamoDB's // API operation RestoreTableToPointInTime for usage and error information. // -// Returned Error Codes: -// * ErrCodeTableAlreadyExistsException "TableAlreadyExistsException" +// Returned Error Types: +// * TableAlreadyExistsException // A target table with the specified name already exists. // -// * ErrCodeTableNotFoundException "TableNotFoundException" +// * TableNotFoundException // A source table with the name TableName does not currently exist within the // subscriber's account. // -// * ErrCodeTableInUseException "TableInUseException" +// * TableInUseException // A target table with the specified name is either being created or deleted. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -3800,14 +3800,14 @@ func (c *DynamoDB) RestoreTableToPointInTimeRequest(input *RestoreTableToPointIn // // There is a soft account limit of 256 tables. // -// * ErrCodeInvalidRestoreTimeException "InvalidRestoreTimeException" +// * InvalidRestoreTimeException // An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime // and LatestRestorableDateTime. // -// * ErrCodePointInTimeRecoveryUnavailableException "PointInTimeRecoveryUnavailableException" +// * PointInTimeRecoveryUnavailableException // Point in time recovery has not yet been enabled for this source table. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTime @@ -3939,8 +3939,8 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // See the AWS API reference guide for Amazon DynamoDB's // API operation Scan for usage and error information. // -// Returned Error Codes: -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// Returned Error Types: +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -3948,16 +3948,16 @@ func (c *DynamoDB) ScanRequest(input *ScanInput) (req *request.Request, output * // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Scan @@ -4115,8 +4115,8 @@ func (c *DynamoDB) TagResourceRequest(input *TagResourceInput) (req *request.Req // See the AWS API reference guide for Amazon DynamoDB's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -4130,14 +4130,14 @@ func (c *DynamoDB) TagResourceRequest(input *TagResourceInput) (req *request.Req // // There is a soft account limit of 256 tables. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. @@ -4257,12 +4257,12 @@ func (c *DynamoDB) TransactGetItemsRequest(input *TransactGetItemsInput) (req *r // See the AWS API reference guide for Amazon DynamoDB's // API operation TransactGetItems for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeTransactionCanceledException "TransactionCanceledException" +// * TransactionCanceledException // The entire transaction request was canceled. // // DynamoDB cancels a TransactWriteItems request under the following circumstances: @@ -4349,7 +4349,7 @@ func (c *DynamoDB) TransactGetItemsRequest(input *TransactGetItemsInput) (req *r // The provided expression refers to an attribute that does not exist in // the item. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -4357,12 +4357,12 @@ func (c *DynamoDB) TransactGetItemsRequest(input *TransactGetItemsInput) (req *r // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TransactGetItems @@ -4514,12 +4514,12 @@ func (c *DynamoDB) TransactWriteItemsRequest(input *TransactWriteItemsInput) (re // See the AWS API reference guide for Amazon DynamoDB's // API operation TransactWriteItems for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeTransactionCanceledException "TransactionCanceledException" +// * TransactionCanceledException // The entire transaction request was canceled. // // DynamoDB cancels a TransactWriteItems request under the following circumstances: @@ -4606,14 +4606,14 @@ func (c *DynamoDB) TransactWriteItemsRequest(input *TransactWriteItemsInput) (re // The provided expression refers to an attribute that does not exist in // the item. // -// * ErrCodeTransactionInProgressException "TransactionInProgressException" +// * TransactionInProgressException // The transaction with the given request token is already in progress. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // DynamoDB rejected the request because you retried a request with a different // payload but with an idempotent token that was already used. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -4621,12 +4621,12 @@ func (c *DynamoDB) TransactWriteItemsRequest(input *TransactWriteItemsInput) (re // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TransactWriteItems @@ -4730,8 +4730,8 @@ func (c *DynamoDB) UntagResourceRequest(input *UntagResourceInput) (req *request // See the AWS API reference guide for Amazon DynamoDB's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -4745,14 +4745,14 @@ func (c *DynamoDB) UntagResourceRequest(input *UntagResourceInput) (req *request // // There is a soft account limit of 256 tables. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. @@ -4863,15 +4863,15 @@ func (c *DynamoDB) UpdateContinuousBackupsRequest(input *UpdateContinuousBackups // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateContinuousBackups for usage and error information. // -// Returned Error Codes: -// * ErrCodeTableNotFoundException "TableNotFoundException" +// Returned Error Types: +// * TableNotFoundException // A source table with the name TableName does not currently exist within the // subscriber's account. // -// * ErrCodeContinuousBackupsUnavailableException "ContinuousBackupsUnavailableException" +// * ContinuousBackupsUnavailableException // Backups have not yet been enabled for this table. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateContinuousBackups @@ -4949,12 +4949,12 @@ func (c *DynamoDB) UpdateContributorInsightsRequest(input *UpdateContributorInsi // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateContributorInsights for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateContributorInsights @@ -5072,20 +5072,20 @@ func (c *DynamoDB) UpdateGlobalTableRequest(input *UpdateGlobalTableInput) (req // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateGlobalTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeGlobalTableNotFoundException "GlobalTableNotFoundException" +// * GlobalTableNotFoundException // The specified global table does not exist. // -// * ErrCodeReplicaAlreadyExistsException "ReplicaAlreadyExistsException" +// * ReplicaAlreadyExistsException // The specified replica is already part of the global table. // -// * ErrCodeReplicaNotFoundException "ReplicaNotFoundException" +// * ReplicaNotFoundException // The specified replica is no longer part of the global table. // -// * ErrCodeTableNotFoundException "TableNotFoundException" +// * TableNotFoundException // A source table with the name TableName does not currently exist within the // subscriber's account. // @@ -5185,17 +5185,17 @@ func (c *DynamoDB) UpdateGlobalTableSettingsRequest(input *UpdateGlobalTableSett // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateGlobalTableSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeGlobalTableNotFoundException "GlobalTableNotFoundException" +// Returned Error Types: +// * GlobalTableNotFoundException // The specified global table does not exist. // -// * ErrCodeReplicaNotFoundException "ReplicaNotFoundException" +// * ReplicaNotFoundException // The specified replica is no longer part of the global table. // -// * ErrCodeIndexNotFoundException "IndexNotFoundException" +// * IndexNotFoundException // The operation tried to access a nonexistent index. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -5209,12 +5209,12 @@ func (c *DynamoDB) UpdateGlobalTableSettingsRequest(input *UpdateGlobalTableSett // // There is a soft account limit of 256 tables. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalTableSettings @@ -5320,11 +5320,11 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeConditionalCheckFailedException "ConditionalCheckFailedException" +// Returned Error Types: +// * ConditionalCheckFailedException // A condition specified in the operation could not be evaluated. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -5332,23 +5332,23 @@ func (c *DynamoDB) UpdateItemRequest(input *UpdateItemInput) (req *request.Reque // Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeItemCollectionSizeLimitExceededException "ItemCollectionSizeLimitExceededException" +// * ItemCollectionSizeLimitExceededException // An item collection is too large. This exception is only returned for tables // that have one or more local secondary indexes. // -// * ErrCodeTransactionConflictException "TransactionConflictException" +// * TransactionConflictException // Operation was rejected because there is an ongoing transaction for the item. // -// * ErrCodeRequestLimitExceeded "RequestLimitExceeded" +// * RequestLimitExceeded // Throughput exceeds the current throughput limit for your account. Please // contact AWS Support at AWS Support (https://aws.amazon.com/support) to request // a limit increase. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateItem @@ -5464,17 +5464,17 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -5488,7 +5488,7 @@ func (c *DynamoDB) UpdateTableRequest(input *UpdateTableInput) (req *request.Req // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable @@ -5569,17 +5569,17 @@ func (c *DynamoDB) UpdateTableReplicaAutoScalingRequest(input *UpdateTableReplic // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateTableReplicaAutoScaling for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -5593,7 +5593,7 @@ func (c *DynamoDB) UpdateTableReplicaAutoScalingRequest(input *UpdateTableReplic // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTableReplicaAutoScaling @@ -5719,17 +5719,17 @@ func (c *DynamoDB) UpdateTimeToLiveRequest(input *UpdateTimeToLiveInput) (req *r // See the AWS API reference guide for Amazon DynamoDB's // API operation UpdateTimeToLive for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to recreate an existing table, or tried to delete a table currently // in the CREATING state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The operation tried to access a nonexistent table or index. The resource // might not be specified correctly, or its status might not be ACTIVE. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There is no limit to the number of daily on-demand backups that can be taken. // // Up to 50 simultaneous table operations are allowed per account. These operations @@ -5743,7 +5743,7 @@ func (c *DynamoDB) UpdateTimeToLiveRequest(input *UpdateTimeToLiveInput) (req *r // // There is a soft account limit of 256 tables. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTimeToLive @@ -6651,6 +6651,119 @@ func (s *BackupDetails) SetBackupType(v string) *BackupDetails { return s } +// There is another ongoing conflicting backup control plane operation on the +// table. The backup is either being created, deleted or restored to a table. +type BackupInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BackupInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackupInUseException) GoString() string { + return s.String() +} + +func newErrorBackupInUseException(v protocol.ResponseMetadata) error { + return &BackupInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BackupInUseException) Code() string { + return "BackupInUseException" +} + +// Message returns the exception's message. +func (s BackupInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BackupInUseException) OrigErr() error { + return nil +} + +func (s BackupInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BackupInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BackupInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// Backup not found for the given BackupARN. +type BackupNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BackupNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackupNotFoundException) GoString() string { + return s.String() +} + +func newErrorBackupNotFoundException(v protocol.ResponseMetadata) error { + return &BackupNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BackupNotFoundException) Code() string { + return "BackupNotFoundException" +} + +// Message returns the exception's message. +func (s BackupNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BackupNotFoundException) OrigErr() error { + return nil +} + +func (s BackupNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BackupNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BackupNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details for the backup. type BackupSummary struct { _ struct{} `type:"structure"` @@ -7549,6 +7662,63 @@ func (s *ConditionCheck) SetTableName(v string) *ConditionCheck { return s } +// A condition specified in the operation could not be evaluated. +type ConditionalCheckFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The conditional request failed. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConditionalCheckFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConditionalCheckFailedException) GoString() string { + return s.String() +} + +func newErrorConditionalCheckFailedException(v protocol.ResponseMetadata) error { + return &ConditionalCheckFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConditionalCheckFailedException) Code() string { + return "ConditionalCheckFailedException" +} + +// Message returns the exception's message. +func (s ConditionalCheckFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConditionalCheckFailedException) OrigErr() error { + return nil +} + +func (s ConditionalCheckFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConditionalCheckFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConditionalCheckFailedException) RequestID() string { + return s.respMetadata.RequestID +} + // The capacity units consumed by an operation. The data returned includes the // total provisioned throughput consumed, along with statistics for the table // and any indexes involved in the operation. ConsumedCapacity is only returned @@ -7668,6 +7838,62 @@ func (s *ContinuousBackupsDescription) SetPointInTimeRecoveryDescription(v *Poin return s } +// Backups have not yet been enabled for this table. +type ContinuousBackupsUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ContinuousBackupsUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContinuousBackupsUnavailableException) GoString() string { + return s.String() +} + +func newErrorContinuousBackupsUnavailableException(v protocol.ResponseMetadata) error { + return &ContinuousBackupsUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ContinuousBackupsUnavailableException) Code() string { + return "ContinuousBackupsUnavailableException" +} + +// Message returns the exception's message. +func (s ContinuousBackupsUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ContinuousBackupsUnavailableException) OrigErr() error { + return nil +} + +func (s ContinuousBackupsUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ContinuousBackupsUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ContinuousBackupsUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a Contributor Insights summary entry.. type ContributorInsightsSummary struct { _ struct{} `type:"structure"` @@ -10891,6 +11117,62 @@ func (s *GlobalTable) SetReplicationGroup(v []*Replica) *GlobalTable { return s } +// The specified global table already exists. +type GlobalTableAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s GlobalTableAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GlobalTableAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorGlobalTableAlreadyExistsException(v protocol.ResponseMetadata) error { + return &GlobalTableAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GlobalTableAlreadyExistsException) Code() string { + return "GlobalTableAlreadyExistsException" +} + +// Message returns the exception's message. +func (s GlobalTableAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GlobalTableAlreadyExistsException) OrigErr() error { + return nil +} + +func (s GlobalTableAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GlobalTableAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GlobalTableAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about the global table. type GlobalTableDescription struct { _ struct{} `type:"structure"` @@ -11031,158 +11313,500 @@ func (s *GlobalTableGlobalSecondaryIndexSettingsUpdate) SetProvisionedWriteCapac return s } -// Information about item collections, if any, that were affected by the operation. -// ItemCollectionMetrics is only returned if the request asked for it. If the -// table does not have any local secondary indexes, this information is not -// returned in the response. -type ItemCollectionMetrics struct { - _ struct{} `type:"structure"` - - // The partition key value of the item collection. This value is the same as - // the partition key value of the item. - ItemCollectionKey map[string]*AttributeValue `type:"map"` +// The specified global table does not exist. +type GlobalTableNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // An estimate of item collection size, in gigabytes. This value is a two-element - // array containing a lower bound and an upper bound for the estimate. The estimate - // includes the size of all the items in the table, plus the size of all attributes - // projected into all of the local secondary indexes on that table. Use this - // estimate to measure whether a local secondary index is approaching its size - // limit. - // - // The estimate is subject to change over time; therefore, do not rely on the - // precision or accuracy of the estimate. - SizeEstimateRangeGB []*float64 `type:"list"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ItemCollectionMetrics) String() string { +func (s GlobalTableNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ItemCollectionMetrics) GoString() string { +func (s GlobalTableNotFoundException) GoString() string { return s.String() } -// SetItemCollectionKey sets the ItemCollectionKey field's value. -func (s *ItemCollectionMetrics) SetItemCollectionKey(v map[string]*AttributeValue) *ItemCollectionMetrics { - s.ItemCollectionKey = v - return s +func newErrorGlobalTableNotFoundException(v protocol.ResponseMetadata) error { + return &GlobalTableNotFoundException{ + respMetadata: v, + } } -// SetSizeEstimateRangeGB sets the SizeEstimateRangeGB field's value. -func (s *ItemCollectionMetrics) SetSizeEstimateRangeGB(v []*float64) *ItemCollectionMetrics { - s.SizeEstimateRangeGB = v - return s +// Code returns the exception type name. +func (s GlobalTableNotFoundException) Code() string { + return "GlobalTableNotFoundException" } -// Details for the requested item. -type ItemResponse struct { - _ struct{} `type:"structure"` - - // Map of attribute data consisting of the data type and attribute value. - Item map[string]*AttributeValue `type:"map"` +// Message returns the exception's message. +func (s GlobalTableNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// String returns the string representation -func (s ItemResponse) String() string { - return awsutil.Prettify(s) +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GlobalTableNotFoundException) OrigErr() error { + return nil } -// GoString returns the string representation -func (s ItemResponse) GoString() string { - return s.String() +func (s GlobalTableNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetItem sets the Item field's value. -func (s *ItemResponse) SetItem(v map[string]*AttributeValue) *ItemResponse { - s.Item = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s GlobalTableNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents a single element of a key schema. A key schema specifies the attributes -// that make up the primary key of a table, or the key attributes of an index. -// -// A KeySchemaElement represents exactly one attribute of the primary key. For -// example, a simple primary key would be represented by one KeySchemaElement -// (for the partition key). A composite primary key would require one KeySchemaElement -// for the partition key, and another KeySchemaElement for the sort key. -// -// A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute). -// The data type must be one of String, Number, or Binary. The attribute cannot -// be nested within a List or a Map. -type KeySchemaElement struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s GlobalTableNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} - // The name of a key attribute. - // - // AttributeName is a required field - AttributeName *string `min:"1" type:"string" required:"true"` +// DynamoDB rejected the request because you retried a request with a different +// payload but with an idempotent token that was already used. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The role that this key attribute will assume: - // - // * HASH - partition key - // - // * RANGE - sort key - // - // The partition key of an item is also known as its hash attribute. The term - // "hash attribute" derives from DynamoDB's usage of an internal hash function - // to evenly distribute data items across partitions, based on their partition - // key values. - // - // The sort key of an item is also known as its range attribute. The term "range - // attribute" derives from the way DynamoDB stores items with the same partition - // key physically close together, in sorted order by the sort key value. - // - // KeyType is a required field - KeyType *string `type:"string" required:"true" enum:"KeyType"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s KeySchemaElement) String() string { +func (s IdempotentParameterMismatchException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s KeySchemaElement) GoString() string { +func (s IdempotentParameterMismatchException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *KeySchemaElement) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "KeySchemaElement"} - if s.AttributeName == nil { - invalidParams.Add(request.NewErrParamRequired("AttributeName")) - } - if s.AttributeName != nil && len(*s.AttributeName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) - } - if s.KeyType == nil { - invalidParams.Add(request.NewErrParamRequired("KeyType")) +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { return nil } -// SetAttributeName sets the AttributeName field's value. -func (s *KeySchemaElement) SetAttributeName(v string) *KeySchemaElement { - s.AttributeName = &v - return s +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetKeyType sets the KeyType field's value. -func (s *KeySchemaElement) SetKeyType(v string) *KeySchemaElement { - s.KeyType = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode } -// Represents a set of primary keys and, for each key, the attributes to retrieve -// from the table. -// -// For each primary key, you must provide all of the key attributes. For example, +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation tried to access a nonexistent index. +type IndexNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IndexNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IndexNotFoundException) GoString() string { + return s.String() +} + +func newErrorIndexNotFoundException(v protocol.ResponseMetadata) error { + return &IndexNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IndexNotFoundException) Code() string { + return "IndexNotFoundException" +} + +// Message returns the exception's message. +func (s IndexNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IndexNotFoundException) OrigErr() error { + return nil +} + +func (s IndexNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IndexNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IndexNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error occurred on the server side. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The server encountered an internal error trying to fulfill the request. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime +// and LatestRestorableDateTime. +type InvalidRestoreTimeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRestoreTimeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRestoreTimeException) GoString() string { + return s.String() +} + +func newErrorInvalidRestoreTimeException(v protocol.ResponseMetadata) error { + return &InvalidRestoreTimeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRestoreTimeException) Code() string { + return "InvalidRestoreTimeException" +} + +// Message returns the exception's message. +func (s InvalidRestoreTimeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRestoreTimeException) OrigErr() error { + return nil +} + +func (s InvalidRestoreTimeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRestoreTimeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRestoreTimeException) RequestID() string { + return s.respMetadata.RequestID +} + +// Information about item collections, if any, that were affected by the operation. +// ItemCollectionMetrics is only returned if the request asked for it. If the +// table does not have any local secondary indexes, this information is not +// returned in the response. +type ItemCollectionMetrics struct { + _ struct{} `type:"structure"` + + // The partition key value of the item collection. This value is the same as + // the partition key value of the item. + ItemCollectionKey map[string]*AttributeValue `type:"map"` + + // An estimate of item collection size, in gigabytes. This value is a two-element + // array containing a lower bound and an upper bound for the estimate. The estimate + // includes the size of all the items in the table, plus the size of all attributes + // projected into all of the local secondary indexes on that table. Use this + // estimate to measure whether a local secondary index is approaching its size + // limit. + // + // The estimate is subject to change over time; therefore, do not rely on the + // precision or accuracy of the estimate. + SizeEstimateRangeGB []*float64 `type:"list"` +} + +// String returns the string representation +func (s ItemCollectionMetrics) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ItemCollectionMetrics) GoString() string { + return s.String() +} + +// SetItemCollectionKey sets the ItemCollectionKey field's value. +func (s *ItemCollectionMetrics) SetItemCollectionKey(v map[string]*AttributeValue) *ItemCollectionMetrics { + s.ItemCollectionKey = v + return s +} + +// SetSizeEstimateRangeGB sets the SizeEstimateRangeGB field's value. +func (s *ItemCollectionMetrics) SetSizeEstimateRangeGB(v []*float64) *ItemCollectionMetrics { + s.SizeEstimateRangeGB = v + return s +} + +// An item collection is too large. This exception is only returned for tables +// that have one or more local secondary indexes. +type ItemCollectionSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The total size of an item collection has exceeded the maximum limit of 10 + // gigabytes. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ItemCollectionSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ItemCollectionSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorItemCollectionSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &ItemCollectionSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ItemCollectionSizeLimitExceededException) Code() string { + return "ItemCollectionSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s ItemCollectionSizeLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ItemCollectionSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s ItemCollectionSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ItemCollectionSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ItemCollectionSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Details for the requested item. +type ItemResponse struct { + _ struct{} `type:"structure"` + + // Map of attribute data consisting of the data type and attribute value. + Item map[string]*AttributeValue `type:"map"` +} + +// String returns the string representation +func (s ItemResponse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ItemResponse) GoString() string { + return s.String() +} + +// SetItem sets the Item field's value. +func (s *ItemResponse) SetItem(v map[string]*AttributeValue) *ItemResponse { + s.Item = v + return s +} + +// Represents a single element of a key schema. A key schema specifies the attributes +// that make up the primary key of a table, or the key attributes of an index. +// +// A KeySchemaElement represents exactly one attribute of the primary key. For +// example, a simple primary key would be represented by one KeySchemaElement +// (for the partition key). A composite primary key would require one KeySchemaElement +// for the partition key, and another KeySchemaElement for the sort key. +// +// A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute). +// The data type must be one of String, Number, or Binary. The attribute cannot +// be nested within a List or a Map. +type KeySchemaElement struct { + _ struct{} `type:"structure"` + + // The name of a key attribute. + // + // AttributeName is a required field + AttributeName *string `min:"1" type:"string" required:"true"` + + // The role that this key attribute will assume: + // + // * HASH - partition key + // + // * RANGE - sort key + // + // The partition key of an item is also known as its hash attribute. The term + // "hash attribute" derives from DynamoDB's usage of an internal hash function + // to evenly distribute data items across partitions, based on their partition + // key values. + // + // The sort key of an item is also known as its range attribute. The term "range + // attribute" derives from the way DynamoDB stores items with the same partition + // key physically close together, in sorted order by the sort key value. + // + // KeyType is a required field + KeyType *string `type:"string" required:"true" enum:"KeyType"` +} + +// String returns the string representation +func (s KeySchemaElement) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeySchemaElement) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *KeySchemaElement) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "KeySchemaElement"} + if s.AttributeName == nil { + invalidParams.Add(request.NewErrParamRequired("AttributeName")) + } + if s.AttributeName != nil && len(*s.AttributeName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AttributeName", 1)) + } + if s.KeyType == nil { + invalidParams.Add(request.NewErrParamRequired("KeyType")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAttributeName sets the AttributeName field's value. +func (s *KeySchemaElement) SetAttributeName(v string) *KeySchemaElement { + s.AttributeName = &v + return s +} + +// SetKeyType sets the KeyType field's value. +func (s *KeySchemaElement) SetKeyType(v string) *KeySchemaElement { + s.KeyType = &v + return s +} + +// Represents a set of primary keys and, for each key, the attributes to retrieve +// from the table. +// +// For each primary key, you must provide all of the key attributes. For example, // with a simple primary key, you only need to provide the partition key. For // a composite primary key, you must provide both the partition key and the // sort key. @@ -11295,22 +11919,90 @@ func (s *KeysAndAttributes) SetConsistentRead(v bool) *KeysAndAttributes { return s } -// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. -func (s *KeysAndAttributes) SetExpressionAttributeNames(v map[string]*string) *KeysAndAttributes { - s.ExpressionAttributeNames = v - return s +// SetExpressionAttributeNames sets the ExpressionAttributeNames field's value. +func (s *KeysAndAttributes) SetExpressionAttributeNames(v map[string]*string) *KeysAndAttributes { + s.ExpressionAttributeNames = v + return s +} + +// SetKeys sets the Keys field's value. +func (s *KeysAndAttributes) SetKeys(v []map[string]*AttributeValue) *KeysAndAttributes { + s.Keys = v + return s +} + +// SetProjectionExpression sets the ProjectionExpression field's value. +func (s *KeysAndAttributes) SetProjectionExpression(v string) *KeysAndAttributes { + s.ProjectionExpression = &v + return s +} + +// There is no limit to the number of daily on-demand backups that can be taken. +// +// Up to 50 simultaneous table operations are allowed per account. These operations +// include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, +// and RestoreTableToPointInTime. +// +// The only exception is when you are creating a table with one or more secondary +// indexes. You can have up to 25 such requests running at a time; however, +// if the table or index specifications are complex, DynamoDB might temporarily +// reduce the number of concurrent operations. +// +// There is a soft account limit of 256 tables. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Too many operations for a given subscriber. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetKeys sets the Keys field's value. -func (s *KeysAndAttributes) SetKeys(v []map[string]*AttributeValue) *KeysAndAttributes { - s.Keys = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetProjectionExpression sets the ProjectionExpression field's value. -func (s *KeysAndAttributes) SetProjectionExpression(v string) *KeysAndAttributes { - s.ProjectionExpression = &v - return s +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID } type ListBackupsInput struct { @@ -12152,6 +12844,62 @@ func (s *PointInTimeRecoverySpecification) SetPointInTimeRecoveryEnabled(v bool) return s } +// Point in time recovery has not yet been enabled for this source table. +type PointInTimeRecoveryUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PointInTimeRecoveryUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PointInTimeRecoveryUnavailableException) GoString() string { + return s.String() +} + +func newErrorPointInTimeRecoveryUnavailableException(v protocol.ResponseMetadata) error { + return &PointInTimeRecoveryUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PointInTimeRecoveryUnavailableException) Code() string { + return "PointInTimeRecoveryUnavailableException" +} + +// Message returns the exception's message. +func (s PointInTimeRecoveryUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PointInTimeRecoveryUnavailableException) OrigErr() error { + return nil +} + +func (s PointInTimeRecoveryUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PointInTimeRecoveryUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PointInTimeRecoveryUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents attributes that are copied (projected) from the table into an // index. These are in addition to the primary key attributes and index key // attributes, which are automatically projected. @@ -12354,6 +13102,68 @@ func (s *ProvisionedThroughputDescription) SetWriteCapacityUnits(v int64) *Provi return s } +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html#Programming.Errors.RetryAndBackoff) +// in the Amazon DynamoDB Developer Guide. +type ProvisionedThroughputExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You exceeded your maximum allowed provisioned throughput. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ProvisionedThroughputExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedThroughputExceededException) GoString() string { + return s.String() +} + +func newErrorProvisionedThroughputExceededException(v protocol.ResponseMetadata) error { + return &ProvisionedThroughputExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProvisionedThroughputExceededException) Code() string { + return "ProvisionedThroughputExceededException" +} + +// Message returns the exception's message. +func (s ProvisionedThroughputExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProvisionedThroughputExceededException) OrigErr() error { + return nil +} + +func (s ProvisionedThroughputExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProvisionedThroughputExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProvisionedThroughputExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Replica-specific provisioned throughput settings. If not specified, uses // the source table's provisioned throughput settings. type ProvisionedThroughputOverride struct { @@ -13388,6 +14198,62 @@ func (s *Replica) SetRegionName(v string) *Replica { return s } +// The specified replica is already part of the global table. +type ReplicaAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ReplicaAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicaAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorReplicaAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ReplicaAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReplicaAlreadyExistsException) Code() string { + return "ReplicaAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ReplicaAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplicaAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ReplicaAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReplicaAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReplicaAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the auto scaling settings of the replica. type ReplicaAutoScalingDescription struct { _ struct{} `type:"structure"` @@ -13982,6 +14848,62 @@ func (s *ReplicaGlobalSecondaryIndexSettingsUpdate) SetProvisionedReadCapacityUn return s } +// The specified replica is no longer part of the global table. +type ReplicaNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ReplicaNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicaNotFoundException) GoString() string { + return s.String() +} + +func newErrorReplicaNotFoundException(v protocol.ResponseMetadata) error { + return &ReplicaNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReplicaNotFoundException) Code() string { + return "ReplicaNotFoundException" +} + +// Message returns the exception's message. +func (s ReplicaNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplicaNotFoundException) OrigErr() error { + return nil +} + +func (s ReplicaNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReplicaNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReplicaNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the properties of a replica. type ReplicaSettingsDescription struct { _ struct{} `type:"structure"` @@ -14230,88 +15152,263 @@ func (s *ReplicaUpdate) SetCreate(v *CreateReplicaAction) *ReplicaUpdate { return s } -// SetDelete sets the Delete field's value. -func (s *ReplicaUpdate) SetDelete(v *DeleteReplicaAction) *ReplicaUpdate { - s.Delete = v - return s +// SetDelete sets the Delete field's value. +func (s *ReplicaUpdate) SetDelete(v *DeleteReplicaAction) *ReplicaUpdate { + s.Delete = v + return s +} + +// Represents one of the following: +// +// * A new replica to be added to an existing regional table or global table. +// This request invokes the CreateTableReplica action in the destination +// Region. +// +// * New parameters for an existing replica. This request invokes the UpdateTable +// action in the destination Region. +// +// * An existing replica to be deleted. The request invokes the DeleteTableReplica +// action in the destination Region, deleting the replica and all if its +// items in the destination Region. +type ReplicationGroupUpdate struct { + _ struct{} `type:"structure"` + + // The parameters required for creating a replica for the table. + Create *CreateReplicationGroupMemberAction `type:"structure"` + + // The parameters required for deleting a replica for the table. + Delete *DeleteReplicationGroupMemberAction `type:"structure"` + + // The parameters required for updating a replica for the table. + Update *UpdateReplicationGroupMemberAction `type:"structure"` +} + +// String returns the string representation +func (s ReplicationGroupUpdate) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationGroupUpdate) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ReplicationGroupUpdate) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ReplicationGroupUpdate"} + if s.Create != nil { + if err := s.Create.Validate(); err != nil { + invalidParams.AddNested("Create", err.(request.ErrInvalidParams)) + } + } + if s.Delete != nil { + if err := s.Delete.Validate(); err != nil { + invalidParams.AddNested("Delete", err.(request.ErrInvalidParams)) + } + } + if s.Update != nil { + if err := s.Update.Validate(); err != nil { + invalidParams.AddNested("Update", err.(request.ErrInvalidParams)) + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetCreate sets the Create field's value. +func (s *ReplicationGroupUpdate) SetCreate(v *CreateReplicationGroupMemberAction) *ReplicationGroupUpdate { + s.Create = v + return s +} + +// SetDelete sets the Delete field's value. +func (s *ReplicationGroupUpdate) SetDelete(v *DeleteReplicationGroupMemberAction) *ReplicationGroupUpdate { + s.Delete = v + return s +} + +// SetUpdate sets the Update field's value. +func (s *ReplicationGroupUpdate) SetUpdate(v *UpdateReplicationGroupMemberAction) *ReplicationGroupUpdate { + s.Update = v + return s +} + +// Throughput exceeds the current throughput limit for your account. Please +// contact AWS Support at AWS Support (https://aws.amazon.com/support) to request +// a limit increase. +type RequestLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RequestLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestLimitExceeded) GoString() string { + return s.String() +} + +func newErrorRequestLimitExceeded(v protocol.ResponseMetadata) error { + return &RequestLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestLimitExceeded) Code() string { + return "RequestLimitExceeded" +} + +// Message returns the exception's message. +func (s RequestLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestLimitExceeded) OrigErr() error { + return nil +} + +func (s RequestLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation conflicts with the resource's availability. For example, you +// attempted to recreate an existing table, or tried to delete a table currently +// in the CREATING state. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The resource which is being attempted to be changed is in use. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil } -// Represents one of the following: -// -// * A new replica to be added to an existing regional table or global table. -// This request invokes the CreateTableReplica action in the destination -// Region. -// -// * New parameters for an existing replica. This request invokes the UpdateTable -// action in the destination Region. -// -// * An existing replica to be deleted. The request invokes the DeleteTableReplica -// action in the destination Region, deleting the replica and all if its -// items in the destination Region. -type ReplicationGroupUpdate struct { - _ struct{} `type:"structure"` +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The parameters required for creating a replica for the table. - Create *CreateReplicationGroupMemberAction `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The parameters required for deleting a replica for the table. - Delete *DeleteReplicationGroupMemberAction `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} - // The parameters required for updating a replica for the table. - Update *UpdateReplicationGroupMemberAction `type:"structure"` +// The operation tried to access a nonexistent table or index. The resource +// might not be specified correctly, or its status might not be ACTIVE. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The resource which is being requested does not exist. + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ReplicationGroupUpdate) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ReplicationGroupUpdate) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ReplicationGroupUpdate) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ReplicationGroupUpdate"} - if s.Create != nil { - if err := s.Create.Validate(); err != nil { - invalidParams.AddNested("Create", err.(request.ErrInvalidParams)) - } - } - if s.Delete != nil { - if err := s.Delete.Validate(); err != nil { - invalidParams.AddNested("Delete", err.(request.ErrInvalidParams)) - } - } - if s.Update != nil { - if err := s.Update.Validate(); err != nil { - invalidParams.AddNested("Update", err.(request.ErrInvalidParams)) - } +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { return nil } -// SetCreate sets the Create field's value. -func (s *ReplicationGroupUpdate) SetCreate(v *CreateReplicationGroupMemberAction) *ReplicationGroupUpdate { - s.Create = v - return s +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetDelete sets the Delete field's value. -func (s *ReplicationGroupUpdate) SetDelete(v *DeleteReplicationGroupMemberAction) *ReplicationGroupUpdate { - s.Delete = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetUpdate sets the Update field's value. -func (s *ReplicationGroupUpdate) SetUpdate(v *UpdateReplicationGroupMemberAction) *ReplicationGroupUpdate { - s.Update = v - return s +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID } // Contains details for the restore. @@ -15510,6 +16607,62 @@ func (s *StreamSpecification) SetStreamViewType(v string) *StreamSpecification { return s } +// A target table with the specified name already exists. +type TableAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TableAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TableAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorTableAlreadyExistsException(v protocol.ResponseMetadata) error { + return &TableAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TableAlreadyExistsException) Code() string { + return "TableAlreadyExistsException" +} + +// Message returns the exception's message. +func (s TableAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TableAlreadyExistsException) OrigErr() error { + return nil +} + +func (s TableAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TableAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TableAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the auto scaling configuration for a global table. type TableAutoScalingDescription struct { _ struct{} `type:"structure"` @@ -15908,6 +17061,119 @@ func (s *TableDescription) SetTableStatus(v string) *TableDescription { return s } +// A target table with the specified name is either being created or deleted. +type TableInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TableInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TableInUseException) GoString() string { + return s.String() +} + +func newErrorTableInUseException(v protocol.ResponseMetadata) error { + return &TableInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TableInUseException) Code() string { + return "TableInUseException" +} + +// Message returns the exception's message. +func (s TableInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TableInUseException) OrigErr() error { + return nil +} + +func (s TableInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TableInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TableInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// A source table with the name TableName does not currently exist within the +// subscriber's account. +type TableNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TableNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TableNotFoundException) GoString() string { + return s.String() +} + +func newErrorTableNotFoundException(v protocol.ResponseMetadata) error { + return &TableNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TableNotFoundException) Code() string { + return "TableNotFoundException" +} + +// Message returns the exception's message. +func (s TableNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TableNotFoundException) OrigErr() error { + return nil +} + +func (s TableNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TableNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TableNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a tag. A tag is a key-value pair. You can add up to 50 tags to // a single DynamoDB table. // @@ -16535,6 +17801,261 @@ func (s *TransactWriteItemsOutput) SetItemCollectionMetrics(v map[string][]*Item return s } +// The entire transaction request was canceled. +// +// DynamoDB cancels a TransactWriteItems request under the following circumstances: +// +// * A condition in one of the condition expressions is not met. +// +// * A table in the TransactWriteItems request is in a different account +// or region. +// +// * More than one action in the TransactWriteItems operation targets the +// same item. +// +// * There is insufficient provisioned capacity for the transaction to be +// completed. +// +// * An item size becomes too large (larger than 400 KB), or a local secondary +// index (LSI) becomes too large, or a similar validation error occurs because +// of changes made by the transaction. +// +// * There is a user error, such as an invalid data format. +// +// DynamoDB cancels a TransactGetItems request under the following circumstances: +// +// * There is an ongoing TransactGetItems operation that conflicts with a +// concurrent PutItem, UpdateItem, DeleteItem or TransactWriteItems request. +// In this case the TransactGetItems operation fails with a TransactionCanceledException. +// +// * A table in the TransactGetItems request is in a different account or +// region. +// +// * There is insufficient provisioned capacity for the transaction to be +// completed. +// +// * There is a user error, such as an invalid data format. +// +// If using Java, DynamoDB lists the cancellation reasons on the CancellationReasons +// property. This property is not set for other languages. Transaction cancellation +// reasons are ordered in the order of requested items, if an item has no error +// it will have NONE code and Null message. +// +// Cancellation reason codes and possible error messages: +// +// * No Errors: Code: NONE Message: null +// +// * Conditional Check Failed: Code: ConditionalCheckFailed Message: The +// conditional request failed. +// +// * Item Collection Size Limit Exceeded: Code: ItemCollectionSizeLimitExceeded +// Message: Collection size exceeded. +// +// * Transaction Conflict: Code: TransactionConflict Message: Transaction +// is ongoing for the item. +// +// * Provisioned Throughput Exceeded: Code: ProvisionedThroughputExceeded +// Messages: The level of configured provisioned throughput for the table +// was exceeded. Consider increasing your provisioning level with the UpdateTable +// API. This Message is received when provisioned throughput is exceeded +// is on a provisioned DynamoDB table. The level of configured provisioned +// throughput for one or more global secondary indexes of the table was exceeded. +// Consider increasing your provisioning level for the under-provisioned +// global secondary indexes with the UpdateTable API. This message is returned +// when provisioned throughput is exceeded is on a provisioned GSI. +// +// * Throttling Error: Code: ThrottlingError Messages: Throughput exceeds +// the current capacity of your table or index. DynamoDB is automatically +// scaling your table or index so please try again shortly. If exceptions +// persist, check if you have a hot key: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-partition-key-design.html. +// This message is returned when writes get throttled on an On-Demand table +// as DynamoDB is automatically scaling the table. Throughput exceeds the +// current capacity for one or more global secondary indexes. DynamoDB is +// automatically scaling your index so please try again shortly. This message +// is returned when when writes get throttled on an On-Demand GSI as DynamoDB +// is automatically scaling the GSI. +// +// * Validation Error: Code: ValidationError Messages: One or more parameter +// values were invalid. The update expression attempted to update the secondary +// index key beyond allowed size limits. The update expression attempted +// to update the secondary index key to unsupported type. An operand in the +// update expression has an incorrect data type. Item size to update has +// exceeded the maximum allowed size. Number overflow. Attempting to store +// a number with magnitude larger than supported range. Type mismatch for +// attribute to update. Nesting Levels have exceeded supported limits. The +// document path provided in the update expression is invalid for update. +// The provided expression refers to an attribute that does not exist in +// the item. +type TransactionCanceledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A list of cancellation reasons. + CancellationReasons []*CancellationReason `min:"1" type:"list"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TransactionCanceledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransactionCanceledException) GoString() string { + return s.String() +} + +func newErrorTransactionCanceledException(v protocol.ResponseMetadata) error { + return &TransactionCanceledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TransactionCanceledException) Code() string { + return "TransactionCanceledException" +} + +// Message returns the exception's message. +func (s TransactionCanceledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TransactionCanceledException) OrigErr() error { + return nil +} + +func (s TransactionCanceledException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TransactionCanceledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TransactionCanceledException) RequestID() string { + return s.respMetadata.RequestID +} + +// Operation was rejected because there is an ongoing transaction for the item. +type TransactionConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TransactionConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransactionConflictException) GoString() string { + return s.String() +} + +func newErrorTransactionConflictException(v protocol.ResponseMetadata) error { + return &TransactionConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TransactionConflictException) Code() string { + return "TransactionConflictException" +} + +// Message returns the exception's message. +func (s TransactionConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TransactionConflictException) OrigErr() error { + return nil +} + +func (s TransactionConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TransactionConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TransactionConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +// The transaction with the given request token is already in progress. +type TransactionInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TransactionInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransactionInProgressException) GoString() string { + return s.String() +} + +func newErrorTransactionInProgressException(v protocol.ResponseMetadata) error { + return &TransactionInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TransactionInProgressException) Code() string { + return "TransactionInProgressException" +} + +// Message returns the exception's message. +func (s TransactionInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TransactionInProgressException) OrigErr() error { + return nil +} + +func (s TransactionInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TransactionInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TransactionInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/dynamodb/cust_example_test.go b/service/dynamodb/cust_example_test.go new file mode 100644 index 00000000000..e61e3b78268 --- /dev/null +++ b/service/dynamodb/cust_example_test.go @@ -0,0 +1,23 @@ +package dynamodb_test + +import ( + "log" + + "github.com/aws/aws-sdk-go/awstesting/unit" + "github.com/aws/aws-sdk-go/service/dynamodb" +) + +func ExampleDynamoDB_TransactWriteItems_transactionCanceledException() { + client := dynamodb.New(unit.Session) + + _, err := client.TransactWriteItems(&dynamodb.TransactWriteItemsInput{}) + if err != nil { + switch t := err.(type) { + case *dynamodb.TransactionCanceledException: + log.Fatalf("failed to write items: %s\n%v", + t.Message(), t.CancellationReasons) + default: + log.Fatalf("failed to write items: %v", err) + } + } +} diff --git a/service/dynamodb/errors.go b/service/dynamodb/errors.go index e1b7931960d..0cead118519 100644 --- a/service/dynamodb/errors.go +++ b/service/dynamodb/errors.go @@ -2,6 +2,10 @@ package dynamodb +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBackupInUseException for service response error code @@ -264,3 +268,31 @@ const ( // The transaction with the given request token is already in progress. ErrCodeTransactionInProgressException = "TransactionInProgressException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BackupInUseException": newErrorBackupInUseException, + "BackupNotFoundException": newErrorBackupNotFoundException, + "ConditionalCheckFailedException": newErrorConditionalCheckFailedException, + "ContinuousBackupsUnavailableException": newErrorContinuousBackupsUnavailableException, + "GlobalTableAlreadyExistsException": newErrorGlobalTableAlreadyExistsException, + "GlobalTableNotFoundException": newErrorGlobalTableNotFoundException, + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "IndexNotFoundException": newErrorIndexNotFoundException, + "InternalServerError": newErrorInternalServerError, + "InvalidRestoreTimeException": newErrorInvalidRestoreTimeException, + "ItemCollectionSizeLimitExceededException": newErrorItemCollectionSizeLimitExceededException, + "LimitExceededException": newErrorLimitExceededException, + "PointInTimeRecoveryUnavailableException": newErrorPointInTimeRecoveryUnavailableException, + "ProvisionedThroughputExceededException": newErrorProvisionedThroughputExceededException, + "ReplicaAlreadyExistsException": newErrorReplicaAlreadyExistsException, + "ReplicaNotFoundException": newErrorReplicaNotFoundException, + "RequestLimitExceeded": newErrorRequestLimitExceeded, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TableAlreadyExistsException": newErrorTableAlreadyExistsException, + "TableInUseException": newErrorTableInUseException, + "TableNotFoundException": newErrorTableNotFoundException, + "TransactionCanceledException": newErrorTransactionCanceledException, + "TransactionConflictException": newErrorTransactionConflictException, + "TransactionInProgressException": newErrorTransactionInProgressException, +} diff --git a/service/dynamodb/service.go b/service/dynamodb/service.go index 12201e355c1..8bae9d23659 100644 --- a/service/dynamodb/service.go +++ b/service/dynamodb/service.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws/crr" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/dynamodbstreams/api.go b/service/dynamodbstreams/api.go index 11f2814a5ba..bf9ae311eb4 100644 --- a/service/dynamodbstreams/api.go +++ b/service/dynamodbstreams/api.go @@ -3,11 +3,13 @@ package dynamodbstreams import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/service/dynamodb" ) @@ -74,11 +76,11 @@ func (c *DynamoDBStreams) DescribeStreamRequest(input *DescribeStreamInput) (req // See the AWS API reference guide for Amazon DynamoDB Streams's // API operation DescribeStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent stream. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/DescribeStream @@ -166,11 +168,11 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques // See the AWS API reference guide for Amazon DynamoDB Streams's // API operation GetRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent stream. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Your request rate is too high. The AWS SDKs for DynamoDB automatically retry // requests that receive this exception. Your request is eventually successful, // unless your retry queue is too large to finish. Reduce the frequency of requests @@ -178,15 +180,15 @@ func (c *DynamoDBStreams) GetRecordsRequest(input *GetRecordsInput) (req *reques // Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) // in the Amazon DynamoDB Developer Guide. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeExpiredIteratorException "ExpiredIteratorException" +// * ExpiredIteratorException // The shard iterator has expired and can no longer be used to retrieve stream // records. A shard iterator expires 15 minutes after it is retrieved using // the GetShardIterator action. // -// * ErrCodeTrimmedDataAccessException "TrimmedDataAccessException" +// * TrimmedDataAccessException // The operation attempted to read past the oldest stream record in a shard. // // In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records @@ -279,14 +281,14 @@ func (c *DynamoDBStreams) GetShardIteratorRequest(input *GetShardIteratorInput) // See the AWS API reference guide for Amazon DynamoDB Streams's // API operation GetShardIterator for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent stream. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeTrimmedDataAccessException "TrimmedDataAccessException" +// * TrimmedDataAccessException // The operation attempted to read past the oldest stream record in a shard. // // In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records @@ -379,11 +381,11 @@ func (c *DynamoDBStreams) ListStreamsRequest(input *ListStreamsInput) (req *requ // See the AWS API reference guide for Amazon DynamoDB Streams's // API operation ListStreams for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The operation tried to access a nonexistent stream. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/streams-dynamodb-2012-08-10/ListStreams @@ -502,6 +504,65 @@ func (s *DescribeStreamOutput) SetStreamDescription(v *StreamDescription) *Descr return s } +// The shard iterator has expired and can no longer be used to retrieve stream +// records. A shard iterator expires 15 minutes after it is retrieved using +// the GetShardIterator action. +type ExpiredIteratorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The provided iterator exceeds the maximum age allowed. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExpiredIteratorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredIteratorException) GoString() string { + return s.String() +} + +func newErrorExpiredIteratorException(v protocol.ResponseMetadata) error { + return &ExpiredIteratorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredIteratorException) Code() string { + return "ExpiredIteratorException" +} + +// Message returns the exception's message. +func (s ExpiredIteratorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredIteratorException) OrigErr() error { + return nil +} + +func (s ExpiredIteratorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredIteratorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredIteratorException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a GetRecords operation. type GetRecordsInput struct { _ struct{} `type:"structure"` @@ -754,6 +815,125 @@ func (s *Identity) SetType(v string) *Identity { return s } +// An error occurred on the server side. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The server encountered an internal error trying to fulfill the request. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// Your request rate is too high. The AWS SDKs for DynamoDB automatically retry +// requests that receive this exception. Your request is eventually successful, +// unless your retry queue is too large to finish. Reduce the frequency of requests +// and use exponential backoff. For more information, go to Error Retries and +// Exponential Backoff (http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ErrorHandling.html#APIRetries) +// in the Amazon DynamoDB Developer Guide. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Too many operations for a given subscriber. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input of a ListStreams operation. type ListStreamsInput struct { _ struct{} `type:"structure"` @@ -957,6 +1137,63 @@ func (s *Record) SetUserIdentity(v *Identity) *Record { return s } +// The operation tried to access a nonexistent stream. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The resource which is being requested does not exist. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The beginning and ending sequence numbers for the stream records contained // within a shard. type SequenceNumberRange struct { @@ -1311,6 +1548,74 @@ func (s *StreamRecord) SetStreamViewType(v string) *StreamRecord { return s } +// The operation attempted to read past the oldest stream record in a shard. +// +// In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records +// whose age exceeds this limit are subject to removal (trimming) from the stream. +// You might receive a TrimmedDataAccessException if: +// +// * You request a shard iterator with a sequence number older than the trim +// point (24 hours). +// +// * You obtain a shard iterator, but before you use the iterator in a GetRecords +// request, a stream record in the shard exceeds the 24 hour period and is +// trimmed. This causes the iterator to access a record that no longer exists. +type TrimmedDataAccessException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // "The data you are trying to access has been trimmed. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TrimmedDataAccessException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TrimmedDataAccessException) GoString() string { + return s.String() +} + +func newErrorTrimmedDataAccessException(v protocol.ResponseMetadata) error { + return &TrimmedDataAccessException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TrimmedDataAccessException) Code() string { + return "TrimmedDataAccessException" +} + +// Message returns the exception's message. +func (s TrimmedDataAccessException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TrimmedDataAccessException) OrigErr() error { + return nil +} + +func (s TrimmedDataAccessException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TrimmedDataAccessException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TrimmedDataAccessException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // KeyTypeHash is a KeyType enum value KeyTypeHash = "HASH" diff --git a/service/dynamodbstreams/errors.go b/service/dynamodbstreams/errors.go index 777272983f2..41ceec195de 100644 --- a/service/dynamodbstreams/errors.go +++ b/service/dynamodbstreams/errors.go @@ -2,6 +2,10 @@ package dynamodbstreams +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeExpiredIteratorException for service response error code @@ -52,3 +56,11 @@ const ( // trimmed. This causes the iterator to access a record that no longer exists. ErrCodeTrimmedDataAccessException = "TrimmedDataAccessException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ExpiredIteratorException": newErrorExpiredIteratorException, + "InternalServerError": newErrorInternalServerError, + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TrimmedDataAccessException": newErrorTrimmedDataAccessException, +} diff --git a/service/dynamodbstreams/service.go b/service/dynamodbstreams/service.go index 93392cc66b9..72d4fdf5fe4 100644 --- a/service/dynamodbstreams/service.go +++ b/service/dynamodbstreams/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ebs/api.go b/service/ebs/api.go index b4a435440e8..1cf0daf2d43 100644 --- a/service/ebs/api.go +++ b/service/ebs/api.go @@ -3,12 +3,14 @@ package ebs import ( + "fmt" "io" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetSnapshotBlock = "GetSnapshotBlock" @@ -64,11 +66,11 @@ func (c *EBS) GetSnapshotBlockRequest(input *GetSnapshotBlockInput) (req *reques // See the AWS API reference guide for Amazon Elastic Block Store's // API operation GetSnapshotBlock for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints of the EBS direct APIs. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/GetSnapshotBlock @@ -154,11 +156,11 @@ func (c *EBS) ListChangedBlocksRequest(input *ListChangedBlocksInput) (req *requ // See the AWS API reference guide for Amazon Elastic Block Store's // API operation ListChangedBlocks for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints of the EBS direct APIs. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/ListChangedBlocks @@ -295,11 +297,11 @@ func (c *EBS) ListSnapshotBlocksRequest(input *ListSnapshotBlocksInput) (req *re // See the AWS API reference guide for Amazon Elastic Block Store's // API operation ListSnapshotBlocks for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints of the EBS direct APIs. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/ListSnapshotBlocks @@ -858,6 +860,121 @@ func (s *ListSnapshotBlocksOutput) SetVolumeSize(v int64) *ListSnapshotBlocksOut return s } +// The specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input fails to satisfy the constraints of the EBS direct APIs. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The reason for the validation exception. + Reason *string `type:"string" enum:"ValidationExceptionReason"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ChecksumAlgorithmSha256 is a ChecksumAlgorithm enum value ChecksumAlgorithmSha256 = "SHA256" diff --git a/service/ebs/errors.go b/service/ebs/errors.go index 92b0008b39c..c2de81dd733 100644 --- a/service/ebs/errors.go +++ b/service/ebs/errors.go @@ -2,6 +2,10 @@ package ebs +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeResourceNotFoundException for service response error code @@ -16,3 +20,8 @@ const ( // The input fails to satisfy the constraints of the EBS direct APIs. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/ebs/service.go b/service/ebs/service.go index 377809c99f6..7b9556ea2a7 100644 --- a/service/ebs/service.go +++ b/service/ebs/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ec2instanceconnect/api.go b/service/ec2instanceconnect/api.go index 59485c796b9..b71e2d62bde 100644 --- a/service/ec2instanceconnect/api.go +++ b/service/ec2instanceconnect/api.go @@ -3,9 +3,12 @@ package ec2instanceconnect import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opSendSSHPublicKey = "SendSSHPublicKey" @@ -62,25 +65,25 @@ func (c *EC2InstanceConnect) SendSSHPublicKeyRequest(input *SendSSHPublicKeyInpu // See the AWS API reference guide for AWS EC2 Instance Connect's // API operation SendSSHPublicKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeAuthException "AuthException" +// Returned Error Types: +// * AuthException // Indicates that either your AWS credentials are invalid or you do not have // access to the EC2 instance. // -// * ErrCodeInvalidArgsException "InvalidArgsException" +// * InvalidArgsException // Indicates that you provided bad input. Ensure you have a valid instance ID, // the correct zone, and a valid SSH public key. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Indicates that the service encountered an error. Follow the message's instructions // and try again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Indicates you have been making requests too frequently and have been throttled. // Wait for a while and try again. If higher call volume is warranted contact // AWS Support. // -// * ErrCodeEC2InstanceNotFoundException "EC2InstanceNotFoundException" +// * EC2InstanceNotFoundException // Indicates that the instance requested was not found in the given zone. Check // that you have provided a valid instance ID and the correct zone. // @@ -106,6 +109,177 @@ func (c *EC2InstanceConnect) SendSSHPublicKeyWithContext(ctx aws.Context, input return out, req.Send() } +// Indicates that either your AWS credentials are invalid or you do not have +// access to the EC2 instance. +type AuthException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AuthException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthException) GoString() string { + return s.String() +} + +func newErrorAuthException(v protocol.ResponseMetadata) error { + return &AuthException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AuthException) Code() string { + return "AuthException" +} + +// Message returns the exception's message. +func (s AuthException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AuthException) OrigErr() error { + return nil +} + +func (s AuthException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AuthException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AuthException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the instance requested was not found in the given zone. Check +// that you have provided a valid instance ID and the correct zone. +type EC2InstanceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EC2InstanceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EC2InstanceNotFoundException) GoString() string { + return s.String() +} + +func newErrorEC2InstanceNotFoundException(v protocol.ResponseMetadata) error { + return &EC2InstanceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EC2InstanceNotFoundException) Code() string { + return "EC2InstanceNotFoundException" +} + +// Message returns the exception's message. +func (s EC2InstanceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EC2InstanceNotFoundException) OrigErr() error { + return nil +} + +func (s EC2InstanceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EC2InstanceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EC2InstanceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that you provided bad input. Ensure you have a valid instance ID, +// the correct zone, and a valid SSH public key. +type InvalidArgsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgsException) GoString() string { + return s.String() +} + +func newErrorInvalidArgsException(v protocol.ResponseMetadata) error { + return &InvalidArgsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgsException) Code() string { + return "InvalidArgsException" +} + +// Message returns the exception's message. +func (s InvalidArgsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgsException) OrigErr() error { + return nil +} + +func (s InvalidArgsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgsException) RequestID() string { + return s.respMetadata.RequestID +} + type SendSSHPublicKeyInput struct { _ struct{} `type:"structure"` @@ -232,3 +406,118 @@ func (s *SendSSHPublicKeyOutput) SetSuccess(v bool) *SendSSHPublicKeyOutput { s.Success = &v return s } + +// Indicates that the service encountered an error. Follow the message's instructions +// and try again. +type ServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceException) GoString() string { + return s.String() +} + +func newErrorServiceException(v protocol.ResponseMetadata) error { + return &ServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceException) Code() string { + return "ServiceException" +} + +// Message returns the exception's message. +func (s ServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceException) OrigErr() error { + return nil +} + +func (s ServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates you have been making requests too frequently and have been throttled. +// Wait for a while and try again. If higher call volume is warranted contact +// AWS Support. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/ec2instanceconnect/errors.go b/service/ec2instanceconnect/errors.go index e9e5f3439b1..732cf452e00 100644 --- a/service/ec2instanceconnect/errors.go +++ b/service/ec2instanceconnect/errors.go @@ -2,6 +2,10 @@ package ec2instanceconnect +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAuthException for service response error code @@ -40,3 +44,11 @@ const ( // AWS Support. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AuthException": newErrorAuthException, + "EC2InstanceNotFoundException": newErrorEC2InstanceNotFoundException, + "InvalidArgsException": newErrorInvalidArgsException, + "ServiceException": newErrorServiceException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/ec2instanceconnect/service.go b/service/ec2instanceconnect/service.go index 057171fc8ee..bd9270bc02f 100644 --- a/service/ec2instanceconnect/service.go +++ b/service/ec2instanceconnect/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ecr/api.go b/service/ecr/api.go index 83be08f0f77..5fcf63e6bb3 100644 --- a/service/ecr/api.go +++ b/service/ecr/api.go @@ -71,16 +71,16 @@ func (c *ECR) BatchCheckLayerAvailabilityRequest(input *BatchCheckLayerAvailabil // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation BatchCheckLayerAvailability for usage and error information. // -// Returned Error Codes: -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// Returned Error Types: +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchCheckLayerAvailability @@ -166,15 +166,15 @@ func (c *ECR) BatchDeleteImageRequest(input *BatchDeleteImageInput) (req *reques // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation BatchDeleteImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -254,15 +254,15 @@ func (c *ECR) BatchGetImageRequest(input *BatchGetImageInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation BatchGetImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -347,33 +347,33 @@ func (c *ECR) CompleteLayerUploadRequest(input *CompleteLayerUploadInput) (req * // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation CompleteLayerUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeUploadNotFoundException "UploadNotFoundException" +// * UploadNotFoundException // The upload could not be found, or the specified upload id is not valid for // this repository. // -// * ErrCodeInvalidLayerException "InvalidLayerException" +// * InvalidLayerException // The layer digest calculation performed by Amazon ECR upon receipt of the // image layer does not match the digest specified. // -// * ErrCodeLayerPartTooSmallException "LayerPartTooSmallException" +// * LayerPartTooSmallException // Layer parts must be at least 5 MiB in size. // -// * ErrCodeLayerAlreadyExistsException "LayerAlreadyExistsException" +// * LayerAlreadyExistsException // The image layer already exists in the associated repository. // -// * ErrCodeEmptyUploadException "EmptyUploadException" +// * EmptyUploadException // The specified layer upload does not contain any layer parts. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CompleteLayerUpload @@ -454,27 +454,27 @@ func (c *ECR) CreateRepositoryRequest(input *CreateRepositoryInput) (req *reques // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation CreateRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" +// * InvalidTagParameterException // An invalid parameter has been specified. Tag keys can have a maximum character // length of 128 characters, and tag values can have a maximum length of 256 // characters. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The list of tags on the repository is over the limit. The maximum number // of tags that can be applied to a repository is 50. // -// * ErrCodeRepositoryAlreadyExistsException "RepositoryAlreadyExistsException" +// * RepositoryAlreadyExistsException // The specified repository already exists in the specified registry. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) @@ -555,19 +555,19 @@ func (c *ECR) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyInput) (r // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation DeleteLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeLifecyclePolicyNotFoundException "LifecyclePolicyNotFoundException" +// * LifecyclePolicyNotFoundException // The lifecycle policy could not be found, and no policy is set to the repository. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteLifecyclePolicy @@ -646,19 +646,19 @@ func (c *ECR) DeleteRepositoryRequest(input *DeleteRepositoryInput) (req *reques // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation DeleteRepository for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeRepositoryNotEmptyException "RepositoryNotEmptyException" +// * RepositoryNotEmptyException // The specified repository contains images. To delete a repository that contains // images, you must force the deletion with the force parameter. // @@ -737,19 +737,19 @@ func (c *ECR) DeleteRepositoryPolicyRequest(input *DeleteRepositoryPolicyInput) // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation DeleteRepositoryPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeRepositoryPolicyNotFoundException "RepositoryPolicyNotFoundException" +// * RepositoryPolicyNotFoundException // The specified repository and registry combination does not have an associated // repository policy. // @@ -834,22 +834,22 @@ func (c *ECR) DescribeImageScanFindingsRequest(input *DescribeImageScanFindingsI // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation DescribeImageScanFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeImageNotFoundException "ImageNotFoundException" +// * ImageNotFoundException // The image requested does not exist in the specified repository. // -// * ErrCodeScanNotFoundException "ScanNotFoundException" +// * ScanNotFoundException // The specified image scan could not be found. Ensure that image scanning is // enabled on the repository and try again. // @@ -992,19 +992,19 @@ func (c *ECR) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Re // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation DescribeImages for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeImageNotFoundException "ImageNotFoundException" +// * ImageNotFoundException // The image requested does not exist in the specified repository. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImages @@ -1140,15 +1140,15 @@ func (c *ECR) DescribeRepositoriesRequest(input *DescribeRepositoriesInput) (req // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation DescribeRepositories for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -1286,11 +1286,11 @@ func (c *ECR) GetAuthorizationTokenRequest(input *GetAuthorizationTokenInput) (r // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation GetAuthorizationToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1374,23 +1374,23 @@ func (c *ECR) GetDownloadUrlForLayerRequest(input *GetDownloadUrlForLayerInput) // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation GetDownloadUrlForLayer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeLayersNotFoundException "LayersNotFoundException" +// * LayersNotFoundException // The specified layers could not be found, or the specified layer is not valid // for this repository. // -// * ErrCodeLayerInaccessibleException "LayerInaccessibleException" +// * LayerInaccessibleException // The specified layer is not available because it is not associated with an // image. Unassociated image layers may be cleaned up at any time. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -1469,19 +1469,19 @@ func (c *ECR) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) (req *re // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation GetLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeLifecyclePolicyNotFoundException "LifecyclePolicyNotFoundException" +// * LifecyclePolicyNotFoundException // The lifecycle policy could not be found, and no policy is set to the repository. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicy @@ -1565,19 +1565,19 @@ func (c *ECR) GetLifecyclePolicyPreviewRequest(input *GetLifecyclePolicyPreviewI // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation GetLifecyclePolicyPreview for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeLifecyclePolicyPreviewNotFoundException "LifecyclePolicyPreviewNotFoundException" +// * LifecyclePolicyPreviewNotFoundException // There is no dry run for this repository. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetLifecyclePolicyPreview @@ -1707,19 +1707,19 @@ func (c *ECR) GetRepositoryPolicyRequest(input *GetRepositoryPolicyInput) (req * // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation GetRepositoryPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeRepositoryPolicyNotFoundException "RepositoryPolicyNotFoundException" +// * RepositoryPolicyNotFoundException // The specified repository and registry combination does not have an associated // repository policy. // @@ -1802,15 +1802,15 @@ func (c *ECR) InitiateLayerUploadRequest(input *InitiateLayerUploadInput) (req * // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation InitiateLayerUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -1901,15 +1901,15 @@ func (c *ECR) ListImagesRequest(input *ListImagesInput) (req *request.Request, o // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation ListImages for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -2040,16 +2040,16 @@ func (c *ECR) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListTagsForResource @@ -2131,33 +2131,33 @@ func (c *ECR) PutImageRequest(input *PutImageInput) (req *request.Request, outpu // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation PutImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeImageAlreadyExistsException "ImageAlreadyExistsException" +// * ImageAlreadyExistsException // The specified image has already been pushed, and there were no changes to // the manifest or image tag after the last push. // -// * ErrCodeLayersNotFoundException "LayersNotFoundException" +// * LayersNotFoundException // The specified layers could not be found, or the specified layer is not valid // for this repository. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) // in the Amazon Elastic Container Registry User Guide. // -// * ErrCodeImageTagAlreadyExistsException "ImageTagAlreadyExistsException" +// * ImageTagAlreadyExistsException // The specified image is tagged with a tag that already exists. The repository // is configured for tag immutability. // @@ -2236,15 +2236,15 @@ func (c *ECR) PutImageScanningConfigurationRequest(input *PutImageScanningConfig // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation PutImageScanningConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -2327,15 +2327,15 @@ func (c *ECR) PutImageTagMutabilityRequest(input *PutImageTagMutabilityInput) (r // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation PutImageTagMutability for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -2415,15 +2415,15 @@ func (c *ECR) PutLifecyclePolicyRequest(input *PutLifecyclePolicyInput) (req *re // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation PutLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -2504,15 +2504,15 @@ func (c *ECR) SetRepositoryPolicyRequest(input *SetRepositoryPolicyInput) (req * // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation SetRepositoryPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // @@ -2594,19 +2594,19 @@ func (c *ECR) StartImageScanRequest(input *StartImageScanInput) (req *request.Re // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation StartImageScan for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeImageNotFoundException "ImageNotFoundException" +// * ImageNotFoundException // The image requested does not exist in the specified repository. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/StartImageScan @@ -2685,22 +2685,22 @@ func (c *ECR) StartLifecyclePolicyPreviewRequest(input *StartLifecyclePolicyPrev // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation StartLifecyclePolicyPreview for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeLifecyclePolicyNotFoundException "LifecyclePolicyNotFoundException" +// * LifecyclePolicyNotFoundException // The lifecycle policy could not be found, and no policy is set to the repository. // -// * ErrCodeLifecyclePolicyPreviewInProgressException "LifecyclePolicyPreviewInProgressException" +// * LifecyclePolicyPreviewInProgressException // The previous lifecycle policy preview request has not completed. Please try // again later. // @@ -2781,25 +2781,25 @@ func (c *ECR) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" +// * InvalidTagParameterException // An invalid parameter has been specified. Tag keys can have a maximum character // length of 128 characters, and tag values can have a maximum length of 256 // characters. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The list of tags on the repository is over the limit. The maximum number // of tags that can be applied to a repository is 50. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/TagResource @@ -2878,25 +2878,25 @@ func (c *ECR) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeInvalidTagParameterException "InvalidTagParameterException" +// * InvalidTagParameterException // An invalid parameter has been specified. Tag keys can have a maximum character // length of 128 characters, and tag values can have a maximum length of 256 // characters. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // The list of tags on the repository is over the limit. The maximum number // of tags that can be applied to a repository is 50. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UntagResource @@ -2978,27 +2978,27 @@ func (c *ECR) UploadLayerPartRequest(input *UploadLayerPartInput) (req *request. // See the AWS API reference guide for Amazon EC2 Container Registry's // API operation UploadLayerPart for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeInvalidLayerPartException "InvalidLayerPartException" +// * InvalidLayerPartException // The layer part size is not valid, or the first byte specified is not consecutive // to the last byte of a previous layer part upload. // -// * ErrCodeRepositoryNotFoundException "RepositoryNotFoundException" +// * RepositoryNotFoundException // The specified repository could not be found. Check the spelling of the specified // repository and ensure that you are performing operations on the correct registry. // -// * ErrCodeUploadNotFoundException "UploadNotFoundException" +// * UploadNotFoundException // The upload could not be found, or the specified upload id is not valid for // this repository. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The operation did not succeed because it would have exceeded a service limit // for your account. For more information, see Amazon ECR Default Service Limits // (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) @@ -4428,6 +4428,63 @@ func (s *DescribeRepositoriesOutput) SetRepositories(v []*Repository) *DescribeR return s } +// The specified layer upload does not contain any layer parts. +type EmptyUploadException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s EmptyUploadException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EmptyUploadException) GoString() string { + return s.String() +} + +func newErrorEmptyUploadException(v protocol.ResponseMetadata) error { + return &EmptyUploadException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EmptyUploadException) Code() string { + return "EmptyUploadException" +} + +// Message returns the exception's message. +func (s EmptyUploadException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EmptyUploadException) OrigErr() error { + return nil +} + +func (s EmptyUploadException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EmptyUploadException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EmptyUploadException) RequestID() string { + return s.respMetadata.RequestID +} + type GetAuthorizationTokenInput struct { _ struct{} `type:"structure"` @@ -5027,6 +5084,64 @@ func (s *Image) SetRepositoryName(v string) *Image { return s } +// The specified image has already been pushed, and there were no changes to +// the manifest or image tag after the last push. +type ImageAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ImageAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorImageAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ImageAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ImageAlreadyExistsException) Code() string { + return "ImageAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ImageAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ImageAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ImageAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ImageAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ImageAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that describes an image returned by a DescribeImages operation. type ImageDetail struct { _ struct{} `type:"structure"` @@ -5208,6 +5323,62 @@ func (s *ImageIdentifier) SetImageTag(v string) *ImageIdentifier { return s } +// The image requested does not exist in the specified repository. +type ImageNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ImageNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageNotFoundException) GoString() string { + return s.String() +} + +func newErrorImageNotFoundException(v protocol.ResponseMetadata) error { + return &ImageNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ImageNotFoundException) Code() string { + return "ImageNotFoundException" +} + +// Message returns the exception's message. +func (s ImageNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ImageNotFoundException) OrigErr() error { + return nil +} + +func (s ImageNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ImageNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ImageNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about an image scan finding. type ImageScanFinding struct { _ struct{} `type:"structure"` @@ -5422,6 +5593,63 @@ func (s *ImageScanningConfiguration) SetScanOnPush(v bool) *ImageScanningConfigu return s } +// The specified image is tagged with a tag that already exists. The repository +// is configured for tag immutability. +type ImageTagAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ImageTagAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageTagAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorImageTagAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ImageTagAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ImageTagAlreadyExistsException) Code() string { + return "ImageTagAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ImageTagAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ImageTagAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ImageTagAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ImageTagAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ImageTagAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + type InitiateLayerUploadInput struct { _ struct{} `type:"structure"` @@ -5507,6 +5735,251 @@ func (s *InitiateLayerUploadOutput) SetUploadId(v string) *InitiateLayerUploadOu return s } +// The layer digest calculation performed by Amazon ECR upon receipt of the +// image layer does not match the digest specified. +type InvalidLayerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidLayerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLayerException) GoString() string { + return s.String() +} + +func newErrorInvalidLayerException(v protocol.ResponseMetadata) error { + return &InvalidLayerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLayerException) Code() string { + return "InvalidLayerException" +} + +// Message returns the exception's message. +func (s InvalidLayerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLayerException) OrigErr() error { + return nil +} + +func (s InvalidLayerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLayerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLayerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The layer part size is not valid, or the first byte specified is not consecutive +// to the last byte of a previous layer part upload. +type InvalidLayerPartException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The last valid byte received from the layer part upload that is associated + // with the exception. + LastValidByteReceived *int64 `locationName:"lastValidByteReceived" type:"long"` + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` + + // The registry ID associated with the exception. + RegistryId *string `locationName:"registryId" type:"string"` + + // The repository name associated with the exception. + RepositoryName *string `locationName:"repositoryName" min:"2" type:"string"` + + // The upload ID associated with the exception. + UploadId *string `locationName:"uploadId" type:"string"` +} + +// String returns the string representation +func (s InvalidLayerPartException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLayerPartException) GoString() string { + return s.String() +} + +func newErrorInvalidLayerPartException(v protocol.ResponseMetadata) error { + return &InvalidLayerPartException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLayerPartException) Code() string { + return "InvalidLayerPartException" +} + +// Message returns the exception's message. +func (s InvalidLayerPartException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLayerPartException) OrigErr() error { + return nil +} + +func (s InvalidLayerPartException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLayerPartException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLayerPartException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified parameter is invalid. Review the available parameters for the +// API request. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// An invalid parameter has been specified. Tag keys can have a maximum character +// length of 128 characters, and tag values can have a maximum length of 256 +// characters. +type InvalidTagParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidTagParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidTagParameterException(v protocol.ResponseMetadata) error { + return &InvalidTagParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTagParameterException) Code() string { + return "InvalidTagParameterException" +} + +// Message returns the exception's message. +func (s InvalidTagParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagParameterException) OrigErr() error { + return nil +} + +func (s InvalidTagParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagParameterException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing an Amazon ECR image layer. type Layer struct { _ struct{} `type:"structure"` @@ -5559,6 +6032,63 @@ func (s *Layer) SetMediaType(v string) *Layer { return s } +// The image layer already exists in the associated repository. +type LayerAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LayerAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LayerAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorLayerAlreadyExistsException(v protocol.ResponseMetadata) error { + return &LayerAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LayerAlreadyExistsException) Code() string { + return "LayerAlreadyExistsException" +} + +// Message returns the exception's message. +func (s LayerAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LayerAlreadyExistsException) OrigErr() error { + return nil +} + +func (s LayerAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LayerAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LayerAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing an Amazon ECR image layer failure. type LayerFailure struct { _ struct{} `type:"structure"` @@ -5601,6 +6131,235 @@ func (s *LayerFailure) SetLayerDigest(v string) *LayerFailure { return s } +// The specified layer is not available because it is not associated with an +// image. Unassociated image layers may be cleaned up at any time. +type LayerInaccessibleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LayerInaccessibleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LayerInaccessibleException) GoString() string { + return s.String() +} + +func newErrorLayerInaccessibleException(v protocol.ResponseMetadata) error { + return &LayerInaccessibleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LayerInaccessibleException) Code() string { + return "LayerInaccessibleException" +} + +// Message returns the exception's message. +func (s LayerInaccessibleException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LayerInaccessibleException) OrigErr() error { + return nil +} + +func (s LayerInaccessibleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LayerInaccessibleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LayerInaccessibleException) RequestID() string { + return s.respMetadata.RequestID +} + +// Layer parts must be at least 5 MiB in size. +type LayerPartTooSmallException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LayerPartTooSmallException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LayerPartTooSmallException) GoString() string { + return s.String() +} + +func newErrorLayerPartTooSmallException(v protocol.ResponseMetadata) error { + return &LayerPartTooSmallException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LayerPartTooSmallException) Code() string { + return "LayerPartTooSmallException" +} + +// Message returns the exception's message. +func (s LayerPartTooSmallException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LayerPartTooSmallException) OrigErr() error { + return nil +} + +func (s LayerPartTooSmallException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LayerPartTooSmallException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LayerPartTooSmallException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified layers could not be found, or the specified layer is not valid +// for this repository. +type LayersNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LayersNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LayersNotFoundException) GoString() string { + return s.String() +} + +func newErrorLayersNotFoundException(v protocol.ResponseMetadata) error { + return &LayersNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LayersNotFoundException) Code() string { + return "LayersNotFoundException" +} + +// Message returns the exception's message. +func (s LayersNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LayersNotFoundException) OrigErr() error { + return nil +} + +func (s LayersNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LayersNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LayersNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The lifecycle policy could not be found, and no policy is set to the repository. +type LifecyclePolicyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LifecyclePolicyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecyclePolicyNotFoundException) GoString() string { + return s.String() +} + +func newErrorLifecyclePolicyNotFoundException(v protocol.ResponseMetadata) error { + return &LifecyclePolicyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LifecyclePolicyNotFoundException) Code() string { + return "LifecyclePolicyNotFoundException" +} + +// Message returns the exception's message. +func (s LifecyclePolicyNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LifecyclePolicyNotFoundException) OrigErr() error { + return nil +} + +func (s LifecyclePolicyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LifecyclePolicyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LifecyclePolicyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The filter for the lifecycle policy preview. type LifecyclePolicyPreviewFilter struct { _ struct{} `type:"structure"` @@ -5625,6 +6384,119 @@ func (s *LifecyclePolicyPreviewFilter) SetTagStatus(v string) *LifecyclePolicyPr return s } +// The previous lifecycle policy preview request has not completed. Please try +// again later. +type LifecyclePolicyPreviewInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LifecyclePolicyPreviewInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecyclePolicyPreviewInProgressException) GoString() string { + return s.String() +} + +func newErrorLifecyclePolicyPreviewInProgressException(v protocol.ResponseMetadata) error { + return &LifecyclePolicyPreviewInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LifecyclePolicyPreviewInProgressException) Code() string { + return "LifecyclePolicyPreviewInProgressException" +} + +// Message returns the exception's message. +func (s LifecyclePolicyPreviewInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LifecyclePolicyPreviewInProgressException) OrigErr() error { + return nil +} + +func (s LifecyclePolicyPreviewInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LifecyclePolicyPreviewInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LifecyclePolicyPreviewInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + +// There is no dry run for this repository. +type LifecyclePolicyPreviewNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LifecyclePolicyPreviewNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecyclePolicyPreviewNotFoundException) GoString() string { + return s.String() +} + +func newErrorLifecyclePolicyPreviewNotFoundException(v protocol.ResponseMetadata) error { + return &LifecyclePolicyPreviewNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LifecyclePolicyPreviewNotFoundException) Code() string { + return "LifecyclePolicyPreviewNotFoundException" +} + +// Message returns the exception's message. +func (s LifecyclePolicyPreviewNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LifecyclePolicyPreviewNotFoundException) OrigErr() error { + return nil +} + +func (s LifecyclePolicyPreviewNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LifecyclePolicyPreviewNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LifecyclePolicyPreviewNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The result of the lifecycle policy preview. type LifecyclePolicyPreviewResult struct { _ struct{} `type:"structure"` @@ -5734,6 +6606,66 @@ func (s *LifecyclePolicyRuleAction) SetType(v string) *LifecyclePolicyRuleAction return s } +// The operation did not succeed because it would have exceeded a service limit +// for your account. For more information, see Amazon ECR Default Service Limits +// (https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html) +// in the Amazon Elastic Container Registry User Guide. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing a filter on a ListImages operation. type ListImagesFilter struct { _ struct{} `type:"structure"` @@ -6465,6 +7397,351 @@ func (s *Repository) SetRepositoryUri(v string) *Repository { return s } +// The specified repository already exists in the specified registry. +type RepositoryAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RepositoryAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RepositoryAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorRepositoryAlreadyExistsException(v protocol.ResponseMetadata) error { + return &RepositoryAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RepositoryAlreadyExistsException) Code() string { + return "RepositoryAlreadyExistsException" +} + +// Message returns the exception's message. +func (s RepositoryAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryAlreadyExistsException) OrigErr() error { + return nil +} + +func (s RepositoryAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RepositoryAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified repository contains images. To delete a repository that contains +// images, you must force the deletion with the force parameter. +type RepositoryNotEmptyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RepositoryNotEmptyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RepositoryNotEmptyException) GoString() string { + return s.String() +} + +func newErrorRepositoryNotEmptyException(v protocol.ResponseMetadata) error { + return &RepositoryNotEmptyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RepositoryNotEmptyException) Code() string { + return "RepositoryNotEmptyException" +} + +// Message returns the exception's message. +func (s RepositoryNotEmptyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryNotEmptyException) OrigErr() error { + return nil +} + +func (s RepositoryNotEmptyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryNotEmptyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RepositoryNotEmptyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified repository could not be found. Check the spelling of the specified +// repository and ensure that you are performing operations on the correct registry. +type RepositoryNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RepositoryNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RepositoryNotFoundException) GoString() string { + return s.String() +} + +func newErrorRepositoryNotFoundException(v protocol.ResponseMetadata) error { + return &RepositoryNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RepositoryNotFoundException) Code() string { + return "RepositoryNotFoundException" +} + +// Message returns the exception's message. +func (s RepositoryNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryNotFoundException) OrigErr() error { + return nil +} + +func (s RepositoryNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RepositoryNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified repository and registry combination does not have an associated +// repository policy. +type RepositoryPolicyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RepositoryPolicyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RepositoryPolicyNotFoundException) GoString() string { + return s.String() +} + +func newErrorRepositoryPolicyNotFoundException(v protocol.ResponseMetadata) error { + return &RepositoryPolicyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RepositoryPolicyNotFoundException) Code() string { + return "RepositoryPolicyNotFoundException" +} + +// Message returns the exception's message. +func (s RepositoryPolicyNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RepositoryPolicyNotFoundException) OrigErr() error { + return nil +} + +func (s RepositoryPolicyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RepositoryPolicyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RepositoryPolicyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified image scan could not be found. Ensure that image scanning is +// enabled on the repository and try again. +type ScanNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ScanNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ScanNotFoundException) GoString() string { + return s.String() +} + +func newErrorScanNotFoundException(v protocol.ResponseMetadata) error { + return &ScanNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ScanNotFoundException) Code() string { + return "ScanNotFoundException" +} + +// Message returns the exception's message. +func (s ScanNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ScanNotFoundException) OrigErr() error { + return nil +} + +func (s ScanNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ScanNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ScanNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// These errors are usually caused by a server-side issue. +type ServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerException) GoString() string { + return s.String() +} + +func newErrorServerException(v protocol.ResponseMetadata) error { + return &ServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerException) Code() string { + return "ServerException" +} + +// Message returns the exception's message. +func (s ServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerException) OrigErr() error { + return nil +} + +func (s ServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerException) RequestID() string { + return s.respMetadata.RequestID +} + type SetRepositoryPolicyInput struct { _ struct{} `type:"structure"` @@ -6926,6 +8203,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The list of tags on the repository is over the limit. The maximum number +// of tags that can be applied to a repository is 50. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -7153,6 +8487,64 @@ func (s *UploadLayerPartOutput) SetUploadId(v string) *UploadLayerPartOutput { return s } +// The upload could not be found, or the specified upload id is not valid for +// this repository. +type UploadNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message associated with the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UploadNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UploadNotFoundException) GoString() string { + return s.String() +} + +func newErrorUploadNotFoundException(v protocol.ResponseMetadata) error { + return &UploadNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UploadNotFoundException) Code() string { + return "UploadNotFoundException" +} + +// Message returns the exception's message. +func (s UploadNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UploadNotFoundException) OrigErr() error { + return nil +} + +func (s UploadNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UploadNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UploadNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // FindingSeverityInformational is a FindingSeverity enum value FindingSeverityInformational = "INFORMATIONAL" diff --git a/service/ecr/errors.go b/service/ecr/errors.go index 786759af0fd..732d865bf40 100644 --- a/service/ecr/errors.go +++ b/service/ecr/errors.go @@ -2,6 +2,10 @@ package ecr +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeEmptyUploadException for service response error code @@ -167,3 +171,30 @@ const ( // this repository. ErrCodeUploadNotFoundException = "UploadNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "EmptyUploadException": newErrorEmptyUploadException, + "ImageAlreadyExistsException": newErrorImageAlreadyExistsException, + "ImageNotFoundException": newErrorImageNotFoundException, + "ImageTagAlreadyExistsException": newErrorImageTagAlreadyExistsException, + "InvalidLayerException": newErrorInvalidLayerException, + "InvalidLayerPartException": newErrorInvalidLayerPartException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidTagParameterException": newErrorInvalidTagParameterException, + "LayerAlreadyExistsException": newErrorLayerAlreadyExistsException, + "LayerInaccessibleException": newErrorLayerInaccessibleException, + "LayerPartTooSmallException": newErrorLayerPartTooSmallException, + "LayersNotFoundException": newErrorLayersNotFoundException, + "LifecyclePolicyNotFoundException": newErrorLifecyclePolicyNotFoundException, + "LifecyclePolicyPreviewInProgressException": newErrorLifecyclePolicyPreviewInProgressException, + "LifecyclePolicyPreviewNotFoundException": newErrorLifecyclePolicyPreviewNotFoundException, + "LimitExceededException": newErrorLimitExceededException, + "RepositoryAlreadyExistsException": newErrorRepositoryAlreadyExistsException, + "RepositoryNotEmptyException": newErrorRepositoryNotEmptyException, + "RepositoryNotFoundException": newErrorRepositoryNotFoundException, + "RepositoryPolicyNotFoundException": newErrorRepositoryPolicyNotFoundException, + "ScanNotFoundException": newErrorScanNotFoundException, + "ServerException": newErrorServerException, + "TooManyTagsException": newErrorTooManyTagsException, + "UploadNotFoundException": newErrorUploadNotFoundException, +} diff --git a/service/ecr/service.go b/service/ecr/service.go index d847bd1e95d..c4392395cea 100644 --- a/service/ecr/service.go +++ b/service/ecr/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ecs/api.go b/service/ecs/api.go index e0f29708b5d..a5c454a3d42 100644 --- a/service/ecs/api.go +++ b/service/ecs/api.go @@ -73,20 +73,20 @@ func (c *ECS) CreateCapacityProviderRequest(input *CreateCapacityProviderInput) // See the AWS API reference guide for Amazon EC2 Container Service's // API operation CreateCapacityProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit for the resource has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateCapacityProvider @@ -174,16 +174,16 @@ func (c *ECS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation CreateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -360,34 +360,34 @@ func (c *ECS) CreateServiceRequest(input *CreateServiceInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation CreateService for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // The specified task is not supported in this Region. // -// * ErrCodePlatformUnknownException "PlatformUnknownException" +// * PlatformUnknownException // The specified platform version does not exist. // -// * ErrCodePlatformTaskDefinitionIncompatibilityException "PlatformTaskDefinitionIncompatibilityException" +// * PlatformTaskDefinitionIncompatibilityException // The specified platform version does not satisfy the task definition's required // capabilities. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateService @@ -468,41 +468,41 @@ func (c *ECS) CreateTaskSetRequest(input *CreateTaskSetInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation CreateTaskSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // The specified task is not supported in this Region. // -// * ErrCodePlatformUnknownException "PlatformUnknownException" +// * PlatformUnknownException // The specified platform version does not exist. // -// * ErrCodePlatformTaskDefinitionIncompatibilityException "PlatformTaskDefinitionIncompatibilityException" +// * PlatformTaskDefinitionIncompatibilityException // The specified platform version does not satisfy the task definition's required // capabilities. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // -// * ErrCodeServiceNotActiveException "ServiceNotActiveException" +// * ServiceNotActiveException // The specified service is not active. You can't update a service that is inactive. // If you have previously deleted a service, you can re-create it with CreateService. // @@ -582,16 +582,16 @@ func (c *ECS) DeleteAccountSettingRequest(input *DeleteAccountSettingInput) (req // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DeleteAccountSetting for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -670,17 +670,17 @@ func (c *ECS) DeleteAttributesRequest(input *DeleteAttributesInput) (req *reques // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DeleteAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// Returned Error Types: +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // The specified target could not be found. You can view your available container // instances with ListContainerInstances. Amazon ECS container instances are // cluster-specific and Region-specific. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -761,37 +761,37 @@ func (c *ECS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DeleteCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeClusterContainsContainerInstancesException "ClusterContainsContainerInstancesException" +// * ClusterContainsContainerInstancesException // You cannot delete a cluster that has registered container instances. First, // deregister the container instances before you can delete the cluster. For // more information, see DeregisterContainerInstance. // -// * ErrCodeClusterContainsServicesException "ClusterContainsServicesException" +// * ClusterContainsServicesException // You cannot delete a cluster that contains services. First, update the service // to reduce its desired task count to 0 and then delete the service. For more // information, see UpdateService and DeleteService. // -// * ErrCodeClusterContainsTasksException "ClusterContainsTasksException" +// * ClusterContainsTasksException // You cannot delete a cluster that has active tasks. // -// * ErrCodeUpdateInProgressException "UpdateInProgressException" +// * UpdateInProgressException // There is already a current Amazon ECS container agent update in progress // on the specified container instance. If the container agent becomes disconnected // while it is in a transitional stage, such as PENDING or STAGING, the update @@ -890,24 +890,24 @@ func (c *ECS) DeleteServiceRequest(input *DeleteServiceInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DeleteService for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // @@ -989,38 +989,38 @@ func (c *ECS) DeleteTaskSetRequest(input *DeleteTaskSetInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DeleteTaskSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // The specified task is not supported in this Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // -// * ErrCodeServiceNotActiveException "ServiceNotActiveException" +// * ServiceNotActiveException // The specified service is not active. You can't update a service that is inactive. // If you have previously deleted a service, you can re-create it with CreateService. // -// * ErrCodeTaskSetNotFoundException "TaskSetNotFoundException" +// * TaskSetNotFoundException // The specified task set could not be found. You can view your available task // sets with DescribeTaskSets. Task sets are specific to each cluster, service // and Region. @@ -1114,20 +1114,20 @@ func (c *ECS) DeregisterContainerInstanceRequest(input *DeregisterContainerInsta // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DeregisterContainerInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -1220,16 +1220,16 @@ func (c *ECS) DeregisterTaskDefinitionRequest(input *DeregisterTaskDefinitionInp // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DeregisterTaskDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1308,16 +1308,16 @@ func (c *ECS) DescribeCapacityProvidersRequest(input *DescribeCapacityProvidersI // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DescribeCapacityProviders for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1396,16 +1396,16 @@ func (c *ECS) DescribeClustersRequest(input *DescribeClustersInput) (req *reques // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DescribeClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1485,20 +1485,20 @@ func (c *ECS) DescribeContainerInstancesRequest(input *DescribeContainerInstance // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DescribeContainerInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -1577,20 +1577,20 @@ func (c *ECS) DescribeServicesRequest(input *DescribeServicesInput) (req *reques // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DescribeServices for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -1674,16 +1674,16 @@ func (c *ECS) DescribeTaskDefinitionRequest(input *DescribeTaskDefinitionInput) // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DescribeTaskDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -1765,34 +1765,34 @@ func (c *ECS) DescribeTaskSetsRequest(input *DescribeTaskSetsInput) (req *reques // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DescribeTaskSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // The specified task is not supported in this Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // -// * ErrCodeServiceNotActiveException "ServiceNotActiveException" +// * ServiceNotActiveException // The specified service is not active. You can't update a service that is inactive. // If you have previously deleted a service, you can re-create it with CreateService. // @@ -1871,20 +1871,20 @@ func (c *ECS) DescribeTasksRequest(input *DescribeTasksInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DescribeTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -1967,11 +1967,11 @@ func (c *ECS) DiscoverPollEndpointRequest(input *DiscoverPollEndpointInput) (req // See the AWS API reference guide for Amazon EC2 Container Service's // API operation DiscoverPollEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. @@ -2051,16 +2051,16 @@ func (c *ECS) ListAccountSettingsRequest(input *ListAccountSettingsInput) (req * // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListAccountSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -2151,12 +2151,12 @@ func (c *ECS) ListAttributesRequest(input *ListAttributesInput) (req *request.Re // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// Returned Error Types: +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -2293,16 +2293,16 @@ func (c *ECS) ListClustersRequest(input *ListClustersInput) (req *request.Reques // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -2443,20 +2443,20 @@ func (c *ECS) ListContainerInstancesRequest(input *ListContainerInstancesInput) // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListContainerInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -2593,20 +2593,20 @@ func (c *ECS) ListServicesRequest(input *ListServicesInput) (req *request.Reques // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListServices for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -2737,20 +2737,20 @@ func (c *ECS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -2841,16 +2841,16 @@ func (c *ECS) ListTaskDefinitionFamiliesRequest(input *ListTaskDefinitionFamilie // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListTaskDefinitionFamilies for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -2989,16 +2989,16 @@ func (c *ECS) ListTaskDefinitionsRequest(input *ListTaskDefinitionsInput) (req * // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListTaskDefinitions for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -3140,24 +3140,24 @@ func (c *ECS) ListTasksRequest(input *ListTasksInput) (req *request.Request, out // See the AWS API reference guide for Amazon EC2 Container Service's // API operation ListTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // @@ -3317,16 +3317,16 @@ func (c *ECS) PutAccountSettingRequest(input *PutAccountSettingInput) (req *requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation PutAccountSetting for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -3407,16 +3407,16 @@ func (c *ECS) PutAccountSettingDefaultRequest(input *PutAccountSettingDefaultInp // See the AWS API reference guide for Amazon EC2 Container Service's // API operation PutAccountSettingDefault for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -3499,22 +3499,22 @@ func (c *ECS) PutAttributesRequest(input *PutAttributesInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation PutAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// Returned Error Types: +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // The specified target could not be found. You can view your available container // instances with ListContainerInstances. Amazon ECS container instances are // cluster-specific and Region-specific. // -// * ErrCodeAttributeLimitExceededException "AttributeLimitExceededException" +// * AttributeLimitExceededException // You can apply up to 10 custom attributes per resource. You can view the attributes // of a resource with ListAttributes. You can remove existing attributes on // a resource with DeleteAttributes. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -3609,27 +3609,27 @@ func (c *ECS) PutClusterCapacityProvidersRequest(input *PutClusterCapacityProvid // See the AWS API reference guide for Amazon EC2 Container Service's // API operation PutClusterCapacityProviders for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in-use and cannot be removed. // -// * ErrCodeUpdateInProgressException "UpdateInProgressException" +// * UpdateInProgressException // There is already a current Amazon ECS container agent update in progress // on the specified container instance. If the container agent becomes disconnected // while it is in a transitional stage, such as PENDING or STAGING, the update @@ -3716,16 +3716,16 @@ func (c *ECS) RegisterContainerInstanceRequest(input *RegisterContainerInstanceI // See the AWS API reference guide for Amazon EC2 Container Service's // API operation RegisterContainerInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -3824,16 +3824,16 @@ func (c *ECS) RegisterTaskDefinitionRequest(input *RegisterTaskDefinitionInput) // See the AWS API reference guide for Amazon EC2 Container Service's // API operation RegisterTaskDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -3940,37 +3940,37 @@ func (c *ECS) RunTaskRequest(input *RunTaskInput) (req *request.Request, output // See the AWS API reference guide for Amazon EC2 Container Service's // API operation RunTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // The specified task is not supported in this Region. // -// * ErrCodePlatformUnknownException "PlatformUnknownException" +// * PlatformUnknownException // The specified platform version does not exist. // -// * ErrCodePlatformTaskDefinitionIncompatibilityException "PlatformTaskDefinitionIncompatibilityException" +// * PlatformTaskDefinitionIncompatibilityException // The specified platform version does not satisfy the task definition's required // capabilities. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // -// * ErrCodeBlockedException "BlockedException" +// * BlockedException // Your AWS account has been blocked. For more information, contact AWS Support // (http://aws.amazon.com/contact-us/). // @@ -4054,20 +4054,20 @@ func (c *ECS) StartTaskRequest(input *StartTaskInput) (req *request.Request, out // See the AWS API reference guide for Amazon EC2 Container Service's // API operation StartTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -4158,20 +4158,20 @@ func (c *ECS) StopTaskRequest(input *StopTaskInput) (req *request.Request, outpu // See the AWS API reference guide for Amazon EC2 Container Service's // API operation StopTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -4254,19 +4254,19 @@ func (c *ECS) SubmitAttachmentStateChangesRequest(input *SubmitAttachmentStateCh // See the AWS API reference guide for Amazon EC2 Container Service's // API operation SubmitAttachmentStateChanges for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -4349,16 +4349,16 @@ func (c *ECS) SubmitContainerStateChangeRequest(input *SubmitContainerStateChang // See the AWS API reference guide for Amazon EC2 Container Service's // API operation SubmitContainerStateChange for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/SubmitContainerStateChange @@ -4440,19 +4440,19 @@ func (c *ECS) SubmitTaskStateChangeRequest(input *SubmitTaskStateChangeInput) (r // See the AWS API reference guide for Amazon EC2 Container Service's // API operation SubmitTaskStateChange for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -4535,23 +4535,23 @@ func (c *ECS) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Amazon EC2 Container Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -4631,23 +4631,23 @@ func (c *ECS) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -4726,20 +4726,20 @@ func (c *ECS) UpdateClusterSettingsRequest(input *UpdateClusterSettingsInput) (r // See the AWS API reference guide for Amazon EC2 Container Service's // API operation UpdateClusterSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // @@ -4828,36 +4828,36 @@ func (c *ECS) UpdateContainerAgentRequest(input *UpdateContainerAgentInput) (req // See the AWS API reference guide for Amazon EC2 Container Service's // API operation UpdateContainerAgent for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUpdateInProgressException "UpdateInProgressException" +// * UpdateInProgressException // There is already a current Amazon ECS container agent update in progress // on the specified container instance. If the container agent becomes disconnected // while it is in a transitional stage, such as PENDING or STAGING, the update // process can get stuck in that state. However, when the agent reconnects, // it resumes where it stopped previously. // -// * ErrCodeNoUpdateAvailableException "NoUpdateAvailableException" +// * NoUpdateAvailableException // There is no update available for this Amazon ECS container agent. This could // be because the agent is already running the latest version, or it is so old // that there is no update path to the current version. // -// * ErrCodeMissingVersionException "MissingVersionException" +// * MissingVersionException // Amazon ECS is unable to determine the current version of the Amazon ECS container // agent on the container instance and does not have enough information to proceed // with an update. This could be because the agent running on the container @@ -4986,20 +4986,20 @@ func (c *ECS) UpdateContainerInstancesStateRequest(input *UpdateContainerInstanc // See the AWS API reference guide for Amazon EC2 Container Service's // API operation UpdateContainerInstancesState for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // @@ -5166,39 +5166,39 @@ func (c *ECS) UpdateServiceRequest(input *UpdateServiceInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation UpdateService for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // -// * ErrCodeServiceNotActiveException "ServiceNotActiveException" +// * ServiceNotActiveException // The specified service is not active. You can't update a service that is inactive. // If you have previously deleted a service, you can re-create it with CreateService. // -// * ErrCodePlatformUnknownException "PlatformUnknownException" +// * PlatformUnknownException // The specified platform version does not exist. // -// * ErrCodePlatformTaskDefinitionIncompatibilityException "PlatformTaskDefinitionIncompatibilityException" +// * PlatformTaskDefinitionIncompatibilityException // The specified platform version does not satisfy the task definition's required // capabilities. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateService @@ -5280,40 +5280,40 @@ func (c *ECS) UpdateServicePrimaryTaskSetRequest(input *UpdateServicePrimaryTask // See the AWS API reference guide for Amazon EC2 Container Service's // API operation UpdateServicePrimaryTaskSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // The specified task is not supported in this Region. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // -// * ErrCodeServiceNotActiveException "ServiceNotActiveException" +// * ServiceNotActiveException // The specified service is not active. You can't update a service that is inactive. // If you have previously deleted a service, you can re-create it with CreateService. // -// * ErrCodeTaskSetNotFoundException "TaskSetNotFoundException" +// * TaskSetNotFoundException // The specified task set could not be found. You can view your available task // sets with DescribeTaskSets. Task sets are specific to each cluster, service // and Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServicePrimaryTaskSet @@ -5393,38 +5393,38 @@ func (c *ECS) UpdateTaskSetRequest(input *UpdateTaskSetInput) (req *request.Requ // See the AWS API reference guide for Amazon EC2 Container Service's // API operation UpdateTaskSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerException "ServerException" +// Returned Error Types: +// * ServerException // These errors are usually caused by a server issue. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an identifier that is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClusterNotFoundException "ClusterNotFoundException" +// * ClusterNotFoundException // The specified cluster could not be found. You can view your available clusters // with ListClusters. Amazon ECS clusters are Region-specific. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // The specified task is not supported in this Region. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have authorization to perform the requested action. // -// * ErrCodeServiceNotFoundException "ServiceNotFoundException" +// * ServiceNotFoundException // The specified service could not be found. You can view your available services // with ListServices. Amazon ECS services are cluster-specific and Region-specific. // -// * ErrCodeServiceNotActiveException "ServiceNotActiveException" +// * ServiceNotActiveException // The specified service is not active. You can't update a service that is inactive. // If you have previously deleted a service, you can re-create it with CreateService. // -// * ErrCodeTaskSetNotFoundException "TaskSetNotFoundException" +// * TaskSetNotFoundException // The specified task set could not be found. You can view your available task // sets with DescribeTaskSets. Task sets are specific to each cluster, service // and Region. @@ -5451,6 +5451,57 @@ func (c *ECS) UpdateTaskSetWithContext(ctx aws.Context, input *UpdateTaskSetInpu return out, req.Send() } +// You do not have authorization to perform the requested action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing a container instance or task attachment. type Attachment struct { _ struct{} `type:"structure"` @@ -5633,6 +5684,59 @@ func (s *Attribute) SetValue(v string) *Attribute { return s } +// You can apply up to 10 custom attributes per resource. You can view the attributes +// of a resource with ListAttributes. You can remove existing attributes on +// a resource with DeleteAttributes. +type AttributeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AttributeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttributeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorAttributeLimitExceededException(v protocol.ResponseMetadata) error { + return &AttributeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AttributeLimitExceededException) Code() string { + return "AttributeLimitExceededException" +} + +// Message returns the exception's message. +func (s AttributeLimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AttributeLimitExceededException) OrigErr() error { + return nil +} + +func (s AttributeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AttributeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AttributeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The details of the Auto Scaling group for the capacity provider. type AutoScalingGroupProvider struct { _ struct{} `type:"structure"` @@ -5772,6 +5876,58 @@ func (s *AwsVpcConfiguration) SetSubnets(v []*string) *AwsVpcConfiguration { return s } +// Your AWS account has been blocked. For more information, contact AWS Support +// (http://aws.amazon.com/contact-us/). +type BlockedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BlockedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BlockedException) GoString() string { + return s.String() +} + +func newErrorBlockedException(v protocol.ResponseMetadata) error { + return &BlockedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BlockedException) Code() string { + return "BlockedException" +} + +// Message returns the exception's message. +func (s BlockedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BlockedException) OrigErr() error { + return nil +} + +func (s BlockedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BlockedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BlockedException) RequestID() string { + return s.respMetadata.RequestID +} + // The details of a capacity provider. type CapacityProvider struct { _ struct{} `type:"structure"` @@ -5925,6 +6081,64 @@ func (s *CapacityProviderStrategyItem) SetWeight(v int64) *CapacityProviderStrat return s } +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an identifier that is not valid. +type ClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientException) GoString() string { + return s.String() +} + +func newErrorClientException(v protocol.ResponseMetadata) error { + return &ClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientException) Code() string { + return "ClientException" +} + +// Message returns the exception's message. +func (s ClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientException) OrigErr() error { + return nil +} + +func (s ClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientException) RequestID() string { + return s.respMetadata.RequestID +} + // A regional grouping of one or more container instances on which you can run // task requests. Each account receives a default cluster the first time you // use the Amazon ECS service, but you may also create other clusters. Clusters @@ -6137,6 +6351,215 @@ func (s *Cluster) SetTags(v []*Tag) *Cluster { return s } +// You cannot delete a cluster that has registered container instances. First, +// deregister the container instances before you can delete the cluster. For +// more information, see DeregisterContainerInstance. +type ClusterContainsContainerInstancesException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ClusterContainsContainerInstancesException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterContainsContainerInstancesException) GoString() string { + return s.String() +} + +func newErrorClusterContainsContainerInstancesException(v protocol.ResponseMetadata) error { + return &ClusterContainsContainerInstancesException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterContainsContainerInstancesException) Code() string { + return "ClusterContainsContainerInstancesException" +} + +// Message returns the exception's message. +func (s ClusterContainsContainerInstancesException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterContainsContainerInstancesException) OrigErr() error { + return nil +} + +func (s ClusterContainsContainerInstancesException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterContainsContainerInstancesException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterContainsContainerInstancesException) RequestID() string { + return s.respMetadata.RequestID +} + +// You cannot delete a cluster that contains services. First, update the service +// to reduce its desired task count to 0 and then delete the service. For more +// information, see UpdateService and DeleteService. +type ClusterContainsServicesException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ClusterContainsServicesException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterContainsServicesException) GoString() string { + return s.String() +} + +func newErrorClusterContainsServicesException(v protocol.ResponseMetadata) error { + return &ClusterContainsServicesException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterContainsServicesException) Code() string { + return "ClusterContainsServicesException" +} + +// Message returns the exception's message. +func (s ClusterContainsServicesException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterContainsServicesException) OrigErr() error { + return nil +} + +func (s ClusterContainsServicesException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterContainsServicesException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterContainsServicesException) RequestID() string { + return s.respMetadata.RequestID +} + +// You cannot delete a cluster that has active tasks. +type ClusterContainsTasksException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ClusterContainsTasksException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterContainsTasksException) GoString() string { + return s.String() +} + +func newErrorClusterContainsTasksException(v protocol.ResponseMetadata) error { + return &ClusterContainsTasksException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterContainsTasksException) Code() string { + return "ClusterContainsTasksException" +} + +// Message returns the exception's message. +func (s ClusterContainsTasksException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterContainsTasksException) OrigErr() error { + return nil +} + +func (s ClusterContainsTasksException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterContainsTasksException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterContainsTasksException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified cluster could not be found. You can view your available clusters +// with ListClusters. Amazon ECS clusters are Region-specific. +type ClusterNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ClusterNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterNotFoundException) GoString() string { + return s.String() +} + +func newErrorClusterNotFoundException(v protocol.ResponseMetadata) error { + return &ClusterNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterNotFoundException) Code() string { + return "ClusterNotFoundException" +} + +// Message returns the exception's message. +func (s ClusterNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterNotFoundException) OrigErr() error { + return nil +} + +func (s ClusterNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The settings to use when creating a cluster. This parameter is used to enable // CloudWatch Container Insights for a cluster. type ClusterSetting struct { @@ -10858,6 +11281,58 @@ func (s *InferenceAcceleratorOverride) SetDeviceType(v string) *InferenceAcceler return s } +// The specified parameter is invalid. Review the available parameters for the +// API request. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + // The Linux capabilities for the container that are added to or dropped from // the default configuration provided by Docker. For more information on the // default capabilities and the non-default available capabilities, see Runtime @@ -10961,24 +11436,75 @@ func (s *KeyValuePair) SetValue(v string) *KeyValuePair { return s } -// Linux-specific options that are applied to the container, such as Linux KernelCapabilities. -type LinuxParameters struct { - _ struct{} `type:"structure"` +// The limit for the resource has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} - // The Linux capabilities for the container that are added to or dropped from - // the default configuration provided by Docker. - // - // If you are using tasks that use the Fargate launch type, capabilities is - // supported but the add parameter is not supported. - Capabilities *KernelCapabilities `locationName:"capabilities" type:"structure"` +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} - // Any host devices to expose to the container. This parameter maps to Devices - // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) - // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) - // and the --device option to docker run (https://docs.docker.com/engine/reference/run/). - // - // If you are using tasks that use the Fargate launch type, the devices parameter - // is not supported. +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Linux-specific options that are applied to the container, such as Linux KernelCapabilities. +type LinuxParameters struct { + _ struct{} `type:"structure"` + + // The Linux capabilities for the container that are added to or dropped from + // the default configuration provided by Docker. + // + // If you are using tasks that use the Fargate launch type, capabilities is + // supported but the add parameter is not supported. + Capabilities *KernelCapabilities `locationName:"capabilities" type:"structure"` + + // Any host devices to expose to the container. This parameter maps to Devices + // in the Create a container (https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate) + // section of the Docker Remote API (https://docs.docker.com/engine/api/v1.35/) + // and the --device option to docker run (https://docs.docker.com/engine/reference/run/). + // + // If you are using tasks that use the Fargate launch type, the devices parameter + // is not supported. Devices []*Device `locationName:"devices" type:"list"` // Run an init process inside the container that forwards signals and reaps @@ -12420,6 +12946,60 @@ func (s *ManagedScaling) SetTargetCapacity(v int64) *ManagedScaling { return s } +// Amazon ECS is unable to determine the current version of the Amazon ECS container +// agent on the container instance and does not have enough information to proceed +// with an update. This could be because the agent running on the container +// instance is an older or custom version that does not use our version information. +type MissingVersionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MissingVersionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingVersionException) GoString() string { + return s.String() +} + +func newErrorMissingVersionException(v protocol.ResponseMetadata) error { + return &MissingVersionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingVersionException) Code() string { + return "MissingVersionException" +} + +// Message returns the exception's message. +func (s MissingVersionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingVersionException) OrigErr() error { + return nil +} + +func (s MissingVersionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingVersionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingVersionException) RequestID() string { + return s.respMetadata.RequestID +} + // Details on a volume mount point that is used in a container definition. type MountPoint struct { _ struct{} `type:"structure"` @@ -12603,6 +13183,59 @@ func (s *NetworkInterface) SetPrivateIpv4Address(v string) *NetworkInterface { return s } +// There is no update available for this Amazon ECS container agent. This could +// be because the agent is already running the latest version, or it is so old +// that there is no update path to the current version. +type NoUpdateAvailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NoUpdateAvailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoUpdateAvailableException) GoString() string { + return s.String() +} + +func newErrorNoUpdateAvailableException(v protocol.ResponseMetadata) error { + return &NoUpdateAvailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoUpdateAvailableException) Code() string { + return "NoUpdateAvailableException" +} + +// Message returns the exception's message. +func (s NoUpdateAvailableException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoUpdateAvailableException) OrigErr() error { + return nil +} + +func (s NoUpdateAvailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoUpdateAvailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoUpdateAvailableException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing a constraint on task placement. 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. @@ -12749,6 +13382,109 @@ func (s *PlatformDevice) SetType(v string) *PlatformDevice { return s } +// The specified platform version does not satisfy the task definition's required +// capabilities. +type PlatformTaskDefinitionIncompatibilityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PlatformTaskDefinitionIncompatibilityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformTaskDefinitionIncompatibilityException) GoString() string { + return s.String() +} + +func newErrorPlatformTaskDefinitionIncompatibilityException(v protocol.ResponseMetadata) error { + return &PlatformTaskDefinitionIncompatibilityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PlatformTaskDefinitionIncompatibilityException) Code() string { + return "PlatformTaskDefinitionIncompatibilityException" +} + +// Message returns the exception's message. +func (s PlatformTaskDefinitionIncompatibilityException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PlatformTaskDefinitionIncompatibilityException) OrigErr() error { + return nil +} + +func (s PlatformTaskDefinitionIncompatibilityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PlatformTaskDefinitionIncompatibilityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PlatformTaskDefinitionIncompatibilityException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified platform version does not exist. +type PlatformUnknownException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PlatformUnknownException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformUnknownException) GoString() string { + return s.String() +} + +func newErrorPlatformUnknownException(v protocol.ResponseMetadata) error { + return &PlatformUnknownException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PlatformUnknownException) Code() string { + return "PlatformUnknownException" +} + +// Message returns the exception's message. +func (s PlatformUnknownException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PlatformUnknownException) OrigErr() error { + return nil +} + +func (s PlatformUnknownException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PlatformUnknownException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PlatformUnknownException) RequestID() string { + return s.respMetadata.RequestID +} + // Port mappings allow containers to access ports on the host container instance // to send or receive traffic. Port mappings are specified as part of the container // definition. @@ -14057,6 +14793,108 @@ func (s *Resource) SetType(v string) *Resource { return s } +// The specified resource is in-use and cannot be removed. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The type and amount of a resource to assign to a container. The supported // resource types are GPUs and Elastic Inference accelerators. For more information, // see Working with GPUs on Amazon ECS (https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-gpu.html) @@ -14556,6 +15394,62 @@ func (s *Secret) SetValueFrom(v string) *Secret { return s } +// These errors are usually caused by a server issue. +type ServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerException) GoString() string { + return s.String() +} + +func newErrorServerException(v protocol.ResponseMetadata) error { + return &ServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerException) Code() string { + return "ServerException" +} + +// Message returns the exception's message. +func (s ServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerException) OrigErr() error { + return nil +} + +func (s ServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerException) RequestID() string { + return s.respMetadata.RequestID +} + // Details on a service within a cluster type Service struct { _ struct{} `type:"structure"` @@ -14946,6 +15840,110 @@ func (s *ServiceEvent) SetMessage(v string) *ServiceEvent { return s } +// The specified service is not active. You can't update a service that is inactive. +// If you have previously deleted a service, you can re-create it with CreateService. +type ServiceNotActiveException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ServiceNotActiveException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceNotActiveException) GoString() string { + return s.String() +} + +func newErrorServiceNotActiveException(v protocol.ResponseMetadata) error { + return &ServiceNotActiveException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceNotActiveException) Code() string { + return "ServiceNotActiveException" +} + +// Message returns the exception's message. +func (s ServiceNotActiveException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceNotActiveException) OrigErr() error { + return nil +} + +func (s ServiceNotActiveException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceNotActiveException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceNotActiveException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified service could not be found. You can view your available services +// with ListServices. Amazon ECS services are cluster-specific and Region-specific. +type ServiceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ServiceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceNotFoundException) GoString() string { + return s.String() +} + +func newErrorServiceNotFoundException(v protocol.ResponseMetadata) error { + return &ServiceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceNotFoundException) Code() string { + return "ServiceNotFoundException" +} + +// Message returns the exception's message. +func (s ServiceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceNotFoundException) OrigErr() error { + return nil +} + +func (s ServiceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Details of the service registry. type ServiceRegistry struct { _ struct{} `type:"structure"` @@ -15931,6 +16929,59 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The specified target could not be found. You can view your available container +// instances with ListContainerInstances. Amazon ECS container instances are +// cluster-specific and Region-specific. +type TargetNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TargetNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetNotFoundException) GoString() string { + return s.String() +} + +func newErrorTargetNotFoundException(v protocol.ResponseMetadata) error { + return &TargetNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TargetNotFoundException) Code() string { + return "TargetNotFoundException" +} + +// Message returns the exception's message. +func (s TargetNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TargetNotFoundException) OrigErr() error { + return nil +} + +func (s TargetNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TargetNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TargetNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Details on a task in a cluster. type Task struct { _ struct{} `type:"structure"` @@ -17102,6 +18153,59 @@ func (s *TaskSet) SetUpdatedAt(v time.Time) *TaskSet { return s } +// The specified task set could not be found. You can view your available task +// sets with DescribeTaskSets. Task sets are specific to each cluster, service +// and Region. +type TaskSetNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TaskSetNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskSetNotFoundException) GoString() string { + return s.String() +} + +func newErrorTaskSetNotFoundException(v protocol.ResponseMetadata) error { + return &TaskSetNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TaskSetNotFoundException) Code() string { + return "TaskSetNotFoundException" +} + +// Message returns the exception's message. +func (s TaskSetNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TaskSetNotFoundException) OrigErr() error { + return nil +} + +func (s TaskSetNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TaskSetNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TaskSetNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The container path, mount options, and size of the tmpfs mount. type Tmpfs struct { _ struct{} `type:"structure"` @@ -17238,6 +18342,57 @@ func (s *Ulimit) SetSoftLimit(v int64) *Ulimit { return s } +// The specified task is not supported in this Region. +type UnsupportedFeatureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UnsupportedFeatureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedFeatureException) GoString() string { + return s.String() +} + +func newErrorUnsupportedFeatureException(v protocol.ResponseMetadata) error { + return &UnsupportedFeatureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedFeatureException) Code() string { + return "UnsupportedFeatureException" +} + +// Message returns the exception's message. +func (s UnsupportedFeatureException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedFeatureException) OrigErr() error { + return nil +} + +func (s UnsupportedFeatureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedFeatureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedFeatureException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -17560,6 +18715,61 @@ func (s *UpdateContainerInstancesStateOutput) SetFailures(v []*Failure) *UpdateC return s } +// There is already a current Amazon ECS container agent update in progress +// on the specified container instance. If the container agent becomes disconnected +// while it is in a transitional stage, such as PENDING or STAGING, the update +// process can get stuck in that state. However, when the agent reconnects, +// it resumes where it stopped previously. +type UpdateInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UpdateInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UpdateInProgressException) GoString() string { + return s.String() +} + +func newErrorUpdateInProgressException(v protocol.ResponseMetadata) error { + return &UpdateInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UpdateInProgressException) Code() string { + return "UpdateInProgressException" +} + +// Message returns the exception's message. +func (s UpdateInProgressException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UpdateInProgressException) OrigErr() error { + return nil +} + +func (s UpdateInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UpdateInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UpdateInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateServiceInput struct { _ struct{} `type:"structure"` diff --git a/service/ecs/errors.go b/service/ecs/errors.go index e70de956c5f..736a07682ab 100644 --- a/service/ecs/errors.go +++ b/service/ecs/errors.go @@ -2,6 +2,10 @@ package ecs +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -169,3 +173,29 @@ const ( // it resumes where it stopped previously. ErrCodeUpdateInProgressException = "UpdateInProgressException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AttributeLimitExceededException": newErrorAttributeLimitExceededException, + "BlockedException": newErrorBlockedException, + "ClientException": newErrorClientException, + "ClusterContainsContainerInstancesException": newErrorClusterContainsContainerInstancesException, + "ClusterContainsServicesException": newErrorClusterContainsServicesException, + "ClusterContainsTasksException": newErrorClusterContainsTasksException, + "ClusterNotFoundException": newErrorClusterNotFoundException, + "InvalidParameterException": newErrorInvalidParameterException, + "LimitExceededException": newErrorLimitExceededException, + "MissingVersionException": newErrorMissingVersionException, + "NoUpdateAvailableException": newErrorNoUpdateAvailableException, + "PlatformTaskDefinitionIncompatibilityException": newErrorPlatformTaskDefinitionIncompatibilityException, + "PlatformUnknownException": newErrorPlatformUnknownException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServerException": newErrorServerException, + "ServiceNotActiveException": newErrorServiceNotActiveException, + "ServiceNotFoundException": newErrorServiceNotFoundException, + "TargetNotFoundException": newErrorTargetNotFoundException, + "TaskSetNotFoundException": newErrorTaskSetNotFoundException, + "UnsupportedFeatureException": newErrorUnsupportedFeatureException, + "UpdateInProgressException": newErrorUpdateInProgressException, +} diff --git a/service/ecs/service.go b/service/ecs/service.go index 93b39a82e38..af14f7607cf 100644 --- a/service/ecs/service.go +++ b/service/ecs/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/efs/api.go b/service/efs/api.go index 47c2ce00664..e6823486ed4 100644 --- a/service/efs/api.go +++ b/service/efs/api.go @@ -112,30 +112,30 @@ func (c *EFS) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // See the AWS API reference guide for Amazon Elastic File System's // API operation CreateFileSystem for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemAlreadyExists "FileSystemAlreadyExists" +// * FileSystemAlreadyExists // Returned if the file system you are trying to create already exists, with // the creation token you provided. // -// * ErrCodeFileSystemLimitExceeded "FileSystemLimitExceeded" +// * FileSystemLimitExceeded // Returned if the AWS account has already created the maximum number of file // systems allowed per account. // -// * ErrCodeInsufficientThroughputCapacity "InsufficientThroughputCapacity" +// * InsufficientThroughputCapacity // Returned if there's not enough capacity to provision additional throughput. // This value might be returned when you try to create a file system in provisioned // throughput mode, when you attempt to increase the provisioned throughput // of an existing file system, or when you attempt to change an existing file // system from bursting to provisioned throughput mode. // -// * ErrCodeThroughputLimitExceeded "ThroughputLimitExceeded" +// * ThroughputLimitExceeded // Returned if the throughput mode or amount of provisioned throughput can't // be changed because the throughput limit of 1024 MiB/s has been reached. // @@ -302,37 +302,37 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // See the AWS API reference guide for Amazon Elastic File System's // API operation CreateMountTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // -// * ErrCodeIncorrectFileSystemLifeCycleState "IncorrectFileSystemLifeCycleState" +// * IncorrectFileSystemLifeCycleState // Returned if the file system's lifecycle state is not "available". // -// * ErrCodeMountTargetConflict "MountTargetConflict" +// * MountTargetConflict // Returned if the mount target would violate one of the specified restrictions // based on the file system's existing mount targets. // -// * ErrCodeSubnetNotFound "SubnetNotFound" +// * SubnetNotFound // Returned if there is no subnet with ID SubnetId provided in the request. // -// * ErrCodeNoFreeAddressesInSubnet "NoFreeAddressesInSubnet" +// * NoFreeAddressesInSubnet // Returned if IpAddress was not specified in the request and there are no free // IP addresses in the subnet. // -// * ErrCodeIpAddressInUse "IpAddressInUse" +// * IpAddressInUse // Returned if the request specified an IpAddress that is already in use in // the subnet. // -// * ErrCodeNetworkInterfaceLimitExceeded "NetworkInterfaceLimitExceeded" +// * NetworkInterfaceLimitExceeded // The calling account has reached the limit for elastic network interfaces // for the specific AWS Region. The client should try to delete some elastic // network interfaces or get the account limit raised. For more information, @@ -340,15 +340,15 @@ func (c *EFS) CreateMountTargetRequest(input *CreateMountTargetInput) (req *requ // in the Amazon VPC User Guide (see the Network interfaces per VPC entry in // the table). // -// * ErrCodeSecurityGroupLimitExceeded "SecurityGroupLimitExceeded" +// * SecurityGroupLimitExceeded // Returned if the size of SecurityGroups specified in the request is greater // than five. // -// * ErrCodeSecurityGroupNotFound "SecurityGroupNotFound" +// * SecurityGroupNotFound // Returned if one of the specified security groups doesn't exist in the subnet's // VPC. // -// * ErrCodeUnsupportedAvailabilityZone "UnsupportedAvailabilityZone" +// * UnsupportedAvailabilityZone // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/CreateMountTarget func (c *EFS) CreateMountTarget(input *CreateMountTargetInput) (*MountTargetDescription, error) { @@ -432,15 +432,15 @@ func (c *EFS) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, o // See the AWS API reference guide for Amazon Elastic File System's // API operation CreateTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // @@ -535,19 +535,19 @@ func (c *EFS) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques // See the AWS API reference guide for Amazon Elastic File System's // API operation DeleteFileSystem for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // -// * ErrCodeFileSystemInUse "FileSystemInUse" +// * FileSystemInUse // Returned if a file system has mount targets. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DeleteFileSystem @@ -650,19 +650,19 @@ func (c *EFS) DeleteMountTargetRequest(input *DeleteMountTargetInput) (req *requ // See the AWS API reference guide for Amazon Elastic File System's // API operation DeleteMountTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeDependencyTimeout "DependencyTimeout" +// * DependencyTimeout // The service timed out trying to fulfill the request, and the client should // try the call again. // -// * ErrCodeMountTargetNotFound "MountTargetNotFound" +// * MountTargetNotFound // Returned if there is no mount target with the specified ID found in the caller's // account. // @@ -749,15 +749,15 @@ func (c *EFS) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, o // See the AWS API reference guide for Amazon Elastic File System's // API operation DeleteTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // @@ -859,15 +859,15 @@ func (c *EFS) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // See the AWS API reference guide for Amazon Elastic File System's // API operation DescribeFileSystems for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // @@ -953,15 +953,15 @@ func (c *EFS) DescribeLifecycleConfigurationRequest(input *DescribeLifecycleConf // See the AWS API reference guide for Amazon Elastic File System's // API operation DescribeLifecycleConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeBadRequest "BadRequest" +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // @@ -1050,19 +1050,19 @@ func (c *EFS) DescribeMountTargetSecurityGroupsRequest(input *DescribeMountTarge // See the AWS API reference guide for Amazon Elastic File System's // API operation DescribeMountTargetSecurityGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeMountTargetNotFound "MountTargetNotFound" +// * MountTargetNotFound // Returned if there is no mount target with the specified ID found in the caller's // account. // -// * ErrCodeIncorrectMountTargetState "IncorrectMountTargetState" +// * IncorrectMountTargetState // Returned if the mount target is not in the correct state for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeMountTargetSecurityGroups @@ -1146,19 +1146,19 @@ func (c *EFS) DescribeMountTargetsRequest(input *DescribeMountTargetsInput) (req // See the AWS API reference guide for Amazon Elastic File System's // API operation DescribeMountTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // -// * ErrCodeMountTargetNotFound "MountTargetNotFound" +// * MountTargetNotFound // Returned if there is no mount target with the specified ID found in the caller's // account. // @@ -1242,15 +1242,15 @@ func (c *EFS) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Reques // See the AWS API reference guide for Amazon Elastic File System's // API operation DescribeTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // @@ -1345,26 +1345,26 @@ func (c *EFS) ModifyMountTargetSecurityGroupsRequest(input *ModifyMountTargetSec // See the AWS API reference guide for Amazon Elastic File System's // API operation ModifyMountTargetSecurityGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeMountTargetNotFound "MountTargetNotFound" +// * MountTargetNotFound // Returned if there is no mount target with the specified ID found in the caller's // account. // -// * ErrCodeIncorrectMountTargetState "IncorrectMountTargetState" +// * IncorrectMountTargetState // Returned if the mount target is not in the correct state for the operation. // -// * ErrCodeSecurityGroupLimitExceeded "SecurityGroupLimitExceeded" +// * SecurityGroupLimitExceeded // Returned if the size of SecurityGroups specified in the request is greater // than five. // -// * ErrCodeSecurityGroupNotFound "SecurityGroupNotFound" +// * SecurityGroupNotFound // Returned if one of the specified security groups doesn't exist in the subnet's // VPC. // @@ -1470,19 +1470,19 @@ func (c *EFS) PutLifecycleConfigurationRequest(input *PutLifecycleConfigurationI // See the AWS API reference guide for Amazon Elastic File System's // API operation PutLifecycleConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // -// * ErrCodeIncorrectFileSystemLifeCycleState "IncorrectFileSystemLifeCycleState" +// * IncorrectFileSystemLifeCycleState // Returned if the file system's lifecycle state is not "available". // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/PutLifecycleConfiguration @@ -1561,33 +1561,33 @@ func (c *EFS) UpdateFileSystemRequest(input *UpdateFileSystemInput) (req *reques // See the AWS API reference guide for Amazon Elastic File System's // API operation UpdateFileSystem for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // Returned if the specified FileSystemId value doesn't exist in the requester's // AWS account. // -// * ErrCodeIncorrectFileSystemLifeCycleState "IncorrectFileSystemLifeCycleState" +// * IncorrectFileSystemLifeCycleState // Returned if the file system's lifecycle state is not "available". // -// * ErrCodeInsufficientThroughputCapacity "InsufficientThroughputCapacity" +// * InsufficientThroughputCapacity // Returned if there's not enough capacity to provision additional throughput. // This value might be returned when you try to create a file system in provisioned // throughput mode, when you attempt to increase the provisioned throughput // of an existing file system, or when you attempt to change an existing file // system from bursting to provisioned throughput mode. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Returned if an error occurred on the server side. // -// * ErrCodeThroughputLimitExceeded "ThroughputLimitExceeded" +// * ThroughputLimitExceeded // Returned if the throughput mode or amount of provisioned throughput can't // be changed because the throughput limit of 1024 MiB/s has been reached. // -// * ErrCodeTooManyRequests "TooManyRequests" +// * TooManyRequests // Returned if you don’t wait at least 24 hours before changing the throughput // mode, or decreasing the Provisioned Throughput value. // @@ -1613,6 +1613,66 @@ func (c *EFS) UpdateFileSystemWithContext(ctx aws.Context, input *UpdateFileSyst return out, req.Send() } +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +type BadRequest struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequest) GoString() string { + return s.String() +} + +func newErrorBadRequest(v protocol.ResponseMetadata) error { + return &BadRequest{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequest) Code() string { + return "BadRequest" +} + +// Message returns the exception's message. +func (s BadRequest) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequest) OrigErr() error { + return nil +} + +func (s BadRequest) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequest) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequest) RequestID() string { + return s.respMetadata.RequestID +} + type CreateFileSystemInput struct { _ struct{} `type:"structure"` @@ -2092,6 +2152,66 @@ func (s DeleteTagsOutput) GoString() string { return s.String() } +// The service timed out trying to fulfill the request, and the client should +// try the call again. +type DependencyTimeout struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DependencyTimeout) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DependencyTimeout) GoString() string { + return s.String() +} + +func newErrorDependencyTimeout(v protocol.ResponseMetadata) error { + return &DependencyTimeout{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DependencyTimeout) Code() string { + return "DependencyTimeout" +} + +// Message returns the exception's message. +func (s DependencyTimeout) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DependencyTimeout) OrigErr() error { + return nil +} + +func (s DependencyTimeout) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DependencyTimeout) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DependencyTimeout) RequestID() string { + return s.respMetadata.RequestID +} + type DescribeFileSystemsInput struct { _ struct{} `type:"structure"` @@ -2565,6 +2685,69 @@ func (s *DescribeTagsOutput) SetTags(v []*Tag) *DescribeTagsOutput { return s } +// Returned if the file system you are trying to create already exists, with +// the creation token you provided. +type FileSystemAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + // FileSystemId is a required field + FileSystemId *string `type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FileSystemAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileSystemAlreadyExists) GoString() string { + return s.String() +} + +func newErrorFileSystemAlreadyExists(v protocol.ResponseMetadata) error { + return &FileSystemAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileSystemAlreadyExists) Code() string { + return "FileSystemAlreadyExists" +} + +// Message returns the exception's message. +func (s FileSystemAlreadyExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileSystemAlreadyExists) OrigErr() error { + return nil +} + +func (s FileSystemAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileSystemAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileSystemAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + // A description of the file system. type FileSystemDescription struct { _ struct{} `type:"structure"` @@ -2747,6 +2930,185 @@ func (s *FileSystemDescription) SetThroughputMode(v string) *FileSystemDescripti return s } +// Returned if a file system has mount targets. +type FileSystemInUse struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FileSystemInUse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileSystemInUse) GoString() string { + return s.String() +} + +func newErrorFileSystemInUse(v protocol.ResponseMetadata) error { + return &FileSystemInUse{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileSystemInUse) Code() string { + return "FileSystemInUse" +} + +// Message returns the exception's message. +func (s FileSystemInUse) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileSystemInUse) OrigErr() error { + return nil +} + +func (s FileSystemInUse) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileSystemInUse) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileSystemInUse) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if the AWS account has already created the maximum number of file +// systems allowed per account. +type FileSystemLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FileSystemLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileSystemLimitExceeded) GoString() string { + return s.String() +} + +func newErrorFileSystemLimitExceeded(v protocol.ResponseMetadata) error { + return &FileSystemLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileSystemLimitExceeded) Code() string { + return "FileSystemLimitExceeded" +} + +// Message returns the exception's message. +func (s FileSystemLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileSystemLimitExceeded) OrigErr() error { + return nil +} + +func (s FileSystemLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileSystemLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileSystemLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if the specified FileSystemId value doesn't exist in the requester's +// AWS account. +type FileSystemNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FileSystemNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FileSystemNotFound) GoString() string { + return s.String() +} + +func newErrorFileSystemNotFound(v protocol.ResponseMetadata) error { + return &FileSystemNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FileSystemNotFound) Code() string { + return "FileSystemNotFound" +} + +// Message returns the exception's message. +func (s FileSystemNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileSystemNotFound) OrigErr() error { + return nil +} + +func (s FileSystemNotFound) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileSystemNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileSystemNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // The latest known metered size (in bytes) of data stored in the file system, // in its Value field, and the time at which that size was determined in its // Timestamp field. The value doesn't represent the size of a consistent snapshot @@ -2810,104 +3172,464 @@ func (s *FileSystemSize) SetValueInStandard(v int64) *FileSystemSize { return s } -// Describes a policy used by EFS lifecycle management to transition files to -// the Infrequent Access (IA) storage class. -type LifecyclePolicy struct { - _ struct{} `type:"structure"` +// Returned if the file system's lifecycle state is not "available". +type IncorrectFileSystemLifeCycleState struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // A value that describes the period of time that a file is not accessed, after - // which it transitions to the IA storage class. Metadata operations such as - // listing the contents of a directory don't count as file access events. - TransitionToIA *string `type:"string" enum:"TransitionToIARules"` + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s LifecyclePolicy) String() string { +func (s IncorrectFileSystemLifeCycleState) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LifecyclePolicy) GoString() string { +func (s IncorrectFileSystemLifeCycleState) GoString() string { return s.String() } -// SetTransitionToIA sets the TransitionToIA field's value. -func (s *LifecyclePolicy) SetTransitionToIA(v string) *LifecyclePolicy { - s.TransitionToIA = &v - return s +func newErrorIncorrectFileSystemLifeCycleState(v protocol.ResponseMetadata) error { + return &IncorrectFileSystemLifeCycleState{ + respMetadata: v, + } } -type ModifyMountTargetSecurityGroupsInput struct { - _ struct{} `type:"structure"` +// Code returns the exception type name. +func (s IncorrectFileSystemLifeCycleState) Code() string { + return "IncorrectFileSystemLifeCycleState" +} - // The ID of the mount target whose security groups you want to modify. - // - // MountTargetId is a required field - MountTargetId *string `location:"uri" locationName:"MountTargetId" type:"string" required:"true"` +// Message returns the exception's message. +func (s IncorrectFileSystemLifeCycleState) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // An array of up to five VPC security group IDs. - SecurityGroups []*string `type:"list"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncorrectFileSystemLifeCycleState) OrigErr() error { + return nil +} + +func (s IncorrectFileSystemLifeCycleState) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncorrectFileSystemLifeCycleState) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncorrectFileSystemLifeCycleState) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if the mount target is not in the correct state for the operation. +type IncorrectMountTargetState struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s ModifyMountTargetSecurityGroupsInput) String() string { +func (s IncorrectMountTargetState) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyMountTargetSecurityGroupsInput) GoString() string { +func (s IncorrectMountTargetState) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ModifyMountTargetSecurityGroupsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ModifyMountTargetSecurityGroupsInput"} - if s.MountTargetId == nil { - invalidParams.Add(request.NewErrParamRequired("MountTargetId")) - } - if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) +func newErrorIncorrectMountTargetState(v protocol.ResponseMetadata) error { + return &IncorrectMountTargetState{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s IncorrectMountTargetState) Code() string { + return "IncorrectMountTargetState" +} + +// Message returns the exception's message. +func (s IncorrectMountTargetState) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncorrectMountTargetState) OrigErr() error { return nil } -// SetMountTargetId sets the MountTargetId field's value. -func (s *ModifyMountTargetSecurityGroupsInput) SetMountTargetId(v string) *ModifyMountTargetSecurityGroupsInput { - s.MountTargetId = &v - return s +func (s IncorrectMountTargetState) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetSecurityGroups sets the SecurityGroups field's value. -func (s *ModifyMountTargetSecurityGroupsInput) SetSecurityGroups(v []*string) *ModifyMountTargetSecurityGroupsInput { - s.SecurityGroups = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s IncorrectMountTargetState) StatusCode() int { + return s.respMetadata.StatusCode } -type ModifyMountTargetSecurityGroupsOutput struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s IncorrectMountTargetState) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if there's not enough capacity to provision additional throughput. +// This value might be returned when you try to create a file system in provisioned +// throughput mode, when you attempt to increase the provisioned throughput +// of an existing file system, or when you attempt to change an existing file +// system from bursting to provisioned throughput mode. +type InsufficientThroughputCapacity struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s ModifyMountTargetSecurityGroupsOutput) String() string { +func (s InsufficientThroughputCapacity) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ModifyMountTargetSecurityGroupsOutput) GoString() string { +func (s InsufficientThroughputCapacity) GoString() string { return s.String() } -// Provides a description of a mount target. -type MountTargetDescription struct { - _ struct{} `type:"structure"` +func newErrorInsufficientThroughputCapacity(v protocol.ResponseMetadata) error { + return &InsufficientThroughputCapacity{ + respMetadata: v, + } +} - // The ID of the file system for which the mount target is intended. - // - // FileSystemId is a required field +// Code returns the exception type name. +func (s InsufficientThroughputCapacity) Code() string { + return "InsufficientThroughputCapacity" +} + +// Message returns the exception's message. +func (s InsufficientThroughputCapacity) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientThroughputCapacity) OrigErr() error { + return nil +} + +func (s InsufficientThroughputCapacity) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientThroughputCapacity) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsufficientThroughputCapacity) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if an error occurred on the server side. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if the request specified an IpAddress that is already in use in +// the subnet. +type IpAddressInUse struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IpAddressInUse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IpAddressInUse) GoString() string { + return s.String() +} + +func newErrorIpAddressInUse(v protocol.ResponseMetadata) error { + return &IpAddressInUse{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IpAddressInUse) Code() string { + return "IpAddressInUse" +} + +// Message returns the exception's message. +func (s IpAddressInUse) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IpAddressInUse) OrigErr() error { + return nil +} + +func (s IpAddressInUse) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IpAddressInUse) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IpAddressInUse) RequestID() string { + return s.respMetadata.RequestID +} + +// Describes a policy used by EFS lifecycle management to transition files to +// the Infrequent Access (IA) storage class. +type LifecyclePolicy struct { + _ struct{} `type:"structure"` + + // A value that describes the period of time that a file is not accessed, after + // which it transitions to the IA storage class. Metadata operations such as + // listing the contents of a directory don't count as file access events. + TransitionToIA *string `type:"string" enum:"TransitionToIARules"` +} + +// String returns the string representation +func (s LifecyclePolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LifecyclePolicy) GoString() string { + return s.String() +} + +// SetTransitionToIA sets the TransitionToIA field's value. +func (s *LifecyclePolicy) SetTransitionToIA(v string) *LifecyclePolicy { + s.TransitionToIA = &v + return s +} + +type ModifyMountTargetSecurityGroupsInput struct { + _ struct{} `type:"structure"` + + // The ID of the mount target whose security groups you want to modify. + // + // MountTargetId is a required field + MountTargetId *string `location:"uri" locationName:"MountTargetId" type:"string" required:"true"` + + // An array of up to five VPC security group IDs. + SecurityGroups []*string `type:"list"` +} + +// String returns the string representation +func (s ModifyMountTargetSecurityGroupsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyMountTargetSecurityGroupsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ModifyMountTargetSecurityGroupsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ModifyMountTargetSecurityGroupsInput"} + if s.MountTargetId == nil { + invalidParams.Add(request.NewErrParamRequired("MountTargetId")) + } + if s.MountTargetId != nil && len(*s.MountTargetId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("MountTargetId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetMountTargetId sets the MountTargetId field's value. +func (s *ModifyMountTargetSecurityGroupsInput) SetMountTargetId(v string) *ModifyMountTargetSecurityGroupsInput { + s.MountTargetId = &v + return s +} + +// SetSecurityGroups sets the SecurityGroups field's value. +func (s *ModifyMountTargetSecurityGroupsInput) SetSecurityGroups(v []*string) *ModifyMountTargetSecurityGroupsInput { + s.SecurityGroups = v + return s +} + +type ModifyMountTargetSecurityGroupsOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ModifyMountTargetSecurityGroupsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModifyMountTargetSecurityGroupsOutput) GoString() string { + return s.String() +} + +// Returned if the mount target would violate one of the specified restrictions +// based on the file system's existing mount targets. +type MountTargetConflict struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MountTargetConflict) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MountTargetConflict) GoString() string { + return s.String() +} + +func newErrorMountTargetConflict(v protocol.ResponseMetadata) error { + return &MountTargetConflict{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MountTargetConflict) Code() string { + return "MountTargetConflict" +} + +// Message returns the exception's message. +func (s MountTargetConflict) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MountTargetConflict) OrigErr() error { + return nil +} + +func (s MountTargetConflict) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MountTargetConflict) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MountTargetConflict) RequestID() string { + return s.respMetadata.RequestID +} + +// Provides a description of a mount target. +type MountTargetDescription struct { + _ struct{} `type:"structure"` + + // The ID of the file system for which the mount target is intended. + // + // FileSystemId is a required field FileSystemId *string `type:"string" required:"true"` // Address at which the file system can be mounted by using the mount target. @@ -2988,6 +3710,190 @@ func (s *MountTargetDescription) SetSubnetId(v string) *MountTargetDescription { return s } +// Returned if there is no mount target with the specified ID found in the caller's +// account. +type MountTargetNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MountTargetNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MountTargetNotFound) GoString() string { + return s.String() +} + +func newErrorMountTargetNotFound(v protocol.ResponseMetadata) error { + return &MountTargetNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MountTargetNotFound) Code() string { + return "MountTargetNotFound" +} + +// Message returns the exception's message. +func (s MountTargetNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MountTargetNotFound) OrigErr() error { + return nil +} + +func (s MountTargetNotFound) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MountTargetNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MountTargetNotFound) RequestID() string { + return s.respMetadata.RequestID +} + +// The calling account has reached the limit for elastic network interfaces +// for the specific AWS Region. The client should try to delete some elastic +// network interfaces or get the account limit raised. For more information, +// see Amazon VPC Limits (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html) +// in the Amazon VPC User Guide (see the Network interfaces per VPC entry in +// the table). +type NetworkInterfaceLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NetworkInterfaceLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NetworkInterfaceLimitExceeded) GoString() string { + return s.String() +} + +func newErrorNetworkInterfaceLimitExceeded(v protocol.ResponseMetadata) error { + return &NetworkInterfaceLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NetworkInterfaceLimitExceeded) Code() string { + return "NetworkInterfaceLimitExceeded" +} + +// Message returns the exception's message. +func (s NetworkInterfaceLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NetworkInterfaceLimitExceeded) OrigErr() error { + return nil +} + +func (s NetworkInterfaceLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NetworkInterfaceLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NetworkInterfaceLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if IpAddress was not specified in the request and there are no free +// IP addresses in the subnet. +type NoFreeAddressesInSubnet struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NoFreeAddressesInSubnet) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoFreeAddressesInSubnet) GoString() string { + return s.String() +} + +func newErrorNoFreeAddressesInSubnet(v protocol.ResponseMetadata) error { + return &NoFreeAddressesInSubnet{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoFreeAddressesInSubnet) Code() string { + return "NoFreeAddressesInSubnet" +} + +// Message returns the exception's message. +func (s NoFreeAddressesInSubnet) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoFreeAddressesInSubnet) OrigErr() error { + return nil +} + +func (s NoFreeAddressesInSubnet) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoFreeAddressesInSubnet) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoFreeAddressesInSubnet) RequestID() string { + return s.respMetadata.RequestID +} + type PutLifecycleConfigurationInput struct { _ struct{} `type:"structure"` @@ -3071,6 +3977,185 @@ func (s *PutLifecycleConfigurationOutput) SetLifecyclePolicies(v []*LifecyclePol return s } +// Returned if the size of SecurityGroups specified in the request is greater +// than five. +type SecurityGroupLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SecurityGroupLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SecurityGroupLimitExceeded) GoString() string { + return s.String() +} + +func newErrorSecurityGroupLimitExceeded(v protocol.ResponseMetadata) error { + return &SecurityGroupLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SecurityGroupLimitExceeded) Code() string { + return "SecurityGroupLimitExceeded" +} + +// Message returns the exception's message. +func (s SecurityGroupLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SecurityGroupLimitExceeded) OrigErr() error { + return nil +} + +func (s SecurityGroupLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SecurityGroupLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SecurityGroupLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if one of the specified security groups doesn't exist in the subnet's +// VPC. +type SecurityGroupNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SecurityGroupNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SecurityGroupNotFound) GoString() string { + return s.String() +} + +func newErrorSecurityGroupNotFound(v protocol.ResponseMetadata) error { + return &SecurityGroupNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SecurityGroupNotFound) Code() string { + return "SecurityGroupNotFound" +} + +// Message returns the exception's message. +func (s SecurityGroupNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SecurityGroupNotFound) OrigErr() error { + return nil +} + +func (s SecurityGroupNotFound) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SecurityGroupNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SecurityGroupNotFound) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if there is no subnet with ID SubnetId provided in the request. +type SubnetNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SubnetNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubnetNotFound) GoString() string { + return s.String() +} + +func newErrorSubnetNotFound(v protocol.ResponseMetadata) error { + return &SubnetNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubnetNotFound) Code() string { + return "SubnetNotFound" +} + +// Message returns the exception's message. +func (s SubnetNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetNotFound) OrigErr() error { + return nil +} + +func (s SubnetNotFound) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubnetNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubnetNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // A tag is a key-value pair. Allowed characters are letters, white space, and // numbers that can be represented in UTF-8, and the following characters:+ // - = . _ : / @@ -3129,6 +4214,184 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// Returned if the throughput mode or amount of provisioned throughput can't +// be changed because the throughput limit of 1024 MiB/s has been reached. +type ThroughputLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThroughputLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThroughputLimitExceeded) GoString() string { + return s.String() +} + +func newErrorThroughputLimitExceeded(v protocol.ResponseMetadata) error { + return &ThroughputLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThroughputLimitExceeded) Code() string { + return "ThroughputLimitExceeded" +} + +// Message returns the exception's message. +func (s ThroughputLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThroughputLimitExceeded) OrigErr() error { + return nil +} + +func (s ThroughputLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThroughputLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThroughputLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if you don’t wait at least 24 hours before changing the throughput +// mode, or decreasing the Provisioned Throughput value. +type TooManyRequests struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequests) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequests) GoString() string { + return s.String() +} + +func newErrorTooManyRequests(v protocol.ResponseMetadata) error { + return &TooManyRequests{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequests) Code() string { + return "TooManyRequests" +} + +// Message returns the exception's message. +func (s TooManyRequests) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequests) OrigErr() error { + return nil +} + +func (s TooManyRequests) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequests) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequests) RequestID() string { + return s.respMetadata.RequestID +} + +type UnsupportedAvailabilityZone struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // ErrorCode is a required field + ErrorCode *string `min:"1" type:"string" required:"true"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedAvailabilityZone) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedAvailabilityZone) GoString() string { + return s.String() +} + +func newErrorUnsupportedAvailabilityZone(v protocol.ResponseMetadata) error { + return &UnsupportedAvailabilityZone{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedAvailabilityZone) Code() string { + return "UnsupportedAvailabilityZone" +} + +// Message returns the exception's message. +func (s UnsupportedAvailabilityZone) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedAvailabilityZone) OrigErr() error { + return nil +} + +func (s UnsupportedAvailabilityZone) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedAvailabilityZone) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedAvailabilityZone) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateFileSystemInput struct { _ struct{} `type:"structure"` diff --git a/service/efs/errors.go b/service/efs/errors.go index 7a7eb3b1bf7..300a56e874b 100644 --- a/service/efs/errors.go +++ b/service/efs/errors.go @@ -2,6 +2,10 @@ package efs +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequest for service response error code @@ -150,3 +154,27 @@ const ( // "UnsupportedAvailabilityZone". ErrCodeUnsupportedAvailabilityZone = "UnsupportedAvailabilityZone" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequest": newErrorBadRequest, + "DependencyTimeout": newErrorDependencyTimeout, + "FileSystemAlreadyExists": newErrorFileSystemAlreadyExists, + "FileSystemInUse": newErrorFileSystemInUse, + "FileSystemLimitExceeded": newErrorFileSystemLimitExceeded, + "FileSystemNotFound": newErrorFileSystemNotFound, + "IncorrectFileSystemLifeCycleState": newErrorIncorrectFileSystemLifeCycleState, + "IncorrectMountTargetState": newErrorIncorrectMountTargetState, + "InsufficientThroughputCapacity": newErrorInsufficientThroughputCapacity, + "InternalServerError": newErrorInternalServerError, + "IpAddressInUse": newErrorIpAddressInUse, + "MountTargetConflict": newErrorMountTargetConflict, + "MountTargetNotFound": newErrorMountTargetNotFound, + "NetworkInterfaceLimitExceeded": newErrorNetworkInterfaceLimitExceeded, + "NoFreeAddressesInSubnet": newErrorNoFreeAddressesInSubnet, + "SecurityGroupLimitExceeded": newErrorSecurityGroupLimitExceeded, + "SecurityGroupNotFound": newErrorSecurityGroupNotFound, + "SubnetNotFound": newErrorSubnetNotFound, + "ThroughputLimitExceeded": newErrorThroughputLimitExceeded, + "TooManyRequests": newErrorTooManyRequests, + "UnsupportedAvailabilityZone": newErrorUnsupportedAvailabilityZone, +} diff --git a/service/efs/service.go b/service/efs/service.go index bdd32cc6122..ac105c46ec6 100644 --- a/service/efs/service.go +++ b/service/efs/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/eks/api.go b/service/eks/api.go index 2f7c262e920..d6f6540a834 100644 --- a/service/eks/api.go +++ b/service/eks/api.go @@ -3,6 +3,7 @@ package eks import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -105,29 +106,29 @@ func (c *EKS) CreateClusterRequest(input *CreateClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation CreateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // You have encountered a service limit on the specified resource. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // -// * ErrCodeUnsupportedAvailabilityZoneException "UnsupportedAvailabilityZoneException" +// * UnsupportedAvailabilityZoneException // At least one of your specified cluster subnets is in an Availability Zone // that does not support Amazon EKS. The exception output specifies the supported // Availability Zones for your account, from which you can choose subnets for @@ -239,27 +240,27 @@ func (c *EKS) CreateFargateProfileRequest(input *CreateFargateProfileInput) (req // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation CreateFargateProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid given the state of the cluster. Check the state of // the cluster and the associated operations. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // You have encountered a service limit on the specified resource. // -// * ErrCodeUnsupportedAvailabilityZoneException "UnsupportedAvailabilityZoneException" +// * UnsupportedAvailabilityZoneException // At least one of your specified cluster subnets is in an Availability Zone // that does not support Amazon EKS. The exception output specifies the supported // Availability Zones for your account, from which you can choose subnets for @@ -349,30 +350,30 @@ func (c *EKS) CreateNodegroupRequest(input *CreateNodegroupInput) (req *request. // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation CreateNodegroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // You have encountered a service limit on the specified resource. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid given the state of the cluster. Check the state of // the cluster and the associated operations. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/CreateNodegroup @@ -460,24 +461,24 @@ func (c *EKS) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation DeleteCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteCluster @@ -565,20 +566,20 @@ func (c *EKS) DeleteFargateProfileRequest(input *DeleteFargateProfileInput) (req // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation DeleteFargateProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. @@ -658,28 +659,28 @@ func (c *EKS) DeleteNodegroupRequest(input *DeleteNodegroupInput) (req *request. // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation DeleteNodegroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DeleteNodegroup @@ -765,21 +766,21 @@ func (c *EKS) DescribeClusterRequest(input *DescribeClusterInput) (req *request. // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation DescribeCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeCluster @@ -857,20 +858,20 @@ func (c *EKS) DescribeFargateProfileRequest(input *DescribeFargateProfileInput) // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation DescribeFargateProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. @@ -950,25 +951,25 @@ func (c *EKS) DescribeNodegroupRequest(input *DescribeNodegroupInput) (req *requ // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation DescribeNodegroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/DescribeNodegroup @@ -1051,20 +1052,20 @@ func (c *EKS) DescribeUpdateRequest(input *DescribeUpdateInput) (req *request.Re // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation DescribeUpdate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. @@ -1150,20 +1151,20 @@ func (c *EKS) ListClustersRequest(input *ListClustersInput) (req *request.Reques // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation ListClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListClusters @@ -1300,22 +1301,22 @@ func (c *EKS) ListFargateProfilesRequest(input *ListFargateProfilesInput) (req * // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation ListFargateProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eks-2017-11-01/ListFargateProfiles @@ -1452,23 +1453,23 @@ func (c *EKS) ListNodegroupsRequest(input *ListNodegroupsInput) (req *request.Re // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation ListNodegroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. @@ -1600,12 +1601,12 @@ func (c *EKS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // This exception is thrown if the request contains a semantic error. The precise // meaning will depend on the API, and will be documented in the error message. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -1691,20 +1692,20 @@ func (c *EKS) ListUpdatesRequest(input *ListUpdatesInput) (req *request.Request, // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation ListUpdates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. @@ -1843,12 +1844,12 @@ func (c *EKS) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // This exception is thrown if the request contains a semantic error. The precise // meaning will depend on the API, and will be documented in the error message. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -1928,12 +1929,12 @@ func (c *EKS) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // This exception is thrown if the request contains a semantic error. The precise // meaning will depend on the API, and will be documented in the error message. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -2039,28 +2040,28 @@ func (c *EKS) UpdateClusterConfigRequest(input *UpdateClusterConfigInput) (req * // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation UpdateClusterConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid given the state of the cluster. Check the state of // the cluster and the associated operations. // @@ -2151,28 +2152,28 @@ func (c *EKS) UpdateClusterVersionRequest(input *UpdateClusterVersionInput) (req // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation UpdateClusterVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid given the state of the cluster. Check the state of // the cluster and the associated operations. // @@ -2255,28 +2256,28 @@ func (c *EKS) UpdateNodegroupConfigRequest(input *UpdateNodegroupConfigInput) (r // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation UpdateNodegroupConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid given the state of the cluster. Check the state of // the cluster and the associated operations. // @@ -2372,28 +2373,28 @@ func (c *EKS) UpdateNodegroupVersionRequest(input *UpdateNodegroupVersionInput) // See the AWS API reference guide for Amazon Elastic Kubernetes Service's // API operation UpdateNodegroupVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action. Actions can include using // an action or resource on behalf of a user that doesn't have permissions to // use the action or resource or specifying an identifier that is not valid. // -// * ErrCodeServerException "ServerException" +// * ServerException // These errors are usually caused by a server-side issue. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. You can view your available clusters // with ListClusters. You can view your available managed node groups with ListNodegroups. // Amazon EKS clusters and node groups are Region-specific. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid given the state of the cluster. Check the state of // the cluster and the associated operations. // @@ -2445,6 +2446,63 @@ func (s *AutoScalingGroup) SetName(v string) *AutoScalingGroup { return s } +// This exception is thrown if the request contains a semantic error. The precise +// meaning will depend on the API, and will be documented in the error message. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing the certificate-authority-data for your cluster. type Certificate struct { _ struct{} `type:"structure"` @@ -2471,6 +2529,70 @@ func (s *Certificate) SetData(v string) *Certificate { return s } +// These errors are usually caused by a client action. Actions can include using +// an action or resource on behalf of a user that doesn't have permissions to +// use the action or resource or specifying an identifier that is not valid. +type ClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` +} + +// String returns the string representation +func (s ClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientException) GoString() string { + return s.String() +} + +func newErrorClientException(v protocol.ResponseMetadata) error { + return &ClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientException) Code() string { + return "ClientException" +} + +// Message returns the exception's message. +func (s ClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientException) OrigErr() error { + return nil +} + +func (s ClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing an Amazon EKS cluster. type Cluster struct { _ struct{} `type:"structure"` @@ -3918,6 +4040,135 @@ func (s *Identity) SetOidc(v *OIDC) *Identity { return s } +// The specified parameter is invalid. Review the available parameters for the +// API request. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + // The Fargate profile associated with the exception. + FargateProfileName *string `locationName:"fargateProfileName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is invalid given the state of the cluster. Check the state of +// the cluster and the associated operations. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing an issue with an Amazon EKS resource. type Issue struct { _ struct{} `type:"structure"` @@ -4891,6 +5142,63 @@ func (s *NodegroupScalingConfig) SetMinSize(v int64) *NodegroupScalingConfig { return s } +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An object representing the OpenID Connect (https://openid.net/connect/) identity // provider information for the cluster. type OIDC struct { @@ -4958,6 +5266,315 @@ func (s *RemoteAccessConfig) SetSourceSecurityGroups(v []*string) *RemoteAccessC return s } +// The specified resource is in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have encountered a service limit on the specified resource. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource could not be found. You can view your available clusters +// with ListClusters. You can view your available managed node groups with ListNodegroups. +// Amazon EKS clusters and node groups are Region-specific. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + // The Fargate profile associated with the exception. + FargateProfileName *string `locationName:"fargateProfileName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// These errors are usually caused by a server-side issue. +type ServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` +} + +// String returns the string representation +func (s ServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerException) GoString() string { + return s.String() +} + +func newErrorServerException(v protocol.ResponseMetadata) error { + return &ServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerException) Code() string { + return "ServerException" +} + +// Message returns the exception's message. +func (s ServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerException) OrigErr() error { + return nil +} + +func (s ServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is unavailable. Back off and retry the operation. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -5031,6 +5648,75 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// At least one of your specified cluster subnets is in an Availability Zone +// that does not support Amazon EKS. The exception output specifies the supported +// Availability Zones for your account, from which you can choose subnets for +// your cluster. +type UnsupportedAvailabilityZoneException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon EKS cluster associated with the exception. + ClusterName *string `locationName:"clusterName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // The Amazon EKS managed node group associated with the exception. + NodegroupName *string `locationName:"nodegroupName" type:"string"` + + // The supported Availability Zones for your account. Choose subnets in these + // Availability Zones for your cluster. + ValidZones []*string `locationName:"validZones" type:"list"` +} + +// String returns the string representation +func (s UnsupportedAvailabilityZoneException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedAvailabilityZoneException) GoString() string { + return s.String() +} + +func newErrorUnsupportedAvailabilityZoneException(v protocol.ResponseMetadata) error { + return &UnsupportedAvailabilityZoneException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedAvailabilityZoneException) Code() string { + return "UnsupportedAvailabilityZoneException" +} + +// Message returns the exception's message. +func (s UnsupportedAvailabilityZoneException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedAvailabilityZoneException) OrigErr() error { + return nil +} + +func (s UnsupportedAvailabilityZoneException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedAvailabilityZoneException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedAvailabilityZoneException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/eks/errors.go b/service/eks/errors.go index 49418baec37..7c908d3008e 100644 --- a/service/eks/errors.go +++ b/service/eks/errors.go @@ -2,6 +2,10 @@ package eks +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -81,3 +85,17 @@ const ( // your cluster. ErrCodeUnsupportedAvailabilityZoneException = "UnsupportedAvailabilityZoneException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ClientException": newErrorClientException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidRequestException": newErrorInvalidRequestException, + "NotFoundException": newErrorNotFoundException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServerException": newErrorServerException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "UnsupportedAvailabilityZoneException": newErrorUnsupportedAvailabilityZoneException, +} diff --git a/service/eks/service.go b/service/eks/service.go index d380ba258e3..3fc2175454e 100644 --- a/service/eks/service.go +++ b/service/eks/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/elasticinference/api.go b/service/elasticinference/api.go index bbbc233cee9..862f2e7cfef 100644 --- a/service/elasticinference/api.go +++ b/service/elasticinference/api.go @@ -3,6 +3,8 @@ package elasticinference import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -63,14 +65,14 @@ func (c *ElasticInference) ListTagsForResourceRequest(input *ListTagsForResource // See the AWS API reference guide for Amazon Elastic Inference's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Raised when a malformed input has been provided to the API. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Raised when the requested resource cannot be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Raised when an unexpected error occurred during request processing. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/ListTagsForResource @@ -149,14 +151,14 @@ func (c *ElasticInference) TagResourceRequest(input *TagResourceInput) (req *req // See the AWS API reference guide for Amazon Elastic Inference's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Raised when a malformed input has been provided to the API. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Raised when the requested resource cannot be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Raised when an unexpected error occurred during request processing. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/TagResource @@ -235,14 +237,14 @@ func (c *ElasticInference) UntagResourceRequest(input *UntagResourceInput) (req // See the AWS API reference guide for Amazon Elastic Inference's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Raised when a malformed input has been provided to the API. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Raised when the requested resource cannot be found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Raised when an unexpected error occurred during request processing. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elastic-inference-2017-07-25/UntagResource @@ -267,6 +269,118 @@ func (c *ElasticInference) UntagResourceWithContext(ctx aws.Context, input *Unta return out, req.Send() } +// Raised when a malformed input has been provided to the API. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// Raised when an unexpected error occurred during request processing. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -331,6 +445,62 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +// Raised when the requested resource cannot be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/elasticinference/errors.go b/service/elasticinference/errors.go index b91641d8c24..963af301499 100644 --- a/service/elasticinference/errors.go +++ b/service/elasticinference/errors.go @@ -2,6 +2,10 @@ package elasticinference +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -22,3 +26,9 @@ const ( // Raised when the requested resource cannot be found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/elasticinference/service.go b/service/elasticinference/service.go index dc309ab925a..e787d2f5304 100644 --- a/service/elasticinference/service.go +++ b/service/elasticinference/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/elasticsearchservice/api.go b/service/elasticsearchservice/api.go index 6e1db952f2f..082cdfff886 100644 --- a/service/elasticsearchservice/api.go +++ b/service/elasticsearchservice/api.go @@ -67,19 +67,19 @@ func (c *ElasticsearchService) AddTagsRequest(input *AddTagsInput) (req *request // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation AddTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -158,20 +158,20 @@ func (c *ElasticsearchService) CancelElasticsearchServiceSoftwareUpdateRequest(i // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation CancelElasticsearchServiceSoftwareUpdate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -249,32 +249,32 @@ func (c *ElasticsearchService) CreateElasticsearchDomainRequest(input *CreateEla // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation CreateElasticsearchDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeInvalidTypeException "InvalidTypeException" +// * InvalidTypeException // An exception for trying to create or access sub-resource that is either invalid // or not supported. Gives http status code of 409. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // An exception for creating a resource that already exists. Gives http status // code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -351,20 +351,20 @@ func (c *ElasticsearchService) DeleteElasticsearchDomainRequest(input *DeleteEla // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DeleteElasticsearchDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -445,16 +445,16 @@ func (c *ElasticsearchService) DeleteElasticsearchServiceRoleRequest(input *Dele // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DeleteElasticsearchServiceRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -531,20 +531,20 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainRequest(input *Describ // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DescribeElasticsearchDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -622,20 +622,20 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainConfigRequest(input *D // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DescribeElasticsearchDomainConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -712,16 +712,16 @@ func (c *ElasticsearchService) DescribeElasticsearchDomainsRequest(input *Descri // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DescribeElasticsearchDomains for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -799,28 +799,28 @@ func (c *ElasticsearchService) DescribeElasticsearchInstanceTypeLimitsRequest(in // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DescribeElasticsearchInstanceTypeLimits for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeInvalidTypeException "InvalidTypeException" +// * InvalidTypeException // An exception for trying to create or access sub-resource that is either invalid // or not supported. Gives http status code of 409. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -902,20 +902,20 @@ func (c *ElasticsearchService) DescribeReservedElasticsearchInstanceOfferingsReq // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DescribeReservedElasticsearchInstanceOfferings for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -1050,21 +1050,21 @@ func (c *ElasticsearchService) DescribeReservedElasticsearchInstancesRequest(inp // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation DescribeReservedElasticsearchInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // @@ -1194,23 +1194,23 @@ func (c *ElasticsearchService) GetCompatibleElasticsearchVersionsRequest(input * // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation GetCompatibleElasticsearchVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -1294,23 +1294,23 @@ func (c *ElasticsearchService) GetUpgradeHistoryRequest(input *GetUpgradeHistory // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation GetUpgradeHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -1440,23 +1440,23 @@ func (c *ElasticsearchService) GetUpgradeStatusRequest(input *GetUpgradeStatusIn // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation GetUpgradeStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -1534,11 +1534,11 @@ func (c *ElasticsearchService) ListDomainNamesRequest(input *ListDomainNamesInpu // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation ListDomainNames for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -1620,20 +1620,20 @@ func (c *ElasticsearchService) ListElasticsearchInstanceTypesRequest(input *List // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation ListElasticsearchInstanceTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -1767,20 +1767,20 @@ func (c *ElasticsearchService) ListElasticsearchVersionsRequest(input *ListElast // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation ListElasticsearchVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -1908,19 +1908,19 @@ func (c *ElasticsearchService) ListTagsRequest(input *ListTagsInput) (req *reque // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -1997,28 +1997,28 @@ func (c *ElasticsearchService) PurchaseReservedElasticsearchInstanceOfferingRequ // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation PurchaseReservedElasticsearchInstanceOffering for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // An exception for creating a resource that already exists. Gives http status // code of 400. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -2096,15 +2096,15 @@ func (c *ElasticsearchService) RemoveTagsRequest(input *RemoveTagsInput) (req *r // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation RemoveTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -2181,20 +2181,20 @@ func (c *ElasticsearchService) StartElasticsearchServiceSoftwareUpdateRequest(in // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation StartElasticsearchServiceSoftwareUpdate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -2271,28 +2271,28 @@ func (c *ElasticsearchService) UpdateElasticsearchDomainConfigRequest(input *Upd // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation UpdateElasticsearchDomainConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. // -// * ErrCodeInvalidTypeException "InvalidTypeException" +// * InvalidTypeException // An exception for trying to create or access sub-resource that is either invalid // or not supported. Gives http status code of 409. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An exception for trying to create more than allowed resources or sub-resources. // Gives http status code of 409. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // @@ -2369,27 +2369,27 @@ func (c *ElasticsearchService) UpgradeElasticsearchDomainRequest(input *UpgradeE // See the AWS API reference guide for Amazon Elasticsearch Service's // API operation UpgradeElasticsearchDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeBaseException "BaseException" +// Returned Error Types: +// * BaseException // An error occurred while processing the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception for accessing or deleting a resource that does not exist. Gives // http status code of 400. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // An exception for creating a resource that already exists. Gives http status // code of 400. // -// * ErrCodeDisabledOperationException "DisabledOperationException" +// * DisabledOperationException // An error occured because the client wanted to access a not supported operation. // Gives http status code of 409. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An exception for missing / invalid input fields. Gives http status code of // 400. // -// * ErrCodeInternalException "InternalException" +// * InternalException // The request processing has failed because of an unknown error, exception // or failure (the failure is internal to the service) . Gives http status code // of 500. @@ -2622,6 +2622,63 @@ func (s *AdvancedOptionsStatus) SetStatus(v *OptionStatus) *AdvancedOptionsStatu return s } +// An error occurred while processing the request. +type BaseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description of the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BaseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BaseException) GoString() string { + return s.String() +} + +func newErrorBaseException(v protocol.ResponseMetadata) error { + return &BaseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BaseException) Code() string { + return "BaseException" +} + +// Message returns the exception's message. +func (s BaseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BaseException) OrigErr() error { + return nil +} + +func (s BaseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BaseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BaseException) RequestID() string { + return s.respMetadata.RequestID +} + // Container for the parameters to the CancelElasticsearchServiceSoftwareUpdate // operation. Specifies the name of the Elasticsearch domain that you wish to // cancel a service software update on. @@ -3601,6 +3658,58 @@ func (s *DescribeReservedElasticsearchInstancesOutput) SetReservedElasticsearchI return s } +// An error occured because the client wanted to access a not supported operation. +// Gives http status code of 409. +type DisabledOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DisabledOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisabledOperationException) GoString() string { + return s.String() +} + +func newErrorDisabledOperationException(v protocol.ResponseMetadata) error { + return &DisabledOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DisabledOperationException) Code() string { + return "DisabledOperationException" +} + +// Message returns the exception's message. +func (s DisabledOperationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DisabledOperationException) OrigErr() error { + return nil +} + +func (s DisabledOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DisabledOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DisabledOperationException) RequestID() string { + return s.respMetadata.RequestID +} + // Options to configure endpoint for the Elasticsearch domain. type DomainEndpointOptions struct { _ struct{} `type:"structure"` @@ -4757,6 +4866,163 @@ func (s *InstanceLimits) SetInstanceCountLimits(v *InstanceCountLimits) *Instanc return s } +// The request processing has failed because of an unknown error, exception +// or failure (the failure is internal to the service) . Gives http status code +// of 500. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// An exception for trying to create or access sub-resource that is either invalid +// or not supported. Gives http status code of 409. +type InvalidTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTypeException) GoString() string { + return s.String() +} + +func newErrorInvalidTypeException(v protocol.ResponseMetadata) error { + return &InvalidTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTypeException) Code() string { + return "InvalidTypeException" +} + +// Message returns the exception's message. +func (s InvalidTypeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTypeException) OrigErr() error { + return nil +} + +func (s InvalidTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTypeException) RequestID() string { + return s.respMetadata.RequestID +} + +// An exception for trying to create more than allowed resources or sub-resources. +// Gives http status code of 409. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Limits for given InstanceType and for each of it's role. Limits contains // following StorageTypes, InstanceLimits and AdditionalLimits type Limits struct { @@ -5735,6 +6001,110 @@ func (s *ReservedElasticsearchInstanceOffering) SetUsagePrice(v float64) *Reserv return s } +// An exception for creating a resource that already exists. Gives http status +// code of 400. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// An exception for accessing or deleting a resource that does not exist. Gives +// http status code of 400. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The current options of an Elasticsearch domain service software options. type ServiceSoftwareOptions struct { _ struct{} `type:"structure"` @@ -6632,6 +7002,58 @@ func (s *VPCOptions) SetSubnetIds(v []*string) *VPCOptions { return s } +// An exception for missing / invalid input fields. Gives http status code of +// 400. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the zone awareness configuration for the domain cluster, such as // the number of availability zones. type ZoneAwarenessConfig struct { diff --git a/service/elasticsearchservice/errors.go b/service/elasticsearchservice/errors.go index 332cf8d4fb5..9773068cafa 100644 --- a/service/elasticsearchservice/errors.go +++ b/service/elasticsearchservice/errors.go @@ -2,6 +2,10 @@ package elasticsearchservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBaseException for service response error code @@ -60,3 +64,14 @@ const ( // 400. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BaseException": newErrorBaseException, + "DisabledOperationException": newErrorDisabledOperationException, + "InternalException": newErrorInternalException, + "InvalidTypeException": newErrorInvalidTypeException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/elasticsearchservice/service.go b/service/elasticsearchservice/service.go index ee653242cd6..91476dd9b5b 100644 --- a/service/elasticsearchservice/service.go +++ b/service/elasticsearchservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/elastictranscoder/api.go b/service/elastictranscoder/api.go index 49363f1934f..938b01a9d59 100644 --- a/service/elastictranscoder/api.go +++ b/service/elastictranscoder/api.go @@ -68,25 +68,25 @@ func (c *ElasticTranscoder) CancelJobRequest(input *CancelJobInput) (req *reques // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation CancelJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -168,25 +168,25 @@ func (c *ElasticTranscoder) CreateJobRequest(input *CreateJobInput) (req *reques // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation CreateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Too many operations for a given AWS account. For example, the number of pipelines // exceeds the maximum allowed. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -262,25 +262,25 @@ func (c *ElasticTranscoder) CreatePipelineRequest(input *CreatePipelineInput) (r // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation CreatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Too many operations for a given AWS account. For example, the number of pipelines // exceeds the maximum allowed. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -370,20 +370,20 @@ func (c *ElasticTranscoder) CreatePresetRequest(input *CreatePresetInput) (req * // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation CreatePreset for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Too many operations for a given AWS account. For example, the number of pipelines // exceeds the maximum allowed. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -464,25 +464,25 @@ func (c *ElasticTranscoder) DeletePipelineRequest(input *DeletePipelineInput) (r // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation DeletePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -561,21 +561,21 @@ func (c *ElasticTranscoder) DeletePresetRequest(input *DeletePresetInput) (req * // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation DeletePreset for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -661,21 +661,21 @@ func (c *ElasticTranscoder) ListJobsByPipelineRequest(input *ListJobsByPipelineI // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation ListJobsByPipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -811,21 +811,21 @@ func (c *ElasticTranscoder) ListJobsByStatusRequest(input *ListJobsByStatusInput // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation ListJobsByStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -960,16 +960,16 @@ func (c *ElasticTranscoder) ListPipelinesRequest(input *ListPipelinesInput) (req // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation ListPipelines for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1104,16 +1104,16 @@ func (c *ElasticTranscoder) ListPresetsRequest(input *ListPresetsInput) (req *re // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation ListPresets for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1241,21 +1241,21 @@ func (c *ElasticTranscoder) ReadJobRequest(input *ReadJobInput) (req *request.Re // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation ReadJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1331,21 +1331,21 @@ func (c *ElasticTranscoder) ReadPipelineRequest(input *ReadPipelineInput) (req * // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation ReadPipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1421,21 +1421,21 @@ func (c *ElasticTranscoder) ReadPresetRequest(input *ReadPresetInput) (req *requ // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation ReadPreset for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1522,21 +1522,21 @@ func (c *ElasticTranscoder) TestRoleRequest(input *TestRoleInput) (req *request. // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation TestRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1621,25 +1621,25 @@ func (c *ElasticTranscoder) UpdatePipelineRequest(input *UpdatePipelineInput) (r // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation UpdatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1719,25 +1719,25 @@ func (c *ElasticTranscoder) UpdatePipelineNotificationsRequest(input *UpdatePipe // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation UpdatePipelineNotifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1820,25 +1820,25 @@ func (c *ElasticTranscoder) UpdatePipelineStatusRequest(input *UpdatePipelineSta // See the AWS API reference guide for Amazon Elastic Transcoder's // API operation UpdatePipelineStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more required parameter values were not provided in the request. // -// * ErrCodeIncompatibleVersionException "IncompatibleVersionException" +// * IncompatibleVersionException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist or is not available. For example, the // pipeline to which you're trying to add a job doesn't exist or is still being // created. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource you are attempting to change is in use. For example, you are // attempting to delete a pipeline that is currently in use. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // General authentication failure. The request was not signed correctly. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // Elastic Transcoder encountered an unexpected exception while trying to fulfill // the request. // @@ -1863,6 +1863,57 @@ func (c *ElasticTranscoder) UpdatePipelineStatusWithContext(ctx aws.Context, inp return out, req.Send() } +// General authentication failure. The request was not signed correctly. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // The file to be used as album art. There can be multiple artworks associated // with an audio file, to a maximum of 20. // @@ -4038,6 +4089,56 @@ func (s *HlsContentProtection) SetMethod(v string) *HlsContentProtection { return s } +type IncompatibleVersionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IncompatibleVersionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncompatibleVersionException) GoString() string { + return s.String() +} + +func newErrorIncompatibleVersionException(v protocol.ResponseMetadata) error { + return &IncompatibleVersionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncompatibleVersionException) Code() string { + return "IncompatibleVersionException" +} + +// Message returns the exception's message. +func (s IncompatibleVersionException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncompatibleVersionException) OrigErr() error { + return nil +} + +func (s IncompatibleVersionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncompatibleVersionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncompatibleVersionException) RequestID() string { + return s.respMetadata.RequestID +} + // The captions to be created, if any. type InputCaptions struct { _ struct{} `type:"structure"` @@ -4110,6 +4211,58 @@ func (s *InputCaptions) SetMergePolicy(v string) *InputCaptions { return s } +// Elastic Transcoder encountered an unexpected exception while trying to fulfill +// the request. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + // A section of the response body that provides information about the job that // is created. type Job struct { @@ -4960,6 +5113,58 @@ func (s *JobWatermark) SetPresetWatermarkId(v string) *JobWatermark { return s } +// Too many operations for a given AWS account. For example, the number of pipelines +// exceeds the maximum allowed. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The ListJobsByPipelineRequest structure. type ListJobsByPipelineInput struct { _ struct{} `type:"structure"` @@ -6535,6 +6740,111 @@ func (s *ReadPresetOutput) SetPreset(v *Preset) *ReadPresetOutput { return s } +// The resource you are attempting to change is in use. For example, you are +// attempting to delete a pipeline that is currently in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource does not exist or is not available. For example, the +// pipeline to which you're trying to add a job doesn't exist or is still being +// created. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The TestRoleRequest structure. // // Deprecated: TestRoleInput has been deprecated @@ -7366,6 +7676,57 @@ func (s *UpdatePipelineStatusOutput) SetPipeline(v *Pipeline) *UpdatePipelineSta return s } +// One or more required parameter values were not provided in the request. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // The VideoParameters structure. type VideoParameters struct { _ struct{} `type:"structure"` diff --git a/service/elastictranscoder/errors.go b/service/elastictranscoder/errors.go index 7c670785cc6..4859b429db6 100644 --- a/service/elastictranscoder/errors.go +++ b/service/elastictranscoder/errors.go @@ -2,6 +2,10 @@ package elastictranscoder +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -49,3 +53,13 @@ const ( // One or more required parameter values were not provided in the request. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "IncompatibleVersionException": newErrorIncompatibleVersionException, + "InternalServiceException": newErrorInternalServiceException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/elastictranscoder/service.go b/service/elastictranscoder/service.go index 797fcd49eb0..b9d182eb718 100644 --- a/service/elastictranscoder/service.go +++ b/service/elastictranscoder/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/emr/api.go b/service/emr/api.go index a63628523b2..e462029a552 100644 --- a/service/emr/api.go +++ b/service/emr/api.go @@ -69,11 +69,11 @@ func (c *EMR) AddInstanceFleetRequest(input *AddInstanceFleetInput) (req *reques // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation AddInstanceFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddInstanceFleet @@ -151,8 +151,8 @@ func (c *EMR) AddInstanceGroupsRequest(input *AddInstanceGroupsInput) (req *requ // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation AddInstanceGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -253,8 +253,8 @@ func (c *EMR) AddJobFlowStepsRequest(input *AddJobFlowStepsInput) (req *request. // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation AddJobFlowSteps for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -336,11 +336,11 @@ func (c *EMR) AddTagsRequest(input *AddTagsInput) (req *request.Request, output // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation AddTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/AddTags @@ -422,12 +422,12 @@ func (c *EMR) CancelStepsRequest(input *CancelStepsInput) (req *request.Request, // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation CancelSteps for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CancelSteps @@ -506,11 +506,11 @@ func (c *EMR) CreateSecurityConfigurationRequest(input *CreateSecurityConfigurat // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation CreateSecurityConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/CreateSecurityConfiguration @@ -589,11 +589,11 @@ func (c *EMR) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigurat // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation DeleteSecurityConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DeleteSecurityConfiguration @@ -672,11 +672,11 @@ func (c *EMR) DescribeClusterRequest(input *DescribeClusterInput) (req *request. // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation DescribeCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeCluster @@ -778,8 +778,8 @@ func (c *EMR) DescribeJobFlowsRequest(input *DescribeJobFlowsInput) (req *reques // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation DescribeJobFlows for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -863,11 +863,11 @@ func (c *EMR) DescribeSecurityConfigurationRequest(input *DescribeSecurityConfig // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation DescribeSecurityConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeSecurityConfiguration @@ -945,11 +945,11 @@ func (c *EMR) DescribeStepRequest(input *DescribeStepInput) (req *request.Reques // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation DescribeStep for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/DescribeStep @@ -1030,11 +1030,11 @@ func (c *EMR) GetBlockPublicAccessConfigurationRequest(input *GetBlockPublicAcce // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation GetBlockPublicAccessConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/GetBlockPublicAccessConfiguration @@ -1118,11 +1118,11 @@ func (c *EMR) ListBootstrapActionsRequest(input *ListBootstrapActionsInput) (req // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ListBootstrapActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListBootstrapActions @@ -1262,11 +1262,11 @@ func (c *EMR) ListClustersRequest(input *ListClustersInput) (req *request.Reques // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ListClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListClusters @@ -1405,11 +1405,11 @@ func (c *EMR) ListInstanceFleetsRequest(input *ListInstanceFleetsInput) (req *re // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ListInstanceFleets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceFleets @@ -1545,11 +1545,11 @@ func (c *EMR) ListInstanceGroupsRequest(input *ListInstanceGroupsInput) (req *re // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ListInstanceGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstanceGroups @@ -1688,11 +1688,11 @@ func (c *EMR) ListInstancesRequest(input *ListInstancesInput) (req *request.Requ // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ListInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListInstances @@ -1831,11 +1831,11 @@ func (c *EMR) ListSecurityConfigurationsRequest(input *ListSecurityConfiguration // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ListSecurityConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSecurityConfigurations @@ -1973,11 +1973,11 @@ func (c *EMR) ListStepsRequest(input *ListStepsInput) (req *request.Request, out // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ListSteps for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListSteps @@ -2108,12 +2108,12 @@ func (c *EMR) ModifyClusterRequest(input *ModifyClusterInput) (req *request.Requ // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ModifyCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyCluster @@ -2197,11 +2197,11 @@ func (c *EMR) ModifyInstanceFleetRequest(input *ModifyInstanceFleetInput) (req * // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ModifyInstanceFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ModifyInstanceFleet @@ -2283,8 +2283,8 @@ func (c *EMR) ModifyInstanceGroupsRequest(input *ModifyInstanceGroupsInput) (req // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation ModifyInstanceGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -2444,11 +2444,11 @@ func (c *EMR) PutBlockPublicAccessConfigurationRequest(input *PutBlockPublicAcce // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation PutBlockPublicAccessConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/PutBlockPublicAccessConfiguration @@ -2607,11 +2607,11 @@ func (c *EMR) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, o // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation RemoveTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // This exception occurs when there is an internal failure in the EMR service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception occurs when there is something wrong with user input. // // See also, https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/RemoveTags @@ -2715,8 +2715,8 @@ func (c *EMR) RunJobFlowRequest(input *RunJobFlowInput) (req *request.Request, o // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation RunJobFlow for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -2812,8 +2812,8 @@ func (c *EMR) SetTerminationProtectionRequest(input *SetTerminationProtectionInp // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation SetTerminationProtection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -2901,8 +2901,8 @@ func (c *EMR) SetVisibleToAllUsersRequest(input *SetVisibleToAllUsersInput) (req // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation SetVisibleToAllUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -2991,8 +2991,8 @@ func (c *EMR) TerminateJobFlowsRequest(input *TerminateJobFlowsInput) (req *requ // See the AWS API reference guide for Amazon Elastic MapReduce's // API operation TerminateJobFlows for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Indicates that an error occurred while processing the request and that the // request was not completed. // @@ -7389,6 +7389,175 @@ func (s *InstanceTypeSpecification) SetWeightedCapacity(v int64) *InstanceTypeSp return s } +// Indicates that an error occurred while processing the request and that the +// request was not completed. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception occurs when there is an internal failure in the EMR service. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message associated with the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception occurs when there is something wrong with user input. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error code associated with the exception. + ErrorCode *string `min:"1" type:"string"` + + // The message associated with the exception. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // A description of a cluster (job flow). type JobFlowDetail struct { _ struct{} `type:"structure"` diff --git a/service/emr/errors.go b/service/emr/errors.go index b4bf33708ec..e831146649c 100644 --- a/service/emr/errors.go +++ b/service/emr/errors.go @@ -2,6 +2,10 @@ package emr +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerError for service response error code @@ -23,3 +27,9 @@ const ( // This exception occurs when there is something wrong with user input. ErrCodeInvalidRequestException = "InvalidRequestException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerError": newErrorInternalServerError, + "InternalServerException": newErrorInternalServerException, + "InvalidRequestException": newErrorInvalidRequestException, +} diff --git a/service/emr/service.go b/service/emr/service.go index 7c5fc6b6f8e..27a55b2528a 100644 --- a/service/emr/service.go +++ b/service/emr/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/eventbridge/api.go b/service/eventbridge/api.go index c8b5a8b1629..5185802b79c 100644 --- a/service/eventbridge/api.go +++ b/service/eventbridge/api.go @@ -70,14 +70,14 @@ func (c *EventBridge) ActivateEventSourceRequest(input *ActivateEventSourceInput // See the AWS API reference guide for Amazon EventBridge's // API operation ActivateEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The specified state isn't a valid state for an event source. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ActivateEventSource @@ -160,23 +160,23 @@ func (c *EventBridge) CreateEventBusRequest(input *CreateEventBusInput) (req *re // See the AWS API reference guide for Amazon EventBridge's // API operation CreateEventBus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource that you're trying to create already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The specified state isn't a valid state for an event source. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreateEventBus @@ -282,17 +282,17 @@ func (c *EventBridge) CreatePartnerEventSourceRequest(input *CreatePartnerEventS // See the AWS API reference guide for Amazon EventBridge's // API operation CreatePartnerEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource that you're trying to create already exists. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/CreatePartnerEventSource @@ -377,14 +377,14 @@ func (c *EventBridge) DeactivateEventSourceRequest(input *DeactivateEventSourceI // See the AWS API reference guide for Amazon EventBridge's // API operation DeactivateEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The specified state isn't a valid state for an event source. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeactivateEventSource @@ -467,8 +467,8 @@ func (c *EventBridge) DeleteEventBusRequest(input *DeleteEventBusInput) (req *re // See the AWS API reference guide for Amazon EventBridge's // API operation DeleteEventBus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteEventBus @@ -551,8 +551,8 @@ func (c *EventBridge) DeletePartnerEventSourceRequest(input *DeletePartnerEventS // See the AWS API reference guide for Amazon EventBridge's // API operation DeletePartnerEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeletePartnerEventSource @@ -642,21 +642,21 @@ func (c *EventBridge) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Re // See the AWS API reference guide for Amazon EventBridge's // API operation DeleteRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DeleteRule @@ -742,11 +742,11 @@ func (c *EventBridge) DescribeEventBusRequest(input *DescribeEventBusInput) (req // See the AWS API reference guide for Amazon EventBridge's // API operation DescribeEventBus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeEventBus @@ -827,11 +827,11 @@ func (c *EventBridge) DescribeEventSourceRequest(input *DescribeEventSourceInput // See the AWS API reference guide for Amazon EventBridge's // API operation DescribeEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeEventSource @@ -913,11 +913,11 @@ func (c *EventBridge) DescribePartnerEventSourceRequest(input *DescribePartnerEv // See the AWS API reference guide for Amazon EventBridge's // API operation DescribePartnerEventSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribePartnerEventSource @@ -998,11 +998,11 @@ func (c *EventBridge) DescribeRuleRequest(input *DescribeRuleInput) (req *reques // See the AWS API reference guide for Amazon EventBridge's // API operation DescribeRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DescribeRule @@ -1085,21 +1085,21 @@ func (c *EventBridge) DisableRuleRequest(input *DisableRuleInput) (req *request. // See the AWS API reference guide for Amazon EventBridge's // API operation DisableRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/DisableRule @@ -1182,21 +1182,21 @@ func (c *EventBridge) EnableRuleRequest(input *EnableRuleInput) (req *request.Re // See the AWS API reference guide for Amazon EventBridge's // API operation EnableRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/EnableRule @@ -1277,8 +1277,8 @@ func (c *EventBridge) ListEventBusesRequest(input *ListEventBusesInput) (req *re // See the AWS API reference guide for Amazon EventBridge's // API operation ListEventBuses for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListEventBuses @@ -1360,8 +1360,8 @@ func (c *EventBridge) ListEventSourcesRequest(input *ListEventSourcesInput) (req // See the AWS API reference guide for Amazon EventBridge's // API operation ListEventSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListEventSources @@ -1442,11 +1442,11 @@ func (c *EventBridge) ListPartnerEventSourceAccountsRequest(input *ListPartnerEv // See the AWS API reference guide for Amazon EventBridge's // API operation ListPartnerEventSourceAccounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListPartnerEventSourceAccounts @@ -1527,8 +1527,8 @@ func (c *EventBridge) ListPartnerEventSourcesRequest(input *ListPartnerEventSour // See the AWS API reference guide for Amazon EventBridge's // API operation ListPartnerEventSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListPartnerEventSources @@ -1607,11 +1607,11 @@ func (c *EventBridge) ListRuleNamesByTargetRequest(input *ListRuleNamesByTargetI // See the AWS API reference guide for Amazon EventBridge's // API operation ListRuleNamesByTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListRuleNamesByTarget @@ -1693,11 +1693,11 @@ func (c *EventBridge) ListRulesRequest(input *ListRulesInput) (req *request.Requ // See the AWS API reference guide for Amazon EventBridge's // API operation ListRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListRules @@ -1776,11 +1776,11 @@ func (c *EventBridge) ListTagsForResourceRequest(input *ListTagsForResourceInput // See the AWS API reference guide for Amazon EventBridge's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListTagsForResource @@ -1858,11 +1858,11 @@ func (c *EventBridge) ListTargetsByRuleRequest(input *ListTargetsByRuleInput) (r // See the AWS API reference guide for Amazon EventBridge's // API operation ListTargetsByRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/ListTargetsByRule @@ -1941,8 +1941,8 @@ func (c *EventBridge) PutEventsRequest(input *PutEventsInput) (req *request.Requ // See the AWS API reference guide for Amazon EventBridge's // API operation PutEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutEvents @@ -2024,8 +2024,8 @@ func (c *EventBridge) PutPartnerEventsRequest(input *PutPartnerEventsInput) (req // See the AWS API reference guide for Amazon EventBridge's // API operation PutPartnerEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutPartnerEvents @@ -2123,17 +2123,17 @@ func (c *EventBridge) PutPermissionRequest(input *PutPermissionInput) (req *requ // See the AWS API reference guide for Amazon EventBridge's // API operation PutPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" +// * PolicyLengthExceededException // The event bus policy is too long. For more information, see the limits. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutPermission @@ -2264,27 +2264,27 @@ func (c *EventBridge) PutRuleRequest(input *PutRuleInput) (req *request.Request, // See the AWS API reference guide for Amazon EventBridge's // API operation PutRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidEventPatternException "InvalidEventPatternException" +// Returned Error Types: +// * InvalidEventPatternException // The event pattern isn't valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An entity that you specified doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutRule @@ -2464,24 +2464,24 @@ func (c *EventBridge) PutTargetsRequest(input *PutTargetsInput) (req *request.Re // See the AWS API reference guide for Amazon EventBridge's // API operation PutTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You tried to create more resources than is allowed. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/PutTargets @@ -2563,14 +2563,14 @@ func (c *EventBridge) RemovePermissionRequest(input *RemovePermissionInput) (req // See the AWS API reference guide for Amazon EventBridge's // API operation RemovePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RemovePermission @@ -2658,21 +2658,21 @@ func (c *EventBridge) RemoveTargetsRequest(input *RemoveTargetsInput) (req *requ // See the AWS API reference guide for Amazon EventBridge's // API operation RemoveTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove // targets from the rule. You can't modify these managed rules by using DisableRule, // EnableRule, PutTargets, PutRule, TagResource, or UntagResource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RemoveTargets @@ -2766,17 +2766,17 @@ func (c *EventBridge) TagResourceRequest(input *TagResourceInput) (req *request. // See the AWS API reference guide for Amazon EventBridge's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove @@ -2864,11 +2864,11 @@ func (c *EventBridge) TestEventPatternRequest(input *TestEventPatternInput) (req // See the AWS API reference guide for Amazon EventBridge's // API operation TestEventPattern for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidEventPatternException "InvalidEventPatternException" +// Returned Error Types: +// * InvalidEventPatternException // The event pattern isn't valid. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/TestEventPattern @@ -2948,17 +2948,17 @@ func (c *EventBridge) UntagResourceRequest(input *UntagResourceInput) (req *requ // See the AWS API reference guide for Amazon EventBridge's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // An entity that you specified doesn't exist. // -// * ErrCodeInternalException "InternalException" +// * InternalException // This exception occurs due to unexpected causes. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // There is concurrent modification on a resource. // -// * ErrCodeManagedRuleException "ManagedRuleException" +// * ManagedRuleException // An AWS service created this rule on behalf of your account. That service // manages it. If you see this error in response to DeleteRule or RemoveTargets, // you can use the Force parameter in those calls to delete the rule or remove @@ -3241,6 +3241,57 @@ func (s *BatchRetryStrategy) SetAttempts(v int64) *BatchRetryStrategy { return s } +// There is concurrent modification on a resource. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // A JSON string that you can use to limit the event bus permissions that you're // granting to only accounts that fulfill the condition. Currently, the only // supported condition is membership in a certain AWS organization. The string @@ -4632,6 +4683,159 @@ func (s *InputTransformer) SetInputTemplate(v string) *InputTransformer { return s } +// This exception occurs due to unexpected causes. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// The event pattern isn't valid. +type InvalidEventPatternException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidEventPatternException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEventPatternException) GoString() string { + return s.String() +} + +func newErrorInvalidEventPatternException(v protocol.ResponseMetadata) error { + return &InvalidEventPatternException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEventPatternException) Code() string { + return "InvalidEventPatternException" +} + +// Message returns the exception's message. +func (s InvalidEventPatternException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEventPatternException) OrigErr() error { + return nil +} + +func (s InvalidEventPatternException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEventPatternException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEventPatternException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified state isn't a valid state for an event source. +type InvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateException) GoString() string { + return s.String() +} + +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateException) Code() string { + return "InvalidStateException" +} + +// Message returns the exception's message. +func (s InvalidStateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateException) OrigErr() error { + return nil +} + +func (s InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + // This object enables you to specify a JSON path to extract from the event // and use as the partition key for the Amazon Kinesis data stream so that you // can control the shard that the event goes to. If you don't include this parameter, @@ -4676,6 +4880,57 @@ func (s *KinesisParameters) SetPartitionKeyPath(v string) *KinesisParameters { return s } +// You tried to create more resources than is allowed. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListEventBusesInput struct { _ struct{} `type:"structure"` @@ -5463,6 +5718,61 @@ func (s *ListTargetsByRuleOutput) SetTargets(v []*Target) *ListTargetsByRuleOutp return s } +// An AWS service created this rule on behalf of your account. That service +// manages it. If you see this error in response to DeleteRule or RemoveTargets, +// you can use the Force parameter in those calls to delete the rule or remove +// targets from the rule. You can't modify these managed rules by using DisableRule, +// EnableRule, PutTargets, PutRule, TagResource, or UntagResource. +type ManagedRuleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ManagedRuleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ManagedRuleException) GoString() string { + return s.String() +} + +func newErrorManagedRuleException(v protocol.ResponseMetadata) error { + return &ManagedRuleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ManagedRuleException) Code() string { + return "ManagedRuleException" +} + +// Message returns the exception's message. +func (s ManagedRuleException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ManagedRuleException) OrigErr() error { + return nil +} + +func (s ManagedRuleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ManagedRuleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ManagedRuleException) RequestID() string { + return s.respMetadata.RequestID +} + // This structure specifies the network configuration for an ECS task. type NetworkConfiguration struct { _ struct{} `type:"structure"` @@ -5595,6 +5905,57 @@ func (s *PartnerEventSourceAccount) SetState(v string) *PartnerEventSourceAccoun return s } +// The event bus policy is too long. For more information, see the limits. +type PolicyLengthExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s PolicyLengthExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyLengthExceededException) GoString() string { + return s.String() +} + +func newErrorPolicyLengthExceededException(v protocol.ResponseMetadata) error { + return &PolicyLengthExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyLengthExceededException) Code() string { + return "PolicyLengthExceededException" +} + +// Message returns the exception's message. +func (s PolicyLengthExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyLengthExceededException) OrigErr() error { + return nil +} + +func (s PolicyLengthExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyLengthExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyLengthExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type PutEventsInput struct { _ struct{} `type:"structure"` @@ -6663,6 +7024,108 @@ func (s *RemoveTargetsResultEntry) SetTargetId(v string) *RemoveTargetsResultEnt return s } +// The resource that you're trying to create already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// An entity that you specified doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a rule in Amazon EventBridge. type Rule struct { _ struct{} `type:"structure"` diff --git a/service/eventbridge/errors.go b/service/eventbridge/errors.go index 9d10b6b3bcc..724c258a252 100644 --- a/service/eventbridge/errors.go +++ b/service/eventbridge/errors.go @@ -2,6 +2,10 @@ package eventbridge +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -62,3 +66,15 @@ const ( // An entity that you specified doesn't exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InternalException": newErrorInternalException, + "InvalidEventPatternException": newErrorInvalidEventPatternException, + "InvalidStateException": newErrorInvalidStateException, + "LimitExceededException": newErrorLimitExceededException, + "ManagedRuleException": newErrorManagedRuleException, + "PolicyLengthExceededException": newErrorPolicyLengthExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/eventbridge/service.go b/service/eventbridge/service.go index 1ac3ac96a04..34aa9d67edb 100644 --- a/service/eventbridge/service.go +++ b/service/eventbridge/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/firehose/api.go b/service/firehose/api.go index 93c9f750720..b07a4fc7ed5 100644 --- a/service/firehose/api.go +++ b/service/firehose/api.go @@ -129,17 +129,17 @@ func (c *Firehose) CreateDeliveryStreamRequest(input *CreateDeliveryStreamInput) // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation CreateDeliveryStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have already reached the limit for a requested resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is already in use and not available for this operation. // -// * ErrCodeInvalidKMSResourceException "InvalidKMSResourceException" +// * InvalidKMSResourceException // Kinesis Data Firehose throws this exception when an attempt to put records // or to start or stop delivery stream encryption fails. This happens when the // KMS service throws one of the following exception types: AccessDeniedException, @@ -232,11 +232,11 @@ func (c *Firehose) DeleteDeliveryStreamRequest(input *DeleteDeliveryStreamInput) // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation DeleteDeliveryStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is already in use and not available for this operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DeleteDeliveryStream @@ -323,8 +323,8 @@ func (c *Firehose) DescribeDeliveryStreamRequest(input *DescribeDeliveryStreamIn // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation DescribeDeliveryStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/DescribeDeliveryStream @@ -485,14 +485,14 @@ func (c *Firehose) ListTagsForDeliveryStreamRequest(input *ListTagsForDeliverySt // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation ListTagsForDeliveryStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have already reached the limit for a requested resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/ListTagsForDeliveryStream @@ -606,20 +606,20 @@ func (c *Firehose) PutRecordRequest(input *PutRecordInput) (req *request.Request // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation PutRecord for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeInvalidKMSResourceException "InvalidKMSResourceException" +// * InvalidKMSResourceException // Kinesis Data Firehose throws this exception when an attempt to put records // or to start or stop delivery stream encryption fails. This happens when the // KMS service throws one of the following exception types: AccessDeniedException, // InvalidStateException, DisabledException, or NotFoundException. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. If you continue // to see the exception, throughput limits for the delivery stream may have // been exceeded. For more information about limits and how to request an increase, @@ -762,20 +762,20 @@ func (c *Firehose) PutRecordBatchRequest(input *PutRecordBatchInput) (req *reque // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation PutRecordBatch for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeInvalidKMSResourceException "InvalidKMSResourceException" +// * InvalidKMSResourceException // Kinesis Data Firehose throws this exception when an attempt to put records // or to start or stop delivery stream encryption fails. This happens when the // KMS service throws one of the following exception types: AccessDeniedException, // InvalidStateException, DisabledException, or NotFoundException. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. If you continue // to see the exception, throughput limits for the delivery stream may have // been exceeded. For more information about limits and how to request an increase, @@ -894,20 +894,20 @@ func (c *Firehose) StartDeliveryStreamEncryptionRequest(input *StartDeliveryStre // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation StartDeliveryStreamEncryption for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is already in use and not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have already reached the limit for a requested resource. // -// * ErrCodeInvalidKMSResourceException "InvalidKMSResourceException" +// * InvalidKMSResourceException // Kinesis Data Firehose throws this exception when an attempt to put records // or to start or stop delivery stream encryption fails. This happens when the // KMS service throws one of the following exception types: AccessDeniedException, @@ -1011,17 +1011,17 @@ func (c *Firehose) StopDeliveryStreamEncryptionRequest(input *StopDeliveryStream // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation StopDeliveryStreamEncryption for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is already in use and not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have already reached the limit for a requested resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/StopDeliveryStreamEncryption @@ -1111,17 +1111,17 @@ func (c *Firehose) TagDeliveryStreamRequest(input *TagDeliveryStreamInput) (req // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation TagDeliveryStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is already in use and not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have already reached the limit for a requested resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/TagDeliveryStream @@ -1205,17 +1205,17 @@ func (c *Firehose) UntagDeliveryStreamRequest(input *UntagDeliveryStreamInput) ( // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation UntagDeliveryStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is already in use and not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have already reached the limit for a requested resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/UntagDeliveryStream @@ -1323,17 +1323,17 @@ func (c *Firehose) UpdateDestinationRequest(input *UpdateDestinationInput) (req // See the AWS API reference guide for Amazon Kinesis Firehose's // API operation UpdateDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The specified input parameter has a value that is not valid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is already in use and not available for this operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Another modification has already happened. Fetch VersionId again and use // it to update the destination. // @@ -1467,6 +1467,64 @@ func (s *CloudWatchLoggingOptions) SetLogStreamName(v string) *CloudWatchLogging return s } +// Another modification has already happened. Fetch VersionId again and use +// it to update the destination. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a COPY command for Amazon Redshift. type CopyCommand struct { _ struct{} `type:"structure"` @@ -3633,6 +3691,124 @@ func (s *InputFormatConfiguration) SetDeserializer(v *Deserializer) *InputFormat return s } +// The specified input parameter has a value that is not valid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// Kinesis Data Firehose throws this exception when an attempt to put records +// or to start or stop delivery stream encryption fails. This happens when the +// KMS service throws one of the following exception types: AccessDeniedException, +// InvalidStateException, DisabledException, or NotFoundException. +type InvalidKMSResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidKMSResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidKMSResourceException) GoString() string { + return s.String() +} + +func newErrorInvalidKMSResourceException(v protocol.ResponseMetadata) error { + return &InvalidKMSResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidKMSResourceException) Code() string { + return "InvalidKMSResourceException" +} + +// Message returns the exception's message. +func (s InvalidKMSResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidKMSResourceException) OrigErr() error { + return nil +} + +func (s InvalidKMSResourceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidKMSResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidKMSResourceException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an encryption key for a destination in Amazon S3. type KMSEncryptionConfig struct { _ struct{} `type:"structure"` @@ -3786,6 +3962,63 @@ func (s *KinesisStreamSourceDescription) SetRoleARN(v string) *KinesisStreamSour return s } +// You have already reached the limit for a requested resource. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDeliveryStreamsInput struct { _ struct{} `type:"structure"` @@ -5305,6 +5538,120 @@ func (s *RedshiftRetryOptions) SetDurationInSeconds(v int64) *RedshiftRetryOptio return s } +// The resource is already in use and not available for this operation. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the configuration of a destination in Amazon S3. type S3DestinationConfiguration struct { _ struct{} `type:"structure"` @@ -5809,6 +6156,66 @@ func (s *Serializer) SetParquetSerDe(v *ParquetSerDe) *Serializer { return s } +// The service is unavailable. Back off and retry the operation. If you continue +// to see the exception, throughput limits for the delivery stream may have +// been exceeded. For more information about limits and how to request an increase, +// see Amazon Kinesis Data Firehose Limits (https://docs.aws.amazon.com/firehose/latest/dev/limits.html). +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Details about a Kinesis data stream used as the source for a Kinesis Data // Firehose delivery stream. type SourceDescription struct { diff --git a/service/firehose/errors.go b/service/firehose/errors.go index e7d134f64e9..3adb1d2d85a 100644 --- a/service/firehose/errors.go +++ b/service/firehose/errors.go @@ -2,6 +2,10 @@ package firehose +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -53,3 +57,13 @@ const ( // see Amazon Kinesis Data Firehose Limits (https://docs.aws.amazon.com/firehose/latest/dev/limits.html). ErrCodeServiceUnavailableException = "ServiceUnavailableException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidKMSResourceException": newErrorInvalidKMSResourceException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, +} diff --git a/service/firehose/service.go b/service/firehose/service.go index 3717a17a2ed..d279f87a652 100644 --- a/service/firehose/service.go +++ b/service/firehose/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/fms/api.go b/service/fms/api.go index e829fed156c..52cabde0cc2 100644 --- a/service/fms/api.go +++ b/service/fms/api.go @@ -74,19 +74,19 @@ func (c *FMS) AssociateAdminAccountRequest(input *AssociateAdminAccountInput) (r // See the AWS API reference guide for Firewall Management Service's // API operation AssociateAdminAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidOperationException "InvalidOperationException" +// Returned Error Types: +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The parameters of the request were invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -168,16 +168,16 @@ func (c *FMS) DeleteNotificationChannelRequest(input *DeleteNotificationChannelI // See the AWS API reference guide for Firewall Management Service's // API operation DeleteNotificationChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -257,16 +257,16 @@ func (c *FMS) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // See the AWS API reference guide for Firewall Management Service's // API operation DeletePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -348,16 +348,16 @@ func (c *FMS) DisassociateAdminAccountRequest(input *DisassociateAdminAccountInp // See the AWS API reference guide for Firewall Management Service's // API operation DisassociateAdminAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidOperationException "InvalidOperationException" +// Returned Error Types: +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -437,16 +437,16 @@ func (c *FMS) GetAdminAccountRequest(input *GetAdminAccountInput) (req *request. // See the AWS API reference guide for Firewall Management Service's // API operation GetAdminAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidOperationException "InvalidOperationException" +// Returned Error Types: +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -531,11 +531,11 @@ func (c *FMS) GetComplianceDetailRequest(input *GetComplianceDetailInput) (req * // See the AWS API reference guide for Firewall Management Service's // API operation GetComplianceDetail for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -615,16 +615,16 @@ func (c *FMS) GetNotificationChannelRequest(input *GetNotificationChannelInput) // See the AWS API reference guide for Firewall Management Service's // API operation GetNotificationChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -703,20 +703,20 @@ func (c *FMS) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out // See the AWS API reference guide for Firewall Management Service's // API operation GetPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidTypeException "InvalidTypeException" +// * InvalidTypeException // The value of the Type parameter is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/GetPolicy @@ -796,14 +796,14 @@ func (c *FMS) GetProtectionStatusRequest(input *GetProtectionStatusInput) (req * // See the AWS API reference guide for Firewall Management Service's // API operation GetProtectionStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The parameters of the request were invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -890,11 +890,11 @@ func (c *FMS) ListComplianceStatusRequest(input *ListComplianceStatusInput) (req // See the AWS API reference guide for Firewall Management Service's // API operation ListComplianceStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -1035,11 +1035,11 @@ func (c *FMS) ListMemberAccountsRequest(input *ListMemberAccountsInput) (req *re // See the AWS API reference guide for Firewall Management Service's // API operation ListMemberAccounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -1176,22 +1176,22 @@ func (c *FMS) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // See the AWS API reference guide for Firewall Management Service's // API operation ListPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The operation exceeds a resource limit, for example, the maximum number of // policy objects that you can create for an AWS account. For more information, // see Firewall Manager Limits (https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -1322,20 +1322,20 @@ func (c *FMS) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Firewall Management Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The parameters of the request were invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/ListTagsForResource @@ -1415,16 +1415,16 @@ func (c *FMS) PutNotificationChannelRequest(input *PutNotificationChannelInput) // See the AWS API reference guide for Firewall Management Service's // API operation PutNotificationChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -1522,29 +1522,29 @@ func (c *FMS) PutPolicyRequest(input *PutPolicyInput) (req *request.Request, out // See the AWS API reference guide for Firewall Management Service's // API operation PutPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The parameters of the request were invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The operation exceeds a resource limit, for example, the maximum number of // policy objects that you can create for an AWS account. For more information, // see Firewall Manager Limits (https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidTypeException "InvalidTypeException" +// * InvalidTypeException // The value of the Type parameter is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/PutPolicy @@ -1623,23 +1623,23 @@ func (c *FMS) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Firewall Management Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The parameters of the request were invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The operation exceeds a resource limit, for example, the maximum number of // policy objects that you can create for an AWS account. For more information, // see Firewall Manager Limits (https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html) @@ -1721,20 +1721,20 @@ func (c *FMS) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Firewall Management Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example, you might // have submitted an AssociateAdminAccount request, but the account ID that // you submitted was already set as the AWS Firewall Manager administrator. // -// * ErrCodeInternalErrorException "InternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The parameters of the request were invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fms-2018-01-01/UntagResource @@ -2485,6 +2485,292 @@ func (s *GetProtectionStatusOutput) SetServiceType(v string) *GetProtectionStatu return s } +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} + +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} + +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The parameters of the request were invalid. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because there was nothing to do. For example, you might +// have submitted an AssociateAdminAccount request, but the account ID that +// you submitted was already set as the AWS Firewall Manager administrator. +type InvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOperationException) GoString() string { + return s.String() +} + +func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { + return &InvalidOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOperationException) Code() string { + return "InvalidOperationException" +} + +// Message returns the exception's message. +func (s InvalidOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOperationException) OrigErr() error { + return nil +} + +func (s InvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The value of the Type parameter is invalid. +type InvalidTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTypeException) GoString() string { + return s.String() +} + +func newErrorInvalidTypeException(v protocol.ResponseMetadata) error { + return &InvalidTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTypeException) Code() string { + return "InvalidTypeException" +} + +// Message returns the exception's message. +func (s InvalidTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTypeException) OrigErr() error { + return nil +} + +func (s InvalidTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTypeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation exceeds a resource limit, for example, the maximum number of +// policy objects that you can create for an AWS account. For more information, +// see Firewall Manager Limits (https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html) +// in the AWS WAF Developer Guide. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListComplianceStatusInput struct { _ struct{} `type:"structure"` @@ -3461,6 +3747,62 @@ func (s *PutPolicyOutput) SetPolicyArn(v string) *PutPolicyOutput { return s } +// The specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The resource tags that AWS Firewall Manager uses to determine if a particular // resource should be included or excluded from the AWS Firewall Manager policy. // Tags enable you to categorize your AWS resources in different ways, for example, diff --git a/service/fms/errors.go b/service/fms/errors.go index 596738bf347..0fc209a4a74 100644 --- a/service/fms/errors.go +++ b/service/fms/errors.go @@ -2,6 +2,10 @@ package fms +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalErrorException for service response error code @@ -46,3 +50,12 @@ const ( // The specified resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalErrorException": newErrorInternalErrorException, + "InvalidInputException": newErrorInvalidInputException, + "InvalidOperationException": newErrorInvalidOperationException, + "InvalidTypeException": newErrorInvalidTypeException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/fms/service.go b/service/fms/service.go index 8afc9efe042..5f05bfe605d 100644 --- a/service/fms/service.go +++ b/service/fms/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/forecastqueryservice/api.go b/service/forecastqueryservice/api.go index 1055e602a0c..926c51011e3 100644 --- a/service/forecastqueryservice/api.go +++ b/service/forecastqueryservice/api.go @@ -3,9 +3,12 @@ package forecastqueryservice import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opQueryForecast = "QueryForecast" @@ -72,21 +75,21 @@ func (c *ForecastQueryService) QueryForecastRequest(input *QueryForecastInput) ( // See the AWS API reference guide for Amazon Forecast Query Service's // API operation QueryForecast for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find that resource. Check the information that you've provided and // try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The value that you provided was invalid or too long. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. Tokens expire after 24 hours. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecastquery-2018-06-26/QueryForecast @@ -179,6 +182,174 @@ func (s *Forecast) SetPredictions(v map[string][]*DataPoint) *Forecast { return s } +// The value that you provided was invalid or too long. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +// The token is not valid. Tokens expire after 24 hours. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The limit on the number of requests per second has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type QueryForecastInput struct { _ struct{} `type:"structure"` @@ -301,3 +472,116 @@ func (s *QueryForecastOutput) SetForecast(v *Forecast) *QueryForecastOutput { s.Forecast = v return s } + +// The specified resource is in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// We can't find that resource. Check the information that you've provided and +// try again. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/forecastqueryservice/errors.go b/service/forecastqueryservice/errors.go index d706a6d13d7..91f3a957322 100644 --- a/service/forecastqueryservice/errors.go +++ b/service/forecastqueryservice/errors.go @@ -2,6 +2,10 @@ package forecastqueryservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidInputException for service response error code @@ -35,3 +39,11 @@ const ( // try again. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidInputException": newErrorInvalidInputException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/forecastqueryservice/service.go b/service/forecastqueryservice/service.go index a2a1f57e651..aab6c681d83 100644 --- a/service/forecastqueryservice/service.go +++ b/service/forecastqueryservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/forecastservice/api.go b/service/forecastservice/api.go index d35e335105b..93cc9f06625 100644 --- a/service/forecastservice/api.go +++ b/service/forecastservice/api.go @@ -91,15 +91,15 @@ func (c *ForecastService) CreateDatasetRequest(input *CreateDatasetInput) (req * // See the AWS API reference guide for Amazon Forecast Service's // API operation CreateDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // There is already a resource with this name. Try again with a different name. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of resources per account has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/CreateDataset @@ -188,22 +188,22 @@ func (c *ForecastService) CreateDatasetGroupRequest(input *CreateDatasetGroupInp // See the AWS API reference guide for Amazon Forecast Service's // API operation CreateDatasetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // There is already a resource with this name. Try again with a different name. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of resources per account has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/CreateDatasetGroup @@ -297,22 +297,22 @@ func (c *ForecastService) CreateDatasetImportJobRequest(input *CreateDatasetImpo // See the AWS API reference guide for Amazon Forecast Service's // API operation CreateDatasetImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // There is already a resource with this name. Try again with a different name. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of resources per account has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/CreateDatasetImportJob @@ -409,22 +409,22 @@ func (c *ForecastService) CreateForecastRequest(input *CreateForecastInput) (req // See the AWS API reference guide for Amazon Forecast Service's // API operation CreateForecast for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // There is already a resource with this name. Try again with a different name. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of resources per account has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/CreateForecast @@ -521,22 +521,22 @@ func (c *ForecastService) CreateForecastExportJobRequest(input *CreateForecastEx // See the AWS API reference guide for Amazon Forecast Service's // API operation CreateForecastExportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // There is already a resource with this name. Try again with a different name. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of resources per account has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/CreateForecastExportJob @@ -659,22 +659,22 @@ func (c *ForecastService) CreatePredictorRequest(input *CreatePredictorInput) (r // See the AWS API reference guide for Amazon Forecast Service's // API operation CreatePredictor for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // There is already a resource with this name. Try again with a different name. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of resources per account has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/CreatePredictor @@ -755,16 +755,16 @@ func (c *ForecastService) DeleteDatasetRequest(input *DeleteDatasetInput) (req * // See the AWS API reference guide for Amazon Forecast Service's // API operation DeleteDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeleteDataset @@ -847,16 +847,16 @@ func (c *ForecastService) DeleteDatasetGroupRequest(input *DeleteDatasetGroupInp // See the AWS API reference guide for Amazon Forecast Service's // API operation DeleteDatasetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeleteDatasetGroup @@ -937,16 +937,16 @@ func (c *ForecastService) DeleteDatasetImportJobRequest(input *DeleteDatasetImpo // See the AWS API reference guide for Amazon Forecast Service's // API operation DeleteDatasetImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeleteDatasetImportJob @@ -1030,16 +1030,16 @@ func (c *ForecastService) DeleteForecastRequest(input *DeleteForecastInput) (req // See the AWS API reference guide for Amazon Forecast Service's // API operation DeleteForecast for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeleteForecast @@ -1120,16 +1120,16 @@ func (c *ForecastService) DeleteForecastExportJobRequest(input *DeleteForecastEx // See the AWS API reference guide for Amazon Forecast Service's // API operation DeleteForecastExportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeleteForecastExportJob @@ -1210,16 +1210,16 @@ func (c *ForecastService) DeletePredictorRequest(input *DeletePredictorInput) (r // See the AWS API reference guide for Amazon Forecast Service's // API operation DeletePredictor for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/DeletePredictor @@ -1306,12 +1306,12 @@ func (c *ForecastService) DescribeDatasetRequest(input *DescribeDatasetInput) (r // See the AWS API reference guide for Amazon Forecast Service's // API operation DescribeDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // @@ -1401,12 +1401,12 @@ func (c *ForecastService) DescribeDatasetGroupRequest(input *DescribeDatasetGrou // See the AWS API reference guide for Amazon Forecast Service's // API operation DescribeDatasetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // @@ -1500,12 +1500,12 @@ func (c *ForecastService) DescribeDatasetImportJobRequest(input *DescribeDataset // See the AWS API reference guide for Amazon Forecast Service's // API operation DescribeDatasetImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // @@ -1597,12 +1597,12 @@ func (c *ForecastService) DescribeForecastRequest(input *DescribeForecastInput) // See the AWS API reference guide for Amazon Forecast Service's // API operation DescribeForecast for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // @@ -1693,12 +1693,12 @@ func (c *ForecastService) DescribeForecastExportJobRequest(input *DescribeForeca // See the AWS API reference guide for Amazon Forecast Service's // API operation DescribeForecastExportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // @@ -1794,12 +1794,12 @@ func (c *ForecastService) DescribePredictorRequest(input *DescribePredictorInput // See the AWS API reference guide for Amazon Forecast Service's // API operation DescribePredictor for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // @@ -1896,16 +1896,16 @@ func (c *ForecastService) GetAccuracyMetricsRequest(input *GetAccuracyMetricsInp // See the AWS API reference guide for Amazon Forecast Service's // API operation GetAccuracyMetrics for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/GetAccuracyMetrics @@ -1993,8 +1993,8 @@ func (c *ForecastService) ListDatasetGroupsRequest(input *ListDatasetGroupsInput // See the AWS API reference guide for Amazon Forecast Service's // API operation ListDatasetGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. Tokens expire after 24 hours. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/ListDatasetGroups @@ -2134,11 +2134,11 @@ func (c *ForecastService) ListDatasetImportJobsRequest(input *ListDatasetImportJ // See the AWS API reference guide for Amazon Forecast Service's // API operation ListDatasetImportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. Tokens expire after 24 hours. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // @@ -2278,8 +2278,8 @@ func (c *ForecastService) ListDatasetsRequest(input *ListDatasetsInput) (req *re // See the AWS API reference guide for Amazon Forecast Service's // API operation ListDatasets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. Tokens expire after 24 hours. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/ListDatasets @@ -2419,11 +2419,11 @@ func (c *ForecastService) ListForecastExportJobsRequest(input *ListForecastExpor // See the AWS API reference guide for Amazon Forecast Service's // API operation ListForecastExportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. Tokens expire after 24 hours. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // @@ -2564,11 +2564,11 @@ func (c *ForecastService) ListForecastsRequest(input *ListForecastsInput) (req * // See the AWS API reference guide for Amazon Forecast Service's // API operation ListForecasts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. Tokens expire after 24 hours. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // @@ -2709,11 +2709,11 @@ func (c *ForecastService) ListPredictorsRequest(input *ListPredictorsInput) (req // See the AWS API reference guide for Amazon Forecast Service's // API operation ListPredictors for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. Tokens expire after 24 hours. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // @@ -2849,16 +2849,16 @@ func (c *ForecastService) UpdateDatasetGroupRequest(input *UpdateDatasetGroupInp // See the AWS API reference guide for Amazon Forecast Service's // API operation UpdateDatasetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // We can't process the request because it includes an invalid value or a value // that exceeds the valid range. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find a resource with that Amazon Resource Name (ARN). Check the // ARN and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/forecast-2018-06-26/UpdateDatasetGroup @@ -6466,6 +6466,175 @@ func (s *IntegerParameterRange) SetScalingType(v string) *IntegerParameterRange return s } +// We can't process the request because it includes an invalid value or a value +// that exceeds the valid range. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +// The token is not valid. Tokens expire after 24 hours. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The limit on the number of resources per account has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDatasetGroupsInput struct { _ struct{} `type:"structure"` @@ -7404,6 +7573,175 @@ func (s *PredictorSummary) SetStatus(v string) *PredictorSummary { return s } +// There is already a resource with this name. Try again with a different name. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource is in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// We can't find a resource with that Amazon Resource Name (ARN). Check the +// ARN and try again. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The path to the file(s) in an Amazon Simple Storage Service (Amazon S3) bucket, // and an AWS Identity and Access Management (IAM) role that Amazon Forecast // can assume to access the file(s). Optionally, includes an AWS Key Management diff --git a/service/forecastservice/errors.go b/service/forecastservice/errors.go index 4b10351f3dd..b60975e2ff7 100644 --- a/service/forecastservice/errors.go +++ b/service/forecastservice/errors.go @@ -2,6 +2,10 @@ package forecastservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidInputException for service response error code @@ -42,3 +46,12 @@ const ( // ARN and try again. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidInputException": newErrorInvalidInputException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/forecastservice/service.go b/service/forecastservice/service.go index b8f36fdaeab..55b1aaccd97 100644 --- a/service/forecastservice/service.go +++ b/service/forecastservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/frauddetector/api.go b/service/frauddetector/api.go index 0dbcb4b1dc2..ab55f93fc0d 100644 --- a/service/frauddetector/api.go +++ b/service/frauddetector/api.go @@ -65,14 +65,14 @@ func (c *FraudDetector) BatchCreateVariableRequest(input *BatchCreateVariableInp // See the AWS API reference guide for Amazon Fraud Detector's // API operation BatchCreateVariable for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchCreateVariable @@ -150,14 +150,14 @@ func (c *FraudDetector) BatchGetVariableRequest(input *BatchGetVariableInput) (r // See the AWS API reference guide for Amazon Fraud Detector's // API operation BatchGetVariable for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/BatchGetVariable @@ -235,17 +235,17 @@ func (c *FraudDetector) CreateDetectorVersionRequest(input *CreateDetectorVersio // See the AWS API reference guide for Amazon Fraud Detector's // API operation CreateDetectorVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateDetectorVersion @@ -323,14 +323,14 @@ func (c *FraudDetector) CreateModelVersionRequest(input *CreateModelVersionInput // See the AWS API reference guide for Amazon Fraud Detector's // API operation CreateModelVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateModelVersion @@ -408,14 +408,14 @@ func (c *FraudDetector) CreateRuleRequest(input *CreateRuleInput) (req *request. // See the AWS API reference guide for Amazon Fraud Detector's // API operation CreateRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateRule @@ -494,14 +494,14 @@ func (c *FraudDetector) CreateVariableRequest(input *CreateVariableInput) (req * // See the AWS API reference guide for Amazon Fraud Detector's // API operation CreateVariable for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/CreateVariable @@ -580,17 +580,17 @@ func (c *FraudDetector) DeleteDetectorVersionRequest(input *DeleteDetectorVersio // See the AWS API reference guide for Amazon Fraud Detector's // API operation DeleteDetectorVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteDetectorVersion @@ -669,11 +669,11 @@ func (c *FraudDetector) DeleteEventRequest(input *DeleteEventInput) (req *reques // See the AWS API reference guide for Amazon Fraud Detector's // API operation DeleteEvent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DeleteEvent @@ -751,17 +751,17 @@ func (c *FraudDetector) DescribeDetectorRequest(input *DescribeDetectorInput) (r // See the AWS API reference guide for Amazon Fraud Detector's // API operation DescribeDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeDetector @@ -847,17 +847,17 @@ func (c *FraudDetector) DescribeModelVersionsRequest(input *DescribeModelVersion // See the AWS API reference guide for Amazon Fraud Detector's // API operation DescribeModelVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/DescribeModelVersions @@ -987,17 +987,17 @@ func (c *FraudDetector) GetDetectorVersionRequest(input *GetDetectorVersionInput // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetDetectorVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectorVersion @@ -1085,17 +1085,17 @@ func (c *FraudDetector) GetDetectorsRequest(input *GetDetectorsInput) (req *requ // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetDetectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetDetectors @@ -1237,17 +1237,17 @@ func (c *FraudDetector) GetExternalModelsRequest(input *GetExternalModelsInput) // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetExternalModels for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetExternalModels @@ -1377,17 +1377,17 @@ func (c *FraudDetector) GetModelVersionRequest(input *GetModelVersionInput) (req // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetModelVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModelVersion @@ -1472,17 +1472,17 @@ func (c *FraudDetector) GetModelsRequest(input *GetModelsInput) (req *request.Re // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetModels for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetModels @@ -1623,17 +1623,17 @@ func (c *FraudDetector) GetOutcomesRequest(input *GetOutcomesInput) (req *reques // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetOutcomes for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetOutcomes @@ -1764,17 +1764,17 @@ func (c *FraudDetector) GetPredictionRequest(input *GetPredictionInput) (req *re // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetPrediction for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetPrediction @@ -1858,17 +1858,17 @@ func (c *FraudDetector) GetRulesRequest(input *GetRulesInput) (req *request.Requ // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetRules @@ -2009,17 +2009,17 @@ func (c *FraudDetector) GetVariablesRequest(input *GetVariablesInput) (req *requ // See the AWS API reference guide for Amazon Fraud Detector's // API operation GetVariables for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/GetVariables @@ -2150,14 +2150,14 @@ func (c *FraudDetector) PutDetectorRequest(input *PutDetectorInput) (req *reques // See the AWS API reference guide for Amazon Fraud Detector's // API operation PutDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutDetector @@ -2238,14 +2238,14 @@ func (c *FraudDetector) PutExternalModelRequest(input *PutExternalModelInput) (r // See the AWS API reference guide for Amazon Fraud Detector's // API operation PutExternalModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutExternalModel @@ -2324,14 +2324,14 @@ func (c *FraudDetector) PutModelRequest(input *PutModelInput) (req *request.Requ // See the AWS API reference guide for Amazon Fraud Detector's // API operation PutModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutModel @@ -2410,14 +2410,14 @@ func (c *FraudDetector) PutOutcomeRequest(input *PutOutcomeInput) (req *request. // See the AWS API reference guide for Amazon Fraud Detector's // API operation PutOutcome for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/PutOutcome @@ -2498,17 +2498,17 @@ func (c *FraudDetector) UpdateDetectorVersionRequest(input *UpdateDetectorVersio // See the AWS API reference guide for Amazon Fraud Detector's // API operation UpdateDetectorVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersion @@ -2588,14 +2588,14 @@ func (c *FraudDetector) UpdateDetectorVersionMetadataRequest(input *UpdateDetect // See the AWS API reference guide for Amazon Fraud Detector's // API operation UpdateDetectorVersionMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionMetadata @@ -2676,17 +2676,17 @@ func (c *FraudDetector) UpdateDetectorVersionStatusRequest(input *UpdateDetector // See the AWS API reference guide for Amazon Fraud Detector's // API operation UpdateDetectorVersionStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateDetectorVersionStatus @@ -2770,17 +2770,17 @@ func (c *FraudDetector) UpdateModelVersionRequest(input *UpdateModelVersionInput // See the AWS API reference guide for Amazon Fraud Detector's // API operation UpdateModelVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateModelVersion @@ -2859,17 +2859,17 @@ func (c *FraudDetector) UpdateRuleMetadataRequest(input *UpdateRuleMetadataInput // See the AWS API reference guide for Amazon Fraud Detector's // API operation UpdateRuleMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleMetadata @@ -2947,17 +2947,17 @@ func (c *FraudDetector) UpdateRuleVersionRequest(input *UpdateRuleVersionInput) // See the AWS API reference guide for Amazon Fraud Detector's // API operation UpdateRuleVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateRuleVersion @@ -3036,17 +3036,17 @@ func (c *FraudDetector) UpdateVariableRequest(input *UpdateVariableInput) (req * // See the AWS API reference guide for Amazon Fraud Detector's // API operation UpdateVariable for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // An exception indicating a specified value is not allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // An exception indicating the specified resource was not found. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An exception indicating an internal server error. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // An exception indicating a throttling error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/frauddetector-2019-11-15/UpdateVariable @@ -5307,6 +5307,62 @@ func (s *GetVariablesOutput) SetVariables(v []*Variable) *GetVariablesOutput { return s } +// An exception indicating an internal server error. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + // The label schema. type LabelSchema struct { _ struct{} `type:"structure"` @@ -6377,6 +6433,62 @@ func (s PutOutcomeOutput) GoString() string { return s.String() } +// An exception indicating the specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The role used to invoke external model endpoints. type Role struct { _ struct{} `type:"structure"` @@ -6602,6 +6714,62 @@ func (s *RuleDetail) SetRuleVersion(v string) *RuleDetail { return s } +// An exception indicating a throttling error. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // The training data source. type TrainingDataSource struct { _ struct{} `type:"structure"` @@ -7373,6 +7541,62 @@ func (s UpdateVariableOutput) GoString() string { return s.String() } +// An exception indicating a specified value is not allowed. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // The variable. type Variable struct { _ struct{} `type:"structure"` diff --git a/service/frauddetector/errors.go b/service/frauddetector/errors.go index cb99ba87bae..f4191a6cd26 100644 --- a/service/frauddetector/errors.go +++ b/service/frauddetector/errors.go @@ -2,6 +2,10 @@ package frauddetector +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerException for service response error code @@ -28,3 +32,10 @@ const ( // An exception indicating a specified value is not allowed. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/frauddetector/service.go b/service/frauddetector/service.go index 355e73465d5..06762929eaf 100644 --- a/service/frauddetector/service.go +++ b/service/frauddetector/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/fsx/api.go b/service/fsx/api.go index b86115c95fe..bec2a834677 100644 --- a/service/fsx/api.go +++ b/service/fsx/api.go @@ -75,21 +75,21 @@ func (c *FSx) CancelDataRepositoryTaskRequest(input *CancelDataRepositoryTaskInp // See the AWS API reference guide for Amazon FSx's // API operation CancelDataRepositoryTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeUnsupportedOperation "UnsupportedOperation" +// * UnsupportedOperation // The requested operation is not supported for this resource or API. // -// * ErrCodeDataRepositoryTaskNotFound "DataRepositoryTaskNotFound" +// * DataRepositoryTaskNotFound // The data repository task or tasks you specified could not be found. // -// * ErrCodeDataRepositoryTaskEnded "DataRepositoryTaskEnded" +// * DataRepositoryTaskEnded // The data repository task could not be canceled because the task has already // ended. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CancelDataRepositoryTask @@ -193,30 +193,30 @@ func (c *FSx) CreateBackupRequest(input *CreateBackupInput) (req *request.Reques // See the AWS API reference guide for Amazon FSx's // API operation CreateBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeUnsupportedOperation "UnsupportedOperation" +// * UnsupportedOperation // The requested operation is not supported for this resource or API. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // No Amazon FSx file systems were found based upon supplied parameters. // -// * ErrCodeBackupInProgress "BackupInProgress" +// * BackupInProgress // Another backup is already under way. Wait for completion before initiating // additional backups of this file system. // -// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// * IncompatibleParameterError // The error returned when a second request is received with the same client // request token but different parameters settings. A client request token should // always uniquely identify a single request. // -// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// * ServiceLimitExceeded // An error indicating that a particular service limit was exceeded. You can // increase some service limits by contacting AWS Support. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateBackup @@ -303,29 +303,29 @@ func (c *FSx) CreateDataRepositoryTaskRequest(input *CreateDataRepositoryTaskInp // See the AWS API reference guide for Amazon FSx's // API operation CreateDataRepositoryTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeUnsupportedOperation "UnsupportedOperation" +// * UnsupportedOperation // The requested operation is not supported for this resource or API. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // No Amazon FSx file systems were found based upon supplied parameters. // -// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// * IncompatibleParameterError // The error returned when a second request is received with the same client // request token but different parameters settings. A client request token should // always uniquely identify a single request. // -// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// * ServiceLimitExceeded // An error indicating that a particular service limit was exceeded. You can // increase some service limits by contacting AWS Support. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // -// * ErrCodeDataRepositoryTaskExecuting "DataRepositoryTaskExecuting" +// * DataRepositoryTaskExecuting // An existing data repository task is currently executing on the file system. // Wait until the existing task has completed, then create the new task. // @@ -432,25 +432,25 @@ func (c *FSx) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // See the AWS API reference guide for Amazon FSx's // API operation CreateFileSystem for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeActiveDirectoryError "ActiveDirectoryError" +// * ActiveDirectoryError // An Active Directory error. // -// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// * IncompatibleParameterError // The error returned when a second request is received with the same client // request token but different parameters settings. A client request token should // always uniquely identify a single request. // -// * ErrCodeInvalidImportPath "InvalidImportPath" +// * InvalidImportPath // The path provided for data repository import isn't valid. // -// * ErrCodeInvalidExportPath "InvalidExportPath" +// * InvalidExportPath // The path provided for data repository export isn't valid. // -// * ErrCodeInvalidNetworkSettings "InvalidNetworkSettings" +// * InvalidNetworkSettings // One or more network settings specified in the request are invalid. InvalidVpcId // means that the ID passed for the virtual private cloud (VPC) is invalid. // InvalidSubnetIds returns the list of IDs for subnets that are either invalid @@ -458,14 +458,14 @@ func (c *FSx) CreateFileSystemRequest(input *CreateFileSystemInput) (req *reques // of IDs for security groups that are either invalid or not part of the VPC // specified. // -// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// * ServiceLimitExceeded // An error indicating that a particular service limit was exceeded. You can // increase some service limits by contacting AWS Support. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // -// * ErrCodeMissingFileSystemConfiguration "MissingFileSystemConfiguration" +// * MissingFileSystemConfiguration // File system configuration is required for this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateFileSystem @@ -573,19 +573,19 @@ func (c *FSx) CreateFileSystemFromBackupRequest(input *CreateFileSystemFromBacku // See the AWS API reference guide for Amazon FSx's // API operation CreateFileSystemFromBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeActiveDirectoryError "ActiveDirectoryError" +// * ActiveDirectoryError // An Active Directory error. // -// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// * IncompatibleParameterError // The error returned when a second request is received with the same client // request token but different parameters settings. A client request token should // always uniquely identify a single request. // -// * ErrCodeInvalidNetworkSettings "InvalidNetworkSettings" +// * InvalidNetworkSettings // One or more network settings specified in the request are invalid. InvalidVpcId // means that the ID passed for the virtual private cloud (VPC) is invalid. // InvalidSubnetIds returns the list of IDs for subnets that are either invalid @@ -593,17 +593,17 @@ func (c *FSx) CreateFileSystemFromBackupRequest(input *CreateFileSystemFromBacku // of IDs for security groups that are either invalid or not part of the VPC // specified. // -// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// * ServiceLimitExceeded // An error indicating that a particular service limit was exceeded. You can // increase some service limits by contacting AWS Support. // -// * ErrCodeBackupNotFound "BackupNotFound" +// * BackupNotFound // No Amazon FSx backups were found based upon the supplied parameters. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // -// * ErrCodeMissingFileSystemConfiguration "MissingFileSystemConfiguration" +// * MissingFileSystemConfiguration // File system configuration is required for this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/CreateFileSystemFromBackup @@ -688,26 +688,26 @@ func (c *FSx) DeleteBackupRequest(input *DeleteBackupInput) (req *request.Reques // See the AWS API reference guide for Amazon FSx's // API operation DeleteBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeBackupInProgress "BackupInProgress" +// * BackupInProgress // Another backup is already under way. Wait for completion before initiating // additional backups of this file system. // -// * ErrCodeBackupNotFound "BackupNotFound" +// * BackupNotFound // No Amazon FSx backups were found based upon the supplied parameters. // -// * ErrCodeBackupRestoring "BackupRestoring" +// * BackupRestoring // You can't delete a backup while it's being used to restore a file system. // -// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// * IncompatibleParameterError // The error returned when a second request is received with the same client // request token but different parameters settings. A client request token should // always uniquely identify a single request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DeleteBackup @@ -803,23 +803,23 @@ func (c *FSx) DeleteFileSystemRequest(input *DeleteFileSystemInput) (req *reques // See the AWS API reference guide for Amazon FSx's // API operation DeleteFileSystem for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// * IncompatibleParameterError // The error returned when a second request is received with the same client // request token but different parameters settings. A client request token should // always uniquely identify a single request. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // No Amazon FSx file systems were found based upon supplied parameters. // -// * ErrCodeServiceLimitExceeded "ServiceLimitExceeded" +// * ServiceLimitExceeded // An error indicating that a particular service limit was exceeded. You can // increase some service limits by contacting AWS Support. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DeleteFileSystem @@ -926,17 +926,17 @@ func (c *FSx) DescribeBackupsRequest(input *DescribeBackupsInput) (req *request. // See the AWS API reference guide for Amazon FSx's // API operation DescribeBackups for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // No Amazon FSx file systems were found based upon supplied parameters. // -// * ErrCodeBackupNotFound "BackupNotFound" +// * BackupNotFound // No Amazon FSx backups were found based upon the supplied parameters. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DescribeBackups @@ -1083,17 +1083,17 @@ func (c *FSx) DescribeDataRepositoryTasksRequest(input *DescribeDataRepositoryTa // See the AWS API reference guide for Amazon FSx's // API operation DescribeDataRepositoryTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // No Amazon FSx file systems were found based upon supplied parameters. // -// * ErrCodeDataRepositoryTaskNotFound "DataRepositoryTaskNotFound" +// * DataRepositoryTaskNotFound // The data repository task or tasks you specified could not be found. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DescribeDataRepositoryTasks @@ -1252,14 +1252,14 @@ func (c *FSx) DescribeFileSystemsRequest(input *DescribeFileSystemsInput) (req * // See the AWS API reference guide for Amazon FSx's // API operation DescribeFileSystems for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // No Amazon FSx file systems were found based upon supplied parameters. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/DescribeFileSystems @@ -1410,21 +1410,21 @@ func (c *FSx) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Amazon FSx's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // The resource specified by the Amazon Resource Name (ARN) can't be found. // -// * ErrCodeNotServiceResourceError "NotServiceResourceError" +// * NotServiceResourceError // The resource specified for the tagging operation is not a resource type owned // by Amazon FSx. Use the API of the relevant service to perform the operation. // -// * ErrCodeResourceDoesNotSupportTagging "ResourceDoesNotSupportTagging" +// * ResourceDoesNotSupportTagging // The resource specified does not support tagging. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/ListTagsForResource @@ -1503,21 +1503,21 @@ func (c *FSx) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Amazon FSx's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // The resource specified by the Amazon Resource Name (ARN) can't be found. // -// * ErrCodeNotServiceResourceError "NotServiceResourceError" +// * NotServiceResourceError // The resource specified for the tagging operation is not a resource type owned // by Amazon FSx. Use the API of the relevant service to perform the operation. // -// * ErrCodeResourceDoesNotSupportTagging "ResourceDoesNotSupportTagging" +// * ResourceDoesNotSupportTagging // The resource specified does not support tagging. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/TagResource @@ -1596,21 +1596,21 @@ func (c *FSx) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon FSx's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // The resource specified by the Amazon Resource Name (ARN) can't be found. // -// * ErrCodeNotServiceResourceError "NotServiceResourceError" +// * NotServiceResourceError // The resource specified for the tagging operation is not a resource type owned // by Amazon FSx. Use the API of the relevant service to perform the operation. // -// * ErrCodeResourceDoesNotSupportTagging "ResourceDoesNotSupportTagging" +// * ResourceDoesNotSupportTagging // The resource specified does not support tagging. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/UntagResource @@ -1688,25 +1688,25 @@ func (c *FSx) UpdateFileSystemRequest(input *UpdateFileSystemInput) (req *reques // See the AWS API reference guide for Amazon FSx's // API operation UpdateFileSystem for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequest "BadRequest" +// Returned Error Types: +// * BadRequest // A generic error indicating a failure with a client request. // -// * ErrCodeUnsupportedOperation "UnsupportedOperation" +// * UnsupportedOperation // The requested operation is not supported for this resource or API. // -// * ErrCodeIncompatibleParameterError "IncompatibleParameterError" +// * IncompatibleParameterError // The error returned when a second request is received with the same client // request token but different parameters settings. A client request token should // always uniquely identify a single request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // A generic error indicating a server-side failure. // -// * ErrCodeFileSystemNotFound "FileSystemNotFound" +// * FileSystemNotFound // No Amazon FSx file systems were found based upon supplied parameters. // -// * ErrCodeMissingFileSystemConfiguration "MissingFileSystemConfiguration" +// * MissingFileSystemConfiguration // File system configuration is required for this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/fsx-2018-03-01/UpdateFileSystem @@ -1766,6 +1766,71 @@ func (s *ActiveDirectoryBackupAttributes) SetDomainName(v string) *ActiveDirecto return s } +// An Active Directory error. +type ActiveDirectoryError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The directory ID of the directory that an error pertains to. + // + // ActiveDirectoryId is a required field + ActiveDirectoryId *string `min:"12" type:"string" required:"true"` + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` + + // The type of Active Directory error. + Type *string `type:"string" enum:"ActiveDirectoryErrorType"` +} + +// String returns the string representation +func (s ActiveDirectoryError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActiveDirectoryError) GoString() string { + return s.String() +} + +func newErrorActiveDirectoryError(v protocol.ResponseMetadata) error { + return &ActiveDirectoryError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ActiveDirectoryError) Code() string { + return "ActiveDirectoryError" +} + +// Message returns the exception's message. +func (s ActiveDirectoryError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ActiveDirectoryError) OrigErr() error { + return nil +} + +func (s ActiveDirectoryError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ActiveDirectoryError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ActiveDirectoryError) RequestID() string { + return s.respMetadata.RequestID +} + // A backup of an Amazon FSx for Windows File Server file system. You can create // a new file system from a backup to protect against data loss. type Backup struct { @@ -1919,6 +1984,238 @@ func (s *BackupFailureDetails) SetMessage(v string) *BackupFailureDetails { return s } +// Another backup is already under way. Wait for completion before initiating +// additional backups of this file system. +type BackupInProgress struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s BackupInProgress) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackupInProgress) GoString() string { + return s.String() +} + +func newErrorBackupInProgress(v protocol.ResponseMetadata) error { + return &BackupInProgress{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BackupInProgress) Code() string { + return "BackupInProgress" +} + +// Message returns the exception's message. +func (s BackupInProgress) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BackupInProgress) OrigErr() error { + return nil +} + +func (s BackupInProgress) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BackupInProgress) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BackupInProgress) RequestID() string { + return s.respMetadata.RequestID +} + +// No Amazon FSx backups were found based upon the supplied parameters. +type BackupNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s BackupNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackupNotFound) GoString() string { + return s.String() +} + +func newErrorBackupNotFound(v protocol.ResponseMetadata) error { + return &BackupNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BackupNotFound) Code() string { + return "BackupNotFound" +} + +// Message returns the exception's message. +func (s BackupNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BackupNotFound) OrigErr() error { + return nil +} + +func (s BackupNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BackupNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BackupNotFound) RequestID() string { + return s.respMetadata.RequestID +} + +// You can't delete a backup while it's being used to restore a file system. +type BackupRestoring struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The ID of a file system being restored from the backup. + FileSystemId *string `min:"11" type:"string"` + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s BackupRestoring) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BackupRestoring) GoString() string { + return s.String() +} + +func newErrorBackupRestoring(v protocol.ResponseMetadata) error { + return &BackupRestoring{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BackupRestoring) Code() string { + return "BackupRestoring" +} + +// Message returns the exception's message. +func (s BackupRestoring) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BackupRestoring) OrigErr() error { + return nil +} + +func (s BackupRestoring) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BackupRestoring) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BackupRestoring) RequestID() string { + return s.respMetadata.RequestID +} + +// A generic error indicating a failure with a client request. +type BadRequest struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s BadRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequest) GoString() string { + return s.String() +} + +func newErrorBadRequest(v protocol.ResponseMetadata) error { + return &BadRequest{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequest) Code() string { + return "BadRequest" +} + +// Message returns the exception's message. +func (s BadRequest) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequest) OrigErr() error { + return nil +} + +func (s BadRequest) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequest) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequest) RequestID() string { + return s.respMetadata.RequestID +} + // Cancels a data repository task. type CancelDataRepositoryTaskInput struct { _ struct{} `type:"structure"` @@ -3183,6 +3480,122 @@ func (s *DataRepositoryTask) SetType(v string) *DataRepositoryTask { return s } +// The data repository task could not be canceled because the task has already +// ended. +type DataRepositoryTaskEnded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s DataRepositoryTaskEnded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataRepositoryTaskEnded) GoString() string { + return s.String() +} + +func newErrorDataRepositoryTaskEnded(v protocol.ResponseMetadata) error { + return &DataRepositoryTaskEnded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DataRepositoryTaskEnded) Code() string { + return "DataRepositoryTaskEnded" +} + +// Message returns the exception's message. +func (s DataRepositoryTaskEnded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DataRepositoryTaskEnded) OrigErr() error { + return nil +} + +func (s DataRepositoryTaskEnded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DataRepositoryTaskEnded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DataRepositoryTaskEnded) RequestID() string { + return s.respMetadata.RequestID +} + +// An existing data repository task is currently executing on the file system. +// Wait until the existing task has completed, then create the new task. +type DataRepositoryTaskExecuting struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s DataRepositoryTaskExecuting) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataRepositoryTaskExecuting) GoString() string { + return s.String() +} + +func newErrorDataRepositoryTaskExecuting(v protocol.ResponseMetadata) error { + return &DataRepositoryTaskExecuting{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DataRepositoryTaskExecuting) Code() string { + return "DataRepositoryTaskExecuting" +} + +// Message returns the exception's message. +func (s DataRepositoryTaskExecuting) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DataRepositoryTaskExecuting) OrigErr() error { + return nil +} + +func (s DataRepositoryTaskExecuting) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DataRepositoryTaskExecuting) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DataRepositoryTaskExecuting) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information about why a data repository task failed. Only populated // when the task Lifecycle is set to FAILED. type DataRepositoryTaskFailureDetails struct { @@ -3253,6 +3666,63 @@ func (s *DataRepositoryTaskFilter) SetValues(v []*string) *DataRepositoryTaskFil return s } +// The data repository task or tasks you specified could not be found. +type DataRepositoryTaskNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s DataRepositoryTaskNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DataRepositoryTaskNotFound) GoString() string { + return s.String() +} + +func newErrorDataRepositoryTaskNotFound(v protocol.ResponseMetadata) error { + return &DataRepositoryTaskNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DataRepositoryTaskNotFound) Code() string { + return "DataRepositoryTaskNotFound" +} + +// Message returns the exception's message. +func (s DataRepositoryTaskNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DataRepositoryTaskNotFound) OrigErr() error { + return nil +} + +func (s DataRepositoryTaskNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DataRepositoryTaskNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DataRepositoryTaskNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // Provides the task status showing a running total of the total number of files // to be processed, the number successfully processed, and the number of files // the task failed to process. @@ -4135,41 +4605,407 @@ func (s *FileSystemFailureDetails) SetMessage(v string) *FileSystemFailureDetail return s } -// A filter used to restrict the results of describe calls. You can use multiple -// filters to return results that meet all applied filter requirements. -type Filter struct { - _ struct{} `type:"structure"` - - // The name for this filter. - Name *string `type:"string" enum:"FilterName"` +// No Amazon FSx file systems were found based upon supplied parameters. +type FileSystemNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The values of the filter. These are all the values for any of the applied - // filters. - Values []*string `type:"list"` + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` } // String returns the string representation -func (s Filter) String() string { +func (s FileSystemNotFound) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Filter) GoString() string { +func (s FileSystemNotFound) GoString() string { return s.String() } -// SetName sets the Name field's value. -func (s *Filter) SetName(v string) *Filter { - s.Name = &v - return s +func newErrorFileSystemNotFound(v protocol.ResponseMetadata) error { + return &FileSystemNotFound{ + respMetadata: v, + } } -// SetValues sets the Values field's value. +// Code returns the exception type name. +func (s FileSystemNotFound) Code() string { + return "FileSystemNotFound" +} + +// Message returns the exception's message. +func (s FileSystemNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FileSystemNotFound) OrigErr() error { + return nil +} + +func (s FileSystemNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FileSystemNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FileSystemNotFound) RequestID() string { + return s.respMetadata.RequestID +} + +// A filter used to restrict the results of describe calls. You can use multiple +// filters to return results that meet all applied filter requirements. +type Filter struct { + _ struct{} `type:"structure"` + + // The name for this filter. + Name *string `type:"string" enum:"FilterName"` + + // The values of the filter. These are all the values for any of the applied + // filters. + Values []*string `type:"list"` +} + +// String returns the string representation +func (s Filter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Filter) GoString() string { + return s.String() +} + +// SetName sets the Name field's value. +func (s *Filter) SetName(v string) *Filter { + s.Name = &v + return s +} + +// SetValues sets the Values field's value. func (s *Filter) SetValues(v []*string) *Filter { s.Values = v return s } +// The error returned when a second request is received with the same client +// request token but different parameters settings. A client request token should +// always uniquely identify a single request. +type IncompatibleParameterError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` + + // A parameter that is incompatible with the earlier request. + // + // Parameter is a required field + Parameter *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s IncompatibleParameterError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncompatibleParameterError) GoString() string { + return s.String() +} + +func newErrorIncompatibleParameterError(v protocol.ResponseMetadata) error { + return &IncompatibleParameterError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncompatibleParameterError) Code() string { + return "IncompatibleParameterError" +} + +// Message returns the exception's message. +func (s IncompatibleParameterError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncompatibleParameterError) OrigErr() error { + return nil +} + +func (s IncompatibleParameterError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncompatibleParameterError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncompatibleParameterError) RequestID() string { + return s.respMetadata.RequestID +} + +// A generic error indicating a server-side failure. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// The path provided for data repository export isn't valid. +type InvalidExportPath struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidExportPath) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidExportPath) GoString() string { + return s.String() +} + +func newErrorInvalidExportPath(v protocol.ResponseMetadata) error { + return &InvalidExportPath{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidExportPath) Code() string { + return "InvalidExportPath" +} + +// Message returns the exception's message. +func (s InvalidExportPath) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidExportPath) OrigErr() error { + return nil +} + +func (s InvalidExportPath) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidExportPath) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidExportPath) RequestID() string { + return s.respMetadata.RequestID +} + +// The path provided for data repository import isn't valid. +type InvalidImportPath struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidImportPath) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidImportPath) GoString() string { + return s.String() +} + +func newErrorInvalidImportPath(v protocol.ResponseMetadata) error { + return &InvalidImportPath{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidImportPath) Code() string { + return "InvalidImportPath" +} + +// Message returns the exception's message. +func (s InvalidImportPath) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidImportPath) OrigErr() error { + return nil +} + +func (s InvalidImportPath) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidImportPath) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidImportPath) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more network settings specified in the request are invalid. InvalidVpcId +// means that the ID passed for the virtual private cloud (VPC) is invalid. +// InvalidSubnetIds returns the list of IDs for subnets that are either invalid +// or not part of the VPC specified. InvalidSecurityGroupIds returns the list +// of IDs for security groups that are either invalid or not part of the VPC +// specified. +type InvalidNetworkSettings struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The ID of your Amazon EC2 security group. This ID is used to control network + // access to the endpoint that Amazon FSx creates on your behalf in each subnet. + // For more information, see Amazon EC2 Security Groups for Linux Instances + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html) + // in the Amazon EC2 User Guide. + InvalidSecurityGroupId *string `min:"11" type:"string"` + + // The ID for a subnet. A subnet is a range of IP addresses in your virtual + // private cloud (VPC). For more information, see VPC and Subnets (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html) + // in the Amazon VPC User Guide. + InvalidSubnetId *string `min:"15" type:"string"` + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidNetworkSettings) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNetworkSettings) GoString() string { + return s.String() +} + +func newErrorInvalidNetworkSettings(v protocol.ResponseMetadata) error { + return &InvalidNetworkSettings{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNetworkSettings) Code() string { + return "InvalidNetworkSettings" +} + +// Message returns the exception's message. +func (s InvalidNetworkSettings) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNetworkSettings) OrigErr() error { + return nil +} + +func (s InvalidNetworkSettings) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNetworkSettings) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNetworkSettings) RequestID() string { + return s.respMetadata.RequestID +} + // The request object for ListTagsForResource operation. type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -4309,6 +5145,250 @@ func (s *LustreFileSystemConfiguration) SetWeeklyMaintenanceStartTime(v string) return s } +// File system configuration is required for this operation. +type MissingFileSystemConfiguration struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s MissingFileSystemConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingFileSystemConfiguration) GoString() string { + return s.String() +} + +func newErrorMissingFileSystemConfiguration(v protocol.ResponseMetadata) error { + return &MissingFileSystemConfiguration{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingFileSystemConfiguration) Code() string { + return "MissingFileSystemConfiguration" +} + +// Message returns the exception's message. +func (s MissingFileSystemConfiguration) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingFileSystemConfiguration) OrigErr() error { + return nil +} + +func (s MissingFileSystemConfiguration) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingFileSystemConfiguration) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingFileSystemConfiguration) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource specified for the tagging operation is not a resource type owned +// by Amazon FSx. Use the API of the relevant service to perform the operation. +type NotServiceResourceError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the non-Amazon FSx resource. + // + // ResourceARN is a required field + ResourceARN *string `min:"8" type:"string" required:"true"` +} + +// String returns the string representation +func (s NotServiceResourceError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotServiceResourceError) GoString() string { + return s.String() +} + +func newErrorNotServiceResourceError(v protocol.ResponseMetadata) error { + return &NotServiceResourceError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotServiceResourceError) Code() string { + return "NotServiceResourceError" +} + +// Message returns the exception's message. +func (s NotServiceResourceError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotServiceResourceError) OrigErr() error { + return nil +} + +func (s NotServiceResourceError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotServiceResourceError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotServiceResourceError) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource specified does not support tagging. +type ResourceDoesNotSupportTagging struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` + + // The Amazon Resource Name (ARN) of the resource that doesn't support tagging. + // + // ResourceARN is a required field + ResourceARN *string `min:"8" type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceDoesNotSupportTagging) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDoesNotSupportTagging) GoString() string { + return s.String() +} + +func newErrorResourceDoesNotSupportTagging(v protocol.ResponseMetadata) error { + return &ResourceDoesNotSupportTagging{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceDoesNotSupportTagging) Code() string { + return "ResourceDoesNotSupportTagging" +} + +// Message returns the exception's message. +func (s ResourceDoesNotSupportTagging) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceDoesNotSupportTagging) OrigErr() error { + return nil +} + +func (s ResourceDoesNotSupportTagging) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceDoesNotSupportTagging) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceDoesNotSupportTagging) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource specified by the Amazon Resource Name (ARN) can't be found. +type ResourceNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` + + // The resource ARN of the resource that can't be found. + // + // ResourceARN is a required field + ResourceARN *string `min:"8" type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFound) GoString() string { + return s.String() +} + +func newErrorResourceNotFound(v protocol.ResponseMetadata) error { + return &ResourceNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFound) Code() string { + return "ResourceNotFound" +} + +// Message returns the exception's message. +func (s ResourceNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFound) OrigErr() error { + return nil +} + +func (s ResourceNotFound) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // The configuration of the self-managed Microsoft Active Directory (AD) directory // to which the Windows File Server instance is joined. type SelfManagedActiveDirectoryAttributes struct { @@ -4591,6 +5671,69 @@ func (s *SelfManagedActiveDirectoryConfigurationUpdates) SetUserName(v string) * return s } +// An error indicating that a particular service limit was exceeded. You can +// increase some service limits by contacting AWS Support. +type ServiceLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Enumeration of the service limit that was exceeded. + // + // Limit is a required field + Limit *string `type:"string" required:"true" enum:"ServiceLimit"` + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ServiceLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceLimitExceeded) GoString() string { + return s.String() +} + +func newErrorServiceLimitExceeded(v protocol.ResponseMetadata) error { + return &ServiceLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceLimitExceeded) Code() string { + return "ServiceLimitExceeded" +} + +// Message returns the exception's message. +func (s ServiceLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceLimitExceeded) OrigErr() error { + return nil +} + +func (s ServiceLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies a key-value pair for a resource tag. type Tag struct { _ struct{} `type:"structure"` @@ -4727,6 +5870,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The requested operation is not supported for this resource or API. +type UnsupportedOperation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A detailed error message. + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperation) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperation(v protocol.ResponseMetadata) error { + return &UnsupportedOperation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperation) Code() string { + return "UnsupportedOperation" +} + +// Message returns the exception's message. +func (s UnsupportedOperation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperation) OrigErr() error { + return nil +} + +func (s UnsupportedOperation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperation) RequestID() string { + return s.respMetadata.RequestID +} + // The request object for UntagResource action. type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/fsx/errors.go b/service/fsx/errors.go index 8b7c8f6aefc..3a83fbc37d2 100644 --- a/service/fsx/errors.go +++ b/service/fsx/errors.go @@ -2,6 +2,10 @@ package fsx +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeActiveDirectoryError for service response error code @@ -136,3 +140,26 @@ const ( // The requested operation is not supported for this resource or API. ErrCodeUnsupportedOperation = "UnsupportedOperation" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ActiveDirectoryError": newErrorActiveDirectoryError, + "BackupInProgress": newErrorBackupInProgress, + "BackupNotFound": newErrorBackupNotFound, + "BackupRestoring": newErrorBackupRestoring, + "BadRequest": newErrorBadRequest, + "DataRepositoryTaskEnded": newErrorDataRepositoryTaskEnded, + "DataRepositoryTaskExecuting": newErrorDataRepositoryTaskExecuting, + "DataRepositoryTaskNotFound": newErrorDataRepositoryTaskNotFound, + "FileSystemNotFound": newErrorFileSystemNotFound, + "IncompatibleParameterError": newErrorIncompatibleParameterError, + "InternalServerError": newErrorInternalServerError, + "InvalidExportPath": newErrorInvalidExportPath, + "InvalidImportPath": newErrorInvalidImportPath, + "InvalidNetworkSettings": newErrorInvalidNetworkSettings, + "MissingFileSystemConfiguration": newErrorMissingFileSystemConfiguration, + "NotServiceResourceError": newErrorNotServiceResourceError, + "ResourceDoesNotSupportTagging": newErrorResourceDoesNotSupportTagging, + "ResourceNotFound": newErrorResourceNotFound, + "ServiceLimitExceeded": newErrorServiceLimitExceeded, + "UnsupportedOperation": newErrorUnsupportedOperation, +} diff --git a/service/fsx/service.go b/service/fsx/service.go index e58b9160817..48ab3b57d31 100644 --- a/service/fsx/service.go +++ b/service/fsx/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/gamelift/api.go b/service/gamelift/api.go index c3881ffcb91..9f89e27cd63 100644 --- a/service/gamelift/api.go +++ b/service/gamelift/api.go @@ -106,21 +106,21 @@ func (c *GameLift) AcceptMatchRequest(input *AcceptMatchInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation AcceptMatch for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/AcceptMatch @@ -226,29 +226,29 @@ func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation CreateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -380,25 +380,25 @@ func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation CreateBuild for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -531,33 +531,33 @@ func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation CreateFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -681,49 +681,49 @@ func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req // See the AWS API reference guide for Amazon GameLift's // API operation CreateGameSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" +// * InvalidFleetStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// * TerminalRoutingStrategyException // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeFleetCapacityExceededException "FleetCapacityExceededException" +// * FleetCapacityExceededException // The specified fleet has no available instances to fulfill a CreateGameSession // request. Clients can retry such requests immediately or after a waiting period. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A game session with this custom ID string already exists in this fleet. Resolve // this conflict before retrying this request. // @@ -839,24 +839,24 @@ func (c *GameLift) CreateGameSessionQueueRequest(input *CreateGameSessionQueueIn // See the AWS API reference guide for Amazon GameLift's // API operation CreateGameSessionQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -979,28 +979,28 @@ func (c *GameLift) CreateMatchmakingConfigurationRequest(input *CreateMatchmakin // See the AWS API reference guide for Amazon GameLift's // API operation CreateMatchmakingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -1117,20 +1117,20 @@ func (c *GameLift) CreateMatchmakingRuleSetRequest(input *CreateMatchmakingRuleS // See the AWS API reference guide for Amazon GameLift's // API operation CreateMatchmakingRuleSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -1232,36 +1232,36 @@ func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) ( // See the AWS API reference guide for Amazon GameLift's // API operation CreatePlayerSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidGameSessionStatusException "InvalidGameSessionStatusException" +// * InvalidGameSessionStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the game instance. Resolve // the conflict before retrying. // -// * ErrCodeGameSessionFullException "GameSessionFullException" +// * GameSessionFullException // The game instance is currently full and cannot allow the requested player(s) // to join. Clients can retry such requests immediately or after a waiting period. // -// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// * TerminalRoutingStrategyException // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -1362,36 +1362,36 @@ func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) // See the AWS API reference guide for Amazon GameLift's // API operation CreatePlayerSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidGameSessionStatusException "InvalidGameSessionStatusException" +// * InvalidGameSessionStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the game instance. Resolve // the conflict before retrying. // -// * ErrCodeGameSessionFullException "GameSessionFullException" +// * GameSessionFullException // The game instance is currently full and cannot allow the requested player(s) // to join. Clients can retry such requests immediately or after a waiting period. // -// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// * TerminalRoutingStrategyException // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -1509,25 +1509,25 @@ func (c *GameLift) CreateScriptRequest(input *CreateScriptInput) (req *request.R // See the AWS API reference guide for Amazon GameLift's // API operation CreateScript for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -1646,19 +1646,19 @@ func (c *GameLift) CreateVpcPeeringAuthorizationRequest(input *CreateVpcPeeringA // See the AWS API reference guide for Amazon GameLift's // API operation CreateVpcPeeringAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -1773,19 +1773,19 @@ func (c *GameLift) CreateVpcPeeringConnectionRequest(input *CreateVpcPeeringConn // See the AWS API reference guide for Amazon GameLift's // API operation CreateVpcPeeringConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -1880,24 +1880,24 @@ func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation DeleteAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -1999,25 +1999,25 @@ func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation DeleteBuild for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // @@ -2124,29 +2124,29 @@ func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation DeleteFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" +// * InvalidFleetStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -2237,24 +2237,24 @@ func (c *GameLift) DeleteGameSessionQueueRequest(input *DeleteGameSessionQueueIn // See the AWS API reference guide for Amazon GameLift's // API operation DeleteGameSessionQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -2355,24 +2355,24 @@ func (c *GameLift) DeleteMatchmakingConfigurationRequest(input *DeleteMatchmakin // See the AWS API reference guide for Amazon GameLift's // API operation DeleteMatchmakingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -2477,24 +2477,24 @@ func (c *GameLift) DeleteMatchmakingRuleSetRequest(input *DeleteMatchmakingRuleS // See the AWS API reference guide for Amazon GameLift's // API operation DeleteMatchmakingRuleSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. @@ -2591,20 +2591,20 @@ func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) ( // See the AWS API reference guide for Amazon GameLift's // API operation DeleteScalingPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -2708,24 +2708,24 @@ func (c *GameLift) DeleteScriptRequest(input *DeleteScriptInput) (req *request.R // See the AWS API reference guide for Amazon GameLift's // API operation DeleteScript for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -2819,19 +2819,19 @@ func (c *GameLift) DeleteVpcPeeringAuthorizationRequest(input *DeleteVpcPeeringA // See the AWS API reference guide for Amazon GameLift's // API operation DeleteVpcPeeringAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -2932,19 +2932,19 @@ func (c *GameLift) DeleteVpcPeeringConnectionRequest(input *DeleteVpcPeeringConn // See the AWS API reference guide for Amazon GameLift's // API operation DeleteVpcPeeringConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -3040,19 +3040,19 @@ func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request // See the AWS API reference guide for Amazon GameLift's // API operation DescribeAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -3149,19 +3149,19 @@ func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request // See the AWS API reference guide for Amazon GameLift's // API operation DescribeBuild for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -3270,17 +3270,17 @@ func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLi // See the AWS API reference guide for Amazon GameLift's // API operation DescribeEC2InstanceLimits for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeEC2InstanceLimits @@ -3388,21 +3388,21 @@ func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributes // See the AWS API reference guide for Amazon GameLift's // API operation DescribeFleetAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetAttributes @@ -3511,21 +3511,21 @@ func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInpu // See the AWS API reference guide for Amazon GameLift's // API operation DescribeFleetCapacity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetCapacity @@ -3626,20 +3626,20 @@ func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) ( // See the AWS API reference guide for Amazon GameLift's // API operation DescribeFleetEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // @@ -3743,21 +3743,21 @@ func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSett // See the AWS API reference guide for Amazon GameLift's // API operation DescribeFleetPortSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetPortSettings @@ -3864,21 +3864,21 @@ func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizati // See the AWS API reference guide for Amazon GameLift's // API operation DescribeFleetUtilization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeFleetUtilization @@ -3981,24 +3981,24 @@ func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionD // See the AWS API reference guide for Amazon GameLift's // API operation DescribeGameSessionDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// * TerminalRoutingStrategyException // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. @@ -4097,21 +4097,21 @@ func (c *GameLift) DescribeGameSessionPlacementRequest(input *DescribeGameSessio // See the AWS API reference guide for Amazon GameLift's // API operation DescribeGameSessionPlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionPlacement @@ -4201,21 +4201,21 @@ func (c *GameLift) DescribeGameSessionQueuesRequest(input *DescribeGameSessionQu // See the AWS API reference guide for Amazon GameLift's // API operation DescribeGameSessionQueues for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeGameSessionQueues @@ -4319,24 +4319,24 @@ func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) // See the AWS API reference guide for Amazon GameLift's // API operation DescribeGameSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// * TerminalRoutingStrategyException // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. @@ -4425,19 +4425,19 @@ func (c *GameLift) DescribeInstancesRequest(input *DescribeInstancesInput) (req // See the AWS API reference guide for Amazon GameLift's // API operation DescribeInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -4546,17 +4546,17 @@ func (c *GameLift) DescribeMatchmakingRequest(input *DescribeMatchmakingInput) ( // See the AWS API reference guide for Amazon GameLift's // API operation DescribeMatchmaking for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeMatchmaking @@ -4663,17 +4663,17 @@ func (c *GameLift) DescribeMatchmakingConfigurationsRequest(input *DescribeMatch // See the AWS API reference guide for Amazon GameLift's // API operation DescribeMatchmakingConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeMatchmakingConfigurations @@ -4777,21 +4777,21 @@ func (c *GameLift) DescribeMatchmakingRuleSetsRequest(input *DescribeMatchmaking // See the AWS API reference guide for Amazon GameLift's // API operation DescribeMatchmakingRuleSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribeMatchmakingRuleSets @@ -4890,21 +4890,21 @@ func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsIn // See the AWS API reference guide for Amazon GameLift's // API operation DescribePlayerSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/DescribePlayerSessions @@ -5004,20 +5004,20 @@ func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeCon // See the AWS API reference guide for Amazon GameLift's // API operation DescribeRuntimeConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // @@ -5117,20 +5117,20 @@ func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPolicies // See the AWS API reference guide for Amazon GameLift's // API operation DescribeScalingPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -5228,20 +5228,20 @@ func (c *GameLift) DescribeScriptRequest(input *DescribeScriptInput) (req *reque // See the AWS API reference guide for Amazon GameLift's // API operation DescribeScript for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -5334,15 +5334,15 @@ func (c *GameLift) DescribeVpcPeeringAuthorizationsRequest(input *DescribeVpcPee // See the AWS API reference guide for Amazon GameLift's // API operation DescribeVpcPeeringAuthorizations for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -5441,19 +5441,19 @@ func (c *GameLift) DescribeVpcPeeringConnectionsRequest(input *DescribeVpcPeerin // See the AWS API reference guide for Amazon GameLift's // API operation DescribeVpcPeeringConnections for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -5555,20 +5555,20 @@ func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) // See the AWS API reference guide for Amazon GameLift's // API operation GetGameSessionLogUrl for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // @@ -5663,19 +5663,19 @@ func (c *GameLift) GetInstanceAccessRequest(input *GetInstanceAccessInput) (req // See the AWS API reference guide for Amazon GameLift's // API operation GetInstanceAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -5771,15 +5771,15 @@ func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation ListAliases for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -5880,15 +5880,15 @@ func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Reque // See the AWS API reference guide for Amazon GameLift's // API operation ListBuilds for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -5991,21 +5991,21 @@ func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque // See the AWS API reference guide for Amazon GameLift's // API operation ListFleets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/ListFleets @@ -6100,15 +6100,15 @@ func (c *GameLift) ListScriptsRequest(input *ListScriptsInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation ListScripts for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -6222,21 +6222,21 @@ func (c *GameLift) ListTagsForResourceRequest(input *ListTagsForResourceInput) ( // See the AWS API reference guide for Amazon GameLift's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -6400,20 +6400,20 @@ func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *r // See the AWS API reference guide for Amazon GameLift's // API operation PutScalingPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -6514,19 +6514,19 @@ func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentia // See the AWS API reference guide for Amazon GameLift's // API operation RequestUploadCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -6618,26 +6618,26 @@ func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.R // See the AWS API reference guide for Amazon GameLift's // API operation ResolveAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// * TerminalRoutingStrategyException // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. // Such requests should only be retried if the routing strategy for the specified // alias is modified. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -6780,24 +6780,24 @@ func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (re // See the AWS API reference guide for Amazon GameLift's // API operation SearchGameSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeTerminalRoutingStrategyException "TerminalRoutingStrategyException" +// * TerminalRoutingStrategyException // The service is unable to resolve the routing for a particular alias because // it has a terminal RoutingStrategy associated with it. The message returned // in this exception is the message defined in the routing strategy itself. @@ -6908,20 +6908,20 @@ func (c *GameLift) StartFleetActionsRequest(input *StartFleetActionsInput) (req // See the AWS API reference guide for Amazon GameLift's // API operation StartFleetActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -7056,21 +7056,21 @@ func (c *GameLift) StartGameSessionPlacementRequest(input *StartGameSessionPlace // See the AWS API reference guide for Amazon GameLift's // API operation StartGameSessionPlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartGameSessionPlacement @@ -7189,21 +7189,21 @@ func (c *GameLift) StartMatchBackfillRequest(input *StartMatchBackfillInput) (re // See the AWS API reference guide for Amazon GameLift's // API operation StartMatchBackfill for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartMatchBackfill @@ -7361,21 +7361,21 @@ func (c *GameLift) StartMatchmakingRequest(input *StartMatchmakingInput) (req *r // See the AWS API reference guide for Amazon GameLift's // API operation StartMatchmaking for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StartMatchmaking @@ -7484,20 +7484,20 @@ func (c *GameLift) StopFleetActionsRequest(input *StopFleetActionsInput) (req *r // See the AWS API reference guide for Amazon GameLift's // API operation StopFleetActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // @@ -7593,21 +7593,21 @@ func (c *GameLift) StopGameSessionPlacementRequest(input *StopGameSessionPlaceme // See the AWS API reference guide for Amazon GameLift's // API operation StopGameSessionPlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopGameSessionPlacement @@ -7712,21 +7712,21 @@ func (c *GameLift) StopMatchmakingRequest(input *StopMatchmakingInput) (req *req // See the AWS API reference guide for Amazon GameLift's // API operation StopMatchmaking for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/StopMatchmaking @@ -7843,21 +7843,21 @@ func (c *GameLift) TagResourceRequest(input *TagResourceInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -7975,21 +7975,21 @@ func (c *GameLift) UntagResourceRequest(input *UntagResourceInput) (req *request // See the AWS API reference guide for Amazon GameLift's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeTaggingFailedException "TaggingFailedException" +// * TaggingFailedException // The requested tagging operation did not succeed. This may be due to invalid // tag format or the maximum tag limit may have been exceeded. Resolve the issue // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -8084,19 +8084,19 @@ func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation UpdateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -8195,19 +8195,19 @@ func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Req // See the AWS API reference guide for Amazon GameLift's // API operation UpdateBuild for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -8308,35 +8308,35 @@ func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInpu // See the AWS API reference guide for Amazon GameLift's // API operation UpdateFleetAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" +// * InvalidFleetStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetAttributes @@ -8448,35 +8448,35 @@ func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) ( // See the AWS API reference guide for Amazon GameLift's // API operation UpdateFleetCapacity for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" +// * InvalidFleetStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetCapacity @@ -8578,35 +8578,35 @@ func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettings // See the AWS API reference guide for Amazon GameLift's // API operation UpdateFleetPortSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" +// * InvalidFleetStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested operation would cause the resource to exceed the allowed service // limit. Resolve the issue before retrying. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateFleetPortSettings @@ -8705,30 +8705,30 @@ func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req // See the AWS API reference guide for Amazon GameLift's // API operation UpdateGameSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The requested operation would cause a conflict with the current state of // a service resource associated with the request. Resolve the conflict before // retrying this request. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidGameSessionStatusException "InvalidGameSessionStatusException" +// * InvalidGameSessionStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the game instance. Resolve // the conflict before retrying. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // @@ -8818,21 +8818,21 @@ func (c *GameLift) UpdateGameSessionQueueRequest(input *UpdateGameSessionQueueIn // See the AWS API reference guide for Amazon GameLift's // API operation UpdateGameSessionQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateGameSessionQueue @@ -8935,21 +8935,21 @@ func (c *GameLift) UpdateMatchmakingConfigurationRequest(input *UpdateMatchmakin // See the AWS API reference guide for Amazon GameLift's // API operation UpdateMatchmakingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // // See also, https://docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/UpdateMatchmakingConfiguration @@ -9059,24 +9059,24 @@ func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigu // See the AWS API reference guide for Amazon GameLift's // API operation UpdateRuntimeConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeInvalidFleetStatusException "InvalidFleetStatusException" +// * InvalidFleetStatusException // The requested operation would cause a conflict with the current state of // a resource associated with the request and/or the fleet. Resolve the conflict // before retrying. @@ -9185,19 +9185,19 @@ func (c *GameLift) UpdateScriptRequest(input *UpdateScriptInput) (req *request.R // See the AWS API reference guide for Amazon GameLift's // API operation UpdateScript for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The client failed authentication. Clients should not retry such requests. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // A service resource associated with the request could not be found. Clients // should not retry such requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. @@ -9302,16 +9302,16 @@ func (c *GameLift) ValidateMatchmakingRuleSetRequest(input *ValidateMatchmakingR // See the AWS API reference guide for Amazon GameLift's // API operation ValidateMatchmakingRuleSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // The service encountered an unrecoverable internal failure while processing // the request. Clients can retry such requests immediately or after a waiting // period. // -// * ErrCodeUnsupportedRegionException "UnsupportedRegionException" +// * UnsupportedRegionException // The requested operation is not supported in the Region specified. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // One or more parameter values in the request are invalid. Correct the invalid // parameter values before retrying. // @@ -9795,6 +9795,64 @@ func (s *CertificateConfiguration) SetCertificateType(v string) *CertificateConf return s } +// The requested operation would cause a conflict with the current state of +// a service resource associated with the request. Resolve the conflict before +// retrying this request. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input for a request action. type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -14990,6 +15048,63 @@ func (s *FleetCapacity) SetInstanceType(v string) *FleetCapacity { return s } +// The specified fleet has no available instances to fulfill a CreateGameSession +// request. Clients can retry such requests immediately or after a waiting period. +type FleetCapacityExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s FleetCapacityExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FleetCapacityExceededException) GoString() string { + return s.String() +} + +func newErrorFleetCapacityExceededException(v protocol.ResponseMetadata) error { + return &FleetCapacityExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FleetCapacityExceededException) Code() string { + return "FleetCapacityExceededException" +} + +// Message returns the exception's message. +func (s FleetCapacityExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FleetCapacityExceededException) OrigErr() error { + return nil +} + +func (s FleetCapacityExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FleetCapacityExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FleetCapacityExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Current status of fleet utilization, including the number of game and player // sessions being hosted. // @@ -15477,6 +15592,63 @@ func (s *GameSessionDetail) SetProtectionPolicy(v string) *GameSessionDetail { return s } +// The game instance is currently full and cannot allow the requested player(s) +// to join. Clients can retry such requests immediately or after a waiting period. +type GameSessionFullException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s GameSessionFullException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GameSessionFullException) GoString() string { + return s.String() +} + +func newErrorGameSessionFullException(v protocol.ResponseMetadata) error { + return &GameSessionFullException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GameSessionFullException) Code() string { + return "GameSessionFullException" +} + +// Message returns the exception's message. +func (s GameSessionFullException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GameSessionFullException) OrigErr() error { + return nil +} + +func (s GameSessionFullException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GameSessionFullException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GameSessionFullException) RequestID() string { + return s.respMetadata.RequestID +} + // Object that describes a StartGameSessionPlacement request. This object includes // the full details of the original request plus the current status and start/end // time stamps. @@ -16017,6 +16189,63 @@ func (s *GetInstanceAccessOutput) SetInstanceAccess(v *InstanceAccess) *GetInsta return s } +// A game session with this custom ID string already exists in this fleet. Resolve +// this conflict before retrying this request. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + // Properties that describe an instance of a virtual computing resource that // hosts one or more game servers. A fleet may contain zero or more instances. type Instance struct { @@ -16225,6 +16454,237 @@ func (s *InstanceCredentials) SetUserName(v string) *InstanceCredentials { return s } +// The service encountered an unrecoverable internal failure while processing +// the request. Clients can retry such requests immediately or after a waiting +// period. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the fleet. Resolve the conflict +// before retrying. +type InvalidFleetStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidFleetStatusException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFleetStatusException) GoString() string { + return s.String() +} + +func newErrorInvalidFleetStatusException(v protocol.ResponseMetadata) error { + return &InvalidFleetStatusException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFleetStatusException) Code() string { + return "InvalidFleetStatusException" +} + +// Message returns the exception's message. +func (s InvalidFleetStatusException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFleetStatusException) OrigErr() error { + return nil +} + +func (s InvalidFleetStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFleetStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFleetStatusException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation would cause a conflict with the current state of +// a resource associated with the request and/or the game instance. Resolve +// the conflict before retrying. +type InvalidGameSessionStatusException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidGameSessionStatusException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidGameSessionStatusException) GoString() string { + return s.String() +} + +func newErrorInvalidGameSessionStatusException(v protocol.ResponseMetadata) error { + return &InvalidGameSessionStatusException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidGameSessionStatusException) Code() string { + return "InvalidGameSessionStatusException" +} + +// Message returns the exception's message. +func (s InvalidGameSessionStatusException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidGameSessionStatusException) OrigErr() error { + return nil +} + +func (s InvalidGameSessionStatusException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidGameSessionStatusException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidGameSessionStatusException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more parameter values in the request are invalid. Correct the invalid +// parameter values before retrying. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // A range of IP addresses and port settings that allow inbound traffic to connect // to server processes on an Amazon GameLift hosting resource. New game sessions // that are started on the fleet are assigned an IP address/port number combination, @@ -16321,6 +16781,63 @@ func (s *IpPermission) SetToPort(v int64) *IpPermission { return s } +// The requested operation would cause the resource to exceed the allowed service +// limit. Resolve the issue before retrying. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input for a request action. type ListAliasesInput struct { _ struct{} `type:"structure"` @@ -17297,6 +17814,63 @@ func (s *MatchmakingTicket) SetTicketId(v string) *MatchmakingTicket { return s } +// A service resource associated with the request could not be found. Clients +// should not retry such requests. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a player session that was created as part of a StartGameSessionPlacement // request. This object contains only the player ID and player session ID. To // retrieve full details on a player session, call DescribePlayerSessions with @@ -19795,6 +20369,64 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The requested tagging operation did not succeed. This may be due to invalid +// tag format or the maximum tag limit may have been exceeded. Resolve the issue +// before retrying. +type TaggingFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TaggingFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaggingFailedException) GoString() string { + return s.String() +} + +func newErrorTaggingFailedException(v protocol.ResponseMetadata) error { + return &TaggingFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TaggingFailedException) Code() string { + return "TaggingFailedException" +} + +// Message returns the exception's message. +func (s TaggingFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TaggingFailedException) OrigErr() error { + return nil +} + +func (s TaggingFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TaggingFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TaggingFailedException) RequestID() string { + return s.respMetadata.RequestID +} + // Settings for a target-based scaling policy (see ScalingPolicy. A target-based // policy tracks a particular fleet metric specifies a target value for the // metric. As player usage changes, the policy triggers Amazon GameLift to adjust @@ -19854,6 +20486,178 @@ func (s *TargetConfiguration) SetTargetValue(v float64) *TargetConfiguration { return s } +// The service is unable to resolve the routing for a particular alias because +// it has a terminal RoutingStrategy associated with it. The message returned +// in this exception is the message defined in the routing strategy itself. +// Such requests should only be retried if the routing strategy for the specified +// alias is modified. +type TerminalRoutingStrategyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TerminalRoutingStrategyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminalRoutingStrategyException) GoString() string { + return s.String() +} + +func newErrorTerminalRoutingStrategyException(v protocol.ResponseMetadata) error { + return &TerminalRoutingStrategyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TerminalRoutingStrategyException) Code() string { + return "TerminalRoutingStrategyException" +} + +// Message returns the exception's message. +func (s TerminalRoutingStrategyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TerminalRoutingStrategyException) OrigErr() error { + return nil +} + +func (s TerminalRoutingStrategyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TerminalRoutingStrategyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TerminalRoutingStrategyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The client failed authentication. Clients should not retry such requests. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation is not supported in the Region specified. +type UnsupportedRegionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s UnsupportedRegionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedRegionException) GoString() string { + return s.String() +} + +func newErrorUnsupportedRegionException(v protocol.ResponseMetadata) error { + return &UnsupportedRegionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedRegionException) Code() string { + return "UnsupportedRegionException" +} + +// Message returns the exception's message. +func (s UnsupportedRegionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedRegionException) OrigErr() error { + return nil +} + +func (s UnsupportedRegionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedRegionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedRegionException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/gamelift/errors.go b/service/gamelift/errors.go index 9d74c2fb691..f9794d64250 100644 --- a/service/gamelift/errors.go +++ b/service/gamelift/errors.go @@ -2,6 +2,10 @@ package gamelift +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConflictException for service response error code @@ -108,3 +112,20 @@ const ( // The requested operation is not supported in the Region specified. ErrCodeUnsupportedRegionException = "UnsupportedRegionException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConflictException": newErrorConflictException, + "FleetCapacityExceededException": newErrorFleetCapacityExceededException, + "GameSessionFullException": newErrorGameSessionFullException, + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidFleetStatusException": newErrorInvalidFleetStatusException, + "InvalidGameSessionStatusException": newErrorInvalidGameSessionStatusException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "TaggingFailedException": newErrorTaggingFailedException, + "TerminalRoutingStrategyException": newErrorTerminalRoutingStrategyException, + "UnauthorizedException": newErrorUnauthorizedException, + "UnsupportedRegionException": newErrorUnsupportedRegionException, +} diff --git a/service/gamelift/service.go b/service/gamelift/service.go index faf3c94aaa1..9d8ead55089 100644 --- a/service/gamelift/service.go +++ b/service/gamelift/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/glacier/api.go b/service/glacier/api.go index fc7c251dad6..32e021c8728 100644 --- a/service/glacier/api.go +++ b/service/glacier/api.go @@ -84,18 +84,18 @@ func (c *Glacier) AbortMultipartUploadRequest(input *AbortMultipartUploadInput) // See the AWS API reference guide for Amazon Glacier's // API operation AbortMultipartUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) AbortMultipartUpload(input *AbortMultipartUploadInput) (*AbortMultipartUploadOutput, error) { @@ -186,18 +186,18 @@ func (c *Glacier) AbortVaultLockRequest(input *AbortVaultLockInput) (req *reques // See the AWS API reference guide for Amazon Glacier's // API operation AbortVaultLock for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) AbortVaultLock(input *AbortVaultLockInput) (*AbortVaultLockOutput, error) { @@ -278,21 +278,21 @@ func (c *Glacier) AddTagsToVaultRequest(input *AddTagsToVaultInput) (req *reques // See the AWS API reference guide for Amazon Glacier's // API operation AddTagsToVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Returned if the request results in a vault or account limit being exceeded. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) AddTagsToVault(input *AddTagsToVaultInput) (*AddTagsToVaultOutput, error) { @@ -410,18 +410,18 @@ func (c *Glacier) CompleteMultipartUploadRequest(input *CompleteMultipartUploadI // See the AWS API reference guide for Amazon Glacier's // API operation CompleteMultipartUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) CompleteMultipartUpload(input *CompleteMultipartUploadInput) (*ArchiveCreationOutput, error) { @@ -511,18 +511,18 @@ func (c *Glacier) CompleteVaultLockRequest(input *CompleteVaultLockInput) (req * // See the AWS API reference guide for Amazon Glacier's // API operation CompleteVaultLock for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) CompleteVaultLock(input *CompleteVaultLockInput) (*CompleteVaultLockOutput, error) { @@ -620,17 +620,17 @@ func (c *Glacier) CreateVaultRequest(input *CreateVaultInput) (req *request.Requ // See the AWS API reference guide for Amazon Glacier's // API operation CreateVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Returned if the request results in a vault or account limit being exceeded. // func (c *Glacier) CreateVault(input *CreateVaultInput) (*CreateVaultOutput, error) { @@ -730,18 +730,18 @@ func (c *Glacier) DeleteArchiveRequest(input *DeleteArchiveInput) (req *request. // See the AWS API reference guide for Amazon Glacier's // API operation DeleteArchive for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) DeleteArchive(input *DeleteArchiveInput) (*DeleteArchiveOutput, error) { @@ -839,18 +839,18 @@ func (c *Glacier) DeleteVaultRequest(input *DeleteVaultInput) (req *request.Requ // See the AWS API reference guide for Amazon Glacier's // API operation DeleteVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) DeleteVault(input *DeleteVaultInput) (*DeleteVaultOutput, error) { @@ -935,18 +935,18 @@ func (c *Glacier) DeleteVaultAccessPolicyRequest(input *DeleteVaultAccessPolicyI // See the AWS API reference guide for Amazon Glacier's // API operation DeleteVaultAccessPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) DeleteVaultAccessPolicy(input *DeleteVaultAccessPolicyInput) (*DeleteVaultAccessPolicyOutput, error) { @@ -1036,18 +1036,18 @@ func (c *Glacier) DeleteVaultNotificationsRequest(input *DeleteVaultNotification // See the AWS API reference guide for Amazon Glacier's // API operation DeleteVaultNotifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) DeleteVaultNotifications(input *DeleteVaultNotificationsInput) (*DeleteVaultNotificationsOutput, error) { @@ -1144,18 +1144,18 @@ func (c *Glacier) DescribeJobRequest(input *DescribeJobInput) (req *request.Requ // See the AWS API reference guide for Amazon Glacier's // API operation DescribeJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) DescribeJob(input *DescribeJobInput) (*JobDescription, error) { @@ -1249,18 +1249,18 @@ func (c *Glacier) DescribeVaultRequest(input *DescribeVaultInput) (req *request. // See the AWS API reference guide for Amazon Glacier's // API operation DescribeVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) DescribeVault(input *DescribeVaultInput) (*DescribeVaultOutput, error) { @@ -1337,14 +1337,14 @@ func (c *Glacier) GetDataRetrievalPolicyRequest(input *GetDataRetrievalPolicyInp // See the AWS API reference guide for Amazon Glacier's // API operation GetDataRetrievalPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) GetDataRetrievalPolicy(input *GetDataRetrievalPolicyInput) (*GetDataRetrievalPolicyOutput, error) { @@ -1462,18 +1462,18 @@ func (c *Glacier) GetJobOutputRequest(input *GetJobOutputInput) (req *request.Re // See the AWS API reference guide for Amazon Glacier's // API operation GetJobOutput for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) GetJobOutput(input *GetJobOutputInput) (*GetJobOutputOutput, error) { @@ -1553,18 +1553,18 @@ func (c *Glacier) GetVaultAccessPolicyRequest(input *GetVaultAccessPolicyInput) // See the AWS API reference guide for Amazon Glacier's // API operation GetVaultAccessPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) GetVaultAccessPolicy(input *GetVaultAccessPolicyInput) (*GetVaultAccessPolicyOutput, error) { @@ -1658,18 +1658,18 @@ func (c *Glacier) GetVaultLockRequest(input *GetVaultLockInput) (req *request.Re // See the AWS API reference guide for Amazon Glacier's // API operation GetVaultLock for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) GetVaultLock(input *GetVaultLockInput) (*GetVaultLockOutput, error) { @@ -1762,18 +1762,18 @@ func (c *Glacier) GetVaultNotificationsRequest(input *GetVaultNotificationsInput // See the AWS API reference guide for Amazon Glacier's // API operation GetVaultNotifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) GetVaultNotifications(input *GetVaultNotificationsInput) (*GetVaultNotificationsOutput, error) { @@ -1851,27 +1851,27 @@ func (c *Glacier) InitiateJobRequest(input *InitiateJobInput) (req *request.Requ // See the AWS API reference guide for Amazon Glacier's // API operation InitiateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodePolicyEnforcedException "PolicyEnforcedException" +// * PolicyEnforcedException // Returned if a retrieval job would exceed the current data policy's retrieval // rate limit. For more information about data retrieval policies, // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeInsufficientCapacityException "InsufficientCapacityException" +// * InsufficientCapacityException // Returned if there is insufficient capacity to process this expedited request. // This error only applies to expedited retrievals and not to standard or bulk // retrievals. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) InitiateJob(input *InitiateJobInput) (*InitiateJobOutput, error) { @@ -1981,18 +1981,18 @@ func (c *Glacier) InitiateMultipartUploadRequest(input *InitiateMultipartUploadI // See the AWS API reference guide for Amazon Glacier's // API operation InitiateMultipartUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) InitiateMultipartUpload(input *InitiateMultipartUploadInput) (*InitiateMultipartUploadOutput, error) { @@ -2095,18 +2095,18 @@ func (c *Glacier) InitiateVaultLockRequest(input *InitiateVaultLockInput) (req * // See the AWS API reference guide for Amazon Glacier's // API operation InitiateVaultLock for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) InitiateVaultLock(input *InitiateVaultLockInput) (*InitiateVaultLockOutput, error) { @@ -2222,18 +2222,18 @@ func (c *Glacier) ListJobsRequest(input *ListJobsInput) (req *request.Request, o // See the AWS API reference guide for Amazon Glacier's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { @@ -2395,18 +2395,18 @@ func (c *Glacier) ListMultipartUploadsRequest(input *ListMultipartUploadsInput) // See the AWS API reference guide for Amazon Glacier's // API operation ListMultipartUploads for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) ListMultipartUploads(input *ListMultipartUploadsInput) (*ListMultipartUploadsOutput, error) { @@ -2562,18 +2562,18 @@ func (c *Glacier) ListPartsRequest(input *ListPartsInput) (req *request.Request, // See the AWS API reference guide for Amazon Glacier's // API operation ListParts for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) ListParts(input *ListPartsInput) (*ListPartsOutput, error) { @@ -2701,14 +2701,14 @@ func (c *Glacier) ListProvisionedCapacityRequest(input *ListProvisionedCapacityI // See the AWS API reference guide for Amazon Glacier's // API operation ListProvisionedCapacity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) ListProvisionedCapacity(input *ListProvisionedCapacityInput) (*ListProvisionedCapacityOutput, error) { @@ -2785,18 +2785,18 @@ func (c *Glacier) ListTagsForVaultRequest(input *ListTagsForVaultInput) (req *re // See the AWS API reference guide for Amazon Glacier's // API operation ListTagsForVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) ListTagsForVault(input *ListTagsForVaultInput) (*ListTagsForVaultOutput, error) { @@ -2897,18 +2897,18 @@ func (c *Glacier) ListVaultsRequest(input *ListVaultsInput) (req *request.Reques // See the AWS API reference guide for Amazon Glacier's // API operation ListVaults for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) ListVaults(input *ListVaultsInput) (*ListVaultsOutput, error) { @@ -3035,17 +3035,17 @@ func (c *Glacier) PurchaseProvisionedCapacityRequest(input *PurchaseProvisionedC // See the AWS API reference guide for Amazon Glacier's // API operation PurchaseProvisionedCapacity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Returned if the request results in a vault or account limit being exceeded. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) PurchaseProvisionedCapacity(input *PurchaseProvisionedCapacityInput) (*PurchaseProvisionedCapacityOutput, error) { @@ -3125,18 +3125,18 @@ func (c *Glacier) RemoveTagsFromVaultRequest(input *RemoveTagsFromVaultInput) (r // See the AWS API reference guide for Amazon Glacier's // API operation RemoveTagsFromVault for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) RemoveTagsFromVault(input *RemoveTagsFromVaultInput) (*RemoveTagsFromVaultOutput, error) { @@ -3218,14 +3218,14 @@ func (c *Glacier) SetDataRetrievalPolicyRequest(input *SetDataRetrievalPolicyInp // See the AWS API reference guide for Amazon Glacier's // API operation SetDataRetrievalPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) SetDataRetrievalPolicy(input *SetDataRetrievalPolicyInput) (*SetDataRetrievalPolicyOutput, error) { @@ -3307,18 +3307,18 @@ func (c *Glacier) SetVaultAccessPolicyRequest(input *SetVaultAccessPolicyInput) // See the AWS API reference guide for Amazon Glacier's // API operation SetVaultAccessPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) SetVaultAccessPolicy(input *SetVaultAccessPolicyInput) (*SetVaultAccessPolicyOutput, error) { @@ -3425,18 +3425,18 @@ func (c *Glacier) SetVaultNotificationsRequest(input *SetVaultNotificationsInput // See the AWS API reference guide for Amazon Glacier's // API operation SetVaultNotifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) SetVaultNotifications(input *SetVaultNotificationsInput) (*SetVaultNotificationsOutput, error) { @@ -3546,22 +3546,22 @@ func (c *Glacier) UploadArchiveRequest(input *UploadArchiveInput) (req *request. // See the AWS API reference guide for Amazon Glacier's // API operation UploadArchive for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeRequestTimeoutException "RequestTimeoutException" +// * RequestTimeoutException // Returned if, when uploading an archive, Amazon S3 Glacier times out while // receiving the upload. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) UploadArchive(input *UploadArchiveInput) (*ArchiveCreationOutput, error) { @@ -3678,22 +3678,22 @@ func (c *Glacier) UploadMultipartPartRequest(input *UploadMultipartPartInput) (r // See the AWS API reference guide for Amazon Glacier's // API operation UploadMultipartPart for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Returned if the specified resource (such as a vault, upload ID, or job ID) // doesn't exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // Returned if a parameter of the request is incorrectly specified. // -// * ErrCodeMissingParameterValueException "MissingParameterValueException" +// * MissingParameterValueException // Returned if a required header or parameter is missing from the request. // -// * ErrCodeRequestTimeoutException "RequestTimeoutException" +// * RequestTimeoutException // Returned if, when uploading an archive, Amazon S3 Glacier times out while // receiving the upload. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returned if the service cannot complete the request. // func (c *Glacier) UploadMultipartPart(input *UploadMultipartPartInput) (*UploadMultipartPartOutput, error) { @@ -6175,6 +6175,131 @@ func (s *InputSerialization) SetCsv(v *CSVInput) *InputSerialization { return s } +// Returned if there is insufficient capacity to process this expedited request. +// This error only applies to expedited retrievals and not to standard or bulk +// retrievals. +type InsufficientCapacityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s InsufficientCapacityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InsufficientCapacityException) GoString() string { + return s.String() +} + +func newErrorInsufficientCapacityException(v protocol.ResponseMetadata) error { + return &InsufficientCapacityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InsufficientCapacityException) Code() string { + return "InsufficientCapacityException" +} + +// Message returns the exception's message. +func (s InsufficientCapacityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InsufficientCapacityException) OrigErr() error { + return nil +} + +func (s InsufficientCapacityException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InsufficientCapacityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InsufficientCapacityException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if a parameter of the request is incorrectly specified. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 400 Bad Request + Code_ *string `locationName:"code" type:"string"` + + // Returned if a parameter of the request is incorrectly specified. + Message_ *string `locationName:"message" type:"string"` + + // Client + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the options for a range inventory retrieval job. type InventoryRetrievalJobDescription struct { _ struct{} `type:"structure"` @@ -6688,6 +6813,69 @@ func (s *JobParameters) SetType(v string) *JobParameters { return s } +// Returned if the request results in a vault or account limit being exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 400 Bad Request + Code_ *string `locationName:"code" type:"string"` + + // Returned if the request results in a vault limit or tags limit being exceeded. + Message_ *string `locationName:"message" type:"string"` + + // Client + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides options for retrieving a job list for an Amazon S3 Glacier vault. type ListJobsInput struct { _ struct{} `type:"structure"` @@ -7398,6 +7586,69 @@ func (s *ListVaultsOutput) SetVaultList(v []*DescribeVaultOutput) *ListVaultsOut return s } +// Returned if a required header or parameter is missing from the request. +type MissingParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 400 Bad Request + Code_ *string `locationName:"code" type:"string"` + + // Returned if no authentication data is found for the request. + Message_ *string `locationName:"message" type:"string"` + + // Client. + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s MissingParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingParameterValueException) GoString() string { + return s.String() +} + +func newErrorMissingParameterValueException(v protocol.ResponseMetadata) error { + return &MissingParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingParameterValueException) Code() string { + return "MissingParameterValueException" +} + +// Message returns the exception's message. +func (s MissingParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingParameterValueException) OrigErr() error { + return nil +} + +func (s MissingParameterValueException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about the location where the select job results are // stored. type OutputLocation struct { @@ -7496,6 +7747,70 @@ func (s *PartListElement) SetSHA256TreeHash(v string) *PartListElement { return s } +// Returned if a retrieval job would exceed the current data policy's retrieval +// rate limit. For more information about data retrieval policies, +type PolicyEnforcedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // PolicyEnforcedException + Code_ *string `locationName:"code" type:"string"` + + // InitiateJob request denied by current data retrieval policy. + Message_ *string `locationName:"message" type:"string"` + + // Client + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s PolicyEnforcedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyEnforcedException) GoString() string { + return s.String() +} + +func newErrorPolicyEnforcedException(v protocol.ResponseMetadata) error { + return &PolicyEnforcedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyEnforcedException) Code() string { + return "PolicyEnforcedException" +} + +// Message returns the exception's message. +func (s PolicyEnforcedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyEnforcedException) OrigErr() error { + return nil +} + +func (s PolicyEnforcedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyEnforcedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyEnforcedException) RequestID() string { + return s.respMetadata.RequestID +} + // The definition for a provisioned capacity unit. type ProvisionedCapacityDescription struct { _ struct{} `type:"structure"` @@ -7694,6 +8009,136 @@ func (s RemoveTagsFromVaultOutput) GoString() string { return s.String() } +// Returned if, when uploading an archive, Amazon S3 Glacier times out while +// receiving the upload. +type RequestTimeoutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 408 Request Timeout + Code_ *string `locationName:"code" type:"string"` + + // Returned if, when uploading an archive, Amazon S3 Glacier times out while + // receiving the upload. + Message_ *string `locationName:"message" type:"string"` + + // Client + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s RequestTimeoutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestTimeoutException) GoString() string { + return s.String() +} + +func newErrorRequestTimeoutException(v protocol.ResponseMetadata) error { + return &RequestTimeoutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestTimeoutException) Code() string { + return "RequestTimeoutException" +} + +// Message returns the exception's message. +func (s RequestTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestTimeoutException) OrigErr() error { + return nil +} + +func (s RequestTimeoutException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestTimeoutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestTimeoutException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if the specified resource (such as a vault, upload ID, or job ID) +// doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 404 Not Found + Code_ *string `locationName:"code" type:"string"` + + // Returned if the specified resource (such as a vault, upload ID, or job ID) + // doesn't exist. + Message_ *string `locationName:"message" type:"string"` + + // Client + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about the location in Amazon S3 where the select job // results are stored. type S3Location struct { @@ -7854,6 +8299,69 @@ func (s *SelectParameters) SetOutputSerialization(v *OutputSerialization) *Selec return s } +// Returned if the service cannot complete the request. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 500 Internal Server Error + Code_ *string `locationName:"code" type:"string"` + + // Returned if the service cannot complete the request. + Message_ *string `locationName:"message" type:"string"` + + // Server + Type *string `locationName:"type" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // SetDataRetrievalPolicy input. type SetDataRetrievalPolicyInput struct { _ struct{} `type:"structure"` diff --git a/service/glacier/errors.go b/service/glacier/errors.go index b3e0922d747..21bf7562da3 100644 --- a/service/glacier/errors.go +++ b/service/glacier/errors.go @@ -2,6 +2,10 @@ package glacier +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInsufficientCapacityException for service response error code @@ -57,3 +61,14 @@ const ( // Returned if the service cannot complete the request. ErrCodeServiceUnavailableException = "ServiceUnavailableException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InsufficientCapacityException": newErrorInsufficientCapacityException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "LimitExceededException": newErrorLimitExceededException, + "MissingParameterValueException": newErrorMissingParameterValueException, + "PolicyEnforcedException": newErrorPolicyEnforcedException, + "RequestTimeoutException": newErrorRequestTimeoutException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, +} diff --git a/service/glacier/service.go b/service/glacier/service.go index 93319c50f25..5679e79331f 100644 --- a/service/glacier/service.go +++ b/service/glacier/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/globalaccelerator/api.go b/service/globalaccelerator/api.go index d86736d9665..b821ed4cc57 100644 --- a/service/globalaccelerator/api.go +++ b/service/globalaccelerator/api.go @@ -71,14 +71,14 @@ func (c *GlobalAccelerator) CreateAcceleratorRequest(input *CreateAcceleratorInp // See the AWS API reference guide for AWS Global Accelerator's // API operation CreateAccelerator for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// Returned Error Types: +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Processing your request would cause you to exceed an AWS Global Accelerator // limit. // @@ -159,27 +159,27 @@ func (c *GlobalAccelerator) CreateEndpointGroupRequest(input *CreateEndpointGrou // See the AWS API reference guide for AWS Global Accelerator's // API operation CreateEndpointGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// Returned Error Types: +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeEndpointGroupAlreadyExistsException "EndpointGroupAlreadyExistsException" +// * EndpointGroupAlreadyExistsException // The endpoint group that you specified already exists. // -// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// * ListenerNotFoundException // The listener that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Processing your request would cause you to exceed an AWS Global Accelerator // limit. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have access permission. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/CreateEndpointGroup @@ -260,21 +260,21 @@ func (c *GlobalAccelerator) CreateListenerRequest(input *CreateListenerInput) (r // See the AWS API reference guide for AWS Global Accelerator's // API operation CreateListener for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeInvalidPortRangeException "InvalidPortRangeException" +// * InvalidPortRangeException // The port numbers that you specified are not valid numbers or are not unique // for this accelerator. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Processing your request would cause you to exceed an AWS Global Accelerator // limit. // @@ -355,22 +355,22 @@ func (c *GlobalAccelerator) DeleteAcceleratorRequest(input *DeleteAcceleratorInp // See the AWS API reference guide for AWS Global Accelerator's // API operation DeleteAccelerator for usage and error information. // -// Returned Error Codes: -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// Returned Error Types: +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeAcceleratorNotDisabledException "AcceleratorNotDisabledException" +// * AcceleratorNotDisabledException // The accelerator that you specified could not be disabled. // -// * ErrCodeAssociatedListenerFoundException "AssociatedListenerFoundException" +// * AssociatedListenerFoundException // The accelerator that you specified has a listener associated with it. You // must remove all dependent resources from an accelerator before you can delete // it. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteAccelerator @@ -449,14 +449,14 @@ func (c *GlobalAccelerator) DeleteEndpointGroupRequest(input *DeleteEndpointGrou // See the AWS API reference guide for AWS Global Accelerator's // API operation DeleteEndpointGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeEndpointGroupNotFoundException "EndpointGroupNotFoundException" +// * EndpointGroupNotFoundException // The endpoint group that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteEndpointGroup @@ -535,19 +535,19 @@ func (c *GlobalAccelerator) DeleteListenerRequest(input *DeleteListenerInput) (r // See the AWS API reference guide for AWS Global Accelerator's // API operation DeleteListener for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// * ListenerNotFoundException // The listener that you specified doesn't exist. // -// * ErrCodeAssociatedEndpointGroupFoundException "AssociatedEndpointGroupFoundException" +// * AssociatedEndpointGroupFoundException // The listener that you specified has an endpoint group associated with it. // You must remove all dependent resources from a listener before you can delete // it. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DeleteListener @@ -626,14 +626,14 @@ func (c *GlobalAccelerator) DescribeAcceleratorRequest(input *DescribeAccelerato // See the AWS API reference guide for AWS Global Accelerator's // API operation DescribeAccelerator for usage and error information. // -// Returned Error Codes: -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// Returned Error Types: +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeAccelerator @@ -711,14 +711,14 @@ func (c *GlobalAccelerator) DescribeAcceleratorAttributesRequest(input *Describe // See the AWS API reference guide for AWS Global Accelerator's // API operation DescribeAcceleratorAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// Returned Error Types: +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeAcceleratorAttributes @@ -796,14 +796,14 @@ func (c *GlobalAccelerator) DescribeEndpointGroupRequest(input *DescribeEndpoint // See the AWS API reference guide for AWS Global Accelerator's // API operation DescribeEndpointGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeEndpointGroupNotFoundException "EndpointGroupNotFoundException" +// * EndpointGroupNotFoundException // The endpoint group that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeEndpointGroup @@ -881,14 +881,14 @@ func (c *GlobalAccelerator) DescribeListenerRequest(input *DescribeListenerInput // See the AWS API reference guide for AWS Global Accelerator's // API operation DescribeListener for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// * ListenerNotFoundException // The listener that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/DescribeListener @@ -966,14 +966,14 @@ func (c *GlobalAccelerator) ListAcceleratorsRequest(input *ListAcceleratorsInput // See the AWS API reference guide for AWS Global Accelerator's // API operation ListAccelerators for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // There isn't another item to return. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListAccelerators @@ -1051,17 +1051,17 @@ func (c *GlobalAccelerator) ListEndpointGroupsRequest(input *ListEndpointGroupsI // See the AWS API reference guide for AWS Global Accelerator's // API operation ListEndpointGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// Returned Error Types: +// * ListenerNotFoundException // The listener that you specified doesn't exist. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // There isn't another item to return. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListEndpointGroups @@ -1139,17 +1139,17 @@ func (c *GlobalAccelerator) ListListenersRequest(input *ListListenersInput) (req // See the AWS API reference guide for AWS Global Accelerator's // API operation ListListeners for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // There isn't another item to return. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/ListListeners @@ -1230,14 +1230,14 @@ func (c *GlobalAccelerator) UpdateAcceleratorRequest(input *UpdateAcceleratorInp // See the AWS API reference guide for AWS Global Accelerator's // API operation UpdateAccelerator for usage and error information. // -// Returned Error Codes: -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// Returned Error Types: +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateAccelerator @@ -1316,17 +1316,17 @@ func (c *GlobalAccelerator) UpdateAcceleratorAttributesRequest(input *UpdateAcce // See the AWS API reference guide for AWS Global Accelerator's // API operation UpdateAcceleratorAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeAcceleratorNotFoundException "AcceleratorNotFoundException" +// Returned Error Types: +// * AcceleratorNotFoundException // The accelerator that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have access permission. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateAcceleratorAttributes @@ -1405,21 +1405,21 @@ func (c *GlobalAccelerator) UpdateEndpointGroupRequest(input *UpdateEndpointGrou // See the AWS API reference guide for AWS Global Accelerator's // API operation UpdateEndpointGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeEndpointGroupNotFoundException "EndpointGroupNotFoundException" +// * EndpointGroupNotFoundException // The endpoint group that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Processing your request would cause you to exceed an AWS Global Accelerator // limit. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have access permission. // // See also, https://docs.aws.amazon.com/goto/WebAPI/globalaccelerator-2018-08-08/UpdateEndpointGroup @@ -1497,21 +1497,21 @@ func (c *GlobalAccelerator) UpdateListenerRequest(input *UpdateListenerInput) (r // See the AWS API reference guide for AWS Global Accelerator's // API operation UpdateListener for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // An argument that you specified is invalid. // -// * ErrCodeInvalidPortRangeException "InvalidPortRangeException" +// * InvalidPortRangeException // The port numbers that you specified are not valid numbers or are not unique // for this accelerator. // -// * ErrCodeListenerNotFoundException "ListenerNotFoundException" +// * ListenerNotFoundException // The listener that you specified doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // There was an internal error for AWS Global Accelerator. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Processing your request would cause you to exceed an AWS Global Accelerator // limit. // @@ -1699,6 +1699,290 @@ func (s *AcceleratorAttributes) SetFlowLogsS3Prefix(v string) *AcceleratorAttrib return s } +// The accelerator that you specified could not be disabled. +type AcceleratorNotDisabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AcceleratorNotDisabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceleratorNotDisabledException) GoString() string { + return s.String() +} + +func newErrorAcceleratorNotDisabledException(v protocol.ResponseMetadata) error { + return &AcceleratorNotDisabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AcceleratorNotDisabledException) Code() string { + return "AcceleratorNotDisabledException" +} + +// Message returns the exception's message. +func (s AcceleratorNotDisabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AcceleratorNotDisabledException) OrigErr() error { + return nil +} + +func (s AcceleratorNotDisabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AcceleratorNotDisabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AcceleratorNotDisabledException) RequestID() string { + return s.respMetadata.RequestID +} + +// The accelerator that you specified doesn't exist. +type AcceleratorNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AcceleratorNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AcceleratorNotFoundException) GoString() string { + return s.String() +} + +func newErrorAcceleratorNotFoundException(v protocol.ResponseMetadata) error { + return &AcceleratorNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AcceleratorNotFoundException) Code() string { + return "AcceleratorNotFoundException" +} + +// Message returns the exception's message. +func (s AcceleratorNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AcceleratorNotFoundException) OrigErr() error { + return nil +} + +func (s AcceleratorNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AcceleratorNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AcceleratorNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// You don't have access permission. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The listener that you specified has an endpoint group associated with it. +// You must remove all dependent resources from a listener before you can delete +// it. +type AssociatedEndpointGroupFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AssociatedEndpointGroupFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatedEndpointGroupFoundException) GoString() string { + return s.String() +} + +func newErrorAssociatedEndpointGroupFoundException(v protocol.ResponseMetadata) error { + return &AssociatedEndpointGroupFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociatedEndpointGroupFoundException) Code() string { + return "AssociatedEndpointGroupFoundException" +} + +// Message returns the exception's message. +func (s AssociatedEndpointGroupFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociatedEndpointGroupFoundException) OrigErr() error { + return nil +} + +func (s AssociatedEndpointGroupFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociatedEndpointGroupFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociatedEndpointGroupFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The accelerator that you specified has a listener associated with it. You +// must remove all dependent resources from an accelerator before you can delete +// it. +type AssociatedListenerFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AssociatedListenerFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatedListenerFoundException) GoString() string { + return s.String() +} + +func newErrorAssociatedListenerFoundException(v protocol.ResponseMetadata) error { + return &AssociatedListenerFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociatedListenerFoundException) Code() string { + return "AssociatedListenerFoundException" +} + +// Message returns the exception's message. +func (s AssociatedListenerFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociatedListenerFoundException) OrigErr() error { + return nil +} + +func (s AssociatedListenerFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociatedListenerFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociatedListenerFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateAcceleratorInput struct { _ struct{} `type:"structure"` @@ -2801,6 +3085,343 @@ func (s *EndpointGroup) SetTrafficDialPercentage(v float64) *EndpointGroup { return s } +// The endpoint group that you specified already exists. +type EndpointGroupAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EndpointGroupAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointGroupAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorEndpointGroupAlreadyExistsException(v protocol.ResponseMetadata) error { + return &EndpointGroupAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EndpointGroupAlreadyExistsException) Code() string { + return "EndpointGroupAlreadyExistsException" +} + +// Message returns the exception's message. +func (s EndpointGroupAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EndpointGroupAlreadyExistsException) OrigErr() error { + return nil +} + +func (s EndpointGroupAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EndpointGroupAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EndpointGroupAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The endpoint group that you specified doesn't exist. +type EndpointGroupNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EndpointGroupNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EndpointGroupNotFoundException) GoString() string { + return s.String() +} + +func newErrorEndpointGroupNotFoundException(v protocol.ResponseMetadata) error { + return &EndpointGroupNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EndpointGroupNotFoundException) Code() string { + return "EndpointGroupNotFoundException" +} + +// Message returns the exception's message. +func (s EndpointGroupNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EndpointGroupNotFoundException) OrigErr() error { + return nil +} + +func (s EndpointGroupNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EndpointGroupNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EndpointGroupNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// There was an internal error for AWS Global Accelerator. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s InternalServiceErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s InternalServiceErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// An argument that you specified is invalid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// There isn't another item to return. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The port numbers that you specified are not valid numbers or are not unique +// for this accelerator. +type InvalidPortRangeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidPortRangeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPortRangeException) GoString() string { + return s.String() +} + +func newErrorInvalidPortRangeException(v protocol.ResponseMetadata) error { + return &InvalidPortRangeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPortRangeException) Code() string { + return "InvalidPortRangeException" +} + +// Message returns the exception's message. +func (s InvalidPortRangeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPortRangeException) OrigErr() error { + return nil +} + +func (s InvalidPortRangeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPortRangeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPortRangeException) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type for the set of IP addresses for an accelerator. type IpSet struct { _ struct{} `type:"structure"` @@ -2835,6 +3456,63 @@ func (s *IpSet) SetIpFamily(v string) *IpSet { return s } +// Processing your request would cause you to exceed an AWS Global Accelerator +// limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAcceleratorsInput struct { _ struct{} `type:"structure"` @@ -3174,6 +3852,62 @@ func (s *Listener) SetProtocol(v string) *Listener { return s } +// The listener that you specified doesn't exist. +type ListenerNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ListenerNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListenerNotFoundException) GoString() string { + return s.String() +} + +func newErrorListenerNotFoundException(v protocol.ResponseMetadata) error { + return &ListenerNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ListenerNotFoundException) Code() string { + return "ListenerNotFoundException" +} + +// Message returns the exception's message. +func (s ListenerNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ListenerNotFoundException) OrigErr() error { + return nil +} + +func (s ListenerNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ListenerNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ListenerNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type for a range of ports for a listener. type PortRange struct { _ struct{} `type:"structure"` diff --git a/service/globalaccelerator/errors.go b/service/globalaccelerator/errors.go index 8c1866ba2d4..3543069262d 100644 --- a/service/globalaccelerator/errors.go +++ b/service/globalaccelerator/errors.go @@ -2,6 +2,10 @@ package globalaccelerator +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAcceleratorNotDisabledException for service response error code @@ -88,3 +92,19 @@ const ( // The listener that you specified doesn't exist. ErrCodeListenerNotFoundException = "ListenerNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AcceleratorNotDisabledException": newErrorAcceleratorNotDisabledException, + "AcceleratorNotFoundException": newErrorAcceleratorNotFoundException, + "AccessDeniedException": newErrorAccessDeniedException, + "AssociatedEndpointGroupFoundException": newErrorAssociatedEndpointGroupFoundException, + "AssociatedListenerFoundException": newErrorAssociatedListenerFoundException, + "EndpointGroupAlreadyExistsException": newErrorEndpointGroupAlreadyExistsException, + "EndpointGroupNotFoundException": newErrorEndpointGroupNotFoundException, + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidPortRangeException": newErrorInvalidPortRangeException, + "LimitExceededException": newErrorLimitExceededException, + "ListenerNotFoundException": newErrorListenerNotFoundException, +} diff --git a/service/globalaccelerator/service.go b/service/globalaccelerator/service.go index 1c751460462..37df58b089d 100644 --- a/service/globalaccelerator/service.go +++ b/service/globalaccelerator/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/glue/api.go b/service/glue/api.go index ba0fd6f288b..a40fbd941f6 100644 --- a/service/glue/api.go +++ b/service/glue/api.go @@ -66,26 +66,26 @@ func (c *Glue) BatchCreatePartitionRequest(input *BatchCreatePartitionInput) (re // See the AWS API reference guide for AWS Glue's // API operation BatchCreatePartition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchCreatePartition @@ -163,11 +163,11 @@ func (c *Glue) BatchDeleteConnectionRequest(input *BatchDeleteConnectionInput) ( // See the AWS API reference guide for AWS Glue's // API operation BatchDeleteConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchDeleteConnection @@ -245,17 +245,17 @@ func (c *Glue) BatchDeletePartitionRequest(input *BatchDeletePartitionInput) (re // See the AWS API reference guide for AWS Glue's // API operation BatchDeletePartition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchDeletePartition @@ -342,17 +342,17 @@ func (c *Glue) BatchDeleteTableRequest(input *BatchDeleteTableInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation BatchDeleteTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchDeleteTable @@ -430,17 +430,17 @@ func (c *Glue) BatchDeleteTableVersionRequest(input *BatchDeleteTableVersionInpu // See the AWS API reference guide for AWS Glue's // API operation BatchDeleteTableVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchDeleteTableVersion @@ -521,11 +521,11 @@ func (c *Glue) BatchGetCrawlersRequest(input *BatchGetCrawlersInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation BatchGetCrawlers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetCrawlers @@ -606,17 +606,17 @@ func (c *Glue) BatchGetDevEndpointsRequest(input *BatchGetDevEndpointsInput) (re // See the AWS API reference guide for AWS Glue's // API operation BatchGetDevEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // Access to a resource was denied. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetDevEndpoints @@ -697,14 +697,14 @@ func (c *Glue) BatchGetJobsRequest(input *BatchGetJobsInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation BatchGetJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetJobs @@ -782,20 +782,20 @@ func (c *Glue) BatchGetPartitionRequest(input *BatchGetPartitionInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation BatchGetPartition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetPartition @@ -876,14 +876,14 @@ func (c *Glue) BatchGetTriggersRequest(input *BatchGetTriggersInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation BatchGetTriggers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetTriggers @@ -964,14 +964,14 @@ func (c *Glue) BatchGetWorkflowsRequest(input *BatchGetWorkflowsInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation BatchGetWorkflows for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchGetWorkflows @@ -1049,14 +1049,14 @@ func (c *Glue) BatchStopJobRunRequest(input *BatchStopJobRunInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation BatchStopJobRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/BatchStopJobRun @@ -1137,17 +1137,17 @@ func (c *Glue) CancelMLTaskRunRequest(input *CancelMLTaskRunInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation CancelMLTaskRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CancelMLTaskRun @@ -1228,14 +1228,14 @@ func (c *Glue) CreateClassifierRequest(input *CreateClassifierInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation CreateClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateClassifier @@ -1314,20 +1314,20 @@ func (c *Glue) CreateConnectionRequest(input *CreateConnectionInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation CreateConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateConnection @@ -1408,17 +1408,17 @@ func (c *Glue) CreateCrawlerRequest(input *CreateCrawlerInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation CreateCrawler for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateCrawler @@ -1497,23 +1497,23 @@ func (c *Glue) CreateDatabaseRequest(input *CreateDatabaseInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation CreateDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateDatabase @@ -1591,29 +1591,29 @@ func (c *Glue) CreateDevEndpointRequest(input *CreateDevEndpointInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation CreateDevEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // Access to a resource was denied. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The same unique identifier was associated with two different records. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // A value could not be validated. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateDevEndpoint @@ -1691,26 +1691,26 @@ func (c *Glue) CreateJobRequest(input *CreateJobInput) (req *request.Request, ou // See the AWS API reference guide for AWS Glue's // API operation CreateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The same unique identifier was associated with two different records. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateJob @@ -1800,26 +1800,26 @@ func (c *Glue) CreateMLTransformRequest(input *CreateMLTransformInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation CreateMLTransform for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to a resource was denied. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The same unique identifier was associated with two different records. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateMLTransform @@ -1898,26 +1898,26 @@ func (c *Glue) CreatePartitionRequest(input *CreatePartitionInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation CreatePartition for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreatePartition @@ -1995,14 +1995,14 @@ func (c *Glue) CreateScriptRequest(input *CreateScriptInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation CreateScript for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateScript @@ -2084,20 +2084,20 @@ func (c *Glue) CreateSecurityConfigurationRequest(input *CreateSecurityConfigura // See the AWS API reference guide for AWS Glue's // API operation CreateSecurityConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateSecurityConfiguration @@ -2176,26 +2176,26 @@ func (c *Glue) CreateTableRequest(input *CreateTableInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation CreateTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateTable @@ -2273,29 +2273,29 @@ func (c *Glue) CreateTriggerRequest(input *CreateTriggerInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation CreateTrigger for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The same unique identifier was associated with two different records. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateTrigger @@ -2374,26 +2374,26 @@ func (c *Glue) CreateUserDefinedFunctionRequest(input *CreateUserDefinedFunction // See the AWS API reference guide for AWS Glue's // API operation CreateUserDefinedFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateUserDefinedFunction @@ -2471,23 +2471,23 @@ func (c *Glue) CreateWorkflowRequest(input *CreateWorkflowInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation CreateWorkflow for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CreateWorkflow @@ -2566,11 +2566,11 @@ func (c *Glue) DeleteClassifierRequest(input *DeleteClassifierInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation DeleteClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteClassifier @@ -2649,11 +2649,11 @@ func (c *Glue) DeleteConnectionRequest(input *DeleteConnectionInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation DeleteConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteConnection @@ -2733,17 +2733,17 @@ func (c *Glue) DeleteCrawlerRequest(input *DeleteCrawlerInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation DeleteCrawler for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeCrawlerRunningException "CrawlerRunningException" +// * CrawlerRunningException // The operation cannot be performed because the crawler is already running. // -// * ErrCodeSchedulerTransitioningException "SchedulerTransitioningException" +// * SchedulerTransitioningException // The specified scheduler is transitioning. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteCrawler @@ -2833,17 +2833,17 @@ func (c *Glue) DeleteDatabaseRequest(input *DeleteDatabaseInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation DeleteDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteDatabase @@ -2922,17 +2922,17 @@ func (c *Glue) DeleteDevEndpointRequest(input *DeleteDevEndpointInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation DeleteDevEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteDevEndpoint @@ -3011,14 +3011,14 @@ func (c *Glue) DeleteJobRequest(input *DeleteJobInput) (req *request.Request, ou // See the AWS API reference guide for AWS Glue's // API operation DeleteJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteJob @@ -3102,17 +3102,17 @@ func (c *Glue) DeleteMLTransformRequest(input *DeleteMLTransformInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation DeleteMLTransform for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteMLTransform @@ -3191,17 +3191,17 @@ func (c *Glue) DeletePartitionRequest(input *DeletePartitionInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation DeletePartition for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeletePartition @@ -3280,20 +3280,20 @@ func (c *Glue) DeleteResourcePolicyRequest(input *DeleteResourcePolicyInput) (re // See the AWS API reference guide for AWS Glue's // API operation DeleteResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeConditionCheckFailureException "ConditionCheckFailureException" +// * ConditionCheckFailureException // A specified condition was not satisfied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteResourcePolicy @@ -3372,17 +3372,17 @@ func (c *Glue) DeleteSecurityConfigurationRequest(input *DeleteSecurityConfigura // See the AWS API reference guide for AWS Glue's // API operation DeleteSecurityConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteSecurityConfiguration @@ -3469,17 +3469,17 @@ func (c *Glue) DeleteTableRequest(input *DeleteTableInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation DeleteTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteTable @@ -3558,17 +3558,17 @@ func (c *Glue) DeleteTableVersionRequest(input *DeleteTableVersionInput) (req *r // See the AWS API reference guide for AWS Glue's // API operation DeleteTableVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteTableVersion @@ -3647,17 +3647,17 @@ func (c *Glue) DeleteTriggerRequest(input *DeleteTriggerInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation DeleteTrigger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteTrigger @@ -3736,17 +3736,17 @@ func (c *Glue) DeleteUserDefinedFunctionRequest(input *DeleteUserDefinedFunction // See the AWS API reference guide for AWS Glue's // API operation DeleteUserDefinedFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteUserDefinedFunction @@ -3824,17 +3824,17 @@ func (c *Glue) DeleteWorkflowRequest(input *DeleteWorkflowInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation DeleteWorkflow for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/DeleteWorkflow @@ -3912,11 +3912,11 @@ func (c *Glue) GetCatalogImportStatusRequest(input *GetCatalogImportStatusInput) // See the AWS API reference guide for AWS Glue's // API operation GetCatalogImportStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetCatalogImportStatus @@ -3994,11 +3994,11 @@ func (c *Glue) GetClassifierRequest(input *GetClassifierInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation GetClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetClassifier @@ -4082,8 +4082,8 @@ func (c *Glue) GetClassifiersRequest(input *GetClassifiersInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation GetClassifiers for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// Returned Error Types: +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetClassifiers @@ -4213,17 +4213,17 @@ func (c *Glue) GetConnectionRequest(input *GetConnectionInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation GetConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetConnection @@ -4307,17 +4307,17 @@ func (c *Glue) GetConnectionsRequest(input *GetConnectionsInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation GetConnections for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetConnections @@ -4447,11 +4447,11 @@ func (c *Glue) GetCrawlerRequest(input *GetCrawlerInput) (req *request.Request, // See the AWS API reference guide for AWS Glue's // API operation GetCrawler for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetCrawler @@ -4535,8 +4535,8 @@ func (c *Glue) GetCrawlerMetricsRequest(input *GetCrawlerMetricsInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation GetCrawlerMetrics for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// Returned Error Types: +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetCrawlerMetrics @@ -4672,8 +4672,8 @@ func (c *Glue) GetCrawlersRequest(input *GetCrawlersInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation GetCrawlers for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// Returned Error Types: +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetCrawlers @@ -4803,14 +4803,14 @@ func (c *Glue) GetDataCatalogEncryptionSettingsRequest(input *GetDataCatalogEncr // See the AWS API reference guide for AWS Glue's // API operation GetDataCatalogEncryptionSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDataCatalogEncryptionSettings @@ -4888,20 +4888,20 @@ func (c *Glue) GetDatabaseRequest(input *GetDatabaseInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation GetDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabase @@ -4985,17 +4985,17 @@ func (c *Glue) GetDatabasesRequest(input *GetDatabasesInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation GetDatabases for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDatabases @@ -5125,14 +5125,14 @@ func (c *Glue) GetDataflowGraphRequest(input *GetDataflowGraphInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation GetDataflowGraph for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDataflowGraph @@ -5215,17 +5215,17 @@ func (c *Glue) GetDevEndpointRequest(input *GetDevEndpointInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation GetDevEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDevEndpoint @@ -5314,17 +5314,17 @@ func (c *Glue) GetDevEndpointsRequest(input *GetDevEndpointsInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation GetDevEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetDevEndpoints @@ -5454,17 +5454,17 @@ func (c *Glue) GetJobRequest(input *GetJobInput) (req *request.Request, output * // See the AWS API reference guide for AWS Glue's // API operation GetJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetJob @@ -5542,20 +5542,20 @@ func (c *Glue) GetJobBookmarkRequest(input *GetJobBookmarkInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation GetJobBookmark for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // A value could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetJobBookmark @@ -5633,17 +5633,17 @@ func (c *Glue) GetJobRunRequest(input *GetJobRunInput) (req *request.Request, ou // See the AWS API reference guide for AWS Glue's // API operation GetJobRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetJobRun @@ -5727,17 +5727,17 @@ func (c *Glue) GetJobRunsRequest(input *GetJobRunsInput) (req *request.Request, // See the AWS API reference guide for AWS Glue's // API operation GetJobRuns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetJobRuns @@ -5873,17 +5873,17 @@ func (c *Glue) GetJobsRequest(input *GetJobsInput) (req *request.Request, output // See the AWS API reference guide for AWS Glue's // API operation GetJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetJobs @@ -6017,17 +6017,17 @@ func (c *Glue) GetMLTaskRunRequest(input *GetMLTaskRunInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation GetMLTaskRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetMLTaskRun @@ -6118,17 +6118,17 @@ func (c *Glue) GetMLTaskRunsRequest(input *GetMLTaskRunsInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation GetMLTaskRuns for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetMLTaskRuns @@ -6262,17 +6262,17 @@ func (c *Glue) GetMLTransformRequest(input *GetMLTransformInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation GetMLTransform for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetMLTransform @@ -6360,17 +6360,17 @@ func (c *Glue) GetMLTransformsRequest(input *GetMLTransformsInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation GetMLTransforms for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetMLTransforms @@ -6500,17 +6500,17 @@ func (c *Glue) GetMappingRequest(input *GetMappingInput) (req *request.Request, // See the AWS API reference guide for AWS Glue's // API operation GetMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetMapping @@ -6588,20 +6588,20 @@ func (c *Glue) GetPartitionRequest(input *GetPartitionInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation GetPartition for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartition @@ -6685,20 +6685,20 @@ func (c *Glue) GetPartitionsRequest(input *GetPartitionsInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation GetPartitions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPartitions @@ -6828,14 +6828,14 @@ func (c *Glue) GetPlanRequest(input *GetPlanInput) (req *request.Request, output // See the AWS API reference guide for AWS Glue's // API operation GetPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetPlan @@ -6913,17 +6913,17 @@ func (c *Glue) GetResourcePolicyRequest(input *GetResourcePolicyInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation GetResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetResourcePolicy @@ -7001,17 +7001,17 @@ func (c *Glue) GetSecurityConfigurationRequest(input *GetSecurityConfigurationIn // See the AWS API reference guide for AWS Glue's // API operation GetSecurityConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetSecurityConfiguration @@ -7095,17 +7095,17 @@ func (c *Glue) GetSecurityConfigurationsRequest(input *GetSecurityConfigurations // See the AWS API reference guide for AWS Glue's // API operation GetSecurityConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetSecurityConfigurations @@ -7235,20 +7235,20 @@ func (c *Glue) GetTableRequest(input *GetTableInput) (req *request.Request, outp // See the AWS API reference guide for AWS Glue's // API operation GetTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTable @@ -7326,20 +7326,20 @@ func (c *Glue) GetTableVersionRequest(input *GetTableVersionInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation GetTableVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersion @@ -7424,20 +7424,20 @@ func (c *Glue) GetTableVersionsRequest(input *GetTableVersionsInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation GetTableVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTableVersions @@ -7573,20 +7573,20 @@ func (c *Glue) GetTablesRequest(input *GetTablesInput) (req *request.Request, ou // See the AWS API reference guide for AWS Glue's // API operation GetTables for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTables @@ -7716,17 +7716,17 @@ func (c *Glue) GetTagsRequest(input *GetTagsInput) (req *request.Request, output // See the AWS API reference guide for AWS Glue's // API operation GetTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTags @@ -7804,17 +7804,17 @@ func (c *Glue) GetTriggerRequest(input *GetTriggerInput) (req *request.Request, // See the AWS API reference guide for AWS Glue's // API operation GetTrigger for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTrigger @@ -7898,17 +7898,17 @@ func (c *Glue) GetTriggersRequest(input *GetTriggersInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation GetTriggers for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetTriggers @@ -8038,20 +8038,20 @@ func (c *Glue) GetUserDefinedFunctionRequest(input *GetUserDefinedFunctionInput) // See the AWS API reference guide for AWS Glue's // API operation GetUserDefinedFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunction @@ -8135,20 +8135,20 @@ func (c *Glue) GetUserDefinedFunctionsRequest(input *GetUserDefinedFunctionsInpu // See the AWS API reference guide for AWS Glue's // API operation GetUserDefinedFunctions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetUserDefinedFunctions @@ -8278,17 +8278,17 @@ func (c *Glue) GetWorkflowRequest(input *GetWorkflowInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation GetWorkflow for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetWorkflow @@ -8366,17 +8366,17 @@ func (c *Glue) GetWorkflowRunRequest(input *GetWorkflowRunInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation GetWorkflowRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetWorkflowRun @@ -8454,17 +8454,17 @@ func (c *Glue) GetWorkflowRunPropertiesRequest(input *GetWorkflowRunPropertiesIn // See the AWS API reference guide for AWS Glue's // API operation GetWorkflowRunProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetWorkflowRunProperties @@ -8548,17 +8548,17 @@ func (c *Glue) GetWorkflowRunsRequest(input *GetWorkflowRunsInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation GetWorkflowRuns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/GetWorkflowRuns @@ -8689,11 +8689,11 @@ func (c *Glue) ImportCatalogToGlueRequest(input *ImportCatalogToGlueInput) (req // See the AWS API reference guide for AWS Glue's // API operation ImportCatalogToGlue for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ImportCatalogToGlue @@ -8783,8 +8783,8 @@ func (c *Glue) ListCrawlersRequest(input *ListCrawlersInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation ListCrawlers for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// Returned Error Types: +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListCrawlers @@ -8926,17 +8926,17 @@ func (c *Glue) ListDevEndpointsRequest(input *ListDevEndpointsInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation ListDevEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListDevEndpoints @@ -9078,17 +9078,17 @@ func (c *Glue) ListJobsRequest(input *ListJobsInput) (req *request.Request, outp // See the AWS API reference guide for AWS Glue's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListJobs @@ -9230,17 +9230,17 @@ func (c *Glue) ListTriggersRequest(input *ListTriggersInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation ListTriggers for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListTriggers @@ -9376,14 +9376,14 @@ func (c *Glue) ListWorkflowsRequest(input *ListWorkflowsInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation ListWorkflows for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ListWorkflows @@ -9516,14 +9516,14 @@ func (c *Glue) PutDataCatalogEncryptionSettingsRequest(input *PutDataCatalogEncr // See the AWS API reference guide for AWS Glue's // API operation PutDataCatalogEncryptionSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutDataCatalogEncryptionSettings @@ -9601,20 +9601,20 @@ func (c *Glue) PutResourcePolicyRequest(input *PutResourcePolicyInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation PutResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeConditionCheckFailureException "ConditionCheckFailureException" +// * ConditionCheckFailureException // A specified condition was not satisfied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutResourcePolicy @@ -9695,26 +9695,26 @@ func (c *Glue) PutWorkflowRunPropertiesRequest(input *PutWorkflowRunPropertiesIn // See the AWS API reference guide for AWS Glue's // API operation PutWorkflowRunProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // A resource to be created or added already exists. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/PutWorkflowRunProperties @@ -9792,17 +9792,17 @@ func (c *Glue) ResetJobBookmarkRequest(input *ResetJobBookmarkInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation ResetJobBookmark for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/ResetJobBookmark @@ -9895,14 +9895,14 @@ func (c *Glue) SearchTablesRequest(input *SearchTablesInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation SearchTables for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/SearchTables @@ -10034,14 +10034,14 @@ func (c *Glue) StartCrawlerRequest(input *StartCrawlerInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation StartCrawler for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeCrawlerRunningException "CrawlerRunningException" +// * CrawlerRunningException // The operation cannot be performed because the crawler is already running. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartCrawler @@ -10121,20 +10121,20 @@ func (c *Glue) StartCrawlerScheduleRequest(input *StartCrawlerScheduleInput) (re // See the AWS API reference guide for AWS Glue's // API operation StartCrawlerSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeSchedulerRunningException "SchedulerRunningException" +// * SchedulerRunningException // The specified scheduler is already running. // -// * ErrCodeSchedulerTransitioningException "SchedulerTransitioningException" +// * SchedulerTransitioningException // The specified scheduler is transitioning. // -// * ErrCodeNoScheduleException "NoScheduleException" +// * NoScheduleException // There is no applicable schedule. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartCrawlerSchedule @@ -10220,17 +10220,17 @@ func (c *Glue) StartExportLabelsTaskRunRequest(input *StartExportLabelsTaskRunIn // See the AWS API reference guide for AWS Glue's // API operation StartExportLabelsTaskRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartExportLabelsTaskRun @@ -10333,20 +10333,20 @@ func (c *Glue) StartImportLabelsTaskRunRequest(input *StartImportLabelsTaskRunIn // See the AWS API reference guide for AWS Glue's // API operation StartImportLabelsTaskRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartImportLabelsTaskRun @@ -10424,23 +10424,23 @@ func (c *Glue) StartJobRunRequest(input *StartJobRunInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation StartJobRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeConcurrentRunsExceededException "ConcurrentRunsExceededException" +// * ConcurrentRunsExceededException // Too many jobs are being run concurrently. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartJobRun @@ -10525,23 +10525,23 @@ func (c *Glue) StartMLEvaluationTaskRunRequest(input *StartMLEvaluationTaskRunIn // See the AWS API reference guide for AWS Glue's // API operation StartMLEvaluationTaskRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeConcurrentRunsExceededException "ConcurrentRunsExceededException" +// * ConcurrentRunsExceededException // Too many jobs are being run concurrently. // -// * ErrCodeMLTransformNotReadyException "MLTransformNotReadyException" +// * MLTransformNotReadyException // The machine learning transform is not ready to run. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartMLEvaluationTaskRun @@ -10632,20 +10632,20 @@ func (c *Glue) StartMLLabelingSetGenerationTaskRunRequest(input *StartMLLabeling // See the AWS API reference guide for AWS Glue's // API operation StartMLLabelingSetGenerationTaskRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeConcurrentRunsExceededException "ConcurrentRunsExceededException" +// * ConcurrentRunsExceededException // Too many jobs are being run concurrently. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartMLLabelingSetGenerationTaskRun @@ -10724,23 +10724,23 @@ func (c *Glue) StartTriggerRequest(input *StartTriggerInput) (req *request.Reque // See the AWS API reference guide for AWS Glue's // API operation StartTrigger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeConcurrentRunsExceededException "ConcurrentRunsExceededException" +// * ConcurrentRunsExceededException // Too many jobs are being run concurrently. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartTrigger @@ -10818,23 +10818,23 @@ func (c *Glue) StartWorkflowRunRequest(input *StartWorkflowRunInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation StartWorkflowRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeConcurrentRunsExceededException "ConcurrentRunsExceededException" +// * ConcurrentRunsExceededException // Too many jobs are being run concurrently. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StartWorkflowRun @@ -10913,17 +10913,17 @@ func (c *Glue) StopCrawlerRequest(input *StopCrawlerInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation StopCrawler for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeCrawlerNotRunningException "CrawlerNotRunningException" +// * CrawlerNotRunningException // The specified crawler is not running. // -// * ErrCodeCrawlerStoppingException "CrawlerStoppingException" +// * CrawlerStoppingException // The specified crawler is stopping. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StopCrawler @@ -11003,17 +11003,17 @@ func (c *Glue) StopCrawlerScheduleRequest(input *StopCrawlerScheduleInput) (req // See the AWS API reference guide for AWS Glue's // API operation StopCrawlerSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeSchedulerNotRunningException "SchedulerNotRunningException" +// * SchedulerNotRunningException // The specified scheduler is not running. // -// * ErrCodeSchedulerTransitioningException "SchedulerTransitioningException" +// * SchedulerTransitioningException // The specified scheduler is transitioning. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StopCrawlerSchedule @@ -11091,20 +11091,20 @@ func (c *Glue) StopTriggerRequest(input *StopTriggerInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation StopTrigger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/StopTrigger @@ -11185,17 +11185,17 @@ func (c *Glue) TagResourceRequest(input *TagResourceInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/TagResource @@ -11274,17 +11274,17 @@ func (c *Glue) UntagResourceRequest(input *UntagResourceInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UntagResource @@ -11364,17 +11364,17 @@ func (c *Glue) UpdateClassifierRequest(input *UpdateClassifierInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation UpdateClassifier for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // There was a version conflict. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateClassifier @@ -11453,20 +11453,20 @@ func (c *Glue) UpdateConnectionRequest(input *UpdateConnectionInput) (req *reque // See the AWS API reference guide for AWS Glue's // API operation UpdateConnection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateConnection @@ -11546,20 +11546,20 @@ func (c *Glue) UpdateCrawlerRequest(input *UpdateCrawlerInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation UpdateCrawler for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // There was a version conflict. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeCrawlerRunningException "CrawlerRunningException" +// * CrawlerRunningException // The operation cannot be performed because the crawler is already running. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateCrawler @@ -11638,20 +11638,20 @@ func (c *Glue) UpdateCrawlerScheduleRequest(input *UpdateCrawlerScheduleInput) ( // See the AWS API reference guide for AWS Glue's // API operation UpdateCrawlerSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // There was a version conflict. // -// * ErrCodeSchedulerTransitioningException "SchedulerTransitioningException" +// * SchedulerTransitioningException // The specified scheduler is transitioning. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateCrawlerSchedule @@ -11730,20 +11730,20 @@ func (c *Glue) UpdateDatabaseRequest(input *UpdateDatabaseInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation UpdateDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateDatabase @@ -11822,20 +11822,20 @@ func (c *Glue) UpdateDevEndpointRequest(input *UpdateDevEndpointInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation UpdateDevEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // A value could not be validated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateDevEndpoint @@ -11913,20 +11913,20 @@ func (c *Glue) UpdateJobRequest(input *UpdateJobInput) (req *request.Request, ou // See the AWS API reference guide for AWS Glue's // API operation UpdateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateJob @@ -12009,20 +12009,20 @@ func (c *Glue) UpdateMLTransformRequest(input *UpdateMLTransformInput) (req *req // See the AWS API reference guide for AWS Glue's // API operation UpdateMLTransform for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to a resource was denied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateMLTransform @@ -12101,20 +12101,20 @@ func (c *Glue) UpdatePartitionRequest(input *UpdatePartitionInput) (req *request // See the AWS API reference guide for AWS Glue's // API operation UpdatePartition for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdatePartition @@ -12193,26 +12193,26 @@ func (c *Glue) UpdateTableRequest(input *UpdateTableInput) (req *request.Request // See the AWS API reference guide for AWS Glue's // API operation UpdateTable for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // -// * ErrCodeResourceNumberLimitExceededException "ResourceNumberLimitExceededException" +// * ResourceNumberLimitExceededException // A resource numerical limit was exceeded. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateTable @@ -12290,20 +12290,20 @@ func (c *Glue) UpdateTriggerRequest(input *UpdateTriggerInput) (req *request.Req // See the AWS API reference guide for AWS Glue's // API operation UpdateTrigger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateTrigger @@ -12382,20 +12382,20 @@ func (c *Glue) UpdateUserDefinedFunctionRequest(input *UpdateUserDefinedFunction // See the AWS API reference guide for AWS Glue's // API operation UpdateUserDefinedFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEncryptionException "GlueEncryptionException" +// * EncryptionException // An encryption operation failed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateUserDefinedFunction @@ -12473,20 +12473,20 @@ func (c *Glue) UpdateWorkflowRequest(input *UpdateWorkflowInput) (req *request.R // See the AWS API reference guide for AWS Glue's // API operation UpdateWorkflow for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // // See also, https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateWorkflow @@ -12511,6 +12511,63 @@ func (c *Glue) UpdateWorkflowWithContext(ctx aws.Context, input *UpdateWorkflowI return out, req.Send() } +// Access to a resource was denied. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Defines an action to be initiated by a trigger. type Action struct { _ struct{} `type:"structure"` @@ -12622,6 +12679,63 @@ func (s *Action) SetTimeout(v int64) *Action { return s } +// A resource to be created or added already exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + type BatchCreatePartitionInput struct { _ struct{} `type:"structure"` @@ -14448,6 +14562,120 @@ func (s *Column) SetType(v string) *Column { return s } +// Two processes are trying to modify a resource simultaneously. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Too many jobs are being run concurrently. +type ConcurrentRunsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentRunsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentRunsExceededException) GoString() string { + return s.String() +} + +func newErrorConcurrentRunsExceededException(v protocol.ResponseMetadata) error { + return &ConcurrentRunsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentRunsExceededException) Code() string { + return "ConcurrentRunsExceededException" +} + +// Message returns the exception's message. +func (s ConcurrentRunsExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentRunsExceededException) OrigErr() error { + return nil +} + +func (s ConcurrentRunsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentRunsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentRunsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Defines a condition under which a trigger fires. type Condition struct { _ struct{} `type:"structure"` @@ -14526,6 +14754,63 @@ func (s *Condition) SetState(v string) *Condition { return s } +// A specified condition was not satisfied. +type ConditionCheckFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConditionCheckFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConditionCheckFailureException) GoString() string { + return s.String() +} + +func newErrorConditionCheckFailureException(v protocol.ResponseMetadata) error { + return &ConditionCheckFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConditionCheckFailureException) Code() string { + return "ConditionCheckFailureException" +} + +// Message returns the exception's message. +func (s ConditionCheckFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConditionCheckFailureException) OrigErr() error { + return nil +} + +func (s ConditionCheckFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConditionCheckFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConditionCheckFailureException) RequestID() string { + return s.respMetadata.RequestID +} + // The confusion matrix shows you what your transform is predicting accurately // and what types of errors it is making. // @@ -15293,6 +15578,177 @@ func (s *CrawlerNodeDetails) SetCrawls(v []*Crawl) *CrawlerNodeDetails { return s } +// The specified crawler is not running. +type CrawlerNotRunningException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CrawlerNotRunningException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CrawlerNotRunningException) GoString() string { + return s.String() +} + +func newErrorCrawlerNotRunningException(v protocol.ResponseMetadata) error { + return &CrawlerNotRunningException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CrawlerNotRunningException) Code() string { + return "CrawlerNotRunningException" +} + +// Message returns the exception's message. +func (s CrawlerNotRunningException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CrawlerNotRunningException) OrigErr() error { + return nil +} + +func (s CrawlerNotRunningException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CrawlerNotRunningException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CrawlerNotRunningException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation cannot be performed because the crawler is already running. +type CrawlerRunningException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CrawlerRunningException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CrawlerRunningException) GoString() string { + return s.String() +} + +func newErrorCrawlerRunningException(v protocol.ResponseMetadata) error { + return &CrawlerRunningException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CrawlerRunningException) Code() string { + return "CrawlerRunningException" +} + +// Message returns the exception's message. +func (s CrawlerRunningException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CrawlerRunningException) OrigErr() error { + return nil +} + +func (s CrawlerRunningException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CrawlerRunningException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CrawlerRunningException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified crawler is stopping. +type CrawlerStoppingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CrawlerStoppingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CrawlerStoppingException) GoString() string { + return s.String() +} + +func newErrorCrawlerStoppingException(v protocol.ResponseMetadata) error { + return &CrawlerStoppingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CrawlerStoppingException) Code() string { + return "CrawlerStoppingException" +} + +// Message returns the exception's message. +func (s CrawlerStoppingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CrawlerStoppingException) OrigErr() error { + return nil +} + +func (s CrawlerStoppingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CrawlerStoppingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CrawlerStoppingException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies data stores to crawl. type CrawlerTargets struct { _ struct{} `type:"structure"` @@ -19722,6 +20178,120 @@ func (s *EncryptionConfiguration) SetS3Encryption(v []*S3Encryption) *Encryption return s } +// An encryption operation failed. +type EncryptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EncryptionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionException) GoString() string { + return s.String() +} + +func newErrorEncryptionException(v protocol.ResponseMetadata) error { + return &EncryptionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EncryptionException) Code() string { + return "GlueEncryptionException" +} + +// Message returns the exception's message. +func (s EncryptionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EncryptionException) OrigErr() error { + return nil +} + +func (s EncryptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EncryptionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EncryptionException) RequestID() string { + return s.respMetadata.RequestID +} + +// A specified entity does not exist +type EntityNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EntityNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityNotFoundException) GoString() string { + return s.String() +} + +func newErrorEntityNotFoundException(v protocol.ResponseMetadata) error { + return &EntityNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityNotFoundException) Code() string { + return "EntityNotFoundException" +} + +// Message returns the exception's message. +func (s EntityNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityNotFoundException) OrigErr() error { + return nil +} + +func (s EntityNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about an error. type ErrorDetail struct { _ struct{} `type:"structure"` @@ -24287,6 +24857,63 @@ func (s *GrokClassifier) SetVersion(v int64) *GrokClassifier { return s } +// The same unique identifier was associated with two different records. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + type ImportCatalogToGlueInput struct { _ struct{} `type:"structure"` @@ -24366,10 +24993,124 @@ func (s *ImportLabelsTaskRunProperties) SetInputS3Path(v string) *ImportLabelsTa return s } -// SetReplace sets the Replace field's value. -func (s *ImportLabelsTaskRunProperties) SetReplace(v bool) *ImportLabelsTaskRunProperties { - s.Replace = &v - return s +// SetReplace sets the Replace field's value. +func (s *ImportLabelsTaskRunProperties) SetReplace(v bool) *ImportLabelsTaskRunProperties { + s.Replace = &v + return s +} + +// An internal service error occurred. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input provided was not valid. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID } // Specifies a JDBC data store to crawl. @@ -26298,6 +27039,63 @@ func (s *MLTransform) SetWorkerType(v string) *MLTransform { return s } +// The machine learning transform is not ready to run. +type MLTransformNotReadyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MLTransformNotReadyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MLTransformNotReadyException) GoString() string { + return s.String() +} + +func newErrorMLTransformNotReadyException(v protocol.ResponseMetadata) error { + return &MLTransformNotReadyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MLTransformNotReadyException) Code() string { + return "MLTransformNotReadyException" +} + +// Message returns the exception's message. +func (s MLTransformNotReadyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MLTransformNotReadyException) OrigErr() error { + return nil +} + +func (s MLTransformNotReadyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MLTransformNotReadyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MLTransformNotReadyException) RequestID() string { + return s.respMetadata.RequestID +} + // Defines a mapping. type MappingEntry struct { _ struct{} `type:"structure"` @@ -26367,6 +27165,63 @@ func (s *MappingEntry) SetTargetType(v string) *MappingEntry { return s } +// There is no applicable schedule. +type NoScheduleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NoScheduleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoScheduleException) GoString() string { + return s.String() +} + +func newErrorNoScheduleException(v protocol.ResponseMetadata) error { + return &NoScheduleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoScheduleException) Code() string { + return "NoScheduleException" +} + +// Message returns the exception's message. +func (s NoScheduleException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoScheduleException) OrigErr() error { + return nil +} + +func (s NoScheduleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoScheduleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoScheduleException) RequestID() string { + return s.respMetadata.RequestID +} + // A node represents an AWS Glue component like Trigger, Job etc. which is part // of a workflow. type Node struct { @@ -26475,6 +27330,63 @@ func (s *NotificationProperty) SetNotifyDelayAfter(v int64) *NotificationPropert return s } +// The operation timed out. +type OperationTimeoutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OperationTimeoutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationTimeoutException) GoString() string { + return s.String() +} + +func newErrorOperationTimeoutException(v protocol.ResponseMetadata) error { + return &OperationTimeoutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationTimeoutException) Code() string { + return "OperationTimeoutException" +} + +// Message returns the exception's message. +func (s OperationTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationTimeoutException) OrigErr() error { + return nil +} + +func (s OperationTimeoutException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationTimeoutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationTimeoutException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the sort order of a sorted column. type Order struct { _ struct{} `type:"structure"` @@ -27326,6 +28238,63 @@ func (s *ResetJobBookmarkOutput) SetJobBookmarkEntry(v *JobBookmarkEntry) *Reset return s } +// A resource numerical limit was exceeded. +type ResourceNumberLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNumberLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNumberLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceNumberLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceNumberLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNumberLimitExceededException) Code() string { + return "ResourceNumberLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceNumberLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNumberLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceNumberLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNumberLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNumberLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The URIs for function resources. type ResourceUri struct { _ struct{} `type:"structure"` @@ -27475,6 +28444,177 @@ func (s *Schedule) SetState(v string) *Schedule { return s } +// The specified scheduler is not running. +type SchedulerNotRunningException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SchedulerNotRunningException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchedulerNotRunningException) GoString() string { + return s.String() +} + +func newErrorSchedulerNotRunningException(v protocol.ResponseMetadata) error { + return &SchedulerNotRunningException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SchedulerNotRunningException) Code() string { + return "SchedulerNotRunningException" +} + +// Message returns the exception's message. +func (s SchedulerNotRunningException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SchedulerNotRunningException) OrigErr() error { + return nil +} + +func (s SchedulerNotRunningException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SchedulerNotRunningException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SchedulerNotRunningException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified scheduler is already running. +type SchedulerRunningException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SchedulerRunningException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchedulerRunningException) GoString() string { + return s.String() +} + +func newErrorSchedulerRunningException(v protocol.ResponseMetadata) error { + return &SchedulerRunningException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SchedulerRunningException) Code() string { + return "SchedulerRunningException" +} + +// Message returns the exception's message. +func (s SchedulerRunningException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SchedulerRunningException) OrigErr() error { + return nil +} + +func (s SchedulerRunningException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SchedulerRunningException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SchedulerRunningException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified scheduler is transitioning. +type SchedulerTransitioningException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SchedulerTransitioningException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SchedulerTransitioningException) GoString() string { + return s.String() +} + +func newErrorSchedulerTransitioningException(v protocol.ResponseMetadata) error { + return &SchedulerTransitioningException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SchedulerTransitioningException) Code() string { + return "SchedulerTransitioningException" +} + +// Message returns the exception's message. +func (s SchedulerTransitioningException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SchedulerTransitioningException) OrigErr() error { + return nil +} + +func (s SchedulerTransitioningException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SchedulerTransitioningException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SchedulerTransitioningException) RequestID() string { + return s.respMetadata.RequestID +} + // A policy that specifies update and deletion behaviors for the crawler. type SchemaChangePolicy struct { _ struct{} `type:"structure"` @@ -32262,6 +33402,120 @@ func (s *UserDefinedFunctionInput) SetResourceUris(v []*ResourceUri) *UserDefine return s } +// A value could not be validated. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + +// There was a version conflict. +type VersionMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s VersionMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VersionMismatchException) GoString() string { + return s.String() +} + +func newErrorVersionMismatchException(v protocol.ResponseMetadata) error { + return &VersionMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s VersionMismatchException) Code() string { + return "VersionMismatchException" +} + +// Message returns the exception's message. +func (s VersionMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s VersionMismatchException) OrigErr() error { + return nil +} + +func (s VersionMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s VersionMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s VersionMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + // A workflow represents a flow in which AWS Glue components should be executed // to complete a logical task. type Workflow struct { diff --git a/service/glue/errors.go b/service/glue/errors.go index b9588ea38b8..dc5ad7afd38 100644 --- a/service/glue/errors.go +++ b/service/glue/errors.go @@ -2,6 +2,10 @@ package glue +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -136,3 +140,28 @@ const ( // There was a version conflict. ErrCodeVersionMismatchException = "VersionMismatchException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AlreadyExistsException": newErrorAlreadyExistsException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "ConcurrentRunsExceededException": newErrorConcurrentRunsExceededException, + "ConditionCheckFailureException": newErrorConditionCheckFailureException, + "CrawlerNotRunningException": newErrorCrawlerNotRunningException, + "CrawlerRunningException": newErrorCrawlerRunningException, + "CrawlerStoppingException": newErrorCrawlerStoppingException, + "GlueEncryptionException": newErrorEncryptionException, + "EntityNotFoundException": newErrorEntityNotFoundException, + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidInputException": newErrorInvalidInputException, + "MLTransformNotReadyException": newErrorMLTransformNotReadyException, + "NoScheduleException": newErrorNoScheduleException, + "OperationTimeoutException": newErrorOperationTimeoutException, + "ResourceNumberLimitExceededException": newErrorResourceNumberLimitExceededException, + "SchedulerNotRunningException": newErrorSchedulerNotRunningException, + "SchedulerRunningException": newErrorSchedulerRunningException, + "SchedulerTransitioningException": newErrorSchedulerTransitioningException, + "ValidationException": newErrorValidationException, + "VersionMismatchException": newErrorVersionMismatchException, +} diff --git a/service/glue/service.go b/service/glue/service.go index 18a5c73ee21..060d5ac8135 100644 --- a/service/glue/service.go +++ b/service/glue/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/greengrass/api.go b/service/greengrass/api.go index f31553e22e6..1f62bf81a43 100644 --- a/service/greengrass/api.go +++ b/service/greengrass/api.go @@ -67,11 +67,11 @@ func (c *Greengrass) AssociateRoleToGroupRequest(input *AssociateRoleToGroupInpu // See the AWS API reference guide for AWS Greengrass's // API operation AssociateRoleToGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/AssociateRoleToGroup @@ -152,11 +152,11 @@ func (c *Greengrass) AssociateServiceRoleToAccountRequest(input *AssociateServic // See the AWS API reference guide for AWS Greengrass's // API operation AssociateServiceRoleToAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/AssociateServiceRoleToAccount @@ -236,8 +236,8 @@ func (c *Greengrass) CreateConnectorDefinitionRequest(input *CreateConnectorDefi // See the AWS API reference guide for AWS Greengrass's // API operation CreateConnectorDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinition @@ -315,8 +315,8 @@ func (c *Greengrass) CreateConnectorDefinitionVersionRequest(input *CreateConnec // See the AWS API reference guide for AWS Greengrass's // API operation CreateConnectorDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinitionVersion @@ -396,8 +396,8 @@ func (c *Greengrass) CreateCoreDefinitionRequest(input *CreateCoreDefinitionInpu // See the AWS API reference guide for AWS Greengrass's // API operation CreateCoreDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateCoreDefinition @@ -476,8 +476,8 @@ func (c *Greengrass) CreateCoreDefinitionVersionRequest(input *CreateCoreDefinit // See the AWS API reference guide for AWS Greengrass's // API operation CreateCoreDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateCoreDefinitionVersion @@ -556,8 +556,8 @@ func (c *Greengrass) CreateDeploymentRequest(input *CreateDeploymentInput) (req // See the AWS API reference guide for AWS Greengrass's // API operation CreateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateDeployment @@ -636,8 +636,8 @@ func (c *Greengrass) CreateDeviceDefinitionRequest(input *CreateDeviceDefinition // See the AWS API reference guide for AWS Greengrass's // API operation CreateDeviceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateDeviceDefinition @@ -715,8 +715,8 @@ func (c *Greengrass) CreateDeviceDefinitionVersionRequest(input *CreateDeviceDef // See the AWS API reference guide for AWS Greengrass's // API operation CreateDeviceDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateDeviceDefinitionVersion @@ -797,8 +797,8 @@ func (c *Greengrass) CreateFunctionDefinitionRequest(input *CreateFunctionDefini // See the AWS API reference guide for AWS Greengrass's // API operation CreateFunctionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateFunctionDefinition @@ -876,8 +876,8 @@ func (c *Greengrass) CreateFunctionDefinitionVersionRequest(input *CreateFunctio // See the AWS API reference guide for AWS Greengrass's // API operation CreateFunctionDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateFunctionDefinitionVersion @@ -958,8 +958,8 @@ func (c *Greengrass) CreateGroupRequest(input *CreateGroupInput) (req *request.R // See the AWS API reference guide for AWS Greengrass's // API operation CreateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateGroup @@ -1038,11 +1038,11 @@ func (c *Greengrass) CreateGroupCertificateAuthorityRequest(input *CreateGroupCe // See the AWS API reference guide for AWS Greengrass's // API operation CreateGroupCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateGroupCertificateAuthority @@ -1120,8 +1120,8 @@ func (c *Greengrass) CreateGroupVersionRequest(input *CreateGroupVersionInput) ( // See the AWS API reference guide for AWS Greengrass's // API operation CreateGroupVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateGroupVersion @@ -1200,8 +1200,8 @@ func (c *Greengrass) CreateLoggerDefinitionRequest(input *CreateLoggerDefinition // See the AWS API reference guide for AWS Greengrass's // API operation CreateLoggerDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateLoggerDefinition @@ -1279,8 +1279,8 @@ func (c *Greengrass) CreateLoggerDefinitionVersionRequest(input *CreateLoggerDef // See the AWS API reference guide for AWS Greengrass's // API operation CreateLoggerDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateLoggerDefinitionVersion @@ -1360,8 +1360,8 @@ func (c *Greengrass) CreateResourceDefinitionRequest(input *CreateResourceDefini // See the AWS API reference guide for AWS Greengrass's // API operation CreateResourceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinition @@ -1439,8 +1439,8 @@ func (c *Greengrass) CreateResourceDefinitionVersionRequest(input *CreateResourc // See the AWS API reference guide for AWS Greengrass's // API operation CreateResourceDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionVersion @@ -1521,11 +1521,11 @@ func (c *Greengrass) CreateSoftwareUpdateJobRequest(input *CreateSoftwareUpdateJ // See the AWS API reference guide for AWS Greengrass's // API operation CreateSoftwareUpdateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSoftwareUpdateJob @@ -1605,8 +1605,8 @@ func (c *Greengrass) CreateSubscriptionDefinitionRequest(input *CreateSubscripti // See the AWS API reference guide for AWS Greengrass's // API operation CreateSubscriptionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSubscriptionDefinition @@ -1684,8 +1684,8 @@ func (c *Greengrass) CreateSubscriptionDefinitionVersionRequest(input *CreateSub // See the AWS API reference guide for AWS Greengrass's // API operation CreateSubscriptionDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSubscriptionDefinitionVersion @@ -1764,8 +1764,8 @@ func (c *Greengrass) DeleteConnectorDefinitionRequest(input *DeleteConnectorDefi // See the AWS API reference guide for AWS Greengrass's // API operation DeleteConnectorDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteConnectorDefinition @@ -1844,8 +1844,8 @@ func (c *Greengrass) DeleteCoreDefinitionRequest(input *DeleteCoreDefinitionInpu // See the AWS API reference guide for AWS Greengrass's // API operation DeleteCoreDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteCoreDefinition @@ -1924,8 +1924,8 @@ func (c *Greengrass) DeleteDeviceDefinitionRequest(input *DeleteDeviceDefinition // See the AWS API reference guide for AWS Greengrass's // API operation DeleteDeviceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteDeviceDefinition @@ -2004,8 +2004,8 @@ func (c *Greengrass) DeleteFunctionDefinitionRequest(input *DeleteFunctionDefini // See the AWS API reference guide for AWS Greengrass's // API operation DeleteFunctionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteFunctionDefinition @@ -2084,8 +2084,8 @@ func (c *Greengrass) DeleteGroupRequest(input *DeleteGroupInput) (req *request.R // See the AWS API reference guide for AWS Greengrass's // API operation DeleteGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteGroup @@ -2164,8 +2164,8 @@ func (c *Greengrass) DeleteLoggerDefinitionRequest(input *DeleteLoggerDefinition // See the AWS API reference guide for AWS Greengrass's // API operation DeleteLoggerDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteLoggerDefinition @@ -2244,8 +2244,8 @@ func (c *Greengrass) DeleteResourceDefinitionRequest(input *DeleteResourceDefini // See the AWS API reference guide for AWS Greengrass's // API operation DeleteResourceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteResourceDefinition @@ -2324,8 +2324,8 @@ func (c *Greengrass) DeleteSubscriptionDefinitionRequest(input *DeleteSubscripti // See the AWS API reference guide for AWS Greengrass's // API operation DeleteSubscriptionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteSubscriptionDefinition @@ -2403,11 +2403,11 @@ func (c *Greengrass) DisassociateRoleFromGroupRequest(input *DisassociateRoleFro // See the AWS API reference guide for AWS Greengrass's // API operation DisassociateRoleFromGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DisassociateRoleFromGroup @@ -2486,8 +2486,8 @@ func (c *Greengrass) DisassociateServiceRoleFromAccountRequest(input *Disassocia // See the AWS API reference guide for AWS Greengrass's // API operation DisassociateServiceRoleFromAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returned Error Types: +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DisassociateServiceRoleFromAccount @@ -2565,11 +2565,11 @@ func (c *Greengrass) GetAssociatedRoleRequest(input *GetAssociatedRoleInput) (re // See the AWS API reference guide for AWS Greengrass's // API operation GetAssociatedRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetAssociatedRole @@ -2647,8 +2647,8 @@ func (c *Greengrass) GetBulkDeploymentStatusRequest(input *GetBulkDeploymentStat // See the AWS API reference guide for AWS Greengrass's // API operation GetBulkDeploymentStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetBulkDeploymentStatus @@ -2726,11 +2726,11 @@ func (c *Greengrass) GetConnectivityInfoRequest(input *GetConnectivityInfoInput) // See the AWS API reference guide for AWS Greengrass's // API operation GetConnectivityInfo for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectivityInfo @@ -2808,8 +2808,8 @@ func (c *Greengrass) GetConnectorDefinitionRequest(input *GetConnectorDefinition // See the AWS API reference guide for AWS Greengrass's // API operation GetConnectorDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinition @@ -2890,8 +2890,8 @@ func (c *Greengrass) GetConnectorDefinitionVersionRequest(input *GetConnectorDef // See the AWS API reference guide for AWS Greengrass's // API operation GetConnectorDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinitionVersion @@ -2969,8 +2969,8 @@ func (c *Greengrass) GetCoreDefinitionRequest(input *GetCoreDefinitionInput) (re // See the AWS API reference guide for AWS Greengrass's // API operation GetCoreDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinition @@ -3048,8 +3048,8 @@ func (c *Greengrass) GetCoreDefinitionVersionRequest(input *GetCoreDefinitionVer // See the AWS API reference guide for AWS Greengrass's // API operation GetCoreDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinitionVersion @@ -3127,8 +3127,8 @@ func (c *Greengrass) GetDeploymentStatusRequest(input *GetDeploymentStatusInput) // See the AWS API reference guide for AWS Greengrass's // API operation GetDeploymentStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetDeploymentStatus @@ -3206,8 +3206,8 @@ func (c *Greengrass) GetDeviceDefinitionRequest(input *GetDeviceDefinitionInput) // See the AWS API reference guide for AWS Greengrass's // API operation GetDeviceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetDeviceDefinition @@ -3285,8 +3285,8 @@ func (c *Greengrass) GetDeviceDefinitionVersionRequest(input *GetDeviceDefinitio // See the AWS API reference guide for AWS Greengrass's // API operation GetDeviceDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetDeviceDefinitionVersion @@ -3365,8 +3365,8 @@ func (c *Greengrass) GetFunctionDefinitionRequest(input *GetFunctionDefinitionIn // See the AWS API reference guide for AWS Greengrass's // API operation GetFunctionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetFunctionDefinition @@ -3445,8 +3445,8 @@ func (c *Greengrass) GetFunctionDefinitionVersionRequest(input *GetFunctionDefin // See the AWS API reference guide for AWS Greengrass's // API operation GetFunctionDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetFunctionDefinitionVersion @@ -3524,8 +3524,8 @@ func (c *Greengrass) GetGroupRequest(input *GetGroupInput) (req *request.Request // See the AWS API reference guide for AWS Greengrass's // API operation GetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroup @@ -3603,11 +3603,11 @@ func (c *Greengrass) GetGroupCertificateAuthorityRequest(input *GetGroupCertific // See the AWS API reference guide for AWS Greengrass's // API operation GetGroupCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupCertificateAuthority @@ -3685,11 +3685,11 @@ func (c *Greengrass) GetGroupCertificateConfigurationRequest(input *GetGroupCert // See the AWS API reference guide for AWS Greengrass's // API operation GetGroupCertificateConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupCertificateConfiguration @@ -3767,8 +3767,8 @@ func (c *Greengrass) GetGroupVersionRequest(input *GetGroupVersionInput) (req *r // See the AWS API reference guide for AWS Greengrass's // API operation GetGroupVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupVersion @@ -3846,8 +3846,8 @@ func (c *Greengrass) GetLoggerDefinitionRequest(input *GetLoggerDefinitionInput) // See the AWS API reference guide for AWS Greengrass's // API operation GetLoggerDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetLoggerDefinition @@ -3925,8 +3925,8 @@ func (c *Greengrass) GetLoggerDefinitionVersionRequest(input *GetLoggerDefinitio // See the AWS API reference guide for AWS Greengrass's // API operation GetLoggerDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetLoggerDefinitionVersion @@ -4005,8 +4005,8 @@ func (c *Greengrass) GetResourceDefinitionRequest(input *GetResourceDefinitionIn // See the AWS API reference guide for AWS Greengrass's // API operation GetResourceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinition @@ -4085,8 +4085,8 @@ func (c *Greengrass) GetResourceDefinitionVersionRequest(input *GetResourceDefin // See the AWS API reference guide for AWS Greengrass's // API operation GetResourceDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionVersion @@ -4164,8 +4164,8 @@ func (c *Greengrass) GetServiceRoleForAccountRequest(input *GetServiceRoleForAcc // See the AWS API reference guide for AWS Greengrass's // API operation GetServiceRoleForAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// Returned Error Types: +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetServiceRoleForAccount @@ -4243,8 +4243,8 @@ func (c *Greengrass) GetSubscriptionDefinitionRequest(input *GetSubscriptionDefi // See the AWS API reference guide for AWS Greengrass's // API operation GetSubscriptionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetSubscriptionDefinition @@ -4322,8 +4322,8 @@ func (c *Greengrass) GetSubscriptionDefinitionVersionRequest(input *GetSubscript // See the AWS API reference guide for AWS Greengrass's // API operation GetSubscriptionDefinitionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetSubscriptionDefinitionVersion @@ -4402,8 +4402,8 @@ func (c *Greengrass) ListBulkDeploymentDetailedReportsRequest(input *ListBulkDep // See the AWS API reference guide for AWS Greengrass's // API operation ListBulkDeploymentDetailedReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeploymentDetailedReports @@ -4481,8 +4481,8 @@ func (c *Greengrass) ListBulkDeploymentsRequest(input *ListBulkDeploymentsInput) // See the AWS API reference guide for AWS Greengrass's // API operation ListBulkDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeployments @@ -4562,8 +4562,8 @@ func (c *Greengrass) ListConnectorDefinitionVersionsRequest(input *ListConnector // See the AWS API reference guide for AWS Greengrass's // API operation ListConnectorDefinitionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListConnectorDefinitionVersions @@ -4715,8 +4715,8 @@ func (c *Greengrass) ListCoreDefinitionVersionsRequest(input *ListCoreDefinition // See the AWS API reference guide for AWS Greengrass's // API operation ListCoreDefinitionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitionVersions @@ -4868,8 +4868,8 @@ func (c *Greengrass) ListDeploymentsRequest(input *ListDeploymentsInput) (req *r // See the AWS API reference guide for AWS Greengrass's // API operation ListDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeployments @@ -4947,8 +4947,8 @@ func (c *Greengrass) ListDeviceDefinitionVersionsRequest(input *ListDeviceDefini // See the AWS API reference guide for AWS Greengrass's // API operation ListDeviceDefinitionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitionVersions @@ -5100,8 +5100,8 @@ func (c *Greengrass) ListFunctionDefinitionVersionsRequest(input *ListFunctionDe // See the AWS API reference guide for AWS Greengrass's // API operation ListFunctionDefinitionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitionVersions @@ -5253,11 +5253,11 @@ func (c *Greengrass) ListGroupCertificateAuthoritiesRequest(input *ListGroupCert // See the AWS API reference guide for AWS Greengrass's // API operation ListGroupCertificateAuthorities for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupCertificateAuthorities @@ -5335,8 +5335,8 @@ func (c *Greengrass) ListGroupVersionsRequest(input *ListGroupVersionsInput) (re // See the AWS API reference guide for AWS Greengrass's // API operation ListGroupVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupVersions @@ -5488,8 +5488,8 @@ func (c *Greengrass) ListLoggerDefinitionVersionsRequest(input *ListLoggerDefini // See the AWS API reference guide for AWS Greengrass's // API operation ListLoggerDefinitionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitionVersions @@ -5641,8 +5641,8 @@ func (c *Greengrass) ListResourceDefinitionVersionsRequest(input *ListResourceDe // See the AWS API reference guide for AWS Greengrass's // API operation ListResourceDefinitionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersions @@ -5794,8 +5794,8 @@ func (c *Greengrass) ListSubscriptionDefinitionVersionsRequest(input *ListSubscr // See the AWS API reference guide for AWS Greengrass's // API operation ListSubscriptionDefinitionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitionVersions @@ -5947,8 +5947,8 @@ func (c *Greengrass) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS Greengrass's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListTagsForResource @@ -6026,8 +6026,8 @@ func (c *Greengrass) ResetDeploymentsRequest(input *ResetDeploymentsInput) (req // See the AWS API reference guide for AWS Greengrass's // API operation ResetDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments @@ -6110,8 +6110,8 @@ func (c *Greengrass) StartBulkDeploymentRequest(input *StartBulkDeploymentInput) // See the AWS API reference guide for AWS Greengrass's // API operation StartBulkDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StartBulkDeployment @@ -6193,8 +6193,8 @@ func (c *Greengrass) StopBulkDeploymentRequest(input *StopBulkDeploymentInput) ( // See the AWS API reference guide for AWS Greengrass's // API operation StopBulkDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StopBulkDeployment @@ -6275,8 +6275,8 @@ func (c *Greengrass) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for AWS Greengrass's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/TagResource @@ -6355,8 +6355,8 @@ func (c *Greengrass) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for AWS Greengrass's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UntagResource @@ -6436,11 +6436,11 @@ func (c *Greengrass) UpdateConnectivityInfoRequest(input *UpdateConnectivityInfo // See the AWS API reference guide for AWS Greengrass's // API operation UpdateConnectivityInfo for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectivityInfo @@ -6519,8 +6519,8 @@ func (c *Greengrass) UpdateConnectorDefinitionRequest(input *UpdateConnectorDefi // See the AWS API reference guide for AWS Greengrass's // API operation UpdateConnectorDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectorDefinition @@ -6599,8 +6599,8 @@ func (c *Greengrass) UpdateCoreDefinitionRequest(input *UpdateCoreDefinitionInpu // See the AWS API reference guide for AWS Greengrass's // API operation UpdateCoreDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateCoreDefinition @@ -6679,8 +6679,8 @@ func (c *Greengrass) UpdateDeviceDefinitionRequest(input *UpdateDeviceDefinition // See the AWS API reference guide for AWS Greengrass's // API operation UpdateDeviceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateDeviceDefinition @@ -6759,8 +6759,8 @@ func (c *Greengrass) UpdateFunctionDefinitionRequest(input *UpdateFunctionDefini // See the AWS API reference guide for AWS Greengrass's // API operation UpdateFunctionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateFunctionDefinition @@ -6839,8 +6839,8 @@ func (c *Greengrass) UpdateGroupRequest(input *UpdateGroupInput) (req *request.R // See the AWS API reference guide for AWS Greengrass's // API operation UpdateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroup @@ -6918,11 +6918,11 @@ func (c *Greengrass) UpdateGroupCertificateConfigurationRequest(input *UpdateGro // See the AWS API reference guide for AWS Greengrass's // API operation UpdateGroupCertificateConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroupCertificateConfiguration @@ -7001,8 +7001,8 @@ func (c *Greengrass) UpdateLoggerDefinitionRequest(input *UpdateLoggerDefinition // See the AWS API reference guide for AWS Greengrass's // API operation UpdateLoggerDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateLoggerDefinition @@ -7081,8 +7081,8 @@ func (c *Greengrass) UpdateResourceDefinitionRequest(input *UpdateResourceDefini // See the AWS API reference guide for AWS Greengrass's // API operation UpdateResourceDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinition @@ -7161,8 +7161,8 @@ func (c *Greengrass) UpdateSubscriptionDefinitionRequest(input *UpdateSubscripti // See the AWS API reference guide for AWS Greengrass's // API operation UpdateSubscriptionDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // General error information. // // See also, https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateSubscriptionDefinition @@ -7326,6 +7326,65 @@ func (s *AssociateServiceRoleToAccountOutput) SetAssociatedAt(v string) *Associa return s } +// General error information. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A list of error details. + ErrorDetails []*ErrorDetail `type:"list"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a bulk deployment. You cannot start a new bulk deployment // while another one is still running or in a non-terminal state. type BulkDeployment struct { @@ -14145,6 +14204,65 @@ func (s *GroupVersion) SetSubscriptionDefinitionVersionArn(v string) *GroupVersi return s } +// General error information. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A list of error details. + ErrorDetails []*ErrorDetail `type:"list"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListBulkDeploymentDetailedReportsInput struct { _ struct{} `type:"structure"` diff --git a/service/greengrass/errors.go b/service/greengrass/errors.go index 9da6c5076fa..efca7778c95 100644 --- a/service/greengrass/errors.go +++ b/service/greengrass/errors.go @@ -2,6 +2,10 @@ package greengrass +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -16,3 +20,8 @@ const ( // General error information. ErrCodeInternalServerErrorException = "InternalServerErrorException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "InternalServerErrorException": newErrorInternalServerErrorException, +} diff --git a/service/greengrass/service.go b/service/greengrass/service.go index 385c183efd4..6d47a15c69a 100644 --- a/service/greengrass/service.go +++ b/service/greengrass/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/groundstation/api.go b/service/groundstation/api.go index d3a612d5bc1..1517e4200f1 100644 --- a/service/groundstation/api.go +++ b/service/groundstation/api.go @@ -66,14 +66,14 @@ func (c *GroundStation) CancelContactRequest(input *CancelContactInput) (req *re // See the AWS API reference guide for AWS Ground Station's // API operation CancelContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/CancelContact @@ -153,14 +153,14 @@ func (c *GroundStation) CreateConfigRequest(input *CreateConfigInput) (req *requ // See the AWS API reference guide for AWS Ground Station's // API operation CreateConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/CreateConfig @@ -245,14 +245,14 @@ func (c *GroundStation) CreateDataflowEndpointGroupRequest(input *CreateDataflow // See the AWS API reference guide for AWS Ground Station's // API operation CreateDataflowEndpointGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/CreateDataflowEndpointGroup @@ -333,14 +333,14 @@ func (c *GroundStation) CreateMissionProfileRequest(input *CreateMissionProfileI // See the AWS API reference guide for AWS Ground Station's // API operation CreateMissionProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/CreateMissionProfile @@ -418,14 +418,14 @@ func (c *GroundStation) DeleteConfigRequest(input *DeleteConfigInput) (req *requ // See the AWS API reference guide for AWS Ground Station's // API operation DeleteConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/DeleteConfig @@ -503,14 +503,14 @@ func (c *GroundStation) DeleteDataflowEndpointGroupRequest(input *DeleteDataflow // See the AWS API reference guide for AWS Ground Station's // API operation DeleteDataflowEndpointGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/DeleteDataflowEndpointGroup @@ -588,14 +588,14 @@ func (c *GroundStation) DeleteMissionProfileRequest(input *DeleteMissionProfileI // See the AWS API reference guide for AWS Ground Station's // API operation DeleteMissionProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/DeleteMissionProfile @@ -673,14 +673,14 @@ func (c *GroundStation) DescribeContactRequest(input *DescribeContactInput) (req // See the AWS API reference guide for AWS Ground Station's // API operation DescribeContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/DescribeContact @@ -760,14 +760,14 @@ func (c *GroundStation) GetConfigRequest(input *GetConfigInput) (req *request.Re // See the AWS API reference guide for AWS Ground Station's // API operation GetConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetConfig @@ -845,14 +845,14 @@ func (c *GroundStation) GetDataflowEndpointGroupRequest(input *GetDataflowEndpoi // See the AWS API reference guide for AWS Ground Station's // API operation GetDataflowEndpointGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetDataflowEndpointGroup @@ -930,14 +930,14 @@ func (c *GroundStation) GetMinuteUsageRequest(input *GetMinuteUsageInput) (req * // See the AWS API reference guide for AWS Ground Station's // API operation GetMinuteUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetMinuteUsage @@ -1015,14 +1015,14 @@ func (c *GroundStation) GetMissionProfileRequest(input *GetMissionProfileInput) // See the AWS API reference guide for AWS Ground Station's // API operation GetMissionProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetMissionProfile @@ -1100,14 +1100,14 @@ func (c *GroundStation) GetSatelliteRequest(input *GetSatelliteInput) (req *requ // See the AWS API reference guide for AWS Ground Station's // API operation GetSatellite for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/GetSatellite @@ -1191,14 +1191,14 @@ func (c *GroundStation) ListConfigsRequest(input *ListConfigsInput) (req *reques // See the AWS API reference guide for AWS Ground Station's // API operation ListConfigs for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ListConfigs @@ -1337,14 +1337,14 @@ func (c *GroundStation) ListContactsRequest(input *ListContactsInput) (req *requ // See the AWS API reference guide for AWS Ground Station's // API operation ListContacts for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ListContacts @@ -1480,14 +1480,14 @@ func (c *GroundStation) ListDataflowEndpointGroupsRequest(input *ListDataflowEnd // See the AWS API reference guide for AWS Ground Station's // API operation ListDataflowEndpointGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ListDataflowEndpointGroups @@ -1623,14 +1623,14 @@ func (c *GroundStation) ListGroundStationsRequest(input *ListGroundStationsInput // See the AWS API reference guide for AWS Ground Station's // API operation ListGroundStations for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ListGroundStations @@ -1766,14 +1766,14 @@ func (c *GroundStation) ListMissionProfilesRequest(input *ListMissionProfilesInp // See the AWS API reference guide for AWS Ground Station's // API operation ListMissionProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ListMissionProfiles @@ -1909,14 +1909,14 @@ func (c *GroundStation) ListSatellitesRequest(input *ListSatellitesInput) (req * // See the AWS API reference guide for AWS Ground Station's // API operation ListSatellites for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ListSatellites @@ -2046,14 +2046,14 @@ func (c *GroundStation) ListTagsForResourceRequest(input *ListTagsForResourceInp // See the AWS API reference guide for AWS Ground Station's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ListTagsForResource @@ -2131,14 +2131,14 @@ func (c *GroundStation) ReserveContactRequest(input *ReserveContactInput) (req * // See the AWS API reference guide for AWS Ground Station's // API operation ReserveContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/ReserveContact @@ -2217,14 +2217,14 @@ func (c *GroundStation) TagResourceRequest(input *TagResourceInput) (req *reques // See the AWS API reference guide for AWS Ground Station's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/TagResource @@ -2303,14 +2303,14 @@ func (c *GroundStation) UntagResourceRequest(input *UntagResourceInput) (req *re // See the AWS API reference guide for AWS Ground Station's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/UntagResource @@ -2391,14 +2391,14 @@ func (c *GroundStation) UpdateConfigRequest(input *UpdateConfigInput) (req *requ // See the AWS API reference guide for AWS Ground Station's // API operation UpdateConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/UpdateConfig @@ -2479,14 +2479,14 @@ func (c *GroundStation) UpdateMissionProfileRequest(input *UpdateMissionProfileI // See the AWS API reference guide for AWS Ground Station's // API operation UpdateMissionProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyException "DependencyException" +// Returned Error Types: +// * DependencyException // Dependency encountered an error. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/groundstation-2019-05-23/UpdateMissionProfile @@ -3810,6 +3810,64 @@ func (s *DemodulationConfig) SetUnvalidatedJSON(v string) *DemodulationConfig { return s } +// Dependency encountered an error. +type DependencyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ParameterName *string `locationName:"parameterName" type:"string"` +} + +// String returns the string representation +func (s DependencyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DependencyException) GoString() string { + return s.String() +} + +func newErrorDependencyException(v protocol.ResponseMetadata) error { + return &DependencyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DependencyException) Code() string { + return "DependencyException" +} + +// Message returns the exception's message. +func (s DependencyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DependencyException) OrigErr() error { + return nil +} + +func (s DependencyException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DependencyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DependencyException) RequestID() string { + return s.respMetadata.RequestID +} + type DescribeContactInput struct { _ struct{} `type:"structure"` @@ -4738,6 +4796,64 @@ func (s *GetSatelliteOutput) SetTags(v map[string]*string) *GetSatelliteOutput { return s } +// One or more parameters are not valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ParameterName *string `locationName:"parameterName" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + type ListConfigsInput struct { _ struct{} `type:"structure"` @@ -5390,6 +5506,62 @@ func (s *ReserveContactOutput) SetContactId(v string) *ReserveContactOutput { return s } +// Resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Item in a list of satellites. type SatelliteListItem struct { _ struct{} `type:"structure"` diff --git a/service/groundstation/errors.go b/service/groundstation/errors.go index 4c12326b754..9ff7b04dd3e 100644 --- a/service/groundstation/errors.go +++ b/service/groundstation/errors.go @@ -2,6 +2,10 @@ package groundstation +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDependencyException for service response error code @@ -22,3 +26,9 @@ const ( // Resource was not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DependencyException": newErrorDependencyException, + "InvalidParameterException": newErrorInvalidParameterException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/groundstation/service.go b/service/groundstation/service.go index 660811327a2..aa8a6317512 100644 --- a/service/groundstation/service.go +++ b/service/groundstation/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/guardduty/api.go b/service/guardduty/api.go index c7b6e72b782..f5b30ccee0f 100644 --- a/service/guardduty/api.go +++ b/service/guardduty/api.go @@ -66,11 +66,11 @@ func (c *GuardDuty) AcceptInvitationRequest(input *AcceptInvitationInput) (req * // See the AWS API reference guide for Amazon GuardDuty's // API operation AcceptInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AcceptInvitation @@ -152,11 +152,11 @@ func (c *GuardDuty) ArchiveFindingsRequest(input *ArchiveFindingsInput) (req *re // See the AWS API reference guide for Amazon GuardDuty's // API operation ArchiveFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ArchiveFindings @@ -237,11 +237,11 @@ func (c *GuardDuty) CreateDetectorRequest(input *CreateDetectorInput) (req *requ // See the AWS API reference guide for Amazon GuardDuty's // API operation CreateDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateDetector @@ -319,11 +319,11 @@ func (c *GuardDuty) CreateFilterRequest(input *CreateFilterInput) (req *request. // See the AWS API reference guide for Amazon GuardDuty's // API operation CreateFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateFilter @@ -405,11 +405,11 @@ func (c *GuardDuty) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation CreateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateIPSet @@ -489,11 +489,11 @@ func (c *GuardDuty) CreateMembersRequest(input *CreateMembersInput) (req *reques // See the AWS API reference guide for Amazon GuardDuty's // API operation CreateMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateMembers @@ -572,11 +572,11 @@ func (c *GuardDuty) CreatePublishingDestinationRequest(input *CreatePublishingDe // See the AWS API reference guide for Amazon GuardDuty's // API operation CreatePublishingDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreatePublishingDestination @@ -657,11 +657,11 @@ func (c *GuardDuty) CreateSampleFindingsRequest(input *CreateSampleFindingsInput // See the AWS API reference guide for Amazon GuardDuty's // API operation CreateSampleFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateSampleFindings @@ -741,11 +741,11 @@ func (c *GuardDuty) CreateThreatIntelSetRequest(input *CreateThreatIntelSetInput // See the AWS API reference guide for Amazon GuardDuty's // API operation CreateThreatIntelSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateThreatIntelSet @@ -824,11 +824,11 @@ func (c *GuardDuty) DeclineInvitationsRequest(input *DeclineInvitationsInput) (r // See the AWS API reference guide for Amazon GuardDuty's // API operation DeclineInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeclineInvitations @@ -907,11 +907,11 @@ func (c *GuardDuty) DeleteDetectorRequest(input *DeleteDetectorInput) (req *requ // See the AWS API reference guide for Amazon GuardDuty's // API operation DeleteDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteDetector @@ -990,11 +990,11 @@ func (c *GuardDuty) DeleteFilterRequest(input *DeleteFilterInput) (req *request. // See the AWS API reference guide for Amazon GuardDuty's // API operation DeleteFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteFilter @@ -1074,11 +1074,11 @@ func (c *GuardDuty) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation DeleteIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteIPSet @@ -1157,11 +1157,11 @@ func (c *GuardDuty) DeleteInvitationsRequest(input *DeleteInvitationsInput) (req // See the AWS API reference guide for Amazon GuardDuty's // API operation DeleteInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteInvitations @@ -1240,11 +1240,11 @@ func (c *GuardDuty) DeleteMembersRequest(input *DeleteMembersInput) (req *reques // See the AWS API reference guide for Amazon GuardDuty's // API operation DeleteMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteMembers @@ -1323,11 +1323,11 @@ func (c *GuardDuty) DeletePublishingDestinationRequest(input *DeletePublishingDe // See the AWS API reference guide for Amazon GuardDuty's // API operation DeletePublishingDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeletePublishingDestination @@ -1406,11 +1406,11 @@ func (c *GuardDuty) DeleteThreatIntelSetRequest(input *DeleteThreatIntelSetInput // See the AWS API reference guide for Amazon GuardDuty's // API operation DeleteThreatIntelSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteThreatIntelSet @@ -1489,11 +1489,11 @@ func (c *GuardDuty) DescribePublishingDestinationRequest(input *DescribePublishi // See the AWS API reference guide for Amazon GuardDuty's // API operation DescribePublishingDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DescribePublishingDestination @@ -1572,11 +1572,11 @@ func (c *GuardDuty) DisassociateFromMasterAccountRequest(input *DisassociateFrom // See the AWS API reference guide for Amazon GuardDuty's // API operation DisassociateFromMasterAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateFromMasterAccount @@ -1655,11 +1655,11 @@ func (c *GuardDuty) DisassociateMembersRequest(input *DisassociateMembersInput) // See the AWS API reference guide for Amazon GuardDuty's // API operation DisassociateMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateMembers @@ -1737,11 +1737,11 @@ func (c *GuardDuty) GetDetectorRequest(input *GetDetectorInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation GetDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetDetector @@ -1819,11 +1819,11 @@ func (c *GuardDuty) GetFilterRequest(input *GetFilterInput) (req *request.Reques // See the AWS API reference guide for Amazon GuardDuty's // API operation GetFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFilter @@ -1901,11 +1901,11 @@ func (c *GuardDuty) GetFindingsRequest(input *GetFindingsInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation GetFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindings @@ -1983,11 +1983,11 @@ func (c *GuardDuty) GetFindingsStatisticsRequest(input *GetFindingsStatisticsInp // See the AWS API reference guide for Amazon GuardDuty's // API operation GetFindingsStatistics for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatistics @@ -2065,11 +2065,11 @@ func (c *GuardDuty) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, // See the AWS API reference guide for Amazon GuardDuty's // API operation GetIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetIPSet @@ -2148,11 +2148,11 @@ func (c *GuardDuty) GetInvitationsCountRequest(input *GetInvitationsCountInput) // See the AWS API reference guide for Amazon GuardDuty's // API operation GetInvitationsCount for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetInvitationsCount @@ -2231,11 +2231,11 @@ func (c *GuardDuty) GetMasterAccountRequest(input *GetMasterAccountInput) (req * // See the AWS API reference guide for Amazon GuardDuty's // API operation GetMasterAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMasterAccount @@ -2314,11 +2314,11 @@ func (c *GuardDuty) GetMembersRequest(input *GetMembersInput) (req *request.Requ // See the AWS API reference guide for Amazon GuardDuty's // API operation GetMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMembers @@ -2396,11 +2396,11 @@ func (c *GuardDuty) GetThreatIntelSetRequest(input *GetThreatIntelSetInput) (req // See the AWS API reference guide for Amazon GuardDuty's // API operation GetThreatIntelSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetThreatIntelSet @@ -2481,11 +2481,11 @@ func (c *GuardDuty) InviteMembersRequest(input *InviteMembersInput) (req *reques // See the AWS API reference guide for Amazon GuardDuty's // API operation InviteMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/InviteMembers @@ -2569,11 +2569,11 @@ func (c *GuardDuty) ListDetectorsRequest(input *ListDetectorsInput) (req *reques // See the AWS API reference guide for Amazon GuardDuty's // API operation ListDetectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListDetectors @@ -2709,11 +2709,11 @@ func (c *GuardDuty) ListFiltersRequest(input *ListFiltersInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation ListFilters for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListFilters @@ -2849,11 +2849,11 @@ func (c *GuardDuty) ListFindingsRequest(input *ListFindingsInput) (req *request. // See the AWS API reference guide for Amazon GuardDuty's // API operation ListFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListFindings @@ -2991,11 +2991,11 @@ func (c *GuardDuty) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Requ // See the AWS API reference guide for Amazon GuardDuty's // API operation ListIPSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListIPSets @@ -3132,11 +3132,11 @@ func (c *GuardDuty) ListInvitationsRequest(input *ListInvitationsInput) (req *re // See the AWS API reference guide for Amazon GuardDuty's // API operation ListInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListInvitations @@ -3273,11 +3273,11 @@ func (c *GuardDuty) ListMembersRequest(input *ListMembersInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation ListMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListMembers @@ -3413,11 +3413,11 @@ func (c *GuardDuty) ListPublishingDestinationsRequest(input *ListPublishingDesti // See the AWS API reference guide for Amazon GuardDuty's // API operation ListPublishingDestinations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListPublishingDestinations @@ -3550,11 +3550,11 @@ func (c *GuardDuty) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for Amazon GuardDuty's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListTagsForResource @@ -3640,11 +3640,11 @@ func (c *GuardDuty) ListThreatIntelSetsRequest(input *ListThreatIntelSetsInput) // See the AWS API reference guide for Amazon GuardDuty's // API operation ListThreatIntelSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListThreatIntelSets @@ -3776,11 +3776,11 @@ func (c *GuardDuty) StartMonitoringMembersRequest(input *StartMonitoringMembersI // See the AWS API reference guide for Amazon GuardDuty's // API operation StartMonitoringMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/StartMonitoringMembers @@ -3859,11 +3859,11 @@ func (c *GuardDuty) StopMonitoringMembersRequest(input *StopMonitoringMembersInp // See the AWS API reference guide for Amazon GuardDuty's // API operation StopMonitoringMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/StopMonitoringMembers @@ -3942,11 +3942,11 @@ func (c *GuardDuty) TagResourceRequest(input *TagResourceInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/TagResource @@ -4025,11 +4025,11 @@ func (c *GuardDuty) UnarchiveFindingsRequest(input *UnarchiveFindingsInput) (req // See the AWS API reference guide for Amazon GuardDuty's // API operation UnarchiveFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UnarchiveFindings @@ -4108,11 +4108,11 @@ func (c *GuardDuty) UntagResourceRequest(input *UntagResourceInput) (req *reques // See the AWS API reference guide for Amazon GuardDuty's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UntagResource @@ -4191,11 +4191,11 @@ func (c *GuardDuty) UpdateDetectorRequest(input *UpdateDetectorInput) (req *requ // See the AWS API reference guide for Amazon GuardDuty's // API operation UpdateDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateDetector @@ -4273,11 +4273,11 @@ func (c *GuardDuty) UpdateFilterRequest(input *UpdateFilterInput) (req *request. // See the AWS API reference guide for Amazon GuardDuty's // API operation UpdateFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateFilter @@ -4356,11 +4356,11 @@ func (c *GuardDuty) UpdateFindingsFeedbackRequest(input *UpdateFindingsFeedbackI // See the AWS API reference guide for Amazon GuardDuty's // API operation UpdateFindingsFeedback for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateFindingsFeedback @@ -4439,11 +4439,11 @@ func (c *GuardDuty) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Re // See the AWS API reference guide for Amazon GuardDuty's // API operation UpdateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateIPSet @@ -4522,11 +4522,11 @@ func (c *GuardDuty) UpdatePublishingDestinationRequest(input *UpdatePublishingDe // See the AWS API reference guide for Amazon GuardDuty's // API operation UpdatePublishingDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdatePublishingDestination @@ -4605,11 +4605,11 @@ func (c *GuardDuty) UpdateThreatIntelSetRequest(input *UpdateThreatIntelSetInput // See the AWS API reference guide for Amazon GuardDuty's // API operation UpdateThreatIntelSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Bad request exception object. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Internal server error exception object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateThreatIntelSet @@ -5017,6 +5017,66 @@ func (s *AwsApiCallAction) SetServiceName(v string) *AwsApiCallAction { return s } +// Bad request exception object. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message. + Message_ *string `locationName:"message" type:"string"` + + // The error type. + Type *string `locationName:"__type" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about the city associated with the IP address. type City struct { _ struct{} `type:"structure"` @@ -8324,6 +8384,66 @@ func (s *InstanceDetails) SetTags(v []*Tag) *InstanceDetails { return s } +// Internal server error exception object. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message. + Message_ *string `locationName:"message" type:"string"` + + // The error type. + Type *string `locationName:"__type" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about the invitation to become a member account. type Invitation struct { _ struct{} `type:"structure"` diff --git a/service/guardduty/errors.go b/service/guardduty/errors.go index 6d2c4ea610a..63b0c1f7db7 100644 --- a/service/guardduty/errors.go +++ b/service/guardduty/errors.go @@ -2,6 +2,10 @@ package guardduty +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -16,3 +20,8 @@ const ( // Internal server error exception object. ErrCodeInternalServerErrorException = "InternalServerErrorException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "InternalServerErrorException": newErrorInternalServerErrorException, +} diff --git a/service/guardduty/service.go b/service/guardduty/service.go index 84468ab88dc..024e6557322 100644 --- a/service/guardduty/service.go +++ b/service/guardduty/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/health/api.go b/service/health/api.go index 84a53c3009c..2eab4698b50 100644 --- a/service/health/api.go +++ b/service/health/api.go @@ -77,8 +77,8 @@ func (c *Health) DescribeAffectedAccountsForOrganizationRequest(input *DescribeA // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeAffectedAccountsForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// Returned Error Types: +// * InvalidPaginationToken // The specified pagination token (nextToken) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedAccountsForOrganization @@ -222,11 +222,11 @@ func (c *Health) DescribeAffectedEntitiesRequest(input *DescribeAffectedEntities // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeAffectedEntities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// Returned Error Types: +// * InvalidPaginationToken // The specified pagination token (nextToken) is not valid. // -// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// * UnsupportedLocale // The specified locale is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntities @@ -373,11 +373,11 @@ func (c *Health) DescribeAffectedEntitiesForOrganizationRequest(input *DescribeA // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeAffectedEntitiesForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// Returned Error Types: +// * InvalidPaginationToken // The specified pagination token (nextToken) is not valid. // -// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// * UnsupportedLocale // The specified locale is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeAffectedEntitiesForOrganization @@ -591,8 +591,8 @@ func (c *Health) DescribeEventAggregatesRequest(input *DescribeEventAggregatesIn // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeEventAggregates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// Returned Error Types: +// * InvalidPaginationToken // The specified pagination token (nextToken) is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventAggregates @@ -729,8 +729,8 @@ func (c *Health) DescribeEventDetailsRequest(input *DescribeEventDetailsInput) ( // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeEventDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// Returned Error Types: +// * UnsupportedLocale // The specified locale is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetails @@ -817,8 +817,8 @@ func (c *Health) DescribeEventDetailsForOrganizationRequest(input *DescribeEvent // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeEventDetailsForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// Returned Error Types: +// * UnsupportedLocale // The specified locale is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventDetailsForOrganization @@ -903,11 +903,11 @@ func (c *Health) DescribeEventTypesRequest(input *DescribeEventTypesInput) (req // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeEventTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// Returned Error Types: +// * InvalidPaginationToken // The specified pagination token (nextToken) is not valid. // -// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// * UnsupportedLocale // The specified locale is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventTypes @@ -1050,11 +1050,11 @@ func (c *Health) DescribeEventsRequest(input *DescribeEventsInput) (req *request // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// Returned Error Types: +// * InvalidPaginationToken // The specified pagination token (nextToken) is not valid. // -// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// * UnsupportedLocale // The specified locale is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEvents @@ -1203,11 +1203,11 @@ func (c *Health) DescribeEventsForOrganizationRequest(input *DescribeEventsForOr // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DescribeEventsForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationToken "InvalidPaginationToken" +// Returned Error Types: +// * InvalidPaginationToken // The specified pagination token (nextToken) is not valid. // -// * ErrCodeUnsupportedLocale "UnsupportedLocale" +// * UnsupportedLocale // The specified locale is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/health-2016-08-04/DescribeEventsForOrganization @@ -1420,8 +1420,8 @@ func (c *Health) DisableHealthServiceAccessForOrganizationRequest(input *Disable // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation DisableHealthServiceAccessForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // EnableHealthServiceAccessForOrganization is already in progress. Wait for // the action to complete before trying again. To get the current status, use // the DescribeHealthServiceStatusForOrganization operation. @@ -1507,8 +1507,8 @@ func (c *Health) EnableHealthServiceAccessForOrganizationRequest(input *EnableHe // See the AWS API reference guide for AWS Health APIs and Notifications's // API operation EnableHealthServiceAccessForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // EnableHealthServiceAccessForOrganization is already in progress. Wait for // the action to complete before trying again. To get the current status, use // the DescribeHealthServiceStatusForOrganization operation. @@ -1625,6 +1625,64 @@ func (s *AffectedEntity) SetTags(v map[string]*string) *AffectedEntity { return s } +// EnableHealthServiceAccessForOrganization is already in progress. Wait for +// the action to complete before trying again. To get the current status, use +// the DescribeHealthServiceStatusForOrganization operation. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // A range of dates and times that is used by the EventFilter and EntityFilter // objects. If from is set and to is set: match items where the timestamp (startTime, // endTime, or lastUpdatedTime) is between from and to inclusive. If from is @@ -3558,6 +3616,62 @@ func (s *EventTypeFilter) SetServices(v []*string) *EventTypeFilter { return s } +// The specified pagination token (nextToken) is not valid. +type InvalidPaginationToken struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPaginationToken) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPaginationToken) GoString() string { + return s.String() +} + +func newErrorInvalidPaginationToken(v protocol.ResponseMetadata) error { + return &InvalidPaginationToken{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPaginationToken) Code() string { + return "InvalidPaginationToken" +} + +// Message returns the exception's message. +func (s InvalidPaginationToken) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPaginationToken) OrigErr() error { + return nil +} + +func (s InvalidPaginationToken) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPaginationToken) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPaginationToken) RequestID() string { + return s.respMetadata.RequestID +} + // Error information returned when a DescribeAffectedEntitiesForOrganization // operation cannot find or process a specific entity. type OrganizationAffectedEntitiesErrorItem struct { @@ -3984,6 +4098,62 @@ func (s *OrganizationEventFilter) SetStartTime(v *DateTimeRange) *OrganizationEv return s } +// The specified locale is not supported. +type UnsupportedLocale struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedLocale) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedLocale) GoString() string { + return s.String() +} + +func newErrorUnsupportedLocale(v protocol.ResponseMetadata) error { + return &UnsupportedLocale{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedLocale) Code() string { + return "UnsupportedLocale" +} + +// Message returns the exception's message. +func (s UnsupportedLocale) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedLocale) OrigErr() error { + return nil +} + +func (s UnsupportedLocale) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedLocale) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedLocale) RequestID() string { + return s.respMetadata.RequestID +} + const ( // EntityStatusCodeImpaired is a entityStatusCode enum value EntityStatusCodeImpaired = "IMPAIRED" diff --git a/service/health/errors.go b/service/health/errors.go index 5d1457adf02..7f870bfa31d 100644 --- a/service/health/errors.go +++ b/service/health/errors.go @@ -2,6 +2,10 @@ package health +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -24,3 +28,9 @@ const ( // The specified locale is not supported. ErrCodeUnsupportedLocale = "UnsupportedLocale" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidPaginationToken": newErrorInvalidPaginationToken, + "UnsupportedLocale": newErrorUnsupportedLocale, +} diff --git a/service/health/service.go b/service/health/service.go index b29ead2149d..57898d4dd1f 100644 --- a/service/health/service.go +++ b/service/health/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/imagebuilder/api.go b/service/imagebuilder/api.go index 0aa458cdbbc..afa2f1e206a 100644 --- a/service/imagebuilder/api.go +++ b/service/imagebuilder/api.go @@ -66,32 +66,32 @@ func (c *Imagebuilder) CancelImageCreationRequest(input *CancelImageCreationInpu // See the AWS API reference guide for EC2 Image Builder's // API operation CancelImageCreation for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // @@ -171,39 +171,39 @@ func (c *Imagebuilder) CreateComponentRequest(input *CreateComponentInput) (req // See the AWS API reference guide for EC2 Image Builder's // API operation CreateComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeInvalidVersionNumberException "InvalidVersionNumberException" +// * InvalidVersionNumberException // Your version number is out of bounds or does not follow the required syntax. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // You have specified two or more mutually exclusive parameters. Review the // error message for details. // @@ -283,39 +283,39 @@ func (c *Imagebuilder) CreateDistributionConfigurationRequest(input *CreateDistr // See the AWS API reference guide for EC2 Image Builder's // API operation CreateDistributionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource that you are trying to create already exists. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // You have specified two or more mutually exclusive parameters. Review the // error message for details. // @@ -395,32 +395,32 @@ func (c *Imagebuilder) CreateImageRequest(input *CreateImageInput) (req *request // See the AWS API reference guide for EC2 Image Builder's // API operation CreateImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // @@ -500,36 +500,36 @@ func (c *Imagebuilder) CreateImagePipelineRequest(input *CreateImagePipelineInpu // See the AWS API reference guide for EC2 Image Builder's // API operation CreateImagePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource that you are trying to create already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/CreateImagePipeline @@ -608,39 +608,39 @@ func (c *Imagebuilder) CreateImageRecipeRequest(input *CreateImageRecipeInput) ( // See the AWS API reference guide for EC2 Image Builder's // API operation CreateImageRecipe for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeInvalidVersionNumberException "InvalidVersionNumberException" +// * InvalidVersionNumberException // Your version number is out of bounds or does not follow the required syntax. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource that you are trying to create already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/CreateImageRecipe @@ -719,36 +719,36 @@ func (c *Imagebuilder) CreateInfrastructureConfigurationRequest(input *CreateInf // See the AWS API reference guide for EC2 Image Builder's // API operation CreateInfrastructureConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource that you are trying to create already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/CreateInfrastructureConfiguration @@ -826,28 +826,28 @@ func (c *Imagebuilder) DeleteComponentRequest(input *DeleteComponentInput) (req // See the AWS API reference guide for EC2 Image Builder's // API operation DeleteComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceDependencyException "ResourceDependencyException" +// * ResourceDependencyException // You have attempted to mutate or delete a resource with a dependency that // is prohibitting this action. See the error message for more details. // @@ -926,28 +926,28 @@ func (c *Imagebuilder) DeleteDistributionConfigurationRequest(input *DeleteDistr // See the AWS API reference guide for EC2 Image Builder's // API operation DeleteDistributionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceDependencyException "ResourceDependencyException" +// * ResourceDependencyException // You have attempted to mutate or delete a resource with a dependency that // is prohibitting this action. See the error message for more details. // @@ -1026,28 +1026,28 @@ func (c *Imagebuilder) DeleteImageRequest(input *DeleteImageInput) (req *request // See the AWS API reference guide for EC2 Image Builder's // API operation DeleteImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceDependencyException "ResourceDependencyException" +// * ResourceDependencyException // You have attempted to mutate or delete a resource with a dependency that // is prohibitting this action. See the error message for more details. // @@ -1126,28 +1126,28 @@ func (c *Imagebuilder) DeleteImagePipelineRequest(input *DeleteImagePipelineInpu // See the AWS API reference guide for EC2 Image Builder's // API operation DeleteImagePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceDependencyException "ResourceDependencyException" +// * ResourceDependencyException // You have attempted to mutate or delete a resource with a dependency that // is prohibitting this action. See the error message for more details. // @@ -1226,28 +1226,28 @@ func (c *Imagebuilder) DeleteImageRecipeRequest(input *DeleteImageRecipeInput) ( // See the AWS API reference guide for EC2 Image Builder's // API operation DeleteImageRecipe for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceDependencyException "ResourceDependencyException" +// * ResourceDependencyException // You have attempted to mutate or delete a resource with a dependency that // is prohibitting this action. See the error message for more details. // @@ -1326,28 +1326,28 @@ func (c *Imagebuilder) DeleteInfrastructureConfigurationRequest(input *DeleteInf // See the AWS API reference guide for EC2 Image Builder's // API operation DeleteInfrastructureConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceDependencyException "ResourceDependencyException" +// * ResourceDependencyException // You have attempted to mutate or delete a resource with a dependency that // is prohibitting this action. See the error message for more details. // @@ -1426,25 +1426,25 @@ func (c *Imagebuilder) GetComponentRequest(input *GetComponentInput) (req *reque // See the AWS API reference guide for EC2 Image Builder's // API operation GetComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetComponent @@ -1522,23 +1522,23 @@ func (c *Imagebuilder) GetComponentPolicyRequest(input *GetComponentPolicyInput) // See the AWS API reference guide for EC2 Image Builder's // API operation GetComponentPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetComponentPolicy @@ -1616,25 +1616,25 @@ func (c *Imagebuilder) GetDistributionConfigurationRequest(input *GetDistributio // See the AWS API reference guide for EC2 Image Builder's // API operation GetDistributionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetDistributionConfiguration @@ -1712,25 +1712,25 @@ func (c *Imagebuilder) GetImageRequest(input *GetImageInput) (req *request.Reque // See the AWS API reference guide for EC2 Image Builder's // API operation GetImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetImage @@ -1808,25 +1808,25 @@ func (c *Imagebuilder) GetImagePipelineRequest(input *GetImagePipelineInput) (re // See the AWS API reference guide for EC2 Image Builder's // API operation GetImagePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetImagePipeline @@ -1904,23 +1904,23 @@ func (c *Imagebuilder) GetImagePolicyRequest(input *GetImagePolicyInput) (req *r // See the AWS API reference guide for EC2 Image Builder's // API operation GetImagePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetImagePolicy @@ -1998,25 +1998,25 @@ func (c *Imagebuilder) GetImageRecipeRequest(input *GetImageRecipeInput) (req *r // See the AWS API reference guide for EC2 Image Builder's // API operation GetImageRecipe for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetImageRecipe @@ -2094,23 +2094,23 @@ func (c *Imagebuilder) GetImageRecipePolicyRequest(input *GetImageRecipePolicyIn // See the AWS API reference guide for EC2 Image Builder's // API operation GetImageRecipePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetImageRecipePolicy @@ -2188,25 +2188,25 @@ func (c *Imagebuilder) GetInfrastructureConfigurationRequest(input *GetInfrastru // See the AWS API reference guide for EC2 Image Builder's // API operation GetInfrastructureConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/GetInfrastructureConfiguration @@ -2284,39 +2284,39 @@ func (c *Imagebuilder) ImportComponentRequest(input *ImportComponentInput) (req // See the AWS API reference guide for EC2 Image Builder's // API operation ImportComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeInvalidVersionNumberException "InvalidVersionNumberException" +// * InvalidVersionNumberException // Your version number is out of bounds or does not follow the required syntax. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // You have specified two or more mutually exclusive parameters. Review the // error message for details. // @@ -2401,28 +2401,28 @@ func (c *Imagebuilder) ListComponentBuildVersionsRequest(input *ListComponentBui // See the AWS API reference guide for EC2 Image Builder's // API operation ListComponentBuildVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListComponentBuildVersions @@ -2558,28 +2558,28 @@ func (c *Imagebuilder) ListComponentsRequest(input *ListComponentsInput) (req *r // See the AWS API reference guide for EC2 Image Builder's // API operation ListComponents for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListComponents @@ -2715,28 +2715,28 @@ func (c *Imagebuilder) ListDistributionConfigurationsRequest(input *ListDistribu // See the AWS API reference guide for EC2 Image Builder's // API operation ListDistributionConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListDistributionConfigurations @@ -2872,28 +2872,28 @@ func (c *Imagebuilder) ListImageBuildVersionsRequest(input *ListImageBuildVersio // See the AWS API reference guide for EC2 Image Builder's // API operation ListImageBuildVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListImageBuildVersions @@ -3029,31 +3029,31 @@ func (c *Imagebuilder) ListImagePipelineImagesRequest(input *ListImagePipelineIm // See the AWS API reference guide for EC2 Image Builder's // API operation ListImagePipelineImages for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListImagePipelineImages @@ -3189,28 +3189,28 @@ func (c *Imagebuilder) ListImagePipelinesRequest(input *ListImagePipelinesInput) // See the AWS API reference guide for EC2 Image Builder's // API operation ListImagePipelines for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListImagePipelines @@ -3346,28 +3346,28 @@ func (c *Imagebuilder) ListImageRecipesRequest(input *ListImageRecipesInput) (re // See the AWS API reference guide for EC2 Image Builder's // API operation ListImageRecipes for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListImageRecipes @@ -3503,28 +3503,28 @@ func (c *Imagebuilder) ListImagesRequest(input *ListImagesInput) (req *request.R // See the AWS API reference guide for EC2 Image Builder's // API operation ListImages for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListImages @@ -3660,28 +3660,28 @@ func (c *Imagebuilder) ListInfrastructureConfigurationsRequest(input *ListInfras // See the AWS API reference guide for EC2 Image Builder's // API operation ListInfrastructureConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // You have provided an invalid pagination token in your request. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListInfrastructureConfigurations @@ -3811,15 +3811,15 @@ func (c *Imagebuilder) ListTagsForResourceRequest(input *ListTagsForResourceInpu // See the AWS API reference guide for EC2 Image Builder's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/ListTagsForResource @@ -3897,31 +3897,31 @@ func (c *Imagebuilder) PutComponentPolicyRequest(input *PutComponentPolicyInput) // See the AWS API reference guide for EC2 Image Builder's // API operation PutComponentPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value that you provided for the specified parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/PutComponentPolicy @@ -3999,31 +3999,31 @@ func (c *Imagebuilder) PutImagePolicyRequest(input *PutImagePolicyInput) (req *r // See the AWS API reference guide for EC2 Image Builder's // API operation PutImagePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value that you provided for the specified parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/PutImagePolicy @@ -4101,31 +4101,31 @@ func (c *Imagebuilder) PutImageRecipePolicyRequest(input *PutImageRecipePolicyIn // See the AWS API reference guide for EC2 Image Builder's // API operation PutImageRecipePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value that you provided for the specified parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/PutImageRecipePolicy @@ -4203,35 +4203,35 @@ func (c *Imagebuilder) StartImagePipelineExecutionRequest(input *StartImagePipel // See the AWS API reference guide for EC2 Image Builder's // API operation StartImagePipelineExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // @@ -4311,15 +4311,15 @@ func (c *Imagebuilder) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for EC2 Image Builder's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/TagResource @@ -4398,15 +4398,15 @@ func (c *Imagebuilder) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for EC2 Image Builder's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // The specified parameter is invalid. Review the available parameters for the // API request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // At least one of the resources referenced by your request does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/imagebuilder-2019-12-02/UntagResource @@ -4485,36 +4485,36 @@ func (c *Imagebuilder) UpdateDistributionConfigurationRequest(input *UpdateDistr // See the AWS API reference guide for EC2 Image Builder's // API operation UpdateDistributionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // -// * ErrCodeInvalidParameterCombinationException "InvalidParameterCombinationException" +// * InvalidParameterCombinationException // You have specified two or more mutually exclusive parameters. Review the // error message for details. // @@ -4594,32 +4594,32 @@ func (c *Imagebuilder) UpdateImagePipelineRequest(input *UpdateImagePipelineInpu // See the AWS API reference guide for EC2 Image Builder's // API operation UpdateImagePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // @@ -4699,32 +4699,32 @@ func (c *Imagebuilder) UpdateInfrastructureConfigurationRequest(input *UpdateInf // See the AWS API reference guide for EC2 Image Builder's // API operation UpdateInfrastructureConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // This exception is thrown when the service encounters an unrecoverable exception. // -// * ErrCodeClientException "ClientException" +// * ClientException // These errors are usually caused by a client action, such as using an action // or resource on behalf of a user that doesn't have permissions to use the // action or resource, or specifying an invalid resource identifier. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unable to process your request at this time. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You have made a request for an action that is not supported by the service. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // You have specified an client token for an operation using parameter values // that differ from a previous request that used the same client token. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // You are not authorized to perform the requested operation. // -// * ErrCodeCallRateLimitExceededException "CallRateLimitExceededException" +// * CallRateLimitExceededException // You have exceeded the permitted request rate for the specific operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are trying to operate on is currently in use. Review // the message details, and retry later. // @@ -4881,6 +4881,62 @@ func (s *AmiDistributionConfiguration) SetName(v string) *AmiDistributionConfigu return s } +// You have exceeded the permitted request rate for the specific operation. +type CallRateLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CallRateLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CallRateLimitExceededException) GoString() string { + return s.String() +} + +func newErrorCallRateLimitExceededException(v protocol.ResponseMetadata) error { + return &CallRateLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CallRateLimitExceededException) Code() string { + return "CallRateLimitExceededException" +} + +// Message returns the exception's message. +func (s CallRateLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CallRateLimitExceededException) OrigErr() error { + return nil +} + +func (s CallRateLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CallRateLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CallRateLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type CancelImageCreationInput struct { _ struct{} `type:"structure"` @@ -4977,6 +5033,64 @@ func (s *CancelImageCreationOutput) SetRequestId(v string) *CancelImageCreationO return s } +// These errors are usually caused by a client action, such as using an action +// or resource on behalf of a user that doesn't have permissions to use the +// action or resource, or specifying an invalid resource identifier. +type ClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientException) GoString() string { + return s.String() +} + +func newErrorClientException(v protocol.ResponseMetadata) error { + return &ClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientException) Code() string { + return "ClientException" +} + +// Message returns the exception's message. +func (s ClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientException) OrigErr() error { + return nil +} + +func (s ClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientException) RequestID() string { + return s.respMetadata.RequestID +} + // A detailed view of a component. type Component struct { _ struct{} `type:"structure"` @@ -7207,6 +7321,62 @@ func (s *Filter) SetValues(v []*string) *Filter { return s } +// You are not authorized to perform the requested operation. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetComponentInput struct { _ struct{} `type:"structure"` @@ -7843,6 +8013,63 @@ func (s *GetInfrastructureConfigurationOutput) SetRequestId(v string) *GetInfras return s } +// You have specified an client token for an operation using parameter values +// that differ from a previous request that used the same client token. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + // An image build version. type Image struct { _ struct{} `type:"structure"` @@ -9079,6 +9306,344 @@ func (s *InstanceBlockDeviceMapping) SetVirtualName(v string) *InstanceBlockDevi return s } +// You have provided an invalid pagination token in your request. +type InvalidPaginationTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPaginationTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPaginationTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error { + return &InvalidPaginationTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPaginationTokenException) Code() string { + return "InvalidPaginationTokenException" +} + +// Message returns the exception's message. +func (s InvalidPaginationTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPaginationTokenException) OrigErr() error { + return nil +} + +func (s InvalidPaginationTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPaginationTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPaginationTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have specified two or more mutually exclusive parameters. Review the +// error message for details. +type InvalidParameterCombinationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterCombinationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterCombinationException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterCombinationException(v protocol.ResponseMetadata) error { + return &InvalidParameterCombinationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterCombinationException) Code() string { + return "InvalidParameterCombinationException" +} + +// Message returns the exception's message. +func (s InvalidParameterCombinationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterCombinationException) OrigErr() error { + return nil +} + +func (s InvalidParameterCombinationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterCombinationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterCombinationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified parameter is invalid. Review the available parameters for the +// API request. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The value that you provided for the specified parameter is invalid. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have made a request for an action that is not supported by the service. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// Your version number is out of bounds or does not follow the required syntax. +type InvalidVersionNumberException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidVersionNumberException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidVersionNumberException) GoString() string { + return s.String() +} + +func newErrorInvalidVersionNumberException(v protocol.ResponseMetadata) error { + return &InvalidVersionNumberException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidVersionNumberException) Code() string { + return "InvalidVersionNumberException" +} + +// Message returns the exception's message. +func (s InvalidVersionNumberException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidVersionNumberException) OrigErr() error { + return nil +} + +func (s InvalidVersionNumberException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidVersionNumberException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidVersionNumberException) RequestID() string { + return s.respMetadata.RequestID +} + type LaunchPermissionConfiguration struct { _ struct{} `type:"structure"` @@ -10574,6 +11139,232 @@ func (s *PutImageRecipePolicyOutput) SetRequestId(v string) *PutImageRecipePolic return s } +// The resource that you are trying to create already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have attempted to mutate or delete a resource with a dependency that +// is prohibitting this action. See the error message for more details. +type ResourceDependencyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceDependencyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDependencyException) GoString() string { + return s.String() +} + +func newErrorResourceDependencyException(v protocol.ResponseMetadata) error { + return &ResourceDependencyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceDependencyException) Code() string { + return "ResourceDependencyException" +} + +// Message returns the exception's message. +func (s ResourceDependencyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceDependencyException) OrigErr() error { + return nil +} + +func (s ResourceDependencyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceDependencyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceDependencyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource that you are trying to operate on is currently in use. Review +// the message details, and retry later. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// At least one of the resources referenced by your request does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // S3 Logging configuration. type S3Logs struct { _ struct{} `type:"structure"` @@ -10671,6 +11462,118 @@ func (s *Schedule) SetScheduleExpression(v string) *Schedule { return s } +// This exception is thrown when the service encounters an unrecoverable exception. +type ServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceException) GoString() string { + return s.String() +} + +func newErrorServiceException(v protocol.ResponseMetadata) error { + return &ServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceException) Code() string { + return "ServiceException" +} + +// Message returns the exception's message. +func (s ServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceException) OrigErr() error { + return nil +} + +func (s ServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is unable to process your request at this time. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type StartImagePipelineExecutionInput struct { _ struct{} `type:"structure"` diff --git a/service/imagebuilder/errors.go b/service/imagebuilder/errors.go index e020e4600b9..88ab9384c98 100644 --- a/service/imagebuilder/errors.go +++ b/service/imagebuilder/errors.go @@ -2,6 +2,10 @@ package imagebuilder +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCallRateLimitExceededException for service response error code @@ -107,3 +111,22 @@ const ( // The service is unable to process your request at this time. ErrCodeServiceUnavailableException = "ServiceUnavailableException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CallRateLimitExceededException": newErrorCallRateLimitExceededException, + "ClientException": newErrorClientException, + "ForbiddenException": newErrorForbiddenException, + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "InvalidPaginationTokenException": newErrorInvalidPaginationTokenException, + "InvalidParameterCombinationException": newErrorInvalidParameterCombinationException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidRequestException": newErrorInvalidRequestException, + "InvalidVersionNumberException": newErrorInvalidVersionNumberException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceDependencyException": newErrorResourceDependencyException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceException": newErrorServiceException, + "ServiceUnavailableException": newErrorServiceUnavailableException, +} diff --git a/service/imagebuilder/service.go b/service/imagebuilder/service.go index ff885bde608..83f68a77f15 100644 --- a/service/imagebuilder/service.go +++ b/service/imagebuilder/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/inspector/api.go b/service/inspector/api.go index 19ddc93f877..14961577ca9 100644 --- a/service/inspector/api.go +++ b/service/inspector/api.go @@ -67,22 +67,22 @@ func (c *Inspector) AddAttributesToFindingsRequest(input *AddAttributesToFinding // See the AWS API reference guide for Amazon Inspector's // API operation AddAttributesToFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/AddAttributesToFindings @@ -168,30 +168,30 @@ func (c *Inspector) CreateAssessmentTargetRequest(input *CreateAssessmentTargetI // See the AWS API reference guide for Amazon Inspector's // API operation CreateAssessmentTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeInvalidCrossAccountRoleException "InvalidCrossAccountRoleException" +// * InvalidCrossAccountRoleException // Amazon Inspector cannot assume the cross-account role that it needs to list // your EC2 instances during the assessment run. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTarget @@ -273,26 +273,26 @@ func (c *Inspector) CreateAssessmentTemplateRequest(input *CreateAssessmentTempl // See the AWS API reference guide for Amazon Inspector's // API operation CreateAssessmentTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateAssessmentTemplate @@ -372,26 +372,26 @@ func (c *Inspector) CreateExclusionsPreviewRequest(input *CreateExclusionsPrevie // See the AWS API reference guide for Amazon Inspector's // API operation CreateExclusionsPreview for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodePreviewGenerationInProgressException "PreviewGenerationInProgressException" +// * PreviewGenerationInProgressException // The request is rejected. The specified assessment template is currently generating // an exclusions preview. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateExclusionsPreview @@ -472,22 +472,22 @@ func (c *Inspector) CreateResourceGroupRequest(input *CreateResourceGroupInput) // See the AWS API reference guide for Amazon Inspector's // API operation CreateResourceGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/CreateResourceGroup @@ -567,26 +567,26 @@ func (c *Inspector) DeleteAssessmentRunRequest(input *DeleteAssessmentRunInput) // See the AWS API reference guide for Amazon Inspector's // API operation DeleteAssessmentRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAssessmentRunInProgressException "AssessmentRunInProgressException" +// * AssessmentRunInProgressException // You cannot perform a specified action if an assessment run is currently in // progress. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentRun @@ -666,26 +666,26 @@ func (c *Inspector) DeleteAssessmentTargetRequest(input *DeleteAssessmentTargetI // See the AWS API reference guide for Amazon Inspector's // API operation DeleteAssessmentTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAssessmentRunInProgressException "AssessmentRunInProgressException" +// * AssessmentRunInProgressException // You cannot perform a specified action if an assessment run is currently in // progress. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTarget @@ -765,26 +765,26 @@ func (c *Inspector) DeleteAssessmentTemplateRequest(input *DeleteAssessmentTempl // See the AWS API reference guide for Amazon Inspector's // API operation DeleteAssessmentTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAssessmentRunInProgressException "AssessmentRunInProgressException" +// * AssessmentRunInProgressException // You cannot perform a specified action if an assessment run is currently in // progress. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DeleteAssessmentTemplate @@ -863,11 +863,11 @@ func (c *Inspector) DescribeAssessmentRunsRequest(input *DescribeAssessmentRunsI // See the AWS API reference guide for Amazon Inspector's // API operation DescribeAssessmentRuns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -947,11 +947,11 @@ func (c *Inspector) DescribeAssessmentTargetsRequest(input *DescribeAssessmentTa // See the AWS API reference guide for Amazon Inspector's // API operation DescribeAssessmentTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -1031,11 +1031,11 @@ func (c *Inspector) DescribeAssessmentTemplatesRequest(input *DescribeAssessment // See the AWS API reference guide for Amazon Inspector's // API operation DescribeAssessmentTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -1114,8 +1114,8 @@ func (c *Inspector) DescribeCrossAccountAccessRoleRequest(input *DescribeCrossAc // See the AWS API reference guide for Amazon Inspector's // API operation DescribeCrossAccountAccessRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/DescribeCrossAccountAccessRole @@ -1193,11 +1193,11 @@ func (c *Inspector) DescribeExclusionsRequest(input *DescribeExclusionsInput) (r // See the AWS API reference guide for Amazon Inspector's // API operation DescribeExclusions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -1276,11 +1276,11 @@ func (c *Inspector) DescribeFindingsRequest(input *DescribeFindingsInput) (req * // See the AWS API reference guide for Amazon Inspector's // API operation DescribeFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -1360,11 +1360,11 @@ func (c *Inspector) DescribeResourceGroupsRequest(input *DescribeResourceGroupsI // See the AWS API reference guide for Amazon Inspector's // API operation DescribeResourceGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -1444,11 +1444,11 @@ func (c *Inspector) DescribeRulesPackagesRequest(input *DescribeRulesPackagesInp // See the AWS API reference guide for Amazon Inspector's // API operation DescribeRulesPackages for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -1528,33 +1528,33 @@ func (c *Inspector) GetAssessmentReportRequest(input *GetAssessmentReportInput) // See the AWS API reference guide for Amazon Inspector's // API operation GetAssessmentReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeAssessmentRunInProgressException "AssessmentRunInProgressException" +// * AssessmentRunInProgressException // You cannot perform a specified action if an assessment run is currently in // progress. // -// * ErrCodeUnsupportedFeatureException "UnsupportedFeatureException" +// * UnsupportedFeatureException // Used by the GetAssessmentReport API. The request was rejected because you // tried to generate a report for an assessment run that existed before reporting // was supported in Amazon Inspector. You can only generate reports for assessment // runs that took place or will take place after generating reports in Amazon // Inspector became available. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/GetAssessmentReport @@ -1640,18 +1640,18 @@ func (c *Inspector) GetExclusionsPreviewRequest(input *GetExclusionsPreviewInput // See the AWS API reference guide for Amazon Inspector's // API operation GetExclusionsPreview for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -1783,18 +1783,18 @@ func (c *Inspector) GetTelemetryMetadataRequest(input *GetTelemetryMetadataInput // See the AWS API reference guide for Amazon Inspector's // API operation GetTelemetryMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -1880,18 +1880,18 @@ func (c *Inspector) ListAssessmentRunAgentsRequest(input *ListAssessmentRunAgent // See the AWS API reference guide for Amazon Inspector's // API operation ListAssessmentRunAgents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -2029,18 +2029,18 @@ func (c *Inspector) ListAssessmentRunsRequest(input *ListAssessmentRunsInput) (r // See the AWS API reference guide for Amazon Inspector's // API operation ListAssessmentRuns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -2179,15 +2179,15 @@ func (c *Inspector) ListAssessmentTargetsRequest(input *ListAssessmentTargetsInp // See the AWS API reference guide for Amazon Inspector's // API operation ListAssessmentTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListAssessmentTargets @@ -2324,18 +2324,18 @@ func (c *Inspector) ListAssessmentTemplatesRequest(input *ListAssessmentTemplate // See the AWS API reference guide for Amazon Inspector's // API operation ListAssessmentTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -2474,18 +2474,18 @@ func (c *Inspector) ListEventSubscriptionsRequest(input *ListEventSubscriptionsI // See the AWS API reference guide for Amazon Inspector's // API operation ListEventSubscriptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -2622,18 +2622,18 @@ func (c *Inspector) ListExclusionsRequest(input *ListExclusionsInput) (req *requ // See the AWS API reference guide for Amazon Inspector's // API operation ListExclusions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -2771,18 +2771,18 @@ func (c *Inspector) ListFindingsRequest(input *ListFindingsInput) (req *request. // See the AWS API reference guide for Amazon Inspector's // API operation ListFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -2919,15 +2919,15 @@ func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req // See the AWS API reference guide for Amazon Inspector's // API operation ListRulesPackages for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/ListRulesPackages @@ -3057,18 +3057,18 @@ func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for Amazon Inspector's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // @@ -3154,22 +3154,22 @@ func (c *Inspector) PreviewAgentsRequest(input *PreviewAgentsInput) (req *reques // See the AWS API reference guide for Amazon Inspector's // API operation PreviewAgents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeInvalidCrossAccountRoleException "InvalidCrossAccountRoleException" +// * InvalidCrossAccountRoleException // Amazon Inspector cannot assume the cross-account role that it needs to list // your EC2 instances during the assessment run. // @@ -3302,22 +3302,22 @@ func (c *Inspector) RegisterCrossAccountAccessRoleRequest(input *RegisterCrossAc // See the AWS API reference guide for Amazon Inspector's // API operation RegisterCrossAccountAccessRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeInvalidCrossAccountRoleException "InvalidCrossAccountRoleException" +// * InvalidCrossAccountRoleException // Amazon Inspector cannot assume the cross-account role that it needs to list // your EC2 instances during the assessment run. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RegisterCrossAccountAccessRole @@ -3397,22 +3397,22 @@ func (c *Inspector) RemoveAttributesFromFindingsRequest(input *RemoveAttributesF // See the AWS API reference guide for Amazon Inspector's // API operation RemoveAttributesFromFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/RemoveAttributesFromFindings @@ -3492,22 +3492,22 @@ func (c *Inspector) SetTagsForResourceRequest(input *SetTagsForResourceInput) (r // See the AWS API reference guide for Amazon Inspector's // API operation SetTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SetTagsForResource @@ -3587,34 +3587,34 @@ func (c *Inspector) StartAssessmentRunRequest(input *StartAssessmentRunInput) (r // See the AWS API reference guide for Amazon Inspector's // API operation StartAssessmentRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeInvalidCrossAccountRoleException "InvalidCrossAccountRoleException" +// * InvalidCrossAccountRoleException // Amazon Inspector cannot assume the cross-account role that it needs to list // your EC2 instances during the assessment run. // -// * ErrCodeAgentsAlreadyRunningAssessmentException "AgentsAlreadyRunningAssessmentException" +// * AgentsAlreadyRunningAssessmentException // You started an assessment run, but one of the instances is already participating // in another assessment run. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StartAssessmentRun @@ -3693,22 +3693,22 @@ func (c *Inspector) StopAssessmentRunRequest(input *StopAssessmentRunInput) (req // See the AWS API reference guide for Amazon Inspector's // API operation StopAssessmentRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/StopAssessmentRun @@ -3788,26 +3788,26 @@ func (c *Inspector) SubscribeToEventRequest(input *SubscribeToEventInput) (req * // See the AWS API reference guide for Amazon Inspector's // API operation SubscribeToEvent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SubscribeToEvent @@ -3887,22 +3887,22 @@ func (c *Inspector) UnsubscribeFromEventRequest(input *UnsubscribeFromEventInput // See the AWS API reference guide for Amazon Inspector's // API operation UnsubscribeFromEvent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UnsubscribeFromEvent @@ -3985,22 +3985,22 @@ func (c *Inspector) UpdateAssessmentTargetRequest(input *UpdateAssessmentTargetI // See the AWS API reference guide for Amazon Inspector's // API operation UpdateAssessmentTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeNoSuchEntityException "NoSuchEntityException" +// * NoSuchEntityException // The request was rejected because it referenced an entity that does not exist. // The error code describes the entity. // -// * ErrCodeServiceTemporarilyUnavailableException "ServiceTemporarilyUnavailableException" +// * ServiceTemporarilyUnavailableException // The serice is temporary unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/UpdateAssessmentTarget @@ -4025,6 +4025,73 @@ func (c *Inspector) UpdateAssessmentTargetWithContext(ctx aws.Context, input *Up return out, req.Send() } +// You do not have required permissions to access the requested resource. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Code that indicates the type of error that is generated. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"AccessDeniedErrorCode"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AddAttributesToFindingsInput struct { _ struct{} `type:"structure"` @@ -4303,6 +4370,75 @@ func (s *AgentPreview) SetOperatingSystem(v string) *AgentPreview { return s } +// You started an assessment run, but one of the instances is already participating +// in another assessment run. +type AgentsAlreadyRunningAssessmentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Agents is a required field + Agents []*AgentAlreadyRunningAssessment `locationName:"agents" min:"1" type:"list" required:"true"` + + // AgentsTruncated is a required field + AgentsTruncated *bool `locationName:"agentsTruncated" type:"boolean" required:"true"` + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AgentsAlreadyRunningAssessmentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AgentsAlreadyRunningAssessmentException) GoString() string { + return s.String() +} + +func newErrorAgentsAlreadyRunningAssessmentException(v protocol.ResponseMetadata) error { + return &AgentsAlreadyRunningAssessmentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AgentsAlreadyRunningAssessmentException) Code() string { + return "AgentsAlreadyRunningAssessmentException" +} + +// Message returns the exception's message. +func (s AgentsAlreadyRunningAssessmentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AgentsAlreadyRunningAssessmentException) OrigErr() error { + return nil +} + +func (s AgentsAlreadyRunningAssessmentException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AgentsAlreadyRunningAssessmentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AgentsAlreadyRunningAssessmentException) RequestID() string { + return s.respMetadata.RequestID +} + // A snapshot of an Amazon Inspector assessment run that contains the findings // of the assessment run . // @@ -4688,6 +4824,80 @@ func (s *AssessmentRunFilter) SetStates(v []*string) *AssessmentRunFilter { return s } +// You cannot perform a specified action if an assessment run is currently in +// progress. +type AssessmentRunInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The ARNs of the assessment runs that are currently in progress. + // + // AssessmentRunArns is a required field + AssessmentRunArns []*string `locationName:"assessmentRunArns" min:"1" type:"list" required:"true"` + + // Boolean value that indicates whether the ARN list of the assessment runs + // is truncated. + // + // AssessmentRunArnsTruncated is a required field + AssessmentRunArnsTruncated *bool `locationName:"assessmentRunArnsTruncated" type:"boolean" required:"true"` + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AssessmentRunInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssessmentRunInProgressException) GoString() string { + return s.String() +} + +func newErrorAssessmentRunInProgressException(v protocol.ResponseMetadata) error { + return &AssessmentRunInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssessmentRunInProgressException) Code() string { + return "AssessmentRunInProgressException" +} + +// Message returns the exception's message. +func (s AssessmentRunInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssessmentRunInProgressException) OrigErr() error { + return nil +} + +func (s AssessmentRunInProgressException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssessmentRunInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssessmentRunInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + // Used as one of the elements of the AssessmentRun data type. type AssessmentRunNotification struct { _ struct{} `type:"structure"` @@ -7317,6 +7527,272 @@ func (s *GetTelemetryMetadataOutput) SetTelemetryMetadata(v []*TelemetryMetadata return s } +// Internal server error. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// Amazon Inspector cannot assume the cross-account role that it needs to list +// your EC2 instances during the assessment run. +type InvalidCrossAccountRoleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Code that indicates the type of error that is generated. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"InvalidCrossAccountRoleErrorCode"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidCrossAccountRoleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCrossAccountRoleException) GoString() string { + return s.String() +} + +func newErrorInvalidCrossAccountRoleException(v protocol.ResponseMetadata) error { + return &InvalidCrossAccountRoleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCrossAccountRoleException) Code() string { + return "InvalidCrossAccountRoleException" +} + +// Message returns the exception's message. +func (s InvalidCrossAccountRoleException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCrossAccountRoleException) OrigErr() error { + return nil +} + +func (s InvalidCrossAccountRoleException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCrossAccountRoleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCrossAccountRoleException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Code that indicates the type of error that is generated. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"InvalidInputErrorCode"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Code that indicates the type of error that is generated. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"LimitExceededErrorCode"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAssessmentRunAgentsInput struct { _ struct{} `type:"structure"` @@ -8355,6 +8831,74 @@ func (s *NetworkInterface) SetVpcId(v string) *NetworkInterface { return s } +// The request was rejected because it referenced an entity that does not exist. +// The error code describes the entity. +type NoSuchEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You can immediately retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Code that indicates the type of error that is generated. + // + // ErrorCode is a required field + ErrorCode *string `locationName:"errorCode" type:"string" required:"true" enum:"NoSuchEntityErrorCode"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NoSuchEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchEntityException) GoString() string { + return s.String() +} + +func newErrorNoSuchEntityException(v protocol.ResponseMetadata) error { + return &NoSuchEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchEntityException) Code() string { + return "NoSuchEntityException" +} + +// Message returns the exception's message. +func (s NoSuchEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchEntityException) OrigErr() error { + return nil +} + +func (s NoSuchEntityException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchEntityException) RequestID() string { + return s.respMetadata.RequestID +} + type PreviewAgentsInput struct { _ struct{} `type:"structure"` @@ -8458,6 +9002,63 @@ func (s *PreviewAgentsOutput) SetNextToken(v string) *PreviewAgentsOutput { return s } +// The request is rejected. The specified assessment template is currently generating +// an exclusions preview. +type PreviewGenerationInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PreviewGenerationInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PreviewGenerationInProgressException) GoString() string { + return s.String() +} + +func newErrorPreviewGenerationInProgressException(v protocol.ResponseMetadata) error { + return &PreviewGenerationInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PreviewGenerationInProgressException) Code() string { + return "PreviewGenerationInProgressException" +} + +// Message returns the exception's message. +func (s PreviewGenerationInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PreviewGenerationInProgressException) OrigErr() error { + return nil +} + +func (s PreviewGenerationInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PreviewGenerationInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PreviewGenerationInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a private IP address associated with a network // interface. This data type is used as a response element in the DescribeFindings // action. @@ -8917,6 +9518,68 @@ func (s *ServiceAttributes) SetSchemaVersion(v int64) *ServiceAttributes { return s } +// The serice is temporary unavailable. +type ServiceTemporarilyUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // You can wait and then retry your request. + // + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + // Details of the exception error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceTemporarilyUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceTemporarilyUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceTemporarilyUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceTemporarilyUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceTemporarilyUnavailableException) Code() string { + return "ServiceTemporarilyUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceTemporarilyUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceTemporarilyUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceTemporarilyUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceTemporarilyUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceTemporarilyUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type SetTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -9502,6 +10165,69 @@ func (s UnsubscribeFromEventOutput) GoString() string { return s.String() } +// Used by the GetAssessmentReport API. The request was rejected because you +// tried to generate a report for an assessment run that existed before reporting +// was supported in Amazon Inspector. You can only generate reports for assessment +// runs that took place or will take place after generating reports in Amazon +// Inspector became available. +type UnsupportedFeatureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // CanRetry is a required field + CanRetry *bool `locationName:"canRetry" type:"boolean" required:"true"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedFeatureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedFeatureException) GoString() string { + return s.String() +} + +func newErrorUnsupportedFeatureException(v protocol.ResponseMetadata) error { + return &UnsupportedFeatureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedFeatureException) Code() string { + return "UnsupportedFeatureException" +} + +// Message returns the exception's message. +func (s UnsupportedFeatureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedFeatureException) OrigErr() error { + return nil +} + +func (s UnsupportedFeatureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedFeatureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedFeatureException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateAssessmentTargetInput struct { _ struct{} `type:"structure"` diff --git a/service/inspector/errors.go b/service/inspector/errors.go index 9e106a58743..6fd98d37f6c 100644 --- a/service/inspector/errors.go +++ b/service/inspector/errors.go @@ -2,6 +2,10 @@ package inspector +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -81,3 +85,17 @@ const ( // Inspector became available. ErrCodeUnsupportedFeatureException = "UnsupportedFeatureException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AgentsAlreadyRunningAssessmentException": newErrorAgentsAlreadyRunningAssessmentException, + "AssessmentRunInProgressException": newErrorAssessmentRunInProgressException, + "InternalException": newErrorInternalException, + "InvalidCrossAccountRoleException": newErrorInvalidCrossAccountRoleException, + "InvalidInputException": newErrorInvalidInputException, + "LimitExceededException": newErrorLimitExceededException, + "NoSuchEntityException": newErrorNoSuchEntityException, + "PreviewGenerationInProgressException": newErrorPreviewGenerationInProgressException, + "ServiceTemporarilyUnavailableException": newErrorServiceTemporarilyUnavailableException, + "UnsupportedFeatureException": newErrorUnsupportedFeatureException, +} diff --git a/service/inspector/service.go b/service/inspector/service.go index fffb2b5514c..e3d77114af2 100644 --- a/service/inspector/service.go +++ b/service/inspector/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iot/api.go b/service/iot/api.go index b0cf9ba89e4..2d3ff733cd8 100644 --- a/service/iot/api.go +++ b/service/iot/api.go @@ -69,27 +69,27 @@ func (c *IoT) AcceptCertificateTransferRequest(input *AcceptCertificateTransferI // See the AWS API reference guide for AWS IoT's // API operation AcceptCertificateTransfer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException" +// * TransferAlreadyCompletedException // You can't revert the certificate transfer because the transfer is already // complete. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) AcceptCertificateTransfer(input *AcceptCertificateTransferInput) (*AcceptCertificateTransferOutput, error) { @@ -165,17 +165,17 @@ func (c *IoT) AddThingToBillingGroupRequest(input *AddThingToBillingGroupInput) // See the AWS API reference guide for AWS IoT's // API operation AddThingToBillingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) AddThingToBillingGroup(input *AddThingToBillingGroupInput) (*AddThingToBillingGroupOutput, error) { @@ -251,17 +251,17 @@ func (c *IoT) AddThingToThingGroupRequest(input *AddThingToThingGroupInput) (req // See the AWS API reference guide for AWS IoT's // API operation AddThingToThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) AddThingToThingGroup(input *AddThingToThingGroupInput) (*AddThingToThingGroupOutput, error) { @@ -344,20 +344,20 @@ func (c *IoT) AssociateTargetsWithJobRequest(input *AssociateTargetsWithJobInput // See the AWS API reference guide for AWS IoT's // API operation AssociateTargetsWithJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) AssociateTargetsWithJob(input *AssociateTargetsWithJobInput) (*AssociateTargetsWithJobOutput, error) { @@ -433,26 +433,26 @@ func (c *IoT) AttachPolicyRequest(input *AttachPolicyInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation AttachPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) AttachPolicy(input *AttachPolicyInput) (*AttachPolicyOutput, error) { @@ -536,26 +536,26 @@ func (c *IoT) AttachPrincipalPolicyRequest(input *AttachPrincipalPolicyInput) (r // See the AWS API reference guide for AWS IoT's // API operation AttachPrincipalPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // // @@ -637,24 +637,24 @@ func (c *IoT) AttachSecurityProfileRequest(input *AttachSecurityProfileInput) (r // See the AWS API reference guide for AWS IoT's // API operation AttachSecurityProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) AttachSecurityProfile(input *AttachSecurityProfileInput) (*AttachSecurityProfileOutput, error) { @@ -732,23 +732,23 @@ func (c *IoT) AttachThingPrincipalRequest(input *AttachThingPrincipalInput) (req // See the AWS API reference guide for AWS IoT's // API operation AttachThingPrincipal for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) AttachThingPrincipal(input *AttachThingPrincipalInput) (*AttachThingPrincipalOutput, error) { @@ -825,17 +825,17 @@ func (c *IoT) CancelAuditMitigationActionsTaskRequest(input *CancelAuditMitigati // See the AWS API reference guide for AWS IoT's // API operation CancelAuditMitigationActionsTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CancelAuditMitigationActionsTask(input *CancelAuditMitigationActionsTaskInput) (*CancelAuditMitigationActionsTaskOutput, error) { @@ -913,17 +913,17 @@ func (c *IoT) CancelAuditTaskRequest(input *CancelAuditTaskInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation CancelAuditTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CancelAuditTask(input *CancelAuditTaskInput) (*CancelAuditTaskOutput, error) { @@ -1008,27 +1008,27 @@ func (c *IoT) CancelCertificateTransferRequest(input *CancelCertificateTransferI // See the AWS API reference guide for AWS IoT's // API operation CancelCertificateTransfer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException" +// * TransferAlreadyCompletedException // You can't revert the certificate transfer because the transfer is already // complete. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CancelCertificateTransfer(input *CancelCertificateTransferInput) (*CancelCertificateTransferOutput, error) { @@ -1103,17 +1103,17 @@ func (c *IoT) CancelJobRequest(input *CancelJobInput) (req *request.Request, out // See the AWS API reference guide for AWS IoT's // API operation CancelJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { @@ -1189,25 +1189,25 @@ func (c *IoT) CancelJobExecutionRequest(input *CancelJobExecutionInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation CancelJobExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // An attempt was made to change to an invalid state, for example by deleting // a job or a job execution which is "IN_PROGRESS" without setting the force // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // @@ -1284,23 +1284,23 @@ func (c *IoT) ClearDefaultAuthorizerRequest(input *ClearDefaultAuthorizerInput) // See the AWS API reference guide for AWS IoT's // API operation ClearDefaultAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ClearDefaultAuthorizer(input *ClearDefaultAuthorizerInput) (*ClearDefaultAuthorizerOutput, error) { @@ -1379,20 +1379,20 @@ func (c *IoT) ConfirmTopicRuleDestinationRequest(input *ConfirmTopicRuleDestinat // See the AWS API reference guide for AWS IoT's // API operation ConfirmTopicRuleDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -1468,26 +1468,26 @@ func (c *IoT) CreateAuthorizerRequest(input *CreateAuthorizerInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation CreateAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateAuthorizer(input *CreateAuthorizerInput) (*CreateAuthorizerOutput, error) { @@ -1562,17 +1562,17 @@ func (c *IoT) CreateBillingGroupRequest(input *CreateBillingGroupInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation CreateBillingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateBillingGroup(input *CreateBillingGroupInput) (*CreateBillingGroupOutput, error) { @@ -1688,20 +1688,20 @@ func (c *IoT) CreateCertificateFromCsrRequest(input *CreateCertificateFromCsrInp // See the AWS API reference guide for AWS IoT's // API operation CreateCertificateFromCsr for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateCertificateFromCsr(input *CreateCertificateFromCsrInput) (*CreateCertificateFromCsrOutput, error) { @@ -1778,29 +1778,29 @@ func (c *IoT) CreateDomainConfigurationRequest(input *CreateDomainConfigurationI // See the AWS API reference guide for AWS IoT's // API operation CreateDomainConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) CreateDomainConfiguration(input *CreateDomainConfigurationInput) (*CreateDomainConfigurationOutput, error) { @@ -1875,26 +1875,26 @@ func (c *IoT) CreateDynamicThingGroupRequest(input *CreateDynamicThingGroupInput // See the AWS API reference guide for AWS IoT's // API operation CreateDynamicThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidQueryException "InvalidQueryException" +// * InvalidQueryException // The query is invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) CreateDynamicThingGroup(input *CreateDynamicThingGroupInput) (*CreateDynamicThingGroupOutput, error) { @@ -1969,23 +1969,23 @@ func (c *IoT) CreateJobRequest(input *CreateJobInput) (req *request.Request, out // See the AWS API reference guide for AWS IoT's // API operation CreateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) CreateJob(input *CreateJobInput) (*CreateJobOutput, error) { @@ -2065,20 +2065,20 @@ func (c *IoT) CreateKeysAndCertificateRequest(input *CreateKeysAndCertificateInp // See the AWS API reference guide for AWS IoT's // API operation CreateKeysAndCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateKeysAndCertificate(input *CreateKeysAndCertificateInput) (*CreateKeysAndCertificateOutput, error) { @@ -2154,20 +2154,20 @@ func (c *IoT) CreateMitigationActionRequest(input *CreateMitigationActionInput) // See the AWS API reference guide for AWS IoT's // API operation CreateMitigationAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateMitigationAction(input *CreateMitigationActionInput) (*CreateMitigationActionOutput, error) { @@ -2242,29 +2242,29 @@ func (c *IoT) CreateOTAUpdateRequest(input *CreateOTAUpdateInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation CreateOTAUpdate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) CreateOTAUpdate(input *CreateOTAUpdateInput) (*CreateOTAUpdateOutput, error) { @@ -2343,26 +2343,26 @@ func (c *IoT) CreatePolicyRequest(input *CreatePolicyInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation CreatePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeMalformedPolicyException "MalformedPolicyException" +// * MalformedPolicyException // The policy documentation is not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreatePolicy(input *CreatePolicyInput) (*CreatePolicyOutput, error) { @@ -2444,29 +2444,29 @@ func (c *IoT) CreatePolicyVersionRequest(input *CreatePolicyVersionInput) (req * // See the AWS API reference guide for AWS IoT's // API operation CreatePolicyVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeMalformedPolicyException "MalformedPolicyException" +// * MalformedPolicyException // The policy documentation is not valid. // -// * ErrCodeVersionsLimitExceededException "VersionsLimitExceededException" +// * VersionsLimitExceededException // The number of policy versions exceeds the limit. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreatePolicyVersion(input *CreatePolicyVersionInput) (*CreatePolicyVersionOutput, error) { @@ -2541,23 +2541,23 @@ func (c *IoT) CreateProvisioningClaimRequest(input *CreateProvisioningClaimInput // See the AWS API reference guide for AWS IoT's // API operation CreateProvisioningClaim for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateProvisioningClaim(input *CreateProvisioningClaimInput) (*CreateProvisioningClaimOutput, error) { @@ -2632,23 +2632,23 @@ func (c *IoT) CreateProvisioningTemplateRequest(input *CreateProvisioningTemplat // See the AWS API reference guide for AWS IoT's // API operation CreateProvisioningTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // func (c *IoT) CreateProvisioningTemplate(input *CreateProvisioningTemplateInput) (*CreateProvisioningTemplateOutput, error) { @@ -2723,26 +2723,26 @@ func (c *IoT) CreateProvisioningTemplateVersionRequest(input *CreateProvisioning // See the AWS API reference guide for AWS IoT's // API operation CreateProvisioningTemplateVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeVersionsLimitExceededException "VersionsLimitExceededException" +// Returned Error Types: +// * VersionsLimitExceededException // The number of policy versions exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -2818,26 +2818,26 @@ func (c *IoT) CreateRoleAliasRequest(input *CreateRoleAliasInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation CreateRoleAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateRoleAlias(input *CreateRoleAliasInput) (*CreateRoleAliasOutput, error) { @@ -2912,20 +2912,20 @@ func (c *IoT) CreateScheduledAuditRequest(input *CreateScheduledAuditInput) (req // See the AWS API reference guide for AWS IoT's // API operation CreateScheduledAudit for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) CreateScheduledAudit(input *CreateScheduledAuditInput) (*CreateScheduledAuditOutput, error) { @@ -3000,17 +3000,17 @@ func (c *IoT) CreateSecurityProfileRequest(input *CreateSecurityProfileInput) (r // See the AWS API reference guide for AWS IoT's // API operation CreateSecurityProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateSecurityProfile(input *CreateSecurityProfileInput) (*CreateSecurityProfileOutput, error) { @@ -3087,29 +3087,29 @@ func (c *IoT) CreateStreamRequest(input *CreateStreamInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation CreateStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateStream(input *CreateStreamInput) (*CreateStreamOutput, error) { @@ -3190,26 +3190,26 @@ func (c *IoT) CreateThingRequest(input *CreateThingInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation CreateThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) CreateThing(input *CreateThingInput) (*CreateThingOutput, error) { @@ -3287,17 +3287,17 @@ func (c *IoT) CreateThingGroupRequest(input *CreateThingGroupInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation CreateThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) CreateThingGroup(input *CreateThingGroupInput) (*CreateThingGroupOutput, error) { @@ -3372,23 +3372,23 @@ func (c *IoT) CreateThingTypeRequest(input *CreateThingTypeInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation CreateThingType for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // func (c *IoT) CreateThingType(input *CreateThingTypeInput) (*CreateThingTypeOutput, error) { @@ -3466,23 +3466,23 @@ func (c *IoT) CreateTopicRuleRequest(input *CreateTopicRuleInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation CreateTopicRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeSqlParseException "SqlParseException" +// Returned Error Types: +// * SqlParseException // The Rule-SQL expression can't be parsed correctly. // -// * ErrCodeInternalException "InternalException" +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -3559,20 +3559,20 @@ func (c *IoT) CreateTopicRuleDestinationRequest(input *CreateTopicRuleDestinatio // See the AWS API reference guide for AWS IoT's // API operation CreateTopicRuleDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -3651,17 +3651,17 @@ func (c *IoT) DeleteAccountAuditConfigurationRequest(input *DeleteAccountAuditCo // See the AWS API reference guide for AWS IoT's // API operation DeleteAccountAuditConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteAccountAuditConfiguration(input *DeleteAccountAuditConfigurationInput) (*DeleteAccountAuditConfigurationOutput, error) { @@ -3737,26 +3737,26 @@ func (c *IoT) DeleteAuthorizerRequest(input *DeleteAuthorizerInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation DeleteAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeleteConflictException "DeleteConflictException" +// Returned Error Types: +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteAuthorizer(input *DeleteAuthorizerInput) (*DeleteAuthorizerOutput, error) { @@ -3832,18 +3832,18 @@ func (c *IoT) DeleteBillingGroupRequest(input *DeleteBillingGroupInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation DeleteBillingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteBillingGroup(input *DeleteBillingGroupInput) (*DeleteBillingGroupOutput, error) { @@ -3919,26 +3919,26 @@ func (c *IoT) DeleteCACertificateRequest(input *DeleteCACertificateInput) (req * // See the AWS API reference guide for AWS IoT's // API operation DeleteCACertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeCertificateStateException "CertificateStateException" +// * CertificateStateException // The certificate operation is not allowed. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DeleteCACertificate(input *DeleteCACertificateInput) (*DeleteCACertificateOutput, error) { @@ -4019,29 +4019,29 @@ func (c *IoT) DeleteCertificateRequest(input *DeleteCertificateInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation DeleteCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeCertificateStateException "CertificateStateException" +// Returned Error Types: +// * CertificateStateException // The certificate operation is not allowed. // -// * ErrCodeDeleteConflictException "DeleteConflictException" +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DeleteCertificate(input *DeleteCertificateInput) (*DeleteCertificateOutput, error) { @@ -4119,23 +4119,23 @@ func (c *IoT) DeleteDomainConfigurationRequest(input *DeleteDomainConfigurationI // See the AWS API reference guide for AWS IoT's // API operation DeleteDomainConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // func (c *IoT) DeleteDomainConfiguration(input *DeleteDomainConfigurationInput) (*DeleteDomainConfigurationOutput, error) { @@ -4211,18 +4211,18 @@ func (c *IoT) DeleteDynamicThingGroupRequest(input *DeleteDynamicThingGroupInput // See the AWS API reference guide for AWS IoT's // API operation DeleteDynamicThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteDynamicThingGroup(input *DeleteDynamicThingGroupInput) (*DeleteDynamicThingGroupOutput, error) { @@ -4307,25 +4307,25 @@ func (c *IoT) DeleteJobRequest(input *DeleteJobInput) (req *request.Request, out // See the AWS API reference guide for AWS IoT's // API operation DeleteJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // An attempt was made to change to an invalid state, for example by deleting // a job or a job execution which is "IN_PROGRESS" without setting the force // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) DeleteJob(input *DeleteJobInput) (*DeleteJobOutput, error) { @@ -4401,22 +4401,22 @@ func (c *IoT) DeleteJobExecutionRequest(input *DeleteJobExecutionInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation DeleteJobExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // An attempt was made to change to an invalid state, for example by deleting // a job or a job execution which is "IN_PROGRESS" without setting the force // parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) DeleteJobExecution(input *DeleteJobExecutionInput) (*DeleteJobExecutionOutput, error) { @@ -4492,14 +4492,14 @@ func (c *IoT) DeleteMitigationActionRequest(input *DeleteMitigationActionInput) // See the AWS API reference guide for AWS IoT's // API operation DeleteMitigationAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteMitigationAction(input *DeleteMitigationActionInput) (*DeleteMitigationActionOutput, error) { @@ -4575,26 +4575,26 @@ func (c *IoT) DeleteOTAUpdateRequest(input *DeleteOTAUpdateInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation DeleteOTAUpdate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // @@ -4681,26 +4681,26 @@ func (c *IoT) DeletePolicyRequest(input *DeletePolicyInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation DeletePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeleteConflictException "DeleteConflictException" +// Returned Error Types: +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeletePolicy(input *DeletePolicyInput) (*DeletePolicyOutput, error) { @@ -4779,26 +4779,26 @@ func (c *IoT) DeletePolicyVersionRequest(input *DeletePolicyVersionInput) (req * // See the AWS API reference guide for AWS IoT's // API operation DeletePolicyVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeleteConflictException "DeleteConflictException" +// Returned Error Types: +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeletePolicyVersion(input *DeletePolicyVersionInput) (*DeletePolicyVersionOutput, error) { @@ -4874,23 +4874,23 @@ func (c *IoT) DeleteProvisioningTemplateRequest(input *DeleteProvisioningTemplat // See the AWS API reference guide for AWS IoT's // API operation DeleteProvisioningTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeDeleteConflictException "DeleteConflictException" +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) DeleteProvisioningTemplate(input *DeleteProvisioningTemplateInput) (*DeleteProvisioningTemplateOutput, error) { @@ -4966,23 +4966,23 @@ func (c *IoT) DeleteProvisioningTemplateVersionRequest(input *DeleteProvisioning // See the AWS API reference guide for AWS IoT's // API operation DeleteProvisioningTemplateVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeDeleteConflictException "DeleteConflictException" +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // func (c *IoT) DeleteProvisioningTemplateVersion(input *DeleteProvisioningTemplateVersionInput) (*DeleteProvisioningTemplateVersionOutput, error) { @@ -5058,20 +5058,20 @@ func (c *IoT) DeleteRegistrationCodeRequest(input *DeleteRegistrationCodeInput) // See the AWS API reference guide for AWS IoT's // API operation DeleteRegistrationCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteRegistrationCode(input *DeleteRegistrationCodeInput) (*DeleteRegistrationCodeOutput, error) { @@ -5147,26 +5147,26 @@ func (c *IoT) DeleteRoleAliasRequest(input *DeleteRoleAliasInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation DeleteRoleAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeDeleteConflictException "DeleteConflictException" +// Returned Error Types: +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DeleteRoleAlias(input *DeleteRoleAliasInput) (*DeleteRoleAliasOutput, error) { @@ -5242,17 +5242,17 @@ func (c *IoT) DeleteScheduledAuditRequest(input *DeleteScheduledAuditInput) (req // See the AWS API reference guide for AWS IoT's // API operation DeleteScheduledAudit for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteScheduledAudit(input *DeleteScheduledAuditInput) (*DeleteScheduledAuditOutput, error) { @@ -5328,17 +5328,17 @@ func (c *IoT) DeleteSecurityProfileRequest(input *DeleteSecurityProfileInput) (r // See the AWS API reference guide for AWS IoT's // API operation DeleteSecurityProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // @@ -5415,26 +5415,26 @@ func (c *IoT) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation DeleteStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeDeleteConflictException "DeleteConflictException" +// * DeleteConflictException // You can't delete the resource because it is attached to one or more resources. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteStream(input *DeleteStreamInput) (*DeleteStreamOutput, error) { @@ -5511,27 +5511,27 @@ func (c *IoT) DeleteThingRequest(input *DeleteThingInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation DeleteThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteThing(input *DeleteThingInput) (*DeleteThingOutput, error) { @@ -5607,18 +5607,18 @@ func (c *IoT) DeleteThingGroupRequest(input *DeleteThingGroupInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation DeleteThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteThingGroup(input *DeleteThingGroupInput) (*DeleteThingGroupOutput, error) { @@ -5698,23 +5698,23 @@ func (c *IoT) DeleteThingTypeRequest(input *DeleteThingTypeInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation DeleteThingType for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeleteThingType(input *DeleteThingTypeInput) (*DeleteThingTypeOutput, error) { @@ -5790,20 +5790,20 @@ func (c *IoT) DeleteTopicRuleRequest(input *DeleteTopicRuleInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation DeleteTopicRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -5880,20 +5880,20 @@ func (c *IoT) DeleteTopicRuleDestinationRequest(input *DeleteTopicRuleDestinatio // See the AWS API reference guide for AWS IoT's // API operation DeleteTopicRuleDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -5970,14 +5970,14 @@ func (c *IoT) DeleteV2LoggingLevelRequest(input *DeleteV2LoggingLevelInput) (req // See the AWS API reference guide for AWS IoT's // API operation DeleteV2LoggingLevel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) DeleteV2LoggingLevel(input *DeleteV2LoggingLevelInput) (*DeleteV2LoggingLevelOutput, error) { @@ -6054,23 +6054,23 @@ func (c *IoT) DeprecateThingTypeRequest(input *DeprecateThingTypeInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation DeprecateThingType for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DeprecateThingType(input *DeprecateThingTypeInput) (*DeprecateThingTypeOutput, error) { @@ -6147,11 +6147,11 @@ func (c *IoT) DescribeAccountAuditConfigurationRequest(input *DescribeAccountAud // See the AWS API reference guide for AWS IoT's // API operation DescribeAccountAuditConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeAccountAuditConfiguration(input *DescribeAccountAuditConfigurationInput) (*DescribeAccountAuditConfigurationOutput, error) { @@ -6228,17 +6228,17 @@ func (c *IoT) DescribeAuditFindingRequest(input *DescribeAuditFindingInput) (req // See the AWS API reference guide for AWS IoT's // API operation DescribeAuditFinding for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeAuditFinding(input *DescribeAuditFindingInput) (*DescribeAuditFindingOutput, error) { @@ -6316,17 +6316,17 @@ func (c *IoT) DescribeAuditMitigationActionsTaskRequest(input *DescribeAuditMiti // See the AWS API reference guide for AWS IoT's // API operation DescribeAuditMitigationActionsTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeAuditMitigationActionsTask(input *DescribeAuditMitigationActionsTaskInput) (*DescribeAuditMitigationActionsTaskOutput, error) { @@ -6401,17 +6401,17 @@ func (c *IoT) DescribeAuditTaskRequest(input *DescribeAuditTaskInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation DescribeAuditTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeAuditTask(input *DescribeAuditTaskInput) (*DescribeAuditTaskOutput, error) { @@ -6486,23 +6486,23 @@ func (c *IoT) DescribeAuthorizerRequest(input *DescribeAuthorizerInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation DescribeAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeAuthorizer(input *DescribeAuthorizerInput) (*DescribeAuthorizerOutput, error) { @@ -6577,17 +6577,17 @@ func (c *IoT) DescribeBillingGroupRequest(input *DescribeBillingGroupInput) (req // See the AWS API reference guide for AWS IoT's // API operation DescribeBillingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DescribeBillingGroup(input *DescribeBillingGroupInput) (*DescribeBillingGroupOutput, error) { @@ -6662,23 +6662,23 @@ func (c *IoT) DescribeCACertificateRequest(input *DescribeCACertificateInput) (r // See the AWS API reference guide for AWS IoT's // API operation DescribeCACertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DescribeCACertificate(input *DescribeCACertificateInput) (*DescribeCACertificateOutput, error) { @@ -6753,23 +6753,23 @@ func (c *IoT) DescribeCertificateRequest(input *DescribeCertificateInput) (req * // See the AWS API reference guide for AWS IoT's // API operation DescribeCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DescribeCertificate(input *DescribeCertificateInput) (*DescribeCertificateOutput, error) { @@ -6844,23 +6844,23 @@ func (c *IoT) DescribeDefaultAuthorizerRequest(input *DescribeDefaultAuthorizerI // See the AWS API reference guide for AWS IoT's // API operation DescribeDefaultAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeDefaultAuthorizer(input *DescribeDefaultAuthorizerInput) (*DescribeDefaultAuthorizerOutput, error) { @@ -6937,20 +6937,20 @@ func (c *IoT) DescribeDomainConfigurationRequest(input *DescribeDomainConfigurat // See the AWS API reference guide for AWS IoT's // API operation DescribeDomainConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeDomainConfiguration(input *DescribeDomainConfigurationInput) (*DescribeDomainConfigurationOutput, error) { @@ -7025,17 +7025,17 @@ func (c *IoT) DescribeEndpointRequest(input *DescribeEndpointInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation DescribeEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) DescribeEndpoint(input *DescribeEndpointInput) (*DescribeEndpointOutput, error) { @@ -7110,11 +7110,11 @@ func (c *IoT) DescribeEventConfigurationsRequest(input *DescribeEventConfigurati // See the AWS API reference guide for AWS IoT's // API operation DescribeEventConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) DescribeEventConfigurations(input *DescribeEventConfigurationsInput) (*DescribeEventConfigurationsOutput, error) { @@ -7189,23 +7189,23 @@ func (c *IoT) DescribeIndexRequest(input *DescribeIndexInput) (req *request.Requ // See the AWS API reference guide for AWS IoT's // API operation DescribeIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DescribeIndex(input *DescribeIndexInput) (*DescribeIndexOutput, error) { @@ -7280,17 +7280,17 @@ func (c *IoT) DescribeJobRequest(input *DescribeJobInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation DescribeJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) DescribeJob(input *DescribeJobInput) (*DescribeJobOutput, error) { @@ -7365,17 +7365,17 @@ func (c *IoT) DescribeJobExecutionRequest(input *DescribeJobExecutionInput) (req // See the AWS API reference guide for AWS IoT's // API operation DescribeJobExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) DescribeJobExecution(input *DescribeJobExecutionInput) (*DescribeJobExecutionOutput, error) { @@ -7450,17 +7450,17 @@ func (c *IoT) DescribeMitigationActionRequest(input *DescribeMitigationActionInp // See the AWS API reference guide for AWS IoT's // API operation DescribeMitigationAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeMitigationAction(input *DescribeMitigationActionInput) (*DescribeMitigationActionOutput, error) { @@ -7535,20 +7535,20 @@ func (c *IoT) DescribeProvisioningTemplateRequest(input *DescribeProvisioningTem // See the AWS API reference guide for AWS IoT's // API operation DescribeProvisioningTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) DescribeProvisioningTemplate(input *DescribeProvisioningTemplateInput) (*DescribeProvisioningTemplateOutput, error) { @@ -7623,20 +7623,20 @@ func (c *IoT) DescribeProvisioningTemplateVersionRequest(input *DescribeProvisio // See the AWS API reference guide for AWS IoT's // API operation DescribeProvisioningTemplateVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) DescribeProvisioningTemplateVersion(input *DescribeProvisioningTemplateVersionInput) (*DescribeProvisioningTemplateVersionOutput, error) { @@ -7711,23 +7711,23 @@ func (c *IoT) DescribeRoleAliasRequest(input *DescribeRoleAliasInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation DescribeRoleAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DescribeRoleAlias(input *DescribeRoleAliasInput) (*DescribeRoleAliasOutput, error) { @@ -7802,17 +7802,17 @@ func (c *IoT) DescribeScheduledAuditRequest(input *DescribeScheduledAuditInput) // See the AWS API reference guide for AWS IoT's // API operation DescribeScheduledAudit for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeScheduledAudit(input *DescribeScheduledAuditInput) (*DescribeScheduledAuditOutput, error) { @@ -7887,17 +7887,17 @@ func (c *IoT) DescribeSecurityProfileRequest(input *DescribeSecurityProfileInput // See the AWS API reference guide for AWS IoT's // API operation DescribeSecurityProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeSecurityProfile(input *DescribeSecurityProfileInput) (*DescribeSecurityProfileOutput, error) { @@ -7972,23 +7972,23 @@ func (c *IoT) DescribeStreamRequest(input *DescribeStreamInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation DescribeStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeStream(input *DescribeStreamInput) (*DescribeStreamOutput, error) { @@ -8063,23 +8063,23 @@ func (c *IoT) DescribeThingRequest(input *DescribeThingInput) (req *request.Requ // See the AWS API reference guide for AWS IoT's // API operation DescribeThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeThing(input *DescribeThingInput) (*DescribeThingOutput, error) { @@ -8154,17 +8154,17 @@ func (c *IoT) DescribeThingGroupRequest(input *DescribeThingGroupInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation DescribeThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DescribeThingGroup(input *DescribeThingGroupInput) (*DescribeThingGroupOutput, error) { @@ -8239,20 +8239,20 @@ func (c *IoT) DescribeThingRegistrationTaskRequest(input *DescribeThingRegistrat // See the AWS API reference guide for AWS IoT's // API operation DescribeThingRegistrationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) DescribeThingRegistrationTask(input *DescribeThingRegistrationTaskInput) (*DescribeThingRegistrationTaskOutput, error) { @@ -8327,23 +8327,23 @@ func (c *IoT) DescribeThingTypeRequest(input *DescribeThingTypeInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation DescribeThingType for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DescribeThingType(input *DescribeThingTypeInput) (*DescribeThingTypeOutput, error) { @@ -8419,23 +8419,23 @@ func (c *IoT) DetachPolicyRequest(input *DetachPolicyInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation DetachPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) DetachPolicy(input *DetachPolicyInput) (*DetachPolicyOutput, error) { @@ -8518,23 +8518,23 @@ func (c *IoT) DetachPrincipalPolicyRequest(input *DetachPrincipalPolicyInput) (r // See the AWS API reference guide for AWS IoT's // API operation DetachPrincipalPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // // @@ -8615,17 +8615,17 @@ func (c *IoT) DetachSecurityProfileRequest(input *DetachSecurityProfileInput) (r // See the AWS API reference guide for AWS IoT's // API operation DetachSecurityProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DetachSecurityProfile(input *DetachSecurityProfileInput) (*DetachSecurityProfileOutput, error) { @@ -8706,23 +8706,23 @@ func (c *IoT) DetachThingPrincipalRequest(input *DetachThingPrincipalInput) (req // See the AWS API reference guide for AWS IoT's // API operation DetachThingPrincipal for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) DetachThingPrincipal(input *DetachThingPrincipalInput) (*DetachThingPrincipalOutput, error) { @@ -8798,20 +8798,20 @@ func (c *IoT) DisableTopicRuleRequest(input *DisableTopicRuleInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation DisableTopicRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -8888,20 +8888,20 @@ func (c *IoT) EnableTopicRuleRequest(input *EnableTopicRuleInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation EnableTopicRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -8977,32 +8977,32 @@ func (c *IoT) GetCardinalityRequest(input *GetCardinalityInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation GetCardinality for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidQueryException "InvalidQueryException" +// * InvalidQueryException // The query is invalid. // -// * ErrCodeInvalidAggregationException "InvalidAggregationException" +// * InvalidAggregationException // The aggregation is invalid. // -// * ErrCodeIndexNotReadyException "IndexNotReadyException" +// * IndexNotReadyException // The index is not ready. // func (c *IoT) GetCardinality(input *GetCardinalityInput) (*GetCardinalityOutput, error) { @@ -9078,26 +9078,26 @@ func (c *IoT) GetEffectivePoliciesRequest(input *GetEffectivePoliciesInput) (req // See the AWS API reference guide for AWS IoT's // API operation GetEffectivePolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) GetEffectivePolicies(input *GetEffectivePoliciesInput) (*GetEffectivePoliciesOutput, error) { @@ -9172,20 +9172,20 @@ func (c *IoT) GetIndexingConfigurationRequest(input *GetIndexingConfigurationInp // See the AWS API reference guide for AWS IoT's // API operation GetIndexingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) GetIndexingConfiguration(input *GetIndexingConfigurationInput) (*GetIndexingConfigurationOutput, error) { @@ -9260,17 +9260,17 @@ func (c *IoT) GetJobDocumentRequest(input *GetJobDocumentInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation GetJobDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) GetJobDocument(input *GetJobDocumentInput) (*GetJobDocumentOutput, error) { @@ -9347,14 +9347,14 @@ func (c *IoT) GetLoggingOptionsRequest(input *GetLoggingOptionsInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation GetLoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) GetLoggingOptions(input *GetLoggingOptionsInput) (*GetLoggingOptionsOutput, error) { @@ -9429,23 +9429,23 @@ func (c *IoT) GetOTAUpdateRequest(input *GetOTAUpdateInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation GetOTAUpdate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) GetOTAUpdate(input *GetOTAUpdateInput) (*GetOTAUpdateOutput, error) { @@ -9529,32 +9529,32 @@ func (c *IoT) GetPercentilesRequest(input *GetPercentilesInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation GetPercentiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidQueryException "InvalidQueryException" +// * InvalidQueryException // The query is invalid. // -// * ErrCodeInvalidAggregationException "InvalidAggregationException" +// * InvalidAggregationException // The aggregation is invalid. // -// * ErrCodeIndexNotReadyException "IndexNotReadyException" +// * IndexNotReadyException // The index is not ready. // func (c *IoT) GetPercentiles(input *GetPercentilesInput) (*GetPercentilesOutput, error) { @@ -9630,23 +9630,23 @@ func (c *IoT) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, out // See the AWS API reference guide for AWS IoT's // API operation GetPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) GetPolicy(input *GetPolicyInput) (*GetPolicyOutput, error) { @@ -9721,23 +9721,23 @@ func (c *IoT) GetPolicyVersionRequest(input *GetPolicyVersionInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation GetPolicyVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) GetPolicyVersion(input *GetPolicyVersionInput) (*GetPolicyVersionOutput, error) { @@ -9812,20 +9812,20 @@ func (c *IoT) GetRegistrationCodeRequest(input *GetRegistrationCodeInput) (req * // See the AWS API reference guide for AWS IoT's // API operation GetRegistrationCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // func (c *IoT) GetRegistrationCode(input *GetRegistrationCodeInput) (*GetRegistrationCodeOutput, error) { @@ -9902,32 +9902,32 @@ func (c *IoT) GetStatisticsRequest(input *GetStatisticsInput) (req *request.Requ // See the AWS API reference guide for AWS IoT's // API operation GetStatistics for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidQueryException "InvalidQueryException" +// * InvalidQueryException // The query is invalid. // -// * ErrCodeInvalidAggregationException "InvalidAggregationException" +// * InvalidAggregationException // The aggregation is invalid. // -// * ErrCodeIndexNotReadyException "IndexNotReadyException" +// * IndexNotReadyException // The index is not ready. // func (c *IoT) GetStatistics(input *GetStatisticsInput) (*GetStatisticsOutput, error) { @@ -10002,17 +10002,17 @@ func (c *IoT) GetTopicRuleRequest(input *GetTopicRuleInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation GetTopicRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) GetTopicRule(input *GetTopicRuleInput) (*GetTopicRuleOutput, error) { @@ -10087,17 +10087,17 @@ func (c *IoT) GetTopicRuleDestinationRequest(input *GetTopicRuleDestinationInput // See the AWS API reference guide for AWS IoT's // API operation GetTopicRuleDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) GetTopicRuleDestination(input *GetTopicRuleDestinationInput) (*GetTopicRuleDestinationOutput, error) { @@ -10172,14 +10172,14 @@ func (c *IoT) GetV2LoggingOptionsRequest(input *GetV2LoggingOptionsInput) (req * // See the AWS API reference guide for AWS IoT's // API operation GetV2LoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeNotConfiguredException "NotConfiguredException" +// * NotConfiguredException // The resource is not configured. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) GetV2LoggingOptions(input *GetV2LoggingOptionsInput) (*GetV2LoggingOptionsOutput, error) { @@ -10254,17 +10254,17 @@ func (c *IoT) ListActiveViolationsRequest(input *ListActiveViolationsInput) (req // See the AWS API reference guide for AWS IoT's // API operation ListActiveViolations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListActiveViolations(input *ListActiveViolationsInput) (*ListActiveViolationsOutput, error) { @@ -10339,26 +10339,26 @@ func (c *IoT) ListAttachedPoliciesRequest(input *ListAttachedPoliciesInput) (req // See the AWS API reference guide for AWS IoT's // API operation ListAttachedPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) ListAttachedPolicies(input *ListAttachedPoliciesInput) (*ListAttachedPoliciesOutput, error) { @@ -10435,14 +10435,14 @@ func (c *IoT) ListAuditFindingsRequest(input *ListAuditFindingsInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation ListAuditFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListAuditFindings(input *ListAuditFindingsInput) (*ListAuditFindingsOutput, error) { @@ -10517,14 +10517,14 @@ func (c *IoT) ListAuditMitigationActionsExecutionsRequest(input *ListAuditMitiga // See the AWS API reference guide for AWS IoT's // API operation ListAuditMitigationActionsExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListAuditMitigationActionsExecutions(input *ListAuditMitigationActionsExecutionsInput) (*ListAuditMitigationActionsExecutionsOutput, error) { @@ -10599,14 +10599,14 @@ func (c *IoT) ListAuditMitigationActionsTasksRequest(input *ListAuditMitigationA // See the AWS API reference guide for AWS IoT's // API operation ListAuditMitigationActionsTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListAuditMitigationActionsTasks(input *ListAuditMitigationActionsTasksInput) (*ListAuditMitigationActionsTasksOutput, error) { @@ -10682,14 +10682,14 @@ func (c *IoT) ListAuditTasksRequest(input *ListAuditTasksInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation ListAuditTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListAuditTasks(input *ListAuditTasksInput) (*ListAuditTasksOutput, error) { @@ -10764,20 +10764,20 @@ func (c *IoT) ListAuthorizersRequest(input *ListAuthorizersInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation ListAuthorizers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListAuthorizers(input *ListAuthorizersInput) (*ListAuthorizersOutput, error) { @@ -10852,17 +10852,17 @@ func (c *IoT) ListBillingGroupsRequest(input *ListBillingGroupsInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation ListBillingGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) ListBillingGroups(input *ListBillingGroupsInput) (*ListBillingGroupsOutput, error) { @@ -10940,20 +10940,20 @@ func (c *IoT) ListCACertificatesRequest(input *ListCACertificatesInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation ListCACertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListCACertificates(input *ListCACertificatesInput) (*ListCACertificatesOutput, error) { @@ -11031,20 +11031,20 @@ func (c *IoT) ListCertificatesRequest(input *ListCertificatesInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation ListCertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListCertificates(input *ListCertificatesInput) (*ListCertificatesOutput, error) { @@ -11119,20 +11119,20 @@ func (c *IoT) ListCertificatesByCARequest(input *ListCertificatesByCAInput) (req // See the AWS API reference guide for AWS IoT's // API operation ListCertificatesByCA for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListCertificatesByCA(input *ListCertificatesByCAInput) (*ListCertificatesByCAOutput, error) { @@ -11210,20 +11210,20 @@ func (c *IoT) ListDomainConfigurationsRequest(input *ListDomainConfigurationsInp // See the AWS API reference guide for AWS IoT's // API operation ListDomainConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListDomainConfigurations(input *ListDomainConfigurationsInput) (*ListDomainConfigurationsOutput, error) { @@ -11298,20 +11298,20 @@ func (c *IoT) ListIndicesRequest(input *ListIndicesInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation ListIndices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListIndices(input *ListIndicesInput) (*ListIndicesOutput, error) { @@ -11386,17 +11386,17 @@ func (c *IoT) ListJobExecutionsForJobRequest(input *ListJobExecutionsForJobInput // See the AWS API reference guide for AWS IoT's // API operation ListJobExecutionsForJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) ListJobExecutionsForJob(input *ListJobExecutionsForJobInput) (*ListJobExecutionsForJobOutput, error) { @@ -11471,17 +11471,17 @@ func (c *IoT) ListJobExecutionsForThingRequest(input *ListJobExecutionsForThingI // See the AWS API reference guide for AWS IoT's // API operation ListJobExecutionsForThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) ListJobExecutionsForThing(input *ListJobExecutionsForThingInput) (*ListJobExecutionsForThingOutput, error) { @@ -11556,17 +11556,17 @@ func (c *IoT) ListJobsRequest(input *ListJobsInput) (req *request.Request, outpu // See the AWS API reference guide for AWS IoT's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { @@ -11641,14 +11641,14 @@ func (c *IoT) ListMitigationActionsRequest(input *ListMitigationActionsInput) (r // See the AWS API reference guide for AWS IoT's // API operation ListMitigationActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListMitigationActions(input *ListMitigationActionsInput) (*ListMitigationActionsOutput, error) { @@ -11723,20 +11723,20 @@ func (c *IoT) ListOTAUpdatesRequest(input *ListOTAUpdatesInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation ListOTAUpdates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) ListOTAUpdates(input *ListOTAUpdatesInput) (*ListOTAUpdatesOutput, error) { @@ -11811,20 +11811,20 @@ func (c *IoT) ListOutgoingCertificatesRequest(input *ListOutgoingCertificatesInp // See the AWS API reference guide for AWS IoT's // API operation ListOutgoingCertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListOutgoingCertificates(input *ListOutgoingCertificatesInput) (*ListOutgoingCertificatesOutput, error) { @@ -11899,20 +11899,20 @@ func (c *IoT) ListPoliciesRequest(input *ListPoliciesInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation ListPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListPolicies(input *ListPoliciesInput) (*ListPoliciesOutput, error) { @@ -11994,23 +11994,23 @@ func (c *IoT) ListPolicyPrincipalsRequest(input *ListPolicyPrincipalsInput) (req // See the AWS API reference guide for AWS IoT's // API operation ListPolicyPrincipals for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // // @@ -12089,23 +12089,23 @@ func (c *IoT) ListPolicyVersionsRequest(input *ListPolicyVersionsInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation ListPolicyVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListPolicyVersions(input *ListPolicyVersionsInput) (*ListPolicyVersionsOutput, error) { @@ -12188,23 +12188,23 @@ func (c *IoT) ListPrincipalPoliciesRequest(input *ListPrincipalPoliciesInput) (r // See the AWS API reference guide for AWS IoT's // API operation ListPrincipalPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // // @@ -12285,23 +12285,23 @@ func (c *IoT) ListPrincipalThingsRequest(input *ListPrincipalThingsInput) (req * // See the AWS API reference guide for AWS IoT's // API operation ListPrincipalThings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) ListPrincipalThings(input *ListPrincipalThingsInput) (*ListPrincipalThingsOutput, error) { @@ -12376,20 +12376,20 @@ func (c *IoT) ListProvisioningTemplateVersionsRequest(input *ListProvisioningTem // See the AWS API reference guide for AWS IoT's // API operation ListProvisioningTemplateVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) ListProvisioningTemplateVersions(input *ListProvisioningTemplateVersionsInput) (*ListProvisioningTemplateVersionsOutput, error) { @@ -12464,17 +12464,17 @@ func (c *IoT) ListProvisioningTemplatesRequest(input *ListProvisioningTemplatesI // See the AWS API reference guide for AWS IoT's // API operation ListProvisioningTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) ListProvisioningTemplates(input *ListProvisioningTemplatesInput) (*ListProvisioningTemplatesOutput, error) { @@ -12549,20 +12549,20 @@ func (c *IoT) ListRoleAliasesRequest(input *ListRoleAliasesInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation ListRoleAliases for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListRoleAliases(input *ListRoleAliasesInput) (*ListRoleAliasesOutput, error) { @@ -12637,14 +12637,14 @@ func (c *IoT) ListScheduledAuditsRequest(input *ListScheduledAuditsInput) (req * // See the AWS API reference guide for AWS IoT's // API operation ListScheduledAudits for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListScheduledAudits(input *ListScheduledAuditsInput) (*ListScheduledAuditsOutput, error) { @@ -12721,14 +12721,14 @@ func (c *IoT) ListSecurityProfilesRequest(input *ListSecurityProfilesInput) (req // See the AWS API reference guide for AWS IoT's // API operation ListSecurityProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListSecurityProfiles(input *ListSecurityProfilesInput) (*ListSecurityProfilesOutput, error) { @@ -12803,17 +12803,17 @@ func (c *IoT) ListSecurityProfilesForTargetRequest(input *ListSecurityProfilesFo // See the AWS API reference guide for AWS IoT's // API operation ListSecurityProfilesForTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) ListSecurityProfilesForTarget(input *ListSecurityProfilesForTargetInput) (*ListSecurityProfilesForTargetOutput, error) { @@ -12888,20 +12888,20 @@ func (c *IoT) ListStreamsRequest(input *ListStreamsInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation ListStreams for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListStreams(input *ListStreamsInput) (*ListStreamsOutput, error) { @@ -12976,17 +12976,17 @@ func (c *IoT) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for AWS IoT's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -13061,26 +13061,26 @@ func (c *IoT) ListTargetsForPolicyRequest(input *ListTargetsForPolicyInput) (req // See the AWS API reference guide for AWS IoT's // API operation ListTargetsForPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) ListTargetsForPolicy(input *ListTargetsForPolicyInput) (*ListTargetsForPolicyOutput, error) { @@ -13156,17 +13156,17 @@ func (c *IoT) ListTargetsForSecurityProfileRequest(input *ListTargetsForSecurity // See the AWS API reference guide for AWS IoT's // API operation ListTargetsForSecurityProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListTargetsForSecurityProfile(input *ListTargetsForSecurityProfileInput) (*ListTargetsForSecurityProfileOutput, error) { @@ -13241,14 +13241,14 @@ func (c *IoT) ListThingGroupsRequest(input *ListThingGroupsInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation ListThingGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) ListThingGroups(input *ListThingGroupsInput) (*ListThingGroupsOutput, error) { @@ -13323,14 +13323,14 @@ func (c *IoT) ListThingGroupsForThingRequest(input *ListThingGroupsForThingInput // See the AWS API reference guide for AWS IoT's // API operation ListThingGroupsForThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) ListThingGroupsForThing(input *ListThingGroupsForThingInput) (*ListThingGroupsForThingOutput, error) { @@ -13407,23 +13407,23 @@ func (c *IoT) ListThingPrincipalsRequest(input *ListThingPrincipalsInput) (req * // See the AWS API reference guide for AWS IoT's // API operation ListThingPrincipals for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) ListThingPrincipals(input *ListThingPrincipalsInput) (*ListThingPrincipalsOutput, error) { @@ -13498,17 +13498,17 @@ func (c *IoT) ListThingRegistrationTaskReportsRequest(input *ListThingRegistrati // See the AWS API reference guide for AWS IoT's // API operation ListThingRegistrationTaskReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListThingRegistrationTaskReports(input *ListThingRegistrationTaskReportsInput) (*ListThingRegistrationTaskReportsOutput, error) { @@ -13583,17 +13583,17 @@ func (c *IoT) ListThingRegistrationTasksRequest(input *ListThingRegistrationTask // See the AWS API reference guide for AWS IoT's // API operation ListThingRegistrationTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListThingRegistrationTasks(input *ListThingRegistrationTasksInput) (*ListThingRegistrationTasksOutput, error) { @@ -13668,20 +13668,20 @@ func (c *IoT) ListThingTypesRequest(input *ListThingTypesInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation ListThingTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListThingTypes(input *ListThingTypesInput) (*ListThingTypesOutput, error) { @@ -13759,20 +13759,20 @@ func (c *IoT) ListThingsRequest(input *ListThingsInput) (req *request.Request, o // See the AWS API reference guide for AWS IoT's // API operation ListThings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListThings(input *ListThingsInput) (*ListThingsOutput, error) { @@ -13847,17 +13847,17 @@ func (c *IoT) ListThingsInBillingGroupRequest(input *ListThingsInBillingGroupInp // See the AWS API reference guide for AWS IoT's // API operation ListThingsInBillingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) ListThingsInBillingGroup(input *ListThingsInBillingGroupInput) (*ListThingsInBillingGroupOutput, error) { @@ -13932,14 +13932,14 @@ func (c *IoT) ListThingsInThingGroupRequest(input *ListThingsInThingGroupInput) // See the AWS API reference guide for AWS IoT's // API operation ListThingsInThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) ListThingsInThingGroup(input *ListThingsInThingGroupInput) (*ListThingsInThingGroupOutput, error) { @@ -14014,17 +14014,17 @@ func (c *IoT) ListTopicRuleDestinationsRequest(input *ListTopicRuleDestinationsI // See the AWS API reference guide for AWS IoT's // API operation ListTopicRuleDestinations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // func (c *IoT) ListTopicRuleDestinations(input *ListTopicRuleDestinationsInput) (*ListTopicRuleDestinationsOutput, error) { @@ -14099,14 +14099,14 @@ func (c *IoT) ListTopicRulesRequest(input *ListTopicRulesInput) (req *request.Re // See the AWS API reference guide for AWS IoT's // API operation ListTopicRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) ListTopicRules(input *ListTopicRulesInput) (*ListTopicRulesOutput, error) { @@ -14181,17 +14181,17 @@ func (c *IoT) ListV2LoggingLevelsRequest(input *ListV2LoggingLevelsInput) (req * // See the AWS API reference guide for AWS IoT's // API operation ListV2LoggingLevels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeNotConfiguredException "NotConfiguredException" +// * NotConfiguredException // The resource is not configured. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) ListV2LoggingLevels(input *ListV2LoggingLevelsInput) (*ListV2LoggingLevelsOutput, error) { @@ -14268,14 +14268,14 @@ func (c *IoT) ListViolationEventsRequest(input *ListViolationEventsInput) (req * // See the AWS API reference guide for AWS IoT's // API operation ListViolationEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ListViolationEvents(input *ListViolationEventsInput) (*ListViolationEventsOutput, error) { @@ -14356,32 +14356,32 @@ func (c *IoT) RegisterCACertificateRequest(input *RegisterCACertificateInput) (r // See the AWS API reference guide for AWS IoT's // API operation RegisterCACertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeRegistrationCodeValidationException "RegistrationCodeValidationException" +// * RegistrationCodeValidationException // The registration code is invalid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) RegisterCACertificate(input *RegisterCACertificateInput) (*RegisterCACertificateOutput, error) { @@ -14458,34 +14458,34 @@ func (c *IoT) RegisterCertificateRequest(input *RegisterCertificateInput) (req * // See the AWS API reference guide for AWS IoT's // API operation RegisterCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// Returned Error Types: +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // -// * ErrCodeCertificateStateException "CertificateStateException" +// * CertificateStateException // The certificate operation is not allowed. // -// * ErrCodeCertificateConflictException "CertificateConflictException" +// * CertificateConflictException // Unable to verify the CA certificate used to sign the device certificate you // are attempting to register. This is happens when you have registered more // than one CA certificate that has the same subject field and public key. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) RegisterCertificate(input *RegisterCertificateInput) (*RegisterCertificateOutput, error) { @@ -14564,27 +14564,27 @@ func (c *IoT) RegisterThingRequest(input *RegisterThingInput) (req *request.Requ // See the AWS API reference guide for AWS IoT's // API operation RegisterThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // -// * ErrCodeResourceRegistrationFailureException "ResourceRegistrationFailureException" +// * ResourceRegistrationFailureException // The resource registration failed. // func (c *IoT) RegisterThing(input *RegisterThingInput) (*RegisterThingOutput, error) { @@ -14668,27 +14668,27 @@ func (c *IoT) RejectCertificateTransferRequest(input *RejectCertificateTransferI // See the AWS API reference guide for AWS IoT's // API operation RejectCertificateTransfer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeTransferAlreadyCompletedException "TransferAlreadyCompletedException" +// * TransferAlreadyCompletedException // You can't revert the certificate transfer because the transfer is already // complete. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) RejectCertificateTransfer(input *RejectCertificateTransferInput) (*RejectCertificateTransferOutput, error) { @@ -14764,17 +14764,17 @@ func (c *IoT) RemoveThingFromBillingGroupRequest(input *RemoveThingFromBillingGr // See the AWS API reference guide for AWS IoT's // API operation RemoveThingFromBillingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) RemoveThingFromBillingGroup(input *RemoveThingFromBillingGroupInput) (*RemoveThingFromBillingGroupOutput, error) { @@ -14850,17 +14850,17 @@ func (c *IoT) RemoveThingFromThingGroupRequest(input *RemoveThingFromThingGroupI // See the AWS API reference guide for AWS IoT's // API operation RemoveThingFromThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) RemoveThingFromThingGroup(input *RemoveThingFromThingGroupInput) (*RemoveThingFromThingGroupOutput, error) { @@ -14938,23 +14938,23 @@ func (c *IoT) ReplaceTopicRuleRequest(input *ReplaceTopicRuleInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation ReplaceTopicRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeSqlParseException "SqlParseException" +// Returned Error Types: +// * SqlParseException // The Rule-SQL expression can't be parsed correctly. // -// * ErrCodeInternalException "InternalException" +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -15030,29 +15030,29 @@ func (c *IoT) SearchIndexRequest(input *SearchIndexInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation SearchIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidQueryException "InvalidQueryException" +// * InvalidQueryException // The query is invalid. // -// * ErrCodeIndexNotReadyException "IndexNotReadyException" +// * IndexNotReadyException // The index is not ready. // func (c *IoT) SearchIndex(input *SearchIndexInput) (*SearchIndexOutput, error) { @@ -15128,26 +15128,26 @@ func (c *IoT) SetDefaultAuthorizerRequest(input *SetDefaultAuthorizerInput) (req // See the AWS API reference guide for AWS IoT's // API operation SetDefaultAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // func (c *IoT) SetDefaultAuthorizer(input *SetDefaultAuthorizerInput) (*SetDefaultAuthorizerOutput, error) { @@ -15226,23 +15226,23 @@ func (c *IoT) SetDefaultPolicyVersionRequest(input *SetDefaultPolicyVersionInput // See the AWS API reference guide for AWS IoT's // API operation SetDefaultPolicyVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) SetDefaultPolicyVersion(input *SetDefaultPolicyVersionInput) (*SetDefaultPolicyVersionOutput, error) { @@ -15320,14 +15320,14 @@ func (c *IoT) SetLoggingOptionsRequest(input *SetLoggingOptionsInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation SetLoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) SetLoggingOptions(input *SetLoggingOptionsInput) (*SetLoggingOptionsOutput, error) { @@ -15403,17 +15403,17 @@ func (c *IoT) SetV2LoggingLevelRequest(input *SetV2LoggingLevelInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation SetV2LoggingLevel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeNotConfiguredException "NotConfiguredException" +// * NotConfiguredException // The resource is not configured. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) SetV2LoggingLevel(input *SetV2LoggingLevelInput) (*SetV2LoggingLevelOutput, error) { @@ -15489,14 +15489,14 @@ func (c *IoT) SetV2LoggingOptionsRequest(input *SetV2LoggingOptionsInput) (req * // See the AWS API reference guide for AWS IoT's // API operation SetV2LoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) SetV2LoggingOptions(input *SetV2LoggingOptionsInput) (*SetV2LoggingOptionsOutput, error) { @@ -15571,21 +15571,21 @@ func (c *IoT) StartAuditMitigationActionsTaskRequest(input *StartAuditMitigation // See the AWS API reference guide for AWS IoT's // API operation StartAuditMitigationActionsTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeTaskAlreadyExistsException "TaskAlreadyExistsException" +// * TaskAlreadyExistsException // This exception occurs if you attempt to start a task with the same task-id // as an existing task but with a different clientRequestToken. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) StartAuditMitigationActionsTask(input *StartAuditMitigationActionsTaskInput) (*StartAuditMitigationActionsTaskOutput, error) { @@ -15660,17 +15660,17 @@ func (c *IoT) StartOnDemandAuditTaskRequest(input *StartOnDemandAuditTaskInput) // See the AWS API reference guide for AWS IoT's // API operation StartOnDemandAuditTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) StartOnDemandAuditTask(input *StartOnDemandAuditTaskInput) (*StartOnDemandAuditTaskOutput, error) { @@ -15745,17 +15745,17 @@ func (c *IoT) StartThingRegistrationTaskRequest(input *StartThingRegistrationTas // See the AWS API reference guide for AWS IoT's // API operation StartThingRegistrationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) StartThingRegistrationTask(input *StartThingRegistrationTaskInput) (*StartThingRegistrationTaskOutput, error) { @@ -15831,20 +15831,20 @@ func (c *IoT) StopThingRegistrationTaskRequest(input *StopThingRegistrationTaskI // See the AWS API reference guide for AWS IoT's // API operation StopThingRegistrationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) StopThingRegistrationTask(input *StopThingRegistrationTaskInput) (*StopThingRegistrationTaskOutput, error) { @@ -15921,20 +15921,20 @@ func (c *IoT) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -16011,26 +16011,26 @@ func (c *IoT) TestAuthorizationRequest(input *TestAuthorizationInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation TestAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // func (c *IoT) TestAuthorization(input *TestAuthorizationInput) (*TestAuthorizationOutput, error) { @@ -16107,26 +16107,26 @@ func (c *IoT) TestInvokeAuthorizerRequest(input *TestInvokeAuthorizerInput) (req // See the AWS API reference guide for AWS IoT's // API operation TestInvokeAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidResponseException "InvalidResponseException" +// * InvalidResponseException // The response is invalid. // func (c *IoT) TestInvokeAuthorizer(input *TestInvokeAuthorizerInput) (*TestInvokeAuthorizerOutput, error) { @@ -16212,30 +16212,30 @@ func (c *IoT) TransferCertificateRequest(input *TransferCertificateInput) (req * // See the AWS API reference guide for AWS IoT's // API operation TransferCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeCertificateStateException "CertificateStateException" +// * CertificateStateException // The certificate operation is not allowed. // -// * ErrCodeTransferConflictException "TransferConflictException" +// * TransferConflictException // You can't transfer the certificate because authorization policies are still // attached. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) TransferCertificate(input *TransferCertificateInput) (*TransferCertificateOutput, error) { @@ -16311,17 +16311,17 @@ func (c *IoT) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS IoT's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -16399,14 +16399,14 @@ func (c *IoT) UpdateAccountAuditConfigurationRequest(input *UpdateAccountAuditCo // See the AWS API reference guide for AWS IoT's // API operation UpdateAccountAuditConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateAccountAuditConfiguration(input *UpdateAccountAuditConfigurationInput) (*UpdateAccountAuditConfigurationOutput, error) { @@ -16481,26 +16481,26 @@ func (c *IoT) UpdateAuthorizerRequest(input *UpdateAuthorizerInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation UpdateAuthorizer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit has been exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateAuthorizer(input *UpdateAuthorizerInput) (*UpdateAuthorizerOutput, error) { @@ -16575,21 +16575,21 @@ func (c *IoT) UpdateBillingGroupRequest(input *UpdateBillingGroupInput) (req *re // See the AWS API reference guide for AWS IoT's // API operation UpdateBillingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) UpdateBillingGroup(input *UpdateBillingGroupInput) (*UpdateBillingGroupOutput, error) { @@ -16665,23 +16665,23 @@ func (c *IoT) UpdateCACertificateRequest(input *UpdateCACertificateInput) (req * // See the AWS API reference guide for AWS IoT's // API operation UpdateCACertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateCACertificate(input *UpdateCACertificateInput) (*UpdateCACertificateOutput, error) { @@ -16763,26 +16763,26 @@ func (c *IoT) UpdateCertificateRequest(input *UpdateCertificateInput) (req *requ // See the AWS API reference guide for AWS IoT's // API operation UpdateCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeCertificateStateException "CertificateStateException" +// * CertificateStateException // The certificate operation is not allowed. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateCertificate(input *UpdateCertificateInput) (*UpdateCertificateOutput, error) { @@ -16860,26 +16860,26 @@ func (c *IoT) UpdateDomainConfigurationRequest(input *UpdateDomainConfigurationI // See the AWS API reference guide for AWS IoT's // API operation UpdateDomainConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateDomainConfiguration(input *UpdateDomainConfigurationInput) (*UpdateDomainConfigurationOutput, error) { @@ -16954,24 +16954,24 @@ func (c *IoT) UpdateDynamicThingGroupRequest(input *UpdateDynamicThingGroupInput // See the AWS API reference guide for AWS IoT's // API operation UpdateDynamicThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidQueryException "InvalidQueryException" +// * InvalidQueryException // The query is invalid. // func (c *IoT) UpdateDynamicThingGroup(input *UpdateDynamicThingGroupInput) (*UpdateDynamicThingGroupOutput, error) { @@ -17047,14 +17047,14 @@ func (c *IoT) UpdateEventConfigurationsRequest(input *UpdateEventConfigurationsI // See the AWS API reference guide for AWS IoT's // API operation UpdateEventConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // func (c *IoT) UpdateEventConfigurations(input *UpdateEventConfigurationsInput) (*UpdateEventConfigurationsOutput, error) { @@ -17130,20 +17130,20 @@ func (c *IoT) UpdateIndexingConfigurationRequest(input *UpdateIndexingConfigurat // See the AWS API reference guide for AWS IoT's // API operation UpdateIndexingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateIndexingConfiguration(input *UpdateIndexingConfigurationInput) (*UpdateIndexingConfigurationOutput, error) { @@ -17219,17 +17219,17 @@ func (c *IoT) UpdateJobRequest(input *UpdateJobInput) (req *request.Request, out // See the AWS API reference guide for AWS IoT's // API operation UpdateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // func (c *IoT) UpdateJob(input *UpdateJobInput) (*UpdateJobOutput, error) { @@ -17304,17 +17304,17 @@ func (c *IoT) UpdateMitigationActionRequest(input *UpdateMitigationActionInput) // See the AWS API reference guide for AWS IoT's // API operation UpdateMitigationAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateMitigationAction(input *UpdateMitigationActionInput) (*UpdateMitigationActionOutput, error) { @@ -17390,20 +17390,20 @@ func (c *IoT) UpdateProvisioningTemplateRequest(input *UpdateProvisioningTemplat // See the AWS API reference guide for AWS IoT's // API operation UpdateProvisioningTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -17479,23 +17479,23 @@ func (c *IoT) UpdateRoleAliasRequest(input *UpdateRoleAliasInput) (req *request. // See the AWS API reference guide for AWS IoT's // API operation UpdateRoleAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateRoleAlias(input *UpdateRoleAliasInput) (*UpdateRoleAliasOutput, error) { @@ -17571,17 +17571,17 @@ func (c *IoT) UpdateScheduledAuditRequest(input *UpdateScheduledAuditInput) (req // See the AWS API reference guide for AWS IoT's // API operation UpdateScheduledAudit for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateScheduledAudit(input *UpdateScheduledAuditInput) (*UpdateScheduledAuditOutput, error) { @@ -17656,21 +17656,21 @@ func (c *IoT) UpdateSecurityProfileRequest(input *UpdateSecurityProfileInput) (r // See the AWS API reference guide for AWS IoT's // API operation UpdateSecurityProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateSecurityProfile(input *UpdateSecurityProfileInput) (*UpdateSecurityProfileOutput, error) { @@ -17745,23 +17745,23 @@ func (c *IoT) UpdateStreamRequest(input *UpdateStreamInput) (req *request.Reques // See the AWS API reference guide for AWS IoT's // API operation UpdateStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) UpdateStream(input *UpdateStreamInput) (*UpdateStreamOutput, error) { @@ -17837,27 +17837,27 @@ func (c *IoT) UpdateThingRequest(input *UpdateThingInput) (req *request.Request, // See the AWS API reference guide for AWS IoT's // API operation UpdateThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) UpdateThing(input *UpdateThingInput) (*UpdateThingOutput, error) { @@ -17932,21 +17932,21 @@ func (c *IoT) UpdateThingGroupRequest(input *UpdateThingGroupInput) (req *reques // See the AWS API reference guide for AWS IoT's // API operation UpdateThingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeVersionConflictException "VersionConflictException" +// * VersionConflictException // An exception thrown when the version of an entity specified with the expectedVersion // parameter does not match the latest version in the system. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) UpdateThingGroup(input *UpdateThingGroupInput) (*UpdateThingGroupOutput, error) { @@ -18022,17 +18022,17 @@ func (c *IoT) UpdateThingGroupsForThingRequest(input *UpdateThingGroupsForThingI // See the AWS API reference guide for AWS IoT's // API operation UpdateThingGroupsForThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // func (c *IoT) UpdateThingGroupsForThing(input *UpdateThingGroupsForThingInput) (*UpdateThingGroupsForThingOutput, error) { @@ -18109,20 +18109,20 @@ func (c *IoT) UpdateTopicRuleDestinationRequest(input *UpdateTopicRuleDestinatio // See the AWS API reference guide for AWS IoT's // API operation UpdateTopicRuleDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeConflictingResourceUpdateException "ConflictingResourceUpdateException" +// * ConflictingResourceUpdateException // A conflicting resource update exception. This exception is thrown when two // pending updates cause a conflict. // @@ -18198,14 +18198,14 @@ func (c *IoT) ValidateSecurityProfileBehaviorsRequest(input *ValidateSecurityPro // See the AWS API reference guide for AWS IoT's // API operation ValidateSecurityProfileBehaviors for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // func (c *IoT) ValidateSecurityProfileBehaviors(input *ValidateSecurityProfileBehaviorsInput) (*ValidateSecurityProfileBehaviorsOutput, error) { @@ -21390,6 +21390,65 @@ func (s *Certificate) SetStatus(v string) *Certificate { return s } +// Unable to verify the CA certificate used to sign the device certificate you +// are attempting to register. This is happens when you have registered more +// than one CA certificate that has the same subject field and public key. +type CertificateConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CertificateConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateConflictException) GoString() string { + return s.String() +} + +func newErrorCertificateConflictException(v protocol.ResponseMetadata) error { + return &CertificateConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateConflictException) Code() string { + return "CertificateConflictException" +} + +// Message returns the exception's message. +func (s CertificateConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateConflictException) OrigErr() error { + return nil +} + +func (s CertificateConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a certificate. type CertificateDescription struct { _ struct{} `type:"structure"` @@ -21522,6 +21581,120 @@ func (s *CertificateDescription) SetValidity(v *CertificateValidity) *Certificat return s } +// The certificate operation is not allowed. +type CertificateStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CertificateStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateStateException) GoString() string { + return s.String() +} + +func newErrorCertificateStateException(v protocol.ResponseMetadata) error { + return &CertificateStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateStateException) Code() string { + return "CertificateStateException" +} + +// Message returns the exception's message. +func (s CertificateStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateStateException) OrigErr() error { + return nil +} + +func (s CertificateStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The certificate is invalid. +type CertificateValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CertificateValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateValidationException) GoString() string { + return s.String() +} + +func newErrorCertificateValidationException(v protocol.ResponseMetadata) error { + return &CertificateValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateValidationException) Code() string { + return "CertificateValidationException" +} + +// Message returns the exception's message. +func (s CertificateValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateValidationException) OrigErr() error { + return nil +} + +func (s CertificateValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // When the certificate is valid. type CertificateValidity struct { _ struct{} `type:"structure"` @@ -21965,6 +22138,64 @@ func (s ConfirmTopicRuleDestinationOutput) GoString() string { return s.String() } +// A conflicting resource update exception. This exception is thrown when two +// pending updates cause a conflict. +type ConflictingResourceUpdateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictingResourceUpdateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictingResourceUpdateException) GoString() string { + return s.String() +} + +func newErrorConflictingResourceUpdateException(v protocol.ResponseMetadata) error { + return &ConflictingResourceUpdateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictingResourceUpdateException) Code() string { + return "ConflictingResourceUpdateException" +} + +// Message returns the exception's message. +func (s ConflictingResourceUpdateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictingResourceUpdateException) OrigErr() error { + return nil +} + +func (s ConflictingResourceUpdateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictingResourceUpdateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictingResourceUpdateException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateAuthorizerInput struct { _ struct{} `type:"structure"` @@ -25179,6 +25410,63 @@ func (s DeleteCertificateOutput) GoString() string { return s.String() } +// You can't delete the resource because it is attached to one or more resources. +type DeleteConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DeleteConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeleteConflictException) GoString() string { + return s.String() +} + +func newErrorDeleteConflictException(v protocol.ResponseMetadata) error { + return &DeleteConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeleteConflictException) Code() string { + return "DeleteConflictException" +} + +// Message returns the exception's message. +func (s DeleteConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeleteConflictException) OrigErr() error { + return nil +} + +func (s DeleteConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeleteConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeleteConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteDomainConfigurationInput struct { _ struct{} `type:"structure"` @@ -31769,6 +32057,463 @@ func (s *ImplicitDeny) SetPolicies(v []*Policy) *ImplicitDeny { return s } +// The index is not ready. +type IndexNotReadyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IndexNotReadyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IndexNotReadyException) GoString() string { + return s.String() +} + +func newErrorIndexNotReadyException(v protocol.ResponseMetadata) error { + return &IndexNotReadyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IndexNotReadyException) Code() string { + return "IndexNotReadyException" +} + +// Message returns the exception's message. +func (s IndexNotReadyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IndexNotReadyException) OrigErr() error { + return nil +} + +func (s IndexNotReadyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IndexNotReadyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IndexNotReadyException) RequestID() string { + return s.respMetadata.RequestID +} + +// An unexpected error has occurred. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// An unexpected error has occurred. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The aggregation is invalid. +type InvalidAggregationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidAggregationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAggregationException) GoString() string { + return s.String() +} + +func newErrorInvalidAggregationException(v protocol.ResponseMetadata) error { + return &InvalidAggregationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAggregationException) Code() string { + return "InvalidAggregationException" +} + +// Message returns the exception's message. +func (s InvalidAggregationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAggregationException) OrigErr() error { + return nil +} + +func (s InvalidAggregationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAggregationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAggregationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The query is invalid. +type InvalidQueryException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidQueryException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidQueryException) GoString() string { + return s.String() +} + +func newErrorInvalidQueryException(v protocol.ResponseMetadata) error { + return &InvalidQueryException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidQueryException) Code() string { + return "InvalidQueryException" +} + +// Message returns the exception's message. +func (s InvalidQueryException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidQueryException) OrigErr() error { + return nil +} + +func (s InvalidQueryException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidQueryException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidQueryException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is not valid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The response is invalid. +type InvalidResponseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidResponseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResponseException) GoString() string { + return s.String() +} + +func newErrorInvalidResponseException(v protocol.ResponseMetadata) error { + return &InvalidResponseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResponseException) Code() string { + return "InvalidResponseException" +} + +// Message returns the exception's message. +func (s InvalidResponseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResponseException) OrigErr() error { + return nil +} + +func (s InvalidResponseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResponseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResponseException) RequestID() string { + return s.respMetadata.RequestID +} + +// An attempt was made to change to an invalid state, for example by deleting +// a job or a job execution which is "IN_PROGRESS" without setting the force +// parameter. +type InvalidStateTransitionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidStateTransitionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateTransitionException) GoString() string { + return s.String() +} + +func newErrorInvalidStateTransitionException(v protocol.ResponseMetadata) error { + return &InvalidStateTransitionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateTransitionException) Code() string { + return "InvalidStateTransitionException" +} + +// Message returns the exception's message. +func (s InvalidStateTransitionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateTransitionException) OrigErr() error { + return nil +} + +func (s InvalidStateTransitionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateTransitionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateTransitionException) RequestID() string { + return s.respMetadata.RequestID +} + // Sends message data to an AWS IoT Analytics channel. type IotAnalyticsAction struct { _ struct{} `type:"structure"` @@ -32782,6 +33527,63 @@ func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction { return s } +// A limit has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListActiveViolationsInput struct { _ struct{} `type:"structure"` @@ -37483,6 +38285,63 @@ func (s *LoggingOptionsPayload) SetRoleArn(v string) *LoggingOptionsPayload { return s } +// The policy documentation is not valid. +type MalformedPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MalformedPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MalformedPolicyException) GoString() string { + return s.String() +} + +func newErrorMalformedPolicyException(v protocol.ResponseMetadata) error { + return &MalformedPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MalformedPolicyException) Code() string { + return "MalformedPolicyException" +} + +// Message returns the exception's message. +func (s MalformedPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedPolicyException) OrigErr() error { + return nil +} + +func (s MalformedPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MalformedPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MalformedPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + // The value to be compared with the metric. type MetricValue struct { _ struct{} `type:"structure"` @@ -37846,6 +38705,63 @@ func (s *NonCompliantResource) SetResourceType(v string) *NonCompliantResource { return s } +// The resource is not configured. +type NotConfiguredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotConfiguredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotConfiguredException) GoString() string { + return s.String() +} + +func newErrorNotConfiguredException(v protocol.ResponseMetadata) error { + return &NotConfiguredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotConfiguredException) Code() string { + return "NotConfiguredException" +} + +// Message returns the exception's message. +func (s NotConfiguredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotConfiguredException) OrigErr() error { + return nil +} + +func (s NotConfiguredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotConfiguredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotConfiguredException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a file to be associated with an OTA update. type OTAUpdateFile struct { _ struct{} `type:"structure"` @@ -39066,6 +39982,63 @@ func (s *RegisterThingOutput) SetResourceArns(v map[string]*string) *RegisterThi return s } +// The registration code is invalid. +type RegistrationCodeValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RegistrationCodeValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RegistrationCodeValidationException) GoString() string { + return s.String() +} + +func newErrorRegistrationCodeValidationException(v protocol.ResponseMetadata) error { + return &RegistrationCodeValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RegistrationCodeValidationException) Code() string { + return "RegistrationCodeValidationException" +} + +// Message returns the exception's message. +func (s RegistrationCodeValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RegistrationCodeValidationException) OrigErr() error { + return nil +} + +func (s RegistrationCodeValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RegistrationCodeValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RegistrationCodeValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // The registration configuration. type RegistrationConfig struct { _ struct{} `type:"structure"` @@ -39558,6 +40531,69 @@ func (s *RepublishAction) SetTopic(v string) *RepublishAction { return s } +// The resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` + + // The ARN of the resource that caused the exception. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The ID of the resource that caused the exception. + ResourceId *string `locationName:"resourceId" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Information that identifies the noncompliant resource. type ResourceIdentifier struct { _ struct{} `type:"structure"` @@ -39675,6 +40711,120 @@ func (s *ResourceIdentifier) SetRoleAliasArn(v string) *ResourceIdentifier { return s } +// The specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource registration failed. +type ResourceRegistrationFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceRegistrationFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceRegistrationFailureException) GoString() string { + return s.String() +} + +func newErrorResourceRegistrationFailureException(v protocol.ResponseMetadata) error { + return &ResourceRegistrationFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceRegistrationFailureException) Code() string { + return "ResourceRegistrationFailureException" +} + +// Message returns the exception's message. +func (s ResourceRegistrationFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceRegistrationFailureException) OrigErr() error { + return nil +} + +func (s ResourceRegistrationFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceRegistrationFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceRegistrationFailureException) RequestID() string { + return s.respMetadata.RequestID +} + // Role alias description. type RoleAliasDescription struct { _ struct{} `type:"structure"` @@ -40320,6 +41470,63 @@ func (s *ServerCertificateSummary) SetServerCertificateStatusDetail(v string) *S return s } +// The service is temporarily unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type SetDefaultAuthorizerInput struct { _ struct{} `type:"structure"` @@ -40826,6 +42033,63 @@ func (s *SnsAction) SetTargetArn(v string) *SnsAction { return s } +// The Rule-SQL expression can't be parsed correctly. +type SqlParseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SqlParseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SqlParseException) GoString() string { + return s.String() +} + +func newErrorSqlParseException(v protocol.ResponseMetadata) error { + return &SqlParseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SqlParseException) Code() string { + return "SqlParseException" +} + +// Message returns the exception's message. +func (s SqlParseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SqlParseException) OrigErr() error { + return nil +} + +func (s SqlParseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SqlParseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SqlParseException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an action to publish data to an Amazon SQS queue. type SqsAction struct { _ struct{} `type:"structure"` @@ -41811,6 +43075,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// This exception occurs if you attempt to start a task with the same task-id +// as an existing task but with a different clientRequestToken. +type TaskAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TaskAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorTaskAlreadyExistsException(v protocol.ResponseMetadata) error { + return &TaskAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TaskAlreadyExistsException) Code() string { + return "TaskAlreadyExistsException" +} + +// Message returns the exception's message. +func (s TaskAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TaskAlreadyExistsException) OrigErr() error { + return nil +} + +func (s TaskAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TaskAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TaskAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Statistics for the checks performed during the audit. type TaskStatistics struct { _ struct{} `type:"structure"` @@ -42815,6 +44136,63 @@ func (s *ThingTypeProperties) SetThingTypeDescription(v string) *ThingTypeProper return s } +// The rate exceeds the limit. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the amount of time each device has to finish its execution of the // job. A timer is started when the job execution status is set to IN_PROGRESS. // If the job execution status is not set to another terminal state before the @@ -43330,6 +44708,64 @@ func (s *TopicRulePayload) SetSql(v string) *TopicRulePayload { return s } +// You can't revert the certificate transfer because the transfer is already +// complete. +type TransferAlreadyCompletedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TransferAlreadyCompletedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransferAlreadyCompletedException) GoString() string { + return s.String() +} + +func newErrorTransferAlreadyCompletedException(v protocol.ResponseMetadata) error { + return &TransferAlreadyCompletedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TransferAlreadyCompletedException) Code() string { + return "TransferAlreadyCompletedException" +} + +// Message returns the exception's message. +func (s TransferAlreadyCompletedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TransferAlreadyCompletedException) OrigErr() error { + return nil +} + +func (s TransferAlreadyCompletedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TransferAlreadyCompletedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TransferAlreadyCompletedException) RequestID() string { + return s.respMetadata.RequestID +} + // The input for the TransferCertificate operation. type TransferCertificateInput struct { _ struct{} `type:"structure"` @@ -43423,6 +44859,64 @@ func (s *TransferCertificateOutput) SetTransferredCertificateArn(v string) *Tran return s } +// You can't transfer the certificate because authorization policies are still +// attached. +type TransferConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TransferConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TransferConflictException) GoString() string { + return s.String() +} + +func newErrorTransferConflictException(v protocol.ResponseMetadata) error { + return &TransferConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TransferConflictException) Code() string { + return "TransferConflictException" +} + +// Message returns the exception's message. +func (s TransferConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TransferConflictException) OrigErr() error { + return nil +} + +func (s TransferConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TransferConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TransferConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Data used to transfer a certificate to an AWS account. type TransferData struct { _ struct{} `type:"structure"` @@ -43483,6 +44977,63 @@ func (s *TransferData) SetTransferMessage(v string) *TransferData { return s } +// You are not authorized to perform this operation. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -45800,6 +47351,121 @@ func (s *ValidationError) SetErrorMessage(v string) *ValidationError { return s } +// An exception thrown when the version of an entity specified with the expectedVersion +// parameter does not match the latest version in the system. +type VersionConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s VersionConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VersionConflictException) GoString() string { + return s.String() +} + +func newErrorVersionConflictException(v protocol.ResponseMetadata) error { + return &VersionConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s VersionConflictException) Code() string { + return "VersionConflictException" +} + +// Message returns the exception's message. +func (s VersionConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s VersionConflictException) OrigErr() error { + return nil +} + +func (s VersionConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s VersionConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s VersionConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of policy versions exceeds the limit. +type VersionsLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s VersionsLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VersionsLimitExceededException) GoString() string { + return s.String() +} + +func newErrorVersionsLimitExceededException(v protocol.ResponseMetadata) error { + return &VersionsLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s VersionsLimitExceededException) Code() string { + return "VersionsLimitExceededException" +} + +// Message returns the exception's message. +func (s VersionsLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s VersionsLimitExceededException) OrigErr() error { + return nil +} + +func (s VersionsLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s VersionsLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s VersionsLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a Device Defender security profile behavior violation. type ViolationEvent struct { _ struct{} `type:"structure"` diff --git a/service/iot/errors.go b/service/iot/errors.go index b4e8556c217..33b542d0c82 100644 --- a/service/iot/errors.go +++ b/service/iot/errors.go @@ -2,6 +2,10 @@ package iot +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCertificateConflictException for service response error code @@ -187,3 +191,35 @@ const ( // The number of policy versions exceeds the limit. ErrCodeVersionsLimitExceededException = "VersionsLimitExceededException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CertificateConflictException": newErrorCertificateConflictException, + "CertificateStateException": newErrorCertificateStateException, + "CertificateValidationException": newErrorCertificateValidationException, + "ConflictingResourceUpdateException": newErrorConflictingResourceUpdateException, + "DeleteConflictException": newErrorDeleteConflictException, + "IndexNotReadyException": newErrorIndexNotReadyException, + "InternalException": newErrorInternalException, + "InternalFailureException": newErrorInternalFailureException, + "InvalidAggregationException": newErrorInvalidAggregationException, + "InvalidQueryException": newErrorInvalidQueryException, + "InvalidRequestException": newErrorInvalidRequestException, + "InvalidResponseException": newErrorInvalidResponseException, + "InvalidStateTransitionException": newErrorInvalidStateTransitionException, + "LimitExceededException": newErrorLimitExceededException, + "MalformedPolicyException": newErrorMalformedPolicyException, + "NotConfiguredException": newErrorNotConfiguredException, + "RegistrationCodeValidationException": newErrorRegistrationCodeValidationException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceRegistrationFailureException": newErrorResourceRegistrationFailureException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "SqlParseException": newErrorSqlParseException, + "TaskAlreadyExistsException": newErrorTaskAlreadyExistsException, + "ThrottlingException": newErrorThrottlingException, + "TransferAlreadyCompletedException": newErrorTransferAlreadyCompletedException, + "TransferConflictException": newErrorTransferConflictException, + "UnauthorizedException": newErrorUnauthorizedException, + "VersionConflictException": newErrorVersionConflictException, + "VersionsLimitExceededException": newErrorVersionsLimitExceededException, +} diff --git a/service/iot/service.go b/service/iot/service.go index 528f86702cf..1b26fbf3798 100644 --- a/service/iot/service.go +++ b/service/iot/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iot1clickdevicesservice/api.go b/service/iot1clickdevicesservice/api.go index a9c22759a42..8331c872637 100644 --- a/service/iot1clickdevicesservice/api.go +++ b/service/iot1clickdevicesservice/api.go @@ -3,6 +3,7 @@ package iot1clickdevicesservice import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,12 +67,12 @@ func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCodeRequest(input *ClaimDev // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation ClaimDevicesByClaimCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ClaimDevicesByClaimCode func (c *IoT1ClickDevicesService) ClaimDevicesByClaimCode(input *ClaimDevicesByClaimCodeInput) (*ClaimDevicesByClaimCodeOutput, error) { @@ -149,12 +150,12 @@ func (c *IoT1ClickDevicesService) DescribeDeviceRequest(input *DescribeDeviceInp // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation DescribeDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/DescribeDevice func (c *IoT1ClickDevicesService) DescribeDevice(input *DescribeDeviceInput) (*DescribeDeviceOutput, error) { @@ -235,16 +236,16 @@ func (c *IoT1ClickDevicesService) FinalizeDeviceClaimRequest(input *FinalizeDevi // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation FinalizeDeviceClaim for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/FinalizeDeviceClaim func (c *IoT1ClickDevicesService) FinalizeDeviceClaim(input *FinalizeDeviceClaimInput) (*FinalizeDeviceClaimOutput, error) { @@ -321,12 +322,12 @@ func (c *IoT1ClickDevicesService) GetDeviceMethodsRequest(input *GetDeviceMethod // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation GetDeviceMethods for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/GetDeviceMethods func (c *IoT1ClickDevicesService) GetDeviceMethods(input *GetDeviceMethodsInput) (*GetDeviceMethodsOutput, error) { @@ -407,14 +408,14 @@ func (c *IoT1ClickDevicesService) InitiateDeviceClaimRequest(input *InitiateDevi // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation InitiateDeviceClaim for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InitiateDeviceClaim func (c *IoT1ClickDevicesService) InitiateDeviceClaim(input *InitiateDeviceClaimInput) (*InitiateDeviceClaimOutput, error) { @@ -492,18 +493,18 @@ func (c *IoT1ClickDevicesService) InvokeDeviceMethodRequest(input *InvokeDeviceM // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation InvokeDeviceMethod for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeRangeNotSatisfiableException "RangeNotSatisfiableException" +// * RangeNotSatisfiableException // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/InvokeDeviceMethod func (c *IoT1ClickDevicesService) InvokeDeviceMethod(input *InvokeDeviceMethodInput) (*InvokeDeviceMethodOutput, error) { @@ -581,14 +582,14 @@ func (c *IoT1ClickDevicesService) ListDeviceEventsRequest(input *ListDeviceEvent // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation ListDeviceEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeRangeNotSatisfiableException "RangeNotSatisfiableException" +// * RangeNotSatisfiableException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDeviceEvents func (c *IoT1ClickDevicesService) ListDeviceEvents(input *ListDeviceEventsInput) (*ListDeviceEventsOutput, error) { @@ -665,12 +666,12 @@ func (c *IoT1ClickDevicesService) ListDevicesRequest(input *ListDevicesInput) (r // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation ListDevices for usage and error information. // -// Returned Error Codes: -// * ErrCodeRangeNotSatisfiableException "RangeNotSatisfiableException" +// Returned Error Types: +// * RangeNotSatisfiableException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListDevices func (c *IoT1ClickDevicesService) ListDevices(input *ListDevicesInput) (*ListDevicesOutput, error) { @@ -747,10 +748,10 @@ func (c *IoT1ClickDevicesService) ListTagsForResourceRequest(input *ListTagsForR // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/ListTagsForResource func (c *IoT1ClickDevicesService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -830,12 +831,12 @@ func (c *IoT1ClickDevicesService) TagResourceRequest(input *TagResourceInput) (r // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/TagResource func (c *IoT1ClickDevicesService) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -912,12 +913,12 @@ func (c *IoT1ClickDevicesService) UnclaimDeviceRequest(input *UnclaimDeviceInput // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation UnclaimDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UnclaimDevice func (c *IoT1ClickDevicesService) UnclaimDevice(input *UnclaimDeviceInput) (*UnclaimDeviceOutput, error) { @@ -996,12 +997,12 @@ func (c *IoT1ClickDevicesService) UntagResourceRequest(input *UntagResourceInput // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UntagResource func (c *IoT1ClickDevicesService) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -1080,12 +1081,12 @@ func (c *IoT1ClickDevicesService) UpdateDeviceStateRequest(input *UpdateDeviceSt // See the AWS API reference guide for AWS IoT 1-Click Devices Service's // API operation UpdateDeviceState for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/devices-2018-05-14/UpdateDeviceState func (c *IoT1ClickDevicesService) UpdateDeviceState(input *UpdateDeviceStateInput) (*UpdateDeviceStateOutput, error) { @@ -1509,6 +1510,65 @@ func (s *FinalizeDeviceClaimOutput) SetState(v string) *FinalizeDeviceClaimOutpu return s } +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 403 + Code_ *string `locationName:"code" type:"string"` + + // The 403 error message returned by the web server. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetDeviceMethodsInput struct { _ struct{} `type:"structure"` @@ -1632,6 +1692,124 @@ func (s *InitiateDeviceClaimOutput) SetState(v string) *InitiateDeviceClaimOutpu return s } +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 500 + Code_ *string `locationName:"code" type:"string"` + + // The 500 error message returned by the web server. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 400 + Code_ *string `locationName:"code" type:"string"` + + // The 400 error message returned by the web server. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type InvokeDeviceMethodInput struct { _ struct{} `type:"structure"` @@ -1968,6 +2146,242 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +type PreconditionFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 412 + Code_ *string `locationName:"code" type:"string"` + + // An error message explaining the error or its remedy. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PreconditionFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PreconditionFailedException) GoString() string { + return s.String() +} + +func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error { + return &PreconditionFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PreconditionFailedException) Code() string { + return "PreconditionFailedException" +} + +// Message returns the exception's message. +func (s PreconditionFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PreconditionFailedException) OrigErr() error { + return nil +} + +func (s PreconditionFailedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PreconditionFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PreconditionFailedException) RequestID() string { + return s.respMetadata.RequestID +} + +type RangeNotSatisfiableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 416 + Code_ *string `locationName:"code" type:"string"` + + // The requested number of results specified by nextToken cannot be satisfied. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RangeNotSatisfiableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RangeNotSatisfiableException) GoString() string { + return s.String() +} + +func newErrorRangeNotSatisfiableException(v protocol.ResponseMetadata) error { + return &RangeNotSatisfiableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RangeNotSatisfiableException) Code() string { + return "RangeNotSatisfiableException" +} + +// Message returns the exception's message. +func (s RangeNotSatisfiableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RangeNotSatisfiableException) OrigErr() error { + return nil +} + +func (s RangeNotSatisfiableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RangeNotSatisfiableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RangeNotSatisfiableException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 409 + Code_ *string `locationName:"code" type:"string"` + + // An error message explaining the error or its remedy. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceConflictException) OrigErr() error { + return nil +} + +func (s ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 404 + Code_ *string `locationName:"code" type:"string"` + + // The requested device could not be found. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/iot1clickdevicesservice/errors.go b/service/iot1clickdevicesservice/errors.go index 430b9651281..0dacbb06d64 100644 --- a/service/iot1clickdevicesservice/errors.go +++ b/service/iot1clickdevicesservice/errors.go @@ -2,6 +2,10 @@ package iot1clickdevicesservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeForbiddenException for service response error code @@ -32,3 +36,13 @@ const ( // "ResourceNotFoundException". ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ForbiddenException": newErrorForbiddenException, + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "PreconditionFailedException": newErrorPreconditionFailedException, + "RangeNotSatisfiableException": newErrorRangeNotSatisfiableException, + "ResourceConflictException": newErrorResourceConflictException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/iot1clickdevicesservice/service.go b/service/iot1clickdevicesservice/service.go index 6a32678e181..49366dfd047 100644 --- a/service/iot1clickdevicesservice/service.go +++ b/service/iot1clickdevicesservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iot1clickprojects/api.go b/service/iot1clickprojects/api.go index 966db9619b2..47cd0f23307 100644 --- a/service/iot1clickprojects/api.go +++ b/service/iot1clickprojects/api.go @@ -3,6 +3,7 @@ package iot1clickprojects import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,14 +67,14 @@ func (c *IoT1ClickProjects) AssociateDeviceWithPlacementRequest(input *Associate // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation AssociateDeviceWithPlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/AssociateDeviceWithPlacement func (c *IoT1ClickProjects) AssociateDeviceWithPlacement(input *AssociateDeviceWithPlacementInput) (*AssociateDeviceWithPlacementOutput, error) { @@ -151,14 +152,14 @@ func (c *IoT1ClickProjects) CreatePlacementRequest(input *CreatePlacementInput) // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation CreatePlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreatePlacement func (c *IoT1ClickProjects) CreatePlacement(input *CreatePlacementInput) (*CreatePlacementOutput, error) { @@ -237,12 +238,12 @@ func (c *IoT1ClickProjects) CreateProjectRequest(input *CreateProjectInput) (req // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation CreateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/CreateProject func (c *IoT1ClickProjects) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error) { @@ -323,14 +324,14 @@ func (c *IoT1ClickProjects) DeletePlacementRequest(input *DeletePlacementInput) // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation DeletePlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeletePlacement func (c *IoT1ClickProjects) DeletePlacement(input *DeletePlacementInput) (*DeletePlacementOutput, error) { @@ -411,14 +412,14 @@ func (c *IoT1ClickProjects) DeleteProjectRequest(input *DeleteProjectInput) (req // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation DeleteProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DeleteProject func (c *IoT1ClickProjects) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error) { @@ -495,12 +496,12 @@ func (c *IoT1ClickProjects) DescribePlacementRequest(input *DescribePlacementInp // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation DescribePlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribePlacement func (c *IoT1ClickProjects) DescribePlacement(input *DescribePlacementInput) (*DescribePlacementOutput, error) { @@ -577,12 +578,12 @@ func (c *IoT1ClickProjects) DescribeProjectRequest(input *DescribeProjectInput) // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation DescribeProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DescribeProject func (c *IoT1ClickProjects) DescribeProject(input *DescribeProjectInput) (*DescribeProjectOutput, error) { @@ -660,14 +661,14 @@ func (c *IoT1ClickProjects) DisassociateDeviceFromPlacementRequest(input *Disass // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation DisassociateDeviceFromPlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/DisassociateDeviceFromPlacement func (c *IoT1ClickProjects) DisassociateDeviceFromPlacement(input *DisassociateDeviceFromPlacementInput) (*DisassociateDeviceFromPlacementOutput, error) { @@ -744,12 +745,12 @@ func (c *IoT1ClickProjects) GetDevicesInPlacementRequest(input *GetDevicesInPlac // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation GetDevicesInPlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/GetDevicesInPlacement func (c *IoT1ClickProjects) GetDevicesInPlacement(input *GetDevicesInPlacementInput) (*GetDevicesInPlacementOutput, error) { @@ -832,12 +833,12 @@ func (c *IoT1ClickProjects) ListPlacementsRequest(input *ListPlacementsInput) (r // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation ListPlacements for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListPlacements func (c *IoT1ClickProjects) ListPlacements(input *ListPlacementsInput) (*ListPlacementsOutput, error) { @@ -973,10 +974,10 @@ func (c *IoT1ClickProjects) ListProjectsRequest(input *ListProjectsInput) (req * // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation ListProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListProjects func (c *IoT1ClickProjects) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error) { @@ -1106,12 +1107,12 @@ func (c *IoT1ClickProjects) ListTagsForResourceRequest(input *ListTagsForResourc // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/ListTagsForResource func (c *IoT1ClickProjects) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -1191,12 +1192,12 @@ func (c *IoT1ClickProjects) TagResourceRequest(input *TagResourceInput) (req *re // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/TagResource func (c *IoT1ClickProjects) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -1274,12 +1275,12 @@ func (c *IoT1ClickProjects) UntagResourceRequest(input *UntagResourceInput) (req // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UntagResource func (c *IoT1ClickProjects) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -1358,14 +1359,14 @@ func (c *IoT1ClickProjects) UpdatePlacementRequest(input *UpdatePlacementInput) // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation UpdatePlacement for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdatePlacement func (c *IoT1ClickProjects) UpdatePlacement(input *UpdatePlacementInput) (*UpdatePlacementOutput, error) { @@ -1446,14 +1447,14 @@ func (c *IoT1ClickProjects) UpdateProjectRequest(input *UpdateProjectInput) (req // See the AWS API reference guide for AWS IoT 1-Click Projects Service's // API operation UpdateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot1click-projects-2018-05-14/UpdateProject func (c *IoT1ClickProjects) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error) { @@ -2240,6 +2241,120 @@ func (s *GetDevicesInPlacementOutput) SetDevices(v map[string]*string) *GetDevic return s } +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type ListPlacementsInput struct { _ struct{} `type:"structure"` @@ -2811,6 +2926,120 @@ func (s *ProjectSummary) SetUpdatedDate(v time.Time) *ProjectSummary { return s } +type ResourceConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceConflictException) OrigErr() error { + return nil +} + +func (s ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -2885,6 +3114,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/iot1clickprojects/errors.go b/service/iot1clickprojects/errors.go index 3b8e416bb44..d582b3f1cf5 100644 --- a/service/iot1clickprojects/errors.go +++ b/service/iot1clickprojects/errors.go @@ -2,6 +2,10 @@ package iot1clickprojects +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalFailureException for service response error code @@ -24,3 +28,11 @@ const ( // "TooManyRequestsException". ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceConflictException": newErrorResourceConflictException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/iot1clickprojects/service.go b/service/iot1clickprojects/service.go index c9450a86a0f..dec89cf6071 100644 --- a/service/iot1clickprojects/service.go +++ b/service/iot1clickprojects/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iotanalytics/api.go b/service/iotanalytics/api.go index 2192689007d..b101fafeb1a 100644 --- a/service/iotanalytics/api.go +++ b/service/iotanalytics/api.go @@ -66,20 +66,20 @@ func (c *IoTAnalytics) BatchPutMessageRequest(input *BatchPutMessageInput) (req // See the AWS API reference guide for AWS IoT Analytics's // API operation BatchPutMessage for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/BatchPutMessage @@ -158,20 +158,20 @@ func (c *IoTAnalytics) CancelPipelineReprocessingRequest(input *CancelPipelineRe // See the AWS API reference guide for AWS IoT Analytics's // API operation CancelPipelineReprocessing for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CancelPipelineReprocessing @@ -250,23 +250,23 @@ func (c *IoTAnalytics) CreateChannelRequest(input *CreateChannelInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation CreateChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource with the same name already exists. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateChannel @@ -348,23 +348,23 @@ func (c *IoTAnalytics) CreateDatasetRequest(input *CreateDatasetInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation CreateDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource with the same name already exists. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDataset @@ -443,20 +443,20 @@ func (c *IoTAnalytics) CreateDatasetContentRequest(input *CreateDatasetContentIn // See the AWS API reference guide for AWS IoT Analytics's // API operation CreateDatasetContent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatasetContent @@ -534,23 +534,23 @@ func (c *IoTAnalytics) CreateDatastoreRequest(input *CreateDatastoreInput) (req // See the AWS API reference guide for AWS IoT Analytics's // API operation CreateDatastore for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource with the same name already exists. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreateDatastore @@ -631,23 +631,23 @@ func (c *IoTAnalytics) CreatePipelineRequest(input *CreatePipelineInput) (req *r // See the AWS API reference guide for AWS IoT Analytics's // API operation CreatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource with the same name already exists. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/CreatePipeline @@ -726,20 +726,20 @@ func (c *IoTAnalytics) DeleteChannelRequest(input *DeleteChannelInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation DeleteChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteChannel @@ -821,20 +821,20 @@ func (c *IoTAnalytics) DeleteDatasetRequest(input *DeleteDatasetInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation DeleteDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDataset @@ -913,20 +913,20 @@ func (c *IoTAnalytics) DeleteDatasetContentRequest(input *DeleteDatasetContentIn // See the AWS API reference guide for AWS IoT Analytics's // API operation DeleteDatasetContent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatasetContent @@ -1005,20 +1005,20 @@ func (c *IoTAnalytics) DeleteDatastoreRequest(input *DeleteDatastoreInput) (req // See the AWS API reference guide for AWS IoT Analytics's // API operation DeleteDatastore for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeleteDatastore @@ -1097,20 +1097,20 @@ func (c *IoTAnalytics) DeletePipelineRequest(input *DeletePipelineInput) (req *r // See the AWS API reference guide for AWS IoT Analytics's // API operation DeletePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DeletePipeline @@ -1188,20 +1188,20 @@ func (c *IoTAnalytics) DescribeChannelRequest(input *DescribeChannelInput) (req // See the AWS API reference guide for AWS IoT Analytics's // API operation DescribeChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeChannel @@ -1279,20 +1279,20 @@ func (c *IoTAnalytics) DescribeDatasetRequest(input *DescribeDatasetInput) (req // See the AWS API reference guide for AWS IoT Analytics's // API operation DescribeDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDataset @@ -1370,20 +1370,20 @@ func (c *IoTAnalytics) DescribeDatastoreRequest(input *DescribeDatastoreInput) ( // See the AWS API reference guide for AWS IoT Analytics's // API operation DescribeDatastore for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeDatastore @@ -1461,20 +1461,20 @@ func (c *IoTAnalytics) DescribeLoggingOptionsRequest(input *DescribeLoggingOptio // See the AWS API reference guide for AWS IoT Analytics's // API operation DescribeLoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribeLoggingOptions @@ -1552,20 +1552,20 @@ func (c *IoTAnalytics) DescribePipelineRequest(input *DescribePipelineInput) (re // See the AWS API reference guide for AWS IoT Analytics's // API operation DescribePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DescribePipeline @@ -1643,20 +1643,20 @@ func (c *IoTAnalytics) GetDatasetContentRequest(input *GetDatasetContentInput) ( // See the AWS API reference guide for AWS IoT Analytics's // API operation GetDatasetContent for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/GetDatasetContent @@ -1740,17 +1740,17 @@ func (c *IoTAnalytics) ListChannelsRequest(input *ListChannelsInput) (req *reque // See the AWS API reference guide for AWS IoT Analytics's // API operation ListChannels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListChannels @@ -1886,20 +1886,20 @@ func (c *IoTAnalytics) ListDatasetContentsRequest(input *ListDatasetContentsInpu // See the AWS API reference guide for AWS IoT Analytics's // API operation ListDatasetContents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasetContents @@ -2035,17 +2035,17 @@ func (c *IoTAnalytics) ListDatasetsRequest(input *ListDatasetsInput) (req *reque // See the AWS API reference guide for AWS IoT Analytics's // API operation ListDatasets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatasets @@ -2181,17 +2181,17 @@ func (c *IoTAnalytics) ListDatastoresRequest(input *ListDatastoresInput) (req *r // See the AWS API reference guide for AWS IoT Analytics's // API operation ListDatastores for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListDatastores @@ -2327,17 +2327,17 @@ func (c *IoTAnalytics) ListPipelinesRequest(input *ListPipelinesInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation ListPipelines for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListPipelines @@ -2467,23 +2467,23 @@ func (c *IoTAnalytics) ListTagsForResourceRequest(input *ListTagsForResourceInpu // See the AWS API reference guide for AWS IoT Analytics's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/ListTagsForResource @@ -2568,17 +2568,17 @@ func (c *IoTAnalytics) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) ( // See the AWS API reference guide for AWS IoT Analytics's // API operation PutLoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/PutLoggingOptions @@ -2656,17 +2656,17 @@ func (c *IoTAnalytics) RunPipelineActivityRequest(input *RunPipelineActivityInpu // See the AWS API reference guide for AWS IoT Analytics's // API operation RunPipelineActivity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/RunPipelineActivity @@ -2745,20 +2745,20 @@ func (c *IoTAnalytics) SampleChannelDataRequest(input *SampleChannelDataInput) ( // See the AWS API reference guide for AWS IoT Analytics's // API operation SampleChannelData for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/SampleChannelData @@ -2836,23 +2836,23 @@ func (c *IoTAnalytics) StartPipelineReprocessingRequest(input *StartPipelineRepr // See the AWS API reference guide for AWS IoT Analytics's // API operation StartPipelineReprocessing for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource with the same name already exists. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/StartPipelineReprocessing @@ -2932,23 +2932,23 @@ func (c *IoTAnalytics) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for AWS IoT Analytics's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/TagResource @@ -3027,23 +3027,23 @@ func (c *IoTAnalytics) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UntagResource @@ -3122,20 +3122,20 @@ func (c *IoTAnalytics) UpdateChannelRequest(input *UpdateChannelInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation UpdateChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateChannel @@ -3214,20 +3214,20 @@ func (c *IoTAnalytics) UpdateDatasetRequest(input *UpdateDatasetInput) (req *req // See the AWS API reference guide for AWS IoT Analytics's // API operation UpdateDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDataset @@ -3306,20 +3306,20 @@ func (c *IoTAnalytics) UpdateDatastoreRequest(input *UpdateDatastoreInput) (req // See the AWS API reference guide for AWS IoT Analytics's // API operation UpdateDatastore for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdateDatastore @@ -3400,23 +3400,23 @@ func (c *IoTAnalytics) UpdatePipelineRequest(input *UpdatePipelineInput) (req *r // See the AWS API reference guide for AWS IoT Analytics's // API operation UpdatePipeline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A resource with the specified name could not be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal failure. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The command caused an internal limit to be exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/UpdatePipeline @@ -7189,6 +7189,118 @@ func (s *GlueConfiguration) SetTableName(v string) *GlueConfiguration { return s } +// There was an internal failure. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was not valid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Configuration information for delivery of data set contents to AWS IoT Events. type IotEventsDestinationConfiguration struct { _ struct{} `type:"structure"` @@ -7340,6 +7452,62 @@ func (s *LambdaActivity) SetNext(v string) *LambdaActivity { return s } +// The command caused an internal limit to be exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListChannelsInput struct { _ struct{} `type:"structure"` @@ -8600,6 +8768,68 @@ func (s *ReprocessingSummary) SetStatus(v string) *ReprocessingSummary { return s } +// A resource with the same name already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // The ARN of the resource. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // The configuration of the resource used to execute the "containerAction". type ResourceConfiguration struct { _ struct{} `type:"structure"` @@ -8658,6 +8888,62 @@ func (s *ResourceConfiguration) SetVolumeSizeInGB(v int64) *ResourceConfiguratio return s } +// A resource with the specified name could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // How long, in days, message data is kept. type RetentionPeriod struct { _ struct{} `type:"structure"` @@ -9159,6 +9445,62 @@ func (s ServiceManagedDatastoreS3StorageSummary) GoString() string { return s.String() } +// The service is temporarily unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // The SQL query to modify the message. type SqlQueryDatasetAction struct { _ struct{} `type:"structure"` @@ -9440,6 +9782,62 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about the data set whose content generation triggers the new // data set content generation. type TriggeringDataset struct { diff --git a/service/iotanalytics/errors.go b/service/iotanalytics/errors.go index 790e802f3bf..2dd14ba7a7a 100644 --- a/service/iotanalytics/errors.go +++ b/service/iotanalytics/errors.go @@ -2,6 +2,10 @@ package iotanalytics +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalFailureException for service response error code @@ -46,3 +50,13 @@ const ( // The request was denied due to request throttling. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/iotanalytics/service.go b/service/iotanalytics/service.go index 279b27c68fe..eeeceecff0c 100644 --- a/service/iotanalytics/service.go +++ b/service/iotanalytics/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iotdataplane/api.go b/service/iotdataplane/api.go index d94c30a282c..8f32d92e593 100644 --- a/service/iotdataplane/api.go +++ b/service/iotdataplane/api.go @@ -3,6 +3,8 @@ package iotdataplane import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -64,29 +66,29 @@ func (c *IoTDataPlane) DeleteThingShadowRequest(input *DeleteThingShadowInput) ( // See the AWS API reference guide for AWS IoT Data Plane's // API operation DeleteThingShadow for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The specified combination of HTTP verb and URI is not supported. // -// * ErrCodeUnsupportedDocumentEncodingException "UnsupportedDocumentEncodingException" +// * UnsupportedDocumentEncodingException // The document encoding is not supported. // func (c *IoTDataPlane) DeleteThingShadow(input *DeleteThingShadowInput) (*DeleteThingShadowOutput, error) { @@ -164,29 +166,29 @@ func (c *IoTDataPlane) GetThingShadowRequest(input *GetThingShadowInput) (req *r // See the AWS API reference guide for AWS IoT Data Plane's // API operation GetThingShadow for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The specified combination of HTTP verb and URI is not supported. // -// * ErrCodeUnsupportedDocumentEncodingException "UnsupportedDocumentEncodingException" +// * UnsupportedDocumentEncodingException // The document encoding is not supported. // func (c *IoTDataPlane) GetThingShadow(input *GetThingShadowInput) (*GetThingShadowOutput, error) { @@ -265,17 +267,17 @@ func (c *IoTDataPlane) PublishRequest(input *PublishInput) (req *request.Request // See the AWS API reference guide for AWS IoT Data Plane's // API operation Publish for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The specified combination of HTTP verb and URI is not supported. // func (c *IoTDataPlane) Publish(input *PublishInput) (*PublishOutput, error) { @@ -353,32 +355,32 @@ func (c *IoTDataPlane) UpdateThingShadowRequest(input *UpdateThingShadowInput) ( // See the AWS API reference guide for AWS IoT Data Plane's // API operation UpdateThingShadow for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // The specified version does not match the version of the document. // -// * ErrCodeRequestEntityTooLargeException "RequestEntityTooLargeException" +// * RequestEntityTooLargeException // The payload exceeds the maximum size allowed. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // You are not authorized to perform this operation. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An unexpected error has occurred. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The specified combination of HTTP verb and URI is not supported. // -// * ErrCodeUnsupportedDocumentEncodingException "UnsupportedDocumentEncodingException" +// * UnsupportedDocumentEncodingException // The document encoding is not supported. // func (c *IoTDataPlane) UpdateThingShadow(input *UpdateThingShadowInput) (*UpdateThingShadowOutput, error) { @@ -402,6 +404,63 @@ func (c *IoTDataPlane) UpdateThingShadowWithContext(ctx aws.Context, input *Upda return out, req.Send() } +// The specified version does not match the version of the document. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // The input for the DeleteThingShadow operation. type DeleteThingShadowInput struct { _ struct{} `type:"structure"` @@ -536,6 +595,177 @@ func (s *GetThingShadowOutput) SetPayload(v []byte) *GetThingShadowOutput { return s } +// An unexpected error has occurred. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is not valid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified combination of HTTP verb and URI is not supported. +type MethodNotAllowedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MethodNotAllowedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MethodNotAllowedException) GoString() string { + return s.String() +} + +func newErrorMethodNotAllowedException(v protocol.ResponseMetadata) error { + return &MethodNotAllowedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MethodNotAllowedException) Code() string { + return "MethodNotAllowedException" +} + +// Message returns the exception's message. +func (s MethodNotAllowedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MethodNotAllowedException) OrigErr() error { + return nil +} + +func (s MethodNotAllowedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MethodNotAllowedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MethodNotAllowedException) RequestID() string { + return s.respMetadata.RequestID +} + // The input for the Publish operation. type PublishInput struct { _ struct{} `type:"structure" payload:"Payload"` @@ -610,6 +840,348 @@ func (s PublishOutput) GoString() string { return s.String() } +// The payload exceeds the maximum size allowed. +type RequestEntityTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RequestEntityTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestEntityTooLargeException) GoString() string { + return s.String() +} + +func newErrorRequestEntityTooLargeException(v protocol.ResponseMetadata) error { + return &RequestEntityTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestEntityTooLargeException) Code() string { + return "RequestEntityTooLargeException" +} + +// Message returns the exception's message. +func (s RequestEntityTooLargeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestEntityTooLargeException) OrigErr() error { + return nil +} + +func (s RequestEntityTooLargeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestEntityTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestEntityTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is temporarily unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + +// The rate exceeds the limit. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// You are not authorized to perform this operation. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The document encoding is not supported. +type UnsupportedDocumentEncodingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedDocumentEncodingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedDocumentEncodingException) GoString() string { + return s.String() +} + +func newErrorUnsupportedDocumentEncodingException(v protocol.ResponseMetadata) error { + return &UnsupportedDocumentEncodingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedDocumentEncodingException) Code() string { + return "UnsupportedDocumentEncodingException" +} + +// Message returns the exception's message. +func (s UnsupportedDocumentEncodingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedDocumentEncodingException) OrigErr() error { + return nil +} + +func (s UnsupportedDocumentEncodingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedDocumentEncodingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedDocumentEncodingException) RequestID() string { + return s.respMetadata.RequestID +} + // The input for the UpdateThingShadow operation. type UpdateThingShadowInput struct { _ struct{} `type:"structure" payload:"Payload"` diff --git a/service/iotdataplane/errors.go b/service/iotdataplane/errors.go index 6cfbeb729e0..58bda495273 100644 --- a/service/iotdataplane/errors.go +++ b/service/iotdataplane/errors.go @@ -2,6 +2,10 @@ package iotdataplane +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConflictException for service response error code @@ -64,3 +68,16 @@ const ( // The document encoding is not supported. ErrCodeUnsupportedDocumentEncodingException = "UnsupportedDocumentEncodingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConflictException": newErrorConflictException, + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "MethodNotAllowedException": newErrorMethodNotAllowedException, + "RequestEntityTooLargeException": newErrorRequestEntityTooLargeException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, + "UnauthorizedException": newErrorUnauthorizedException, + "UnsupportedDocumentEncodingException": newErrorUnsupportedDocumentEncodingException, +} diff --git a/service/iotdataplane/service.go b/service/iotdataplane/service.go index b6d285838d4..ba0102108e5 100644 --- a/service/iotdataplane/service.go +++ b/service/iotdataplane/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -82,7 +83,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iotevents/api.go b/service/iotevents/api.go index 954cf1a17dc..3f4aad1f7c9 100644 --- a/service/iotevents/api.go +++ b/service/iotevents/api.go @@ -66,26 +66,26 @@ func (c *IoTEvents) CreateDetectorModelRequest(input *CreateDetectorModelInput) // See the AWS API reference guide for AWS IoT Events's // API operation CreateDetectorModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/CreateDetectorModel @@ -163,20 +163,20 @@ func (c *IoTEvents) CreateInputRequest(input *CreateInputInput) (req *request.Re // See the AWS API reference guide for AWS IoT Events's // API operation CreateInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/CreateInput @@ -256,23 +256,23 @@ func (c *IoTEvents) DeleteDetectorModelRequest(input *DeleteDetectorModelInput) // See the AWS API reference guide for AWS IoT Events's // API operation DeleteDetectorModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DeleteDetectorModel @@ -351,23 +351,23 @@ func (c *IoTEvents) DeleteInputRequest(input *DeleteInputInput) (req *request.Re // See the AWS API reference guide for AWS IoT Events's // API operation DeleteInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DeleteInput @@ -446,20 +446,20 @@ func (c *IoTEvents) DescribeDetectorModelRequest(input *DescribeDetectorModelInp // See the AWS API reference guide for AWS IoT Events's // API operation DescribeDetectorModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DescribeDetectorModel @@ -537,20 +537,20 @@ func (c *IoTEvents) DescribeInputRequest(input *DescribeInputInput) (req *reques // See the AWS API reference guide for AWS IoT Events's // API operation DescribeInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DescribeInput @@ -628,23 +628,23 @@ func (c *IoTEvents) DescribeLoggingOptionsRequest(input *DescribeLoggingOptionsI // See the AWS API reference guide for AWS IoT Events's // API operation DescribeLoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The requested operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/DescribeLoggingOptions @@ -723,20 +723,20 @@ func (c *IoTEvents) ListDetectorModelVersionsRequest(input *ListDetectorModelVer // See the AWS API reference guide for AWS IoT Events's // API operation ListDetectorModelVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ListDetectorModelVersions @@ -815,17 +815,17 @@ func (c *IoTEvents) ListDetectorModelsRequest(input *ListDetectorModelsInput) (r // See the AWS API reference guide for AWS IoT Events's // API operation ListDetectorModels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ListDetectorModels @@ -903,17 +903,17 @@ func (c *IoTEvents) ListInputsRequest(input *ListInputsInput) (req *request.Requ // See the AWS API reference guide for AWS IoT Events's // API operation ListInputs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ListInputs @@ -991,20 +991,20 @@ func (c *IoTEvents) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS IoT Events's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/ListTagsForResource @@ -1088,23 +1088,23 @@ func (c *IoTEvents) PutLoggingOptionsRequest(input *PutLoggingOptionsInput) (req // See the AWS API reference guide for AWS IoT Events's // API operation PutLoggingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The requested operation is not supported. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/PutLoggingOptions @@ -1184,23 +1184,23 @@ func (c *IoTEvents) TagResourceRequest(input *TagResourceInput) (req *request.Re // See the AWS API reference guide for AWS IoT Events's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit was exceeded. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/TagResource @@ -1279,20 +1279,20 @@ func (c *IoTEvents) UntagResourceRequest(input *UntagResourceInput) (req *reques // See the AWS API reference guide for AWS IoT Events's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/UntagResource @@ -1371,23 +1371,23 @@ func (c *IoTEvents) UpdateDetectorModelRequest(input *UpdateDetectorModelInput) // See the AWS API reference guide for AWS IoT Events's // API operation UpdateDetectorModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/UpdateDetectorModel @@ -1465,23 +1465,23 @@ func (c *IoTEvents) UpdateInputRequest(input *UpdateInputInput) (req *request.Re // See the AWS API reference guide for AWS IoT Events's // API operation UpdateInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-2018-07-27/UpdateInput @@ -3127,6 +3127,120 @@ func (s *InputSummary) SetStatus(v string) *InputSummary { return s } +// An internal failure occurred. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was invalid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Information required to publish the MQTT message via the AWS IoT message // broker. type IotTopicPublishAction struct { @@ -3213,6 +3327,63 @@ func (s *LambdaAction) SetFunctionArn(v string) *LambdaAction { return s } +// A limit was exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDetectorModelVersionsInput struct { _ struct{} `type:"structure"` @@ -3875,6 +4046,183 @@ func (s *ResetTimerAction) SetTimerName(v string) *ResetTimerAction { return s } +// The resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` + + // The ARN of the resource. + ResourceArn *string `locationName:"resourceArn" type:"string"` + + // The ID of the resource. + ResourceId *string `locationName:"resourceId" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource is in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information required to publish the Amazon SNS message. type SNSTopicPublishAction struct { _ struct{} `type:"structure"` @@ -3917,6 +4265,63 @@ func (s *SNSTopicPublishAction) SetTargetArn(v string) *SNSTopicPublishAction { return s } +// The service is currently unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Information needed to set the timer. type SetTimerAction struct { _ struct{} `type:"structure"` @@ -4304,6 +4709,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The request could not be completed due to throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the actions performed and the next state entered when a "condition" // evaluates to TRUE. type TransitionEvent struct { @@ -4395,6 +4857,63 @@ func (s *TransitionEvent) SetNextState(v string) *TransitionEvent { return s } +// The requested operation is not supported. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s UnsupportedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/iotevents/errors.go b/service/iotevents/errors.go index e36954c548f..b7a246810a3 100644 --- a/service/iotevents/errors.go +++ b/service/iotevents/errors.go @@ -2,6 +2,10 @@ package iotevents +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalFailureException for service response error code @@ -58,3 +62,15 @@ const ( // The requested operation is not supported. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, +} diff --git a/service/iotevents/service.go b/service/iotevents/service.go index 9491cfc3bc8..7dd170dd819 100644 --- a/service/iotevents/service.go +++ b/service/iotevents/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ioteventsdata/api.go b/service/ioteventsdata/api.go index 1bb0933fa01..fdd06ab1fc3 100644 --- a/service/ioteventsdata/api.go +++ b/service/ioteventsdata/api.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opBatchPutMessage = "BatchPutMessage" @@ -69,17 +70,17 @@ func (c *IoTEventsData) BatchPutMessageRequest(input *BatchPutMessageInput) (req // See the AWS API reference guide for AWS IoT Events Data's // API operation BatchPutMessage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occured. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchPutMessage @@ -158,17 +159,17 @@ func (c *IoTEventsData) BatchUpdateDetectorRequest(input *BatchUpdateDetectorInp // See the AWS API reference guide for AWS IoT Events Data's // API operation BatchUpdateDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occured. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/BatchUpdateDetector @@ -246,20 +247,20 @@ func (c *IoTEventsData) DescribeDetectorRequest(input *DescribeDetectorInput) (r // See the AWS API reference guide for AWS IoT Events Data's // API operation DescribeDetector for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occured. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/DescribeDetector @@ -337,20 +338,20 @@ func (c *IoTEventsData) ListDetectorsRequest(input *ListDetectorsInput) (req *re // See the AWS API reference guide for AWS IoT Events Data's // API operation ListDetectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request was invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource was not found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request could not be completed due to throttling. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occured. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotevents-data-2018-10-23/ListDetectors @@ -993,6 +994,120 @@ func (s *DetectorSummary) SetState(v *DetectorStateSummary) *DetectorSummary { return s } +// An internal failure occured. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was invalid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDetectorsInput struct { _ struct{} `type:"structure"` @@ -1178,6 +1293,177 @@ func (s *Message) SetPayload(v []byte) *Message { return s } +// The resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is currently unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request could not be completed due to throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // The current state of a timer. type Timer struct { _ struct{} `type:"structure"` diff --git a/service/ioteventsdata/errors.go b/service/ioteventsdata/errors.go index b2af45630fa..3f46a5919c5 100644 --- a/service/ioteventsdata/errors.go +++ b/service/ioteventsdata/errors.go @@ -2,6 +2,10 @@ package ioteventsdata +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalFailureException for service response error code @@ -34,3 +38,11 @@ const ( // The request could not be completed due to throttling. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/ioteventsdata/service.go b/service/ioteventsdata/service.go index e767b34a507..b575dd845b2 100644 --- a/service/ioteventsdata/service.go +++ b/service/ioteventsdata/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iotjobsdataplane/api.go b/service/iotjobsdataplane/api.go index 20caf56ac8a..435d535d628 100644 --- a/service/iotjobsdataplane/api.go +++ b/service/iotjobsdataplane/api.go @@ -3,9 +3,12 @@ package iotjobsdataplane import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opDescribeJobExecution = "DescribeJobExecution" @@ -61,25 +64,25 @@ func (c *IoTJobsDataPlane) DescribeJobExecutionRequest(input *DescribeJobExecuti // See the AWS API reference guide for AWS IoT Jobs Data Plane's // API operation DescribeJobExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The contents of the request were invalid. For example, this code is returned // when an UpdateJobExecution request contains invalid status details. The message // contains details about the error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // -// * ErrCodeTerminalStateException "TerminalStateException" +// * TerminalStateException // The job is in a terminal state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot-jobs-data-2017-09-29/DescribeJobExecution @@ -157,22 +160,22 @@ func (c *IoTJobsDataPlane) GetPendingJobExecutionsRequest(input *GetPendingJobEx // See the AWS API reference guide for AWS IoT Jobs Data Plane's // API operation GetPendingJobExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The contents of the request were invalid. For example, this code is returned // when an UpdateJobExecution request contains invalid status details. The message // contains details about the error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot-jobs-data-2017-09-29/GetPendingJobExecutions @@ -251,22 +254,22 @@ func (c *IoTJobsDataPlane) StartNextPendingJobExecutionRequest(input *StartNextP // See the AWS API reference guide for AWS IoT Jobs Data Plane's // API operation StartNextPendingJobExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The contents of the request were invalid. For example, this code is returned // when an UpdateJobExecution request contains invalid status details. The message // contains details about the error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iot-jobs-data-2017-09-29/StartNextPendingJobExecution @@ -344,25 +347,25 @@ func (c *IoTJobsDataPlane) UpdateJobExecutionRequest(input *UpdateJobExecutionIn // See the AWS API reference guide for AWS IoT Jobs Data Plane's // API operation UpdateJobExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The contents of the request were invalid. For example, this code is returned // when an UpdateJobExecution request contains invalid status details. The message // contains details about the error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The rate exceeds the limit. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. // -// * ErrCodeCertificateValidationException "CertificateValidationException" +// * CertificateValidationException // The certificate is invalid. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // An update attempted to change the job execution to a state that is invalid // because of the job execution's current state (for example, an attempt to // change a request in state SUCCESS to state IN_PROGRESS). In this case, the @@ -390,6 +393,63 @@ func (c *IoTJobsDataPlane) UpdateJobExecutionWithContext(ctx aws.Context, input return out, req.Send() } +// The certificate is invalid. +type CertificateValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Additional information about the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CertificateValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CertificateValidationException) GoString() string { + return s.String() +} + +func newErrorCertificateValidationException(v protocol.ResponseMetadata) error { + return &CertificateValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CertificateValidationException) Code() string { + return "CertificateValidationException" +} + +// Message returns the exception's message. +func (s CertificateValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CertificateValidationException) OrigErr() error { + return nil +} + +func (s CertificateValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CertificateValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CertificateValidationException) RequestID() string { + return s.respMetadata.RequestID +} + type DescribeJobExecutionInput struct { _ struct{} `type:"structure"` @@ -564,6 +624,124 @@ func (s *GetPendingJobExecutionsOutput) SetQueuedJobs(v []*JobExecutionSummary) return s } +// The contents of the request were invalid. For example, this code is returned +// when an UpdateJobExecution request contains invalid status details. The message +// contains details about the error. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// An update attempted to change the job execution to a state that is invalid +// because of the job execution's current state (for example, an attempt to +// change a request in state SUCCESS to state IN_PROGRESS). In this case, the +// body of the error message also contains the executionState field. +type InvalidStateTransitionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidStateTransitionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateTransitionException) GoString() string { + return s.String() +} + +func newErrorInvalidStateTransitionException(v protocol.ResponseMetadata) error { + return &InvalidStateTransitionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateTransitionException) Code() string { + return "InvalidStateTransitionException" +} + +// Message returns the exception's message. +func (s InvalidStateTransitionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateTransitionException) OrigErr() error { + return nil +} + +func (s InvalidStateTransitionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateTransitionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateTransitionException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains data about a job execution. type JobExecution struct { _ struct{} `type:"structure"` @@ -798,6 +976,120 @@ func (s *JobExecutionSummary) SetVersionNumber(v int64) *JobExecutionSummary { return s } +// The specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is temporarily unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message for the exception. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type StartNextPendingJobExecutionInput struct { _ struct{} `type:"structure"` @@ -888,6 +1180,124 @@ func (s *StartNextPendingJobExecutionOutput) SetExecution(v *JobExecution) *Star return s } +// The job is in a terminal state. +type TerminalStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TerminalStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TerminalStateException) GoString() string { + return s.String() +} + +func newErrorTerminalStateException(v protocol.ResponseMetadata) error { + return &TerminalStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TerminalStateException) Code() string { + return "TerminalStateException" +} + +// Message returns the exception's message. +func (s TerminalStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TerminalStateException) OrigErr() error { + return nil +} + +func (s TerminalStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TerminalStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TerminalStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The rate exceeds the limit. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The message associated with the exception. + Message_ *string `locationName:"message" type:"string"` + + // The payload associated with the exception. + // + // Payload is automatically base64 encoded/decoded by the SDK. + Payload []byte `locationName:"payload" type:"blob"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateJobExecutionInput struct { _ struct{} `type:"structure"` diff --git a/service/iotjobsdataplane/errors.go b/service/iotjobsdataplane/errors.go index feef1dab998..70aaf3437bb 100644 --- a/service/iotjobsdataplane/errors.go +++ b/service/iotjobsdataplane/errors.go @@ -2,6 +2,10 @@ package iotjobsdataplane +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCertificateValidationException for service response error code @@ -51,3 +55,13 @@ const ( // The rate exceeds the limit. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CertificateValidationException": newErrorCertificateValidationException, + "InvalidRequestException": newErrorInvalidRequestException, + "InvalidStateTransitionException": newErrorInvalidStateTransitionException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TerminalStateException": newErrorTerminalStateException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/iotjobsdataplane/service.go b/service/iotjobsdataplane/service.go index f2227cb6672..8331a8b9d4e 100644 --- a/service/iotjobsdataplane/service.go +++ b/service/iotjobsdataplane/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iotsecuretunneling/api.go b/service/iotsecuretunneling/api.go index e7bff384b5b..53d37438133 100644 --- a/service/iotsecuretunneling/api.go +++ b/service/iotsecuretunneling/api.go @@ -69,8 +69,8 @@ func (c *IoTSecureTunneling) CloseTunnelRequest(input *CloseTunnelInput) (req *r // See the AWS API reference guide for AWS IoT Secure Tunneling's // API operation CloseTunnel for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Thrown when an operation is attempted on a resource that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/CloseTunnel @@ -148,8 +148,8 @@ func (c *IoTSecureTunneling) DescribeTunnelRequest(input *DescribeTunnelInput) ( // See the AWS API reference guide for AWS IoT Secure Tunneling's // API operation DescribeTunnel for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Thrown when an operation is attempted on a resource that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/DescribeTunnel @@ -227,8 +227,8 @@ func (c *IoTSecureTunneling) ListTagsForResourceRequest(input *ListTagsForResour // See the AWS API reference guide for AWS IoT Secure Tunneling's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Thrown when an operation is attempted on a resource that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/ListTagsForResource @@ -440,8 +440,8 @@ func (c *IoTSecureTunneling) OpenTunnelRequest(input *OpenTunnelInput) (req *req // See the AWS API reference guide for AWS IoT Secure Tunneling's // API operation OpenTunnel for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // Thrown when a tunnel limit is exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/OpenTunnel @@ -520,8 +520,8 @@ func (c *IoTSecureTunneling) TagResourceRequest(input *TagResourceInput) (req *r // See the AWS API reference guide for AWS IoT Secure Tunneling's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Thrown when an operation is attempted on a resource that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/TagResource @@ -600,8 +600,8 @@ func (c *IoTSecureTunneling) UntagResourceRequest(input *UntagResourceInput) (re // See the AWS API reference guide for AWS IoT Secure Tunneling's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Thrown when an operation is attempted on a resource that does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotsecuretunneling-2018-10-05/UntagResource @@ -844,6 +844,62 @@ func (s *DestinationConfig) SetThingName(v string) *DestinationConfig { return s } +// Thrown when a tunnel limit is exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -1132,6 +1188,62 @@ func (s *OpenTunnelOutput) SetTunnelId(v string) *OpenTunnelOutput { return s } +// Thrown when an operation is attempted on a resource that does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An arbitary key/value pair used to add searchable metadata to secure tunnel // resources. type Tag struct { diff --git a/service/iotsecuretunneling/errors.go b/service/iotsecuretunneling/errors.go index 5d700e71e5c..95ed555e375 100644 --- a/service/iotsecuretunneling/errors.go +++ b/service/iotsecuretunneling/errors.go @@ -2,6 +2,10 @@ package iotsecuretunneling +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeLimitExceededException for service response error code @@ -16,3 +20,8 @@ const ( // Thrown when an operation is attempted on a resource that does not exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/iotsecuretunneling/service.go b/service/iotsecuretunneling/service.go index 087e692713a..6c42b61c4aa 100644 --- a/service/iotsecuretunneling/service.go +++ b/service/iotsecuretunneling/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/iotthingsgraph/api.go b/service/iotthingsgraph/api.go index 35ee8a7fe9a..eb6092650d2 100644 --- a/service/iotthingsgraph/api.go +++ b/service/iotthingsgraph/api.go @@ -70,14 +70,14 @@ func (c *IoTThingsGraph) AssociateEntityToThingRequest(input *AssociateEntityToT // See the AWS API reference guide for AWS IoT Things Graph's // API operation AssociateEntityToThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/AssociateEntityToThing func (c *IoTThingsGraph) AssociateEntityToThing(input *AssociateEntityToThingInput) (*AssociateEntityToThingOutput, error) { @@ -158,16 +158,16 @@ func (c *IoTThingsGraph) CreateFlowTemplateRequest(input *CreateFlowTemplateInpu // See the AWS API reference guide for AWS IoT Things Graph's // API operation CreateFlowTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateFlowTemplate func (c *IoTThingsGraph) CreateFlowTemplate(input *CreateFlowTemplateInput) (*CreateFlowTemplateOutput, error) { @@ -262,16 +262,16 @@ func (c *IoTThingsGraph) CreateSystemInstanceRequest(input *CreateSystemInstance // See the AWS API reference guide for AWS IoT Things Graph's // API operation CreateSystemInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateSystemInstance func (c *IoTThingsGraph) CreateSystemInstance(input *CreateSystemInstanceInput) (*CreateSystemInstanceOutput, error) { @@ -350,14 +350,14 @@ func (c *IoTThingsGraph) CreateSystemTemplateRequest(input *CreateSystemTemplate // See the AWS API reference guide for AWS IoT Things Graph's // API operation CreateSystemTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/CreateSystemTemplate func (c *IoTThingsGraph) CreateSystemTemplate(input *CreateSystemTemplateInput) (*CreateSystemTemplateOutput, error) { @@ -438,14 +438,14 @@ func (c *IoTThingsGraph) DeleteFlowTemplateRequest(input *DeleteFlowTemplateInpu // See the AWS API reference guide for AWS IoT Things Graph's // API operation DeleteFlowTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteFlowTemplate func (c *IoTThingsGraph) DeleteFlowTemplate(input *DeleteFlowTemplateInput) (*DeleteFlowTemplateOutput, error) { @@ -524,10 +524,10 @@ func (c *IoTThingsGraph) DeleteNamespaceRequest(input *DeleteNamespaceInput) (re // See the AWS API reference guide for AWS IoT Things Graph's // API operation DeleteNamespace for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteNamespace func (c *IoTThingsGraph) DeleteNamespace(input *DeleteNamespaceInput) (*DeleteNamespaceOutput, error) { @@ -609,14 +609,14 @@ func (c *IoTThingsGraph) DeleteSystemInstanceRequest(input *DeleteSystemInstance // See the AWS API reference guide for AWS IoT Things Graph's // API operation DeleteSystemInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteSystemInstance func (c *IoTThingsGraph) DeleteSystemInstance(input *DeleteSystemInstanceInput) (*DeleteSystemInstanceOutput, error) { @@ -696,14 +696,14 @@ func (c *IoTThingsGraph) DeleteSystemTemplateRequest(input *DeleteSystemTemplate // See the AWS API reference guide for AWS IoT Things Graph's // API operation DeleteSystemTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeleteSystemTemplate func (c *IoTThingsGraph) DeleteSystemTemplate(input *DeleteSystemTemplateInput) (*DeleteSystemTemplateOutput, error) { @@ -796,16 +796,16 @@ func (c *IoTThingsGraph) DeploySystemInstanceRequest(input *DeploySystemInstance // See the AWS API reference guide for AWS IoT Things Graph's // API operation DeploySystemInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeploySystemInstance func (c *IoTThingsGraph) DeploySystemInstance(input *DeploySystemInstanceInput) (*DeploySystemInstanceOutput, error) { @@ -885,14 +885,14 @@ func (c *IoTThingsGraph) DeprecateFlowTemplateRequest(input *DeprecateFlowTempla // See the AWS API reference guide for AWS IoT Things Graph's // API operation DeprecateFlowTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeprecateFlowTemplate func (c *IoTThingsGraph) DeprecateFlowTemplate(input *DeprecateFlowTemplateInput) (*DeprecateFlowTemplateOutput, error) { @@ -970,14 +970,14 @@ func (c *IoTThingsGraph) DeprecateSystemTemplateRequest(input *DeprecateSystemTe // See the AWS API reference guide for AWS IoT Things Graph's // API operation DeprecateSystemTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DeprecateSystemTemplate func (c *IoTThingsGraph) DeprecateSystemTemplate(input *DeprecateSystemTemplateInput) (*DeprecateSystemTemplateOutput, error) { @@ -1055,14 +1055,14 @@ func (c *IoTThingsGraph) DescribeNamespaceRequest(input *DescribeNamespaceInput) // See the AWS API reference guide for AWS IoT Things Graph's // API operation DescribeNamespace for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DescribeNamespace func (c *IoTThingsGraph) DescribeNamespace(input *DescribeNamespaceInput) (*DescribeNamespaceOutput, error) { @@ -1142,14 +1142,14 @@ func (c *IoTThingsGraph) DissociateEntityFromThingRequest(input *DissociateEntit // See the AWS API reference guide for AWS IoT Things Graph's // API operation DissociateEntityFromThing for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/DissociateEntityFromThing func (c *IoTThingsGraph) DissociateEntityFromThing(input *DissociateEntityFromThingInput) (*DissociateEntityFromThingOutput, error) { @@ -1247,14 +1247,14 @@ func (c *IoTThingsGraph) GetEntitiesRequest(input *GetEntitiesInput) (req *reque // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetEntities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetEntities func (c *IoTThingsGraph) GetEntities(input *GetEntitiesInput) (*GetEntitiesOutput, error) { @@ -1332,14 +1332,14 @@ func (c *IoTThingsGraph) GetFlowTemplateRequest(input *GetFlowTemplateInput) (re // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetFlowTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetFlowTemplate func (c *IoTThingsGraph) GetFlowTemplate(input *GetFlowTemplateInput) (*GetFlowTemplateOutput, error) { @@ -1425,14 +1425,14 @@ func (c *IoTThingsGraph) GetFlowTemplateRevisionsRequest(input *GetFlowTemplateR // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetFlowTemplateRevisions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetFlowTemplateRevisions func (c *IoTThingsGraph) GetFlowTemplateRevisions(input *GetFlowTemplateRevisionsInput) (*GetFlowTemplateRevisionsOutput, error) { @@ -1561,12 +1561,12 @@ func (c *IoTThingsGraph) GetNamespaceDeletionStatusRequest(input *GetNamespaceDe // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetNamespaceDeletionStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetNamespaceDeletionStatus func (c *IoTThingsGraph) GetNamespaceDeletionStatus(input *GetNamespaceDeletionStatusInput) (*GetNamespaceDeletionStatusOutput, error) { @@ -1643,14 +1643,14 @@ func (c *IoTThingsGraph) GetSystemInstanceRequest(input *GetSystemInstanceInput) // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetSystemInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemInstance func (c *IoTThingsGraph) GetSystemInstance(input *GetSystemInstanceInput) (*GetSystemInstanceOutput, error) { @@ -1727,14 +1727,14 @@ func (c *IoTThingsGraph) GetSystemTemplateRequest(input *GetSystemTemplateInput) // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetSystemTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemTemplate func (c *IoTThingsGraph) GetSystemTemplate(input *GetSystemTemplateInput) (*GetSystemTemplateOutput, error) { @@ -1820,14 +1820,14 @@ func (c *IoTThingsGraph) GetSystemTemplateRevisionsRequest(input *GetSystemTempl // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetSystemTemplateRevisions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetSystemTemplateRevisions func (c *IoTThingsGraph) GetSystemTemplateRevisions(input *GetSystemTemplateRevisionsInput) (*GetSystemTemplateRevisionsOutput, error) { @@ -1956,14 +1956,14 @@ func (c *IoTThingsGraph) GetUploadStatusRequest(input *GetUploadStatusInput) (re // See the AWS API reference guide for AWS IoT Things Graph's // API operation GetUploadStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/GetUploadStatus func (c *IoTThingsGraph) GetUploadStatus(input *GetUploadStatusInput) (*GetUploadStatusOutput, error) { @@ -2047,14 +2047,14 @@ func (c *IoTThingsGraph) ListFlowExecutionMessagesRequest(input *ListFlowExecuti // See the AWS API reference guide for AWS IoT Things Graph's // API operation ListFlowExecutionMessages for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/ListFlowExecutionMessages func (c *IoTThingsGraph) ListFlowExecutionMessages(input *ListFlowExecutionMessagesInput) (*ListFlowExecutionMessagesOutput, error) { @@ -2189,14 +2189,14 @@ func (c *IoTThingsGraph) ListTagsForResourceRequest(input *ListTagsForResourceIn // See the AWS API reference guide for AWS IoT Things Graph's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/ListTagsForResource func (c *IoTThingsGraph) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -2332,12 +2332,12 @@ func (c *IoTThingsGraph) SearchEntitiesRequest(input *SearchEntitiesInput) (req // See the AWS API reference guide for AWS IoT Things Graph's // API operation SearchEntities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchEntities func (c *IoTThingsGraph) SearchEntities(input *SearchEntitiesInput) (*SearchEntitiesOutput, error) { @@ -2472,14 +2472,14 @@ func (c *IoTThingsGraph) SearchFlowExecutionsRequest(input *SearchFlowExecutions // See the AWS API reference guide for AWS IoT Things Graph's // API operation SearchFlowExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchFlowExecutions func (c *IoTThingsGraph) SearchFlowExecutions(input *SearchFlowExecutionsInput) (*SearchFlowExecutionsOutput, error) { @@ -2614,12 +2614,12 @@ func (c *IoTThingsGraph) SearchFlowTemplatesRequest(input *SearchFlowTemplatesIn // See the AWS API reference guide for AWS IoT Things Graph's // API operation SearchFlowTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchFlowTemplates func (c *IoTThingsGraph) SearchFlowTemplates(input *SearchFlowTemplatesInput) (*SearchFlowTemplatesOutput, error) { @@ -2754,12 +2754,12 @@ func (c *IoTThingsGraph) SearchSystemInstancesRequest(input *SearchSystemInstanc // See the AWS API reference guide for AWS IoT Things Graph's // API operation SearchSystemInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchSystemInstances func (c *IoTThingsGraph) SearchSystemInstances(input *SearchSystemInstancesInput) (*SearchSystemInstancesOutput, error) { @@ -2896,12 +2896,12 @@ func (c *IoTThingsGraph) SearchSystemTemplatesRequest(input *SearchSystemTemplat // See the AWS API reference guide for AWS IoT Things Graph's // API operation SearchSystemTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchSystemTemplates func (c *IoTThingsGraph) SearchSystemTemplates(input *SearchSystemTemplatesInput) (*SearchSystemTemplatesOutput, error) { @@ -3044,14 +3044,14 @@ func (c *IoTThingsGraph) SearchThingsRequest(input *SearchThingsInput) (req *req // See the AWS API reference guide for AWS IoT Things Graph's // API operation SearchThings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/SearchThings func (c *IoTThingsGraph) SearchThings(input *SearchThingsInput) (*SearchThingsOutput, error) { @@ -3181,14 +3181,14 @@ func (c *IoTThingsGraph) TagResourceRequest(input *TagResourceInput) (req *reque // See the AWS API reference guide for AWS IoT Things Graph's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/TagResource func (c *IoTThingsGraph) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -3265,16 +3265,16 @@ func (c *IoTThingsGraph) UndeploySystemInstanceRequest(input *UndeploySystemInst // See the AWS API reference guide for AWS IoT Things Graph's // API operation UndeploySystemInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UndeploySystemInstance func (c *IoTThingsGraph) UndeploySystemInstance(input *UndeploySystemInstanceInput) (*UndeploySystemInstanceOutput, error) { @@ -3352,14 +3352,14 @@ func (c *IoTThingsGraph) UntagResourceRequest(input *UntagResourceInput) (req *r // See the AWS API reference guide for AWS IoT Things Graph's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UntagResource func (c *IoTThingsGraph) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -3440,14 +3440,14 @@ func (c *IoTThingsGraph) UpdateFlowTemplateRequest(input *UpdateFlowTemplateInpu // See the AWS API reference guide for AWS IoT Things Graph's // API operation UpdateFlowTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UpdateFlowTemplate func (c *IoTThingsGraph) UpdateFlowTemplate(input *UpdateFlowTemplateInput) (*UpdateFlowTemplateOutput, error) { @@ -3526,14 +3526,14 @@ func (c *IoTThingsGraph) UpdateSystemTemplateRequest(input *UpdateSystemTemplate // See the AWS API reference guide for AWS IoT Things Graph's // API operation UpdateSystemTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UpdateSystemTemplate func (c *IoTThingsGraph) UpdateSystemTemplate(input *UpdateSystemTemplateInput) (*UpdateSystemTemplateOutput, error) { @@ -3629,12 +3629,12 @@ func (c *IoTThingsGraph) UploadEntityDefinitionsRequest(input *UploadEntityDefin // See the AWS API reference guide for AWS IoT Things Graph's // API operation UploadEntityDefinitions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // // See also, https://docs.aws.amazon.com/goto/WebAPI/iotthingsgraph-2018-09-06/UploadEntityDefinitions func (c *IoTThingsGraph) UploadEntityDefinitions(input *UploadEntityDefinitionsInput) (*UploadEntityDefinitionsOutput, error) { @@ -5701,6 +5701,171 @@ func (s *GetUploadStatusOutput) SetUploadStatus(v string) *GetUploadStatusOutput return s } +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListFlowExecutionMessagesInput struct { _ struct{} `type:"structure"` @@ -5935,6 +6100,171 @@ func (s *MetricsConfiguration) SetMetricRuleRoleArn(v string) *MetricsConfigurat return s } +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type SearchEntitiesInput struct { _ struct{} `type:"structure"` @@ -7106,6 +7436,61 @@ func (s *Thing) SetThingName(v string) *Thing { return s } +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UndeploySystemInstanceInput struct { _ struct{} `type:"structure"` diff --git a/service/iotthingsgraph/errors.go b/service/iotthingsgraph/errors.go index eb5b2b71407..0891ed47579 100644 --- a/service/iotthingsgraph/errors.go +++ b/service/iotthingsgraph/errors.go @@ -2,6 +2,10 @@ package iotthingsgraph +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalFailureException for service response error code @@ -32,3 +36,13 @@ const ( // "ThrottlingException". ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalFailureException": newErrorInternalFailureException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/iotthingsgraph/service.go b/service/iotthingsgraph/service.go index 77d16ff33eb..d5532132b09 100644 --- a/service/iotthingsgraph/service.go +++ b/service/iotthingsgraph/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kafka/api.go b/service/kafka/api.go index 1d249401f34..e0a8b715679 100644 --- a/service/kafka/api.go +++ b/service/kafka/api.go @@ -66,26 +66,26 @@ func (c *Kafka) CreateClusterRequest(input *CreateClusterInput) (req *request.Re // See the AWS API reference guide for Managed Streaming for Kafka's // API operation CreateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returns information about an error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/CreateCluster @@ -163,26 +163,26 @@ func (c *Kafka) CreateConfigurationRequest(input *CreateConfigurationInput) (req // See the AWS API reference guide for Managed Streaming for Kafka's // API operation CreateConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returns information about an error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/CreateConfiguration @@ -261,17 +261,17 @@ func (c *Kafka) DeleteClusterRequest(input *DeleteClusterInput) (req *request.Re // See the AWS API reference guide for Managed Streaming for Kafka's // API operation DeleteCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DeleteCluster @@ -350,20 +350,20 @@ func (c *Kafka) DescribeClusterRequest(input *DescribeClusterInput) (req *reques // See the AWS API reference guide for Managed Streaming for Kafka's // API operation DescribeCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeCluster @@ -441,20 +441,20 @@ func (c *Kafka) DescribeClusterOperationRequest(input *DescribeClusterOperationI // See the AWS API reference guide for Managed Streaming for Kafka's // API operation DescribeClusterOperation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeClusterOperation @@ -532,23 +532,23 @@ func (c *Kafka) DescribeConfigurationRequest(input *DescribeConfigurationInput) // See the AWS API reference guide for Managed Streaming for Kafka's // API operation DescribeConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Returns information about an error. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeConfiguration @@ -626,23 +626,23 @@ func (c *Kafka) DescribeConfigurationRevisionRequest(input *DescribeConfiguratio // See the AWS API reference guide for Managed Streaming for Kafka's // API operation DescribeConfigurationRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Returns information about an error. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeConfigurationRevision @@ -720,20 +720,20 @@ func (c *Kafka) GetBootstrapBrokersRequest(input *GetBootstrapBrokersInput) (req // See the AWS API reference guide for Managed Streaming for Kafka's // API operation GetBootstrapBrokers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetBootstrapBrokers @@ -818,17 +818,17 @@ func (c *Kafka) ListClusterOperationsRequest(input *ListClusterOperationsInput) // See the AWS API reference guide for Managed Streaming for Kafka's // API operation ListClusterOperations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListClusterOperations @@ -964,17 +964,17 @@ func (c *Kafka) ListClustersRequest(input *ListClustersInput) (req *request.Requ // See the AWS API reference guide for Managed Streaming for Kafka's // API operation ListClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListClusters @@ -1110,23 +1110,23 @@ func (c *Kafka) ListConfigurationRevisionsRequest(input *ListConfigurationRevisi // See the AWS API reference guide for Managed Streaming for Kafka's // API operation ListConfigurationRevisions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Returns information about an error. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListConfigurationRevisions @@ -1262,20 +1262,20 @@ func (c *Kafka) ListConfigurationsRequest(input *ListConfigurationsInput) (req * // See the AWS API reference guide for Managed Streaming for Kafka's // API operation ListConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListConfigurations @@ -1411,17 +1411,17 @@ func (c *Kafka) ListNodesRequest(input *ListNodesInput) (req *request.Request, o // See the AWS API reference guide for Managed Streaming for Kafka's // API operation ListNodes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListNodes @@ -1551,14 +1551,14 @@ func (c *Kafka) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req // See the AWS API reference guide for Managed Streaming for Kafka's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListTagsForResource @@ -1637,14 +1637,14 @@ func (c *Kafka) TagResourceRequest(input *TagResourceInput) (req *request.Reques // See the AWS API reference guide for Managed Streaming for Kafka's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/TagResource @@ -1723,14 +1723,14 @@ func (c *Kafka) UntagResourceRequest(input *UntagResourceInput) (req *request.Re // See the AWS API reference guide for Managed Streaming for Kafka's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UntagResource @@ -1810,20 +1810,20 @@ func (c *Kafka) UpdateBrokerCountRequest(input *UpdateBrokerCountInput) (req *re // See the AWS API reference guide for Managed Streaming for Kafka's // API operation UpdateBrokerCount for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateBrokerCount @@ -1901,20 +1901,20 @@ func (c *Kafka) UpdateBrokerStorageRequest(input *UpdateBrokerStorageInput) (req // See the AWS API reference guide for Managed Streaming for Kafka's // API operation UpdateBrokerStorage for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateBrokerStorage @@ -1993,23 +1993,23 @@ func (c *Kafka) UpdateClusterConfigurationRequest(input *UpdateClusterConfigurat // See the AWS API reference guide for Managed Streaming for Kafka's // API operation UpdateClusterConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Returns information about an error. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateClusterConfiguration @@ -2089,20 +2089,20 @@ func (c *Kafka) UpdateMonitoringRequest(input *UpdateMonitoringInput) (req *requ // See the AWS API reference guide for Managed Streaming for Kafka's // API operation UpdateMonitoring for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateMonitoring @@ -2127,6 +2127,64 @@ func (c *Kafka) UpdateMonitoringWithContext(ctx aws.Context, input *UpdateMonito return out, req.Send() } +// Returns information about an error. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the EBS volume upgrade information. The broker identifier must // be set to the keyword ALL. This means the changes apply to all the brokers // in the cluster. @@ -2860,6 +2918,64 @@ func (s *ConfigurationRevision) SetRevision(v int64) *ConfigurationRevision { return s } +// Returns information about an error. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Creates a cluster. type CreateClusterInput struct { _ struct{} `type:"structure"` @@ -3831,6 +3947,64 @@ func (s *ErrorInfo) SetErrorString(v string) *ErrorInfo { return s } +// Returns information about an error. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetBootstrapBrokersInput struct { _ struct{} `type:"structure"` @@ -3905,6 +4079,64 @@ func (s *GetBootstrapBrokersOutput) SetBootstrapBrokerStringTls(v string) *GetBo return s } +// Returns information about an error. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Indicates whether you want to enable or disable the JMX Exporter. type JmxExporter struct { _ struct{} `type:"structure"` @@ -4672,6 +4904,64 @@ func (s *NodeInfo) SetZookeeperNodeInfo(v *ZookeeperNodeInfo) *NodeInfo { return s } +// Returns information about an error. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // JMX and Node monitoring for the MSK cluster. type OpenMonitoring struct { _ struct{} `type:"structure"` @@ -4828,6 +5118,64 @@ func (s *PrometheusInfo) SetNodeExporter(v *NodeExporterInfo) *PrometheusInfo { return s } +// Returns information about an error. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about storage volumes attached to MSK broker nodes. type StorageInfo struct { _ struct{} `type:"structure"` @@ -4959,6 +5307,122 @@ func (s *Tls) SetCertificateAuthorityArnList(v []*string) *Tls { return s } +// Returns information about an error. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about an error. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + InvalidParameter *string `locationName:"invalidParameter" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/kafka/errors.go b/service/kafka/errors.go index 2927a1714de..d26e1527344 100644 --- a/service/kafka/errors.go +++ b/service/kafka/errors.go @@ -2,6 +2,10 @@ package kafka +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -52,3 +56,14 @@ const ( // Returns information about an error. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/kafka/service.go b/service/kafka/service.go index f7061f9087b..9599276910f 100644 --- a/service/kafka/service.go +++ b/service/kafka/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kendra/api.go b/service/kendra/api.go index a71e9fe4171..4eb4943060b 100644 --- a/service/kendra/api.go +++ b/service/kendra/api.go @@ -71,18 +71,18 @@ func (c *Kendra) BatchDeleteDocumentRequest(input *BatchDeleteDocumentInput) (re // See the AWS API reference guide for AWSKendraFrontendService's // API operation BatchDeleteDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/BatchDeleteDocument func (c *Kendra) BatchDeleteDocument(input *BatchDeleteDocumentInput) (*BatchDeleteDocumentOutput, error) { @@ -169,20 +169,20 @@ func (c *Kendra) BatchPutDocumentRequest(input *BatchPutDocumentInput) (req *req // See the AWS API reference guide for AWSKendraFrontendService's // API operation BatchPutDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/BatchPutDocument func (c *Kendra) BatchPutDocument(input *BatchPutDocumentInput) (*BatchPutDocumentOutput, error) { @@ -269,22 +269,22 @@ func (c *Kendra) CreateDataSourceRequest(input *CreateDataSourceInput) (req *req // See the AWS API reference guide for AWSKendraFrontendService's // API operation CreateDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeResourceAlreadyExistException "ResourceAlreadyExistException" +// * ResourceAlreadyExistException // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/CreateDataSource func (c *Kendra) CreateDataSource(input *CreateDataSourceInput) (*CreateDataSourceOutput, error) { @@ -361,20 +361,20 @@ func (c *Kendra) CreateFaqRequest(input *CreateFaqInput) (req *request.Request, // See the AWS API reference guide for AWSKendraFrontendService's // API operation CreateFaq for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/CreateFaq func (c *Kendra) CreateFaq(input *CreateFaqInput) (*CreateFaqOutput, error) { @@ -457,18 +457,18 @@ func (c *Kendra) CreateIndexRequest(input *CreateIndexInput) (req *request.Reque // See the AWS API reference guide for AWSKendraFrontendService's // API operation CreateIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceAlreadyExistException "ResourceAlreadyExistException" +// * ResourceAlreadyExistException // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/CreateIndex func (c *Kendra) CreateIndex(input *CreateIndexInput) (*CreateIndexOutput, error) { @@ -546,18 +546,18 @@ func (c *Kendra) DeleteFaqRequest(input *DeleteFaqInput) (req *request.Request, // See the AWS API reference guide for AWSKendraFrontendService's // API operation DeleteFaq for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DeleteFaq func (c *Kendra) DeleteFaq(input *DeleteFaqInput) (*DeleteFaqOutput, error) { @@ -637,18 +637,18 @@ func (c *Kendra) DeleteIndexRequest(input *DeleteIndexInput) (req *request.Reque // See the AWS API reference guide for AWSKendraFrontendService's // API operation DeleteIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DeleteIndex func (c *Kendra) DeleteIndex(input *DeleteIndexInput) (*DeleteIndexOutput, error) { @@ -725,16 +725,16 @@ func (c *Kendra) DescribeDataSourceRequest(input *DescribeDataSourceInput) (req // See the AWS API reference guide for AWSKendraFrontendService's // API operation DescribeDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeDataSource func (c *Kendra) DescribeDataSource(input *DescribeDataSourceInput) (*DescribeDataSourceOutput, error) { @@ -811,16 +811,16 @@ func (c *Kendra) DescribeFaqRequest(input *DescribeFaqInput) (req *request.Reque // See the AWS API reference guide for AWSKendraFrontendService's // API operation DescribeFaq for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeFaq func (c *Kendra) DescribeFaq(input *DescribeFaqInput) (*DescribeFaqOutput, error) { @@ -897,16 +897,16 @@ func (c *Kendra) DescribeIndexRequest(input *DescribeIndexInput) (req *request.R // See the AWS API reference guide for AWSKendraFrontendService's // API operation DescribeIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeIndex func (c *Kendra) DescribeIndex(input *DescribeIndexInput) (*DescribeIndexOutput, error) { @@ -989,18 +989,18 @@ func (c *Kendra) ListDataSourceSyncJobsRequest(input *ListDataSourceSyncJobsInpu // See the AWS API reference guide for AWSKendraFrontendService's // API operation ListDataSourceSyncJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ListDataSourceSyncJobs func (c *Kendra) ListDataSourceSyncJobs(input *ListDataSourceSyncJobsInput) (*ListDataSourceSyncJobsOutput, error) { @@ -1135,16 +1135,16 @@ func (c *Kendra) ListDataSourcesRequest(input *ListDataSourcesInput) (req *reque // See the AWS API reference guide for AWSKendraFrontendService's // API operation ListDataSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ListDataSources func (c *Kendra) ListDataSources(input *ListDataSourcesInput) (*ListDataSourcesOutput, error) { @@ -1273,16 +1273,16 @@ func (c *Kendra) ListFaqsRequest(input *ListFaqsInput) (req *request.Request, ou // See the AWS API reference guide for AWSKendraFrontendService's // API operation ListFaqs for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ListFaqs func (c *Kendra) ListFaqs(input *ListFaqsInput) (*ListFaqsOutput, error) { @@ -1365,14 +1365,14 @@ func (c *Kendra) ListIndicesRequest(input *ListIndicesInput) (req *request.Reque // See the AWS API reference guide for AWSKendraFrontendService's // API operation ListIndices for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ListIndices func (c *Kendra) ListIndices(input *ListIndicesInput) (*ListIndicesOutput, error) { @@ -1518,18 +1518,18 @@ func (c *Kendra) QueryRequest(input *QueryInput) (req *request.Request, output * // See the AWS API reference guide for AWSKendraFrontendService's // API operation Query for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/Query func (c *Kendra) Query(input *QueryInput) (*QueryOutput, error) { @@ -1607,20 +1607,20 @@ func (c *Kendra) StartDataSourceSyncJobRequest(input *StartDataSourceSyncJobInpu // See the AWS API reference guide for AWSKendraFrontendService's // API operation StartDataSourceSyncJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/StartDataSourceSyncJob func (c *Kendra) StartDataSourceSyncJob(input *StartDataSourceSyncJobInput) (*StartDataSourceSyncJobOutput, error) { @@ -1699,16 +1699,16 @@ func (c *Kendra) StopDataSourceSyncJobRequest(input *StopDataSourceSyncJobInput) // See the AWS API reference guide for AWSKendraFrontendService's // API operation StopDataSourceSyncJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/StopDataSourceSyncJob func (c *Kendra) StopDataSourceSyncJob(input *StopDataSourceSyncJobInput) (*StopDataSourceSyncJobOutput, error) { @@ -1787,18 +1787,18 @@ func (c *Kendra) SubmitFeedbackRequest(input *SubmitFeedbackInput) (req *request // See the AWS API reference guide for AWSKendraFrontendService's // API operation SubmitFeedback for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/SubmitFeedback func (c *Kendra) SubmitFeedback(input *SubmitFeedbackInput) (*SubmitFeedbackOutput, error) { @@ -1876,18 +1876,18 @@ func (c *Kendra) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req *req // See the AWS API reference guide for AWSKendraFrontendService's // API operation UpdateDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateDataSource func (c *Kendra) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { @@ -1965,18 +1965,18 @@ func (c *Kendra) UpdateIndexRequest(input *UpdateIndexInput) (req *request.Reque // See the AWS API reference guide for AWSKendraFrontendService's // API operation UpdateIndex for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // // See also, https://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateIndex func (c *Kendra) UpdateIndex(input *UpdateIndexInput) (*UpdateIndexOutput, error) { @@ -2037,6 +2037,61 @@ func (s *AccessControlListConfiguration) SetKeyPath(v string) *AccessControlList return s } +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information about the column that should be used for filtering the // query response by groups. type AclConfiguration struct { @@ -2786,6 +2841,61 @@ func (s *ColumnConfiguration) SetFieldMappings(v []*DataSourceToIndexFieldMappin return s } +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides the information necessary to connect to a database. type ConnectionConfiguration struct { _ struct{} `type:"structure"` @@ -5141,6 +5251,61 @@ func (s *IndexStatistics) SetTextDocumentStatistics(v *TextDocumentStatistics) * return s } +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDataSourceSyncJobsInput struct { _ struct{} `type:"structure"` @@ -6097,6 +6262,226 @@ func (s *RelevanceFeedback) SetResultId(v string) *RelevanceFeedback { return s } +type ResourceAlreadyExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistException) Code() string { + return "ResourceAlreadyExistException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceUnavailableException) GoString() string { + return s.String() +} + +func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { + return &ResourceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceUnavailableException) Code() string { + return "ResourceUnavailableException" +} + +// Message returns the exception's message. +func (s ResourceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceUnavailableException) OrigErr() error { + return nil +} + +func (s ResourceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides configuration information for a data source to index documents in // an Amazon S3 bucket. type S3DataSourceConfiguration struct { @@ -6340,6 +6725,61 @@ func (s *ServerSideEncryptionConfiguration) SetKmsKeyId(v string) *ServerSideEnc return s } +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides configuration information for connecting to a Microsoft SharePoint // data source. type SharePointConfiguration struct { @@ -6806,6 +7246,61 @@ func (s *TextWithHighlights) SetText(v string) *TextWithHighlights { return s } +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides a range of time. type TimeRange struct { _ struct{} `type:"structure"` @@ -7084,6 +7579,61 @@ func (s UpdateIndexOutput) GoString() string { return s.String() } +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // AdditionalResultAttributeValueTypeTextWithHighlightsValue is a AdditionalResultAttributeValueType enum value AdditionalResultAttributeValueTypeTextWithHighlightsValue = "TEXT_WITH_HIGHLIGHTS_VALUE" diff --git a/service/kendra/errors.go b/service/kendra/errors.go index 6fbe1f1f73a..557930dd539 100644 --- a/service/kendra/errors.go +++ b/service/kendra/errors.go @@ -2,6 +2,10 @@ package kendra +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -44,3 +48,16 @@ const ( // "ValidationException". ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceAlreadyExistException": newErrorResourceAlreadyExistException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceUnavailableException": newErrorResourceUnavailableException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/kendra/service.go b/service/kendra/service.go index e90a9bd1aad..964210f17a9 100644 --- a/service/kendra/service.go +++ b/service/kendra/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kinesis/api.go b/service/kinesis/api.go index 35383657d63..96c089e5897 100644 --- a/service/kinesis/api.go +++ b/service/kinesis/api.go @@ -83,20 +83,20 @@ func (c *Kinesis) AddTagsToStreamRequest(input *AddTagsToStreamInput) (req *requ // See the AWS API reference guide for Amazon Kinesis's // API operation AddTagsToStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -214,16 +214,16 @@ func (c *Kinesis) CreateStreamRequest(input *CreateStreamInput) (req *request.Re // See the AWS API reference guide for Amazon Kinesis's // API operation CreateStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -309,20 +309,20 @@ func (c *Kinesis) DecreaseStreamRetentionPeriodRequest(input *DecreaseStreamRete // See the AWS API reference guide for Amazon Kinesis's // API operation DecreaseStreamRetentionPeriod for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -421,16 +421,16 @@ func (c *Kinesis) DeleteStreamRequest(input *DeleteStreamInput) (req *request.Re // See the AWS API reference guide for Amazon Kinesis's // API operation DeleteStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // @@ -519,16 +519,16 @@ func (c *Kinesis) DeregisterStreamConsumerRequest(input *DeregisterStreamConsume // See the AWS API reference guide for Amazon Kinesis's // API operation DeregisterStreamConsumer for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -612,8 +612,8 @@ func (c *Kinesis) DescribeLimitsRequest(input *DescribeLimitsInput) (req *reques // See the AWS API reference guide for Amazon Kinesis's // API operation DescribeLimits for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -716,12 +716,12 @@ func (c *Kinesis) DescribeStreamRequest(input *DescribeStreamInput) (req *reques // See the AWS API reference guide for Amazon Kinesis's // API operation DescribeStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -860,16 +860,16 @@ func (c *Kinesis) DescribeStreamConsumerRequest(input *DescribeStreamConsumerInp // See the AWS API reference guide for Amazon Kinesis's // API operation DescribeStreamConsumer for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -953,12 +953,12 @@ func (c *Kinesis) DescribeStreamSummaryRequest(input *DescribeStreamSummaryInput // See the AWS API reference guide for Amazon Kinesis's // API operation DescribeStreamSummary for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -1037,20 +1037,20 @@ func (c *Kinesis) DisableEnhancedMonitoringRequest(input *DisableEnhancedMonitor // See the AWS API reference guide for Amazon Kinesis's // API operation DisableEnhancedMonitoring for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // @@ -1129,20 +1129,20 @@ func (c *Kinesis) EnableEnhancedMonitoringRequest(input *EnableEnhancedMonitorin // See the AWS API reference guide for Amazon Kinesis's // API operation EnableEnhancedMonitoring for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // @@ -1276,16 +1276,16 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // See the AWS API reference guide for Amazon Kinesis's // API operation GetRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -1293,31 +1293,31 @@ func (c *Kinesis) GetRecordsRequest(input *GetRecordsInput) (req *request.Reques // Exponential Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // -// * ErrCodeExpiredIteratorException "ExpiredIteratorException" +// * ExpiredIteratorException // The provided iterator exceeds the maximum age allowed. // -// * ErrCodeKMSDisabledException "KMSDisabledException" +// * KMSDisabledException // The request was rejected because the specified customer master key (CMK) // isn't enabled. // -// * ErrCodeKMSInvalidStateException "KMSInvalidStateException" +// * KMSInvalidStateException // The request was rejected because the state of the specified resource isn't // valid for this request. For more information, see How Key State Affects Use // of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeKMSAccessDeniedException "KMSAccessDeniedException" +// * KMSAccessDeniedException // The ciphertext references a key that doesn't exist or that you don't have // access to. // -// * ErrCodeKMSNotFoundException "KMSNotFoundException" +// * KMSNotFoundException // The request was rejected because the specified entity or resource can't be // found. // -// * ErrCodeKMSOptInRequired "KMSOptInRequired" +// * KMSOptInRequired // The AWS access key ID needs a subscription for the service. // -// * ErrCodeKMSThrottlingException "KMSThrottlingException" +// * KMSThrottlingException // The request was denied due to request throttling. For more information about // throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) // in the AWS Key Management Service Developer Guide. @@ -1435,16 +1435,16 @@ func (c *Kinesis) GetShardIteratorRequest(input *GetShardIteratorInput) (req *re // See the AWS API reference guide for Amazon Kinesis's // API operation GetShardIterator for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -1538,20 +1538,20 @@ func (c *Kinesis) IncreaseStreamRetentionPeriodRequest(input *IncreaseStreamRete // See the AWS API reference guide for Amazon Kinesis's // API operation IncreaseStreamRetentionPeriod for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // @@ -1637,23 +1637,23 @@ func (c *Kinesis) ListShardsRequest(input *ListShardsInput) (req *request.Reques // See the AWS API reference guide for Amazon Kinesis's // API operation ListShards for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token passed to the operation is expired. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // @@ -1741,23 +1741,23 @@ func (c *Kinesis) ListStreamConsumersRequest(input *ListStreamConsumersInput) (r // See the AWS API reference guide for Amazon Kinesis's // API operation ListStreamConsumers for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token passed to the operation is expired. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // @@ -1909,8 +1909,8 @@ func (c *Kinesis) ListStreamsRequest(input *ListStreamsInput) (req *request.Requ // See the AWS API reference guide for Amazon Kinesis's // API operation ListStreams for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -2042,16 +2042,16 @@ func (c *Kinesis) ListTagsForStreamRequest(input *ListTagsForStreamInput) (req * // See the AWS API reference guide for Amazon Kinesis's // API operation ListTagsForStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -2166,20 +2166,20 @@ func (c *Kinesis) MergeShardsRequest(input *MergeShardsInput) (req *request.Requ // See the AWS API reference guide for Amazon Kinesis's // API operation MergeShards for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -2296,16 +2296,16 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // See the AWS API reference guide for Amazon Kinesis's // API operation PutRecord for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -2313,28 +2313,28 @@ func (c *Kinesis) PutRecordRequest(input *PutRecordInput) (req *request.Request, // Exponential Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // -// * ErrCodeKMSDisabledException "KMSDisabledException" +// * KMSDisabledException // The request was rejected because the specified customer master key (CMK) // isn't enabled. // -// * ErrCodeKMSInvalidStateException "KMSInvalidStateException" +// * KMSInvalidStateException // The request was rejected because the state of the specified resource isn't // valid for this request. For more information, see How Key State Affects Use // of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeKMSAccessDeniedException "KMSAccessDeniedException" +// * KMSAccessDeniedException // The ciphertext references a key that doesn't exist or that you don't have // access to. // -// * ErrCodeKMSNotFoundException "KMSNotFoundException" +// * KMSNotFoundException // The request was rejected because the specified entity or resource can't be // found. // -// * ErrCodeKMSOptInRequired "KMSOptInRequired" +// * KMSOptInRequired // The AWS access key ID needs a subscription for the service. // -// * ErrCodeKMSThrottlingException "KMSThrottlingException" +// * KMSThrottlingException // The request was denied due to request throttling. For more information about // throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) // in the AWS Key Management Service Developer Guide. @@ -2472,16 +2472,16 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // See the AWS API reference guide for Amazon Kinesis's // API operation PutRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The request rate for the stream is too high, or the requested data is too // large for the available throughput. Reduce the frequency or size of your // requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) @@ -2489,28 +2489,28 @@ func (c *Kinesis) PutRecordsRequest(input *PutRecordsInput) (req *request.Reques // Exponential Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) // in the AWS General Reference. // -// * ErrCodeKMSDisabledException "KMSDisabledException" +// * KMSDisabledException // The request was rejected because the specified customer master key (CMK) // isn't enabled. // -// * ErrCodeKMSInvalidStateException "KMSInvalidStateException" +// * KMSInvalidStateException // The request was rejected because the state of the specified resource isn't // valid for this request. For more information, see How Key State Affects Use // of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeKMSAccessDeniedException "KMSAccessDeniedException" +// * KMSAccessDeniedException // The ciphertext references a key that doesn't exist or that you don't have // access to. // -// * ErrCodeKMSNotFoundException "KMSNotFoundException" +// * KMSNotFoundException // The request was rejected because the specified entity or resource can't be // found. // -// * ErrCodeKMSOptInRequired "KMSOptInRequired" +// * KMSOptInRequired // The AWS access key ID needs a subscription for the service. // -// * ErrCodeKMSThrottlingException "KMSThrottlingException" +// * KMSThrottlingException // The request was denied due to request throttling. For more information about // throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) // in the AWS Key Management Service Developer Guide. @@ -2598,20 +2598,20 @@ func (c *Kinesis) RegisterStreamConsumerRequest(input *RegisterStreamConsumerInp // See the AWS API reference guide for Amazon Kinesis's // API operation RegisterStreamConsumer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // @@ -2696,20 +2696,20 @@ func (c *Kinesis) RemoveTagsFromStreamRequest(input *RemoveTagsFromStreamInput) // See the AWS API reference guide for Amazon Kinesis's // API operation RemoveTagsFromStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -2834,20 +2834,20 @@ func (c *Kinesis) SplitShardRequest(input *SplitShardInput) (req *request.Reques // See the AWS API reference guide for Amazon Kinesis's // API operation SplitShard for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -2945,45 +2945,45 @@ func (c *Kinesis) StartStreamEncryptionRequest(input *StartStreamEncryptionInput // See the AWS API reference guide for Amazon Kinesis's // API operation StartStreamEncryption for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeKMSDisabledException "KMSDisabledException" +// * KMSDisabledException // The request was rejected because the specified customer master key (CMK) // isn't enabled. // -// * ErrCodeKMSInvalidStateException "KMSInvalidStateException" +// * KMSInvalidStateException // The request was rejected because the state of the specified resource isn't // valid for this request. For more information, see How Key State Affects Use // of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeKMSAccessDeniedException "KMSAccessDeniedException" +// * KMSAccessDeniedException // The ciphertext references a key that doesn't exist or that you don't have // access to. // -// * ErrCodeKMSNotFoundException "KMSNotFoundException" +// * KMSNotFoundException // The request was rejected because the specified entity or resource can't be // found. // -// * ErrCodeKMSOptInRequired "KMSOptInRequired" +// * KMSOptInRequired // The AWS access key ID needs a subscription for the service. // -// * ErrCodeKMSThrottlingException "KMSThrottlingException" +// * KMSThrottlingException // The request was denied due to request throttling. For more information about // throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) // in the AWS Key Management Service Developer Guide. @@ -3081,20 +3081,20 @@ func (c *Kinesis) StopStreamEncryptionRequest(input *StopStreamEncryptionInput) // See the AWS API reference guide for Amazon Kinesis's // API operation StopStreamEncryption for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // @@ -3194,20 +3194,20 @@ func (c *Kinesis) SubscribeToShardRequest(input *SubscribeToShardInput) (req *re // See the AWS API reference guide for Amazon Kinesis's // API operation SubscribeToShard for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -3299,11 +3299,16 @@ func (es *SubscribeToShardEventStream) waitStreamPartClose() { } } -func (es *SubscribeToShardEventStream) eventTypeForSubscribeToShardEventStreamOutputEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type eventTypeForSubscribeToShardEventStreamOutputEvent struct { + unmarshalerForEvent func(string) (eventstreamapi.Unmarshaler, error) + output *SubscribeToShardOutput +} + +func (e eventTypeForSubscribeToShardEventStreamOutputEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { if eventType == "initial-response" { - return es.output, nil + return e.output, nil } - return unmarshalerForSubscribeToShardEventStreamEvent(eventType) + return e.unmarshalerForEvent(eventType) } // Events returns a channel to read events from. @@ -3321,12 +3326,23 @@ func (es *SubscribeToShardEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForSubscribeToShardEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + unmarshalerForEvent = eventTypeForSubscribeToShardEventStreamOutputEvent{ + unmarshalerForEvent: unmarshalerForEvent, + output: es.output, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - es.eventTypeForSubscribeToShardEventStreamOutputEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -3482,20 +3498,20 @@ func (c *Kinesis) UpdateShardCountRequest(input *UpdateShardCountInput) (req *re // See the AWS API reference guide for Amazon Kinesis's // API operation UpdateShardCount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. For more information, see the returned message. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource could not be found. The stream might not be specified // correctly. // @@ -4585,6 +4601,119 @@ func (s *EnhancedMonitoringOutput) SetStreamName(v string) *EnhancedMonitoringOu return s } +// The provided iterator exceeds the maximum age allowed. +type ExpiredIteratorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExpiredIteratorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredIteratorException) GoString() string { + return s.String() +} + +func newErrorExpiredIteratorException(v protocol.ResponseMetadata) error { + return &ExpiredIteratorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredIteratorException) Code() string { + return "ExpiredIteratorException" +} + +// Message returns the exception's message. +func (s ExpiredIteratorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredIteratorException) OrigErr() error { + return nil +} + +func (s ExpiredIteratorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredIteratorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredIteratorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pagination token passed to the operation is expired. +type ExpiredNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExpiredNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredNextTokenException) GoString() string { + return s.String() +} + +func newErrorExpiredNextTokenException(v protocol.ResponseMetadata) error { + return &ExpiredNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredNextTokenException) Code() string { + return "ExpiredNextTokenException" +} + +// Message returns the exception's message. +func (s ExpiredNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredNextTokenException) OrigErr() error { + return nil +} + +func (s ExpiredNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input for GetRecords. type GetRecordsInput struct { _ struct{} `type:"structure"` @@ -4946,7 +5075,8 @@ func (s IncreaseStreamRetentionPeriodOutput) GoString() string { } type InternalFailureException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata Message_ *string `locationName:"message" type:"string"` } @@ -4988,6 +5118,12 @@ func (s *InternalFailureException) MarshalEvent(pm protocol.PayloadMarshaler) (m return msg, err } +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s InternalFailureException) Code() string { return "InternalFailureException" @@ -4995,7 +5131,10 @@ func (s InternalFailureException) Code() string { // Message returns the exception's message. func (s InternalFailureException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -5007,10 +5146,79 @@ func (s InternalFailureException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. For more information, see the returned message. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + // The ciphertext references a key that doesn't exist or that you don't have // access to. type KMSAccessDeniedException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -5053,6 +5261,12 @@ func (s *KMSAccessDeniedException) MarshalEvent(pm protocol.PayloadMarshaler) (m return msg, err } +func newErrorKMSAccessDeniedException(v protocol.ResponseMetadata) error { + return &KMSAccessDeniedException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s KMSAccessDeniedException) Code() string { return "KMSAccessDeniedException" @@ -5060,7 +5274,10 @@ func (s KMSAccessDeniedException) Code() string { // Message returns the exception's message. func (s KMSAccessDeniedException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -5072,10 +5289,21 @@ func (s KMSAccessDeniedException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s KMSAccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSAccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // The request was rejected because the specified customer master key (CMK) // isn't enabled. type KMSDisabledException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -5118,6 +5346,12 @@ func (s *KMSDisabledException) MarshalEvent(pm protocol.PayloadMarshaler) (msg e return msg, err } +func newErrorKMSDisabledException(v protocol.ResponseMetadata) error { + return &KMSDisabledException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s KMSDisabledException) Code() string { return "KMSDisabledException" @@ -5125,7 +5359,10 @@ func (s KMSDisabledException) Code() string { // Message returns the exception's message. func (s KMSDisabledException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -5137,12 +5374,23 @@ func (s KMSDisabledException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s KMSDisabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSDisabledException) RequestID() string { + return s.respMetadata.RequestID +} + // The request was rejected because the state of the specified resource isn't // valid for this request. For more information, see How Key State Affects Use // of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide. type KMSInvalidStateException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -5185,6 +5433,12 @@ func (s *KMSInvalidStateException) MarshalEvent(pm protocol.PayloadMarshaler) (m return msg, err } +func newErrorKMSInvalidStateException(v protocol.ResponseMetadata) error { + return &KMSInvalidStateException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s KMSInvalidStateException) Code() string { return "KMSInvalidStateException" @@ -5192,7 +5446,10 @@ func (s KMSInvalidStateException) Code() string { // Message returns the exception's message. func (s KMSInvalidStateException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -5204,10 +5461,21 @@ func (s KMSInvalidStateException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s KMSInvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSInvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + // The request was rejected because the specified entity or resource can't be // found. type KMSNotFoundException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -5250,6 +5518,12 @@ func (s *KMSNotFoundException) MarshalEvent(pm protocol.PayloadMarshaler) (msg e return msg, err } +func newErrorKMSNotFoundException(v protocol.ResponseMetadata) error { + return &KMSNotFoundException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s KMSNotFoundException) Code() string { return "KMSNotFoundException" @@ -5257,7 +5531,10 @@ func (s KMSNotFoundException) Code() string { // Message returns the exception's message. func (s KMSNotFoundException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -5269,9 +5546,20 @@ func (s KMSNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s KMSNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The AWS access key ID needs a subscription for the service. type KMSOptInRequired struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -5314,6 +5602,12 @@ func (s *KMSOptInRequired) MarshalEvent(pm protocol.PayloadMarshaler) (msg event return msg, err } +func newErrorKMSOptInRequired(v protocol.ResponseMetadata) error { + return &KMSOptInRequired{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s KMSOptInRequired) Code() string { return "KMSOptInRequired" @@ -5321,7 +5615,10 @@ func (s KMSOptInRequired) Code() string { // Message returns the exception's message. func (s KMSOptInRequired) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -5333,11 +5630,22 @@ func (s KMSOptInRequired) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s KMSOptInRequired) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSOptInRequired) RequestID() string { + return s.respMetadata.RequestID +} + // The request was denied due to request throttling. For more information about // throttling, see Limits (http://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second) // in the AWS Key Management Service Developer Guide. type KMSThrottlingException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -5380,6 +5688,12 @@ func (s *KMSThrottlingException) MarshalEvent(pm protocol.PayloadMarshaler) (msg return msg, err } +func newErrorKMSThrottlingException(v protocol.ResponseMetadata) error { + return &KMSThrottlingException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s KMSThrottlingException) Code() string { return "KMSThrottlingException" @@ -5387,7 +5701,10 @@ func (s KMSThrottlingException) Code() string { // Message returns the exception's message. func (s KMSThrottlingException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -5399,6 +5716,74 @@ func (s KMSThrottlingException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s KMSThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListShardsInput struct { _ struct{} `type:"structure"` @@ -5995,6 +6380,68 @@ func (s MergeShardsOutput) GoString() string { return s.String() } +// The request rate for the stream is too high, or the requested data is too +// large for the available throughput. Reduce the frequency or size of your +// requests. For more information, see Streams Limits (http://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html) +// in the Amazon Kinesis Data Streams Developer Guide, and Error Retries and +// Exponential Backoff in AWS (http://docs.aws.amazon.com/general/latest/gr/api-retries.html) +// in the AWS General Reference. +type ProvisionedThroughputExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message that provides information about the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ProvisionedThroughputExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedThroughputExceededException) GoString() string { + return s.String() +} + +func newErrorProvisionedThroughputExceededException(v protocol.ResponseMetadata) error { + return &ProvisionedThroughputExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProvisionedThroughputExceededException) Code() string { + return "ProvisionedThroughputExceededException" +} + +// Message returns the exception's message. +func (s ProvisionedThroughputExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProvisionedThroughputExceededException) OrigErr() error { + return nil +} + +func (s ProvisionedThroughputExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProvisionedThroughputExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProvisionedThroughputExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the input for PutRecord. type PutRecordInput struct { _ struct{} `type:"structure"` @@ -6660,7 +7107,8 @@ func (s RemoveTagsFromStreamOutput) GoString() string { // The resource is not available for this operation. For successful operation, // the resource must be in the ACTIVE state. type ResourceInUseException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -6703,6 +7151,12 @@ func (s *ResourceInUseException) MarshalEvent(pm protocol.PayloadMarshaler) (msg return msg, err } +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ResourceInUseException) Code() string { return "ResourceInUseException" @@ -6710,7 +7164,10 @@ func (s ResourceInUseException) Code() string { // Message returns the exception's message. func (s ResourceInUseException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -6722,10 +7179,21 @@ func (s ResourceInUseException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + // The requested resource could not be found. The stream might not be specified // correctly. type ResourceNotFoundException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata // A message that provides information about the error. Message_ *string `locationName:"message" type:"string"` @@ -6768,6 +7236,12 @@ func (s *ResourceNotFoundException) MarshalEvent(pm protocol.PayloadMarshaler) ( return msg, err } +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ResourceNotFoundException) Code() string { return "ResourceNotFoundException" @@ -6775,7 +7249,10 @@ func (s ResourceNotFoundException) Code() string { // Message returns the exception's message. func (s ResourceNotFoundException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -6787,6 +7264,16 @@ func (s ResourceNotFoundException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The range of possible sequence numbers for the shard. type SequenceNumberRange struct { _ struct{} `type:"structure"` @@ -7724,28 +8211,32 @@ func (r *readSubscribeToShardEventStream) readEventStream() { } } -func unmarshalerForSubscribeToShardEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForSubscribeToShardEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForSubscribeToShardEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { case "SubscribeToShardEvent": return &SubscribeToShardEvent{}, nil case "InternalFailureException": - return &InternalFailureException{}, nil + return newErrorInternalFailureException(u.metadata).(eventstreamapi.Unmarshaler), nil case "KMSAccessDeniedException": - return &KMSAccessDeniedException{}, nil + return newErrorKMSAccessDeniedException(u.metadata).(eventstreamapi.Unmarshaler), nil case "KMSDisabledException": - return &KMSDisabledException{}, nil + return newErrorKMSDisabledException(u.metadata).(eventstreamapi.Unmarshaler), nil case "KMSInvalidStateException": - return &KMSInvalidStateException{}, nil + return newErrorKMSInvalidStateException(u.metadata).(eventstreamapi.Unmarshaler), nil case "KMSNotFoundException": - return &KMSNotFoundException{}, nil + return newErrorKMSNotFoundException(u.metadata).(eventstreamapi.Unmarshaler), nil case "KMSOptInRequired": - return &KMSOptInRequired{}, nil + return newErrorKMSOptInRequired(u.metadata).(eventstreamapi.Unmarshaler), nil case "KMSThrottlingException": - return &KMSThrottlingException{}, nil + return newErrorKMSThrottlingException(u.metadata).(eventstreamapi.Unmarshaler), nil case "ResourceInUseException": - return &ResourceInUseException{}, nil + return newErrorResourceInUseException(u.metadata).(eventstreamapi.Unmarshaler), nil case "ResourceNotFoundException": - return &ResourceNotFoundException{}, nil + return newErrorResourceNotFoundException(u.metadata).(eventstreamapi.Unmarshaler), nil default: return nil, awserr.New( request.ErrCodeSerialization, diff --git a/service/kinesis/errors.go b/service/kinesis/errors.go index fc83d457e72..ba7c89dbaee 100644 --- a/service/kinesis/errors.go +++ b/service/kinesis/errors.go @@ -2,6 +2,10 @@ package kinesis +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeExpiredIteratorException for service response error code @@ -103,3 +107,20 @@ const ( // correctly. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ExpiredIteratorException": newErrorExpiredIteratorException, + "ExpiredNextTokenException": newErrorExpiredNextTokenException, + "InternalFailureException": newErrorInternalFailureException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "KMSAccessDeniedException": newErrorKMSAccessDeniedException, + "KMSDisabledException": newErrorKMSDisabledException, + "KMSInvalidStateException": newErrorKMSInvalidStateException, + "KMSNotFoundException": newErrorKMSNotFoundException, + "KMSOptInRequired": newErrorKMSOptInRequired, + "KMSThrottlingException": newErrorKMSThrottlingException, + "LimitExceededException": newErrorLimitExceededException, + "ProvisionedThroughputExceededException": newErrorProvisionedThroughputExceededException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/kinesis/eventstream_test.go b/service/kinesis/eventstream_test.go index 8e06fd7081e..5aa75265bb4 100644 --- a/service/kinesis/eventstream_test.go +++ b/service/kinesis/eventstream_test.go @@ -228,6 +228,9 @@ func TestSubscribeToShard_ReadException(t *testing.T) { expectEvents := []SubscribeToShardEventStreamEvent{ &SubscribeToShardOutput{}, &InternalFailureException{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, Message_: aws.String("string value goes here"), }, } @@ -289,6 +292,9 @@ func TestSubscribeToShard_ReadException(t *testing.T) { } expectErr := &InternalFailureException{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, Message_: aws.String("string value goes here"), } aerr, ok := err.(awserr.Error) @@ -303,7 +309,7 @@ func TestSubscribeToShard_ReadException(t *testing.T) { } if e, a := expectErr, aerr; !reflect.DeepEqual(e, a) { - t.Errorf("expect %#v, got %#v", e, a) + t.Errorf("expect error %+#v, got %+#v", e, a) } } diff --git a/service/kinesis/service.go b/service/kinesis/service.go index 6c372673b3e..71f51b32870 100644 --- a/service/kinesis/service.go +++ b/service/kinesis/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) svc.Handlers.BuildStream.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.UnmarshalStream.PushBackNamed(jsonrpc.UnmarshalHandler) diff --git a/service/kinesisanalytics/api.go b/service/kinesisanalytics/api.go index d536e7b1470..7e8df003f38 100644 --- a/service/kinesisanalytics/api.go +++ b/service/kinesisanalytics/api.go @@ -75,22 +75,22 @@ func (c *KinesisAnalytics) AddApplicationCloudWatchLoggingOptionRequest(input *A // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationCloudWatchLoggingOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -189,26 +189,26 @@ func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInput // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeCodeValidationException "CodeValidationException" +// * CodeValidationException // User-provided application code (query) is invalid. This can be a simple syntax // error. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -297,22 +297,22 @@ func (c *KinesisAnalytics) AddApplicationInputProcessingConfigurationRequest(inp // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationInputProcessingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -421,22 +421,22 @@ func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutp // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationOutput for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -536,22 +536,22 @@ func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddAp // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationReferenceDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -660,26 +660,26 @@ func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInpu // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation CreateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeCodeValidationException "CodeValidationException" +// Returned Error Types: +// * CodeValidationException // User-provided application code (query) is invalid. This can be a simple syntax // error. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exceeded the number of applications allowed. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // Application created with too many tags, or too many tags added to an application. // Note that the maximum number of application tags includes system tags. The // maximum number of user-defined application tags is 50. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. @@ -771,19 +771,19 @@ func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInpu // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -871,22 +871,22 @@ func (c *KinesisAnalytics) DeleteApplicationCloudWatchLoggingOptionRequest(input // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationCloudWatchLoggingOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -973,22 +973,22 @@ func (c *KinesisAnalytics) DeleteApplicationInputProcessingConfigurationRequest( // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationInputProcessingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1079,22 +1079,22 @@ func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicati // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationOutput for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1189,22 +1189,22 @@ func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *De // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationReferenceDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1297,11 +1297,11 @@ func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplication // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DescribeApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1399,21 +1399,21 @@ func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchema // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DiscoverInputSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeUnableToDetectSchemaException "UnableToDetectSchemaException" +// * UnableToDetectSchemaException // Data format is not valid. Amazon Kinesis Analytics is not able to detect // schema for the given streaming source. // -// * ErrCodeResourceProvisionedThroughputExceededException "ResourceProvisionedThroughputExceededException" +// * ResourceProvisionedThroughputExceededException // Discovery failed to get a record from the streaming source because of the // Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, // see GetRecords (https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) // in the Amazon Kinesis Streams API Reference. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is unavailable. Back off and retry the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/DiscoverInputSchema @@ -1583,14 +1583,14 @@ func (c *KinesisAnalytics) ListTagsForResourceRequest(input *ListTagsForResource // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. @@ -1693,20 +1693,20 @@ func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation StartApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// * InvalidApplicationConfigurationException // User-provided application configuration is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1799,14 +1799,14 @@ func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) ( // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation StopApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1889,22 +1889,22 @@ func (c *KinesisAnalytics) TagResourceRequest(input *TagResourceInput) (req *req // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // Application created with too many tags, or too many tags added to an application. // Note that the maximum number of application tags includes system tags. The // maximum number of user-defined application tags is 50. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. @@ -1986,22 +1986,22 @@ func (c *KinesisAnalytics) UntagResourceRequest(input *UntagResourceInput) (req // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // Application created with too many tags, or too many tags added to an application. // Note that the maximum number of application tags includes system tags. The // maximum number of user-defined application tags is 50. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. @@ -2095,26 +2095,26 @@ func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInpu // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation UpdateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeCodeValidationException "CodeValidationException" +// Returned Error Types: +// * CodeValidationException // User-provided application code (query) is invalid. This can be a simple syntax // error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // Application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // Specified input parameter value is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modification to an application. // For example, two individuals attempting to edit the same application at the // same time. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -3194,6 +3194,122 @@ func (s *CloudWatchLoggingOptionUpdate) SetRoleARNUpdate(v string) *CloudWatchLo return s } +// User-provided application code (query) is invalid. This can be a simple syntax +// error. +type CodeValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Test + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CodeValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeValidationException) GoString() string { + return s.String() +} + +func newErrorCodeValidationException(v protocol.ResponseMetadata) error { + return &CodeValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CodeValidationException) Code() string { + return "CodeValidationException" +} + +// Message returns the exception's message. +func (s CodeValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CodeValidationException) OrigErr() error { + return nil +} + +func (s CodeValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CodeValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CodeValidationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception thrown as a result of concurrent modification to an application. +// For example, two individuals attempting to edit the same application at the +// same time. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // TBD type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -5007,6 +5123,119 @@ func (s *InputUpdate) SetNamePrefixUpdate(v string) *InputUpdate { return s } +// User-provided application configuration is not valid. +type InvalidApplicationConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // test + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidApplicationConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApplicationConfigurationException) GoString() string { + return s.String() +} + +func newErrorInvalidApplicationConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidApplicationConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApplicationConfigurationException) Code() string { + return "InvalidApplicationConfigurationException" +} + +// Message returns the exception's message. +func (s InvalidApplicationConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApplicationConfigurationException) OrigErr() error { + return nil +} + +func (s InvalidApplicationConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApplicationConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApplicationConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Specified input parameter value is invalid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides additional mapping information when JSON is the record format on // the streaming source. type JSONMappingParameters struct { @@ -5816,6 +6045,62 @@ func (s *LambdaOutputUpdate) SetRoleARNUpdate(v string) *LambdaOutputUpdate { return s } +// Exceeded the number of applications allowed. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListApplicationsInput struct { _ struct{} `type:"structure"` @@ -6689,6 +6974,177 @@ func (s *ReferenceDataSourceUpdate) SetTableNameUpdate(v string) *ReferenceDataS return s } +// Application is not available for this operation. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// Specified application can't be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Discovery failed to get a record from the streaming source because of the +// Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, +// see GetRecords (https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) +// in the Amazon Kinesis Streams API Reference. +type ResourceProvisionedThroughputExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceProvisionedThroughputExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceProvisionedThroughputExceededException) GoString() string { + return s.String() +} + +func newErrorResourceProvisionedThroughputExceededException(v protocol.ResponseMetadata) error { + return &ResourceProvisionedThroughputExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceProvisionedThroughputExceededException) Code() string { + return "ResourceProvisionedThroughputExceededException" +} + +// Message returns the exception's message. +func (s ResourceProvisionedThroughputExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceProvisionedThroughputExceededException) OrigErr() error { + return nil +} + +func (s ResourceProvisionedThroughputExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceProvisionedThroughputExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceProvisionedThroughputExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides a description of an Amazon S3 data source, including the Amazon // Resource Name (ARN) of the S3 bucket, the ARN of the IAM role that is used // to access the bucket, and the name of the Amazon S3 object that contains @@ -6967,6 +7423,62 @@ func (s *S3ReferenceDataSourceUpdate) SetReferenceRoleARNUpdate(v string) *S3Ref return s } +// The service is unavailable. Back off and retry the operation. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the format of the data in the streaming source, and how each data // element maps to corresponding columns created in the in-application stream. type SourceSchema struct { @@ -7323,6 +7835,182 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Application created with too many tags, or too many tags added to an application. +// Note that the maximum number of application tags includes system tags. The +// maximum number of user-defined application tags is 50. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Data format is not valid. Amazon Kinesis Analytics is not able to detect +// schema for the given streaming source. +type UnableToDetectSchemaException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ProcessedInputRecords []*string `type:"list"` + + RawInputRecords []*string `type:"list"` +} + +// String returns the string representation +func (s UnableToDetectSchemaException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnableToDetectSchemaException) GoString() string { + return s.String() +} + +func newErrorUnableToDetectSchemaException(v protocol.ResponseMetadata) error { + return &UnableToDetectSchemaException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnableToDetectSchemaException) Code() string { + return "UnableToDetectSchemaException" +} + +// Message returns the exception's message. +func (s UnableToDetectSchemaException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnableToDetectSchemaException) OrigErr() error { + return nil +} + +func (s UnableToDetectSchemaException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnableToDetectSchemaException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnableToDetectSchemaException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s UnsupportedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/kinesisanalytics/errors.go b/service/kinesisanalytics/errors.go index 812bac82658..73557f998aa 100644 --- a/service/kinesisanalytics/errors.go +++ b/service/kinesisanalytics/errors.go @@ -2,6 +2,10 @@ package kinesisanalytics +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCodeValidationException for service response error code @@ -86,3 +90,18 @@ const ( // a specified resource is not valid for this operation. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CodeValidationException": newErrorCodeValidationException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidApplicationConfigurationException": newErrorInvalidApplicationConfigurationException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceProvisionedThroughputExceededException": newErrorResourceProvisionedThroughputExceededException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyTagsException": newErrorTooManyTagsException, + "UnableToDetectSchemaException": newErrorUnableToDetectSchemaException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, +} diff --git a/service/kinesisanalytics/service.go b/service/kinesisanalytics/service.go index 8cb4d57e8dc..7de10edf91c 100644 --- a/service/kinesisanalytics/service.go +++ b/service/kinesisanalytics/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kinesisanalyticsv2/api.go b/service/kinesisanalyticsv2/api.go index a13544d71d4..1428e9372f8 100644 --- a/service/kinesisanalyticsv2/api.go +++ b/service/kinesisanalyticsv2/api.go @@ -67,25 +67,25 @@ func (c *KinesisAnalyticsV2) AddApplicationCloudWatchLoggingOptionRequest(input // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationCloudWatchLoggingOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // -// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// * InvalidApplicationConfigurationException // The user-provided application configuration is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationCloudWatchLoggingOption @@ -171,26 +171,26 @@ func (c *KinesisAnalyticsV2) AddApplicationInputRequest(input *AddApplicationInp // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeCodeValidationException "CodeValidationException" +// * CodeValidationException // The user-provided application code (query) is not valid. This can be a simple // syntax error. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationInput @@ -271,22 +271,22 @@ func (c *KinesisAnalyticsV2) AddApplicationInputProcessingConfigurationRequest(i // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationInputProcessingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationInputProcessingConfiguration @@ -379,22 +379,22 @@ func (c *KinesisAnalyticsV2) AddApplicationOutputRequest(input *AddApplicationOu // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationOutput for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationOutput @@ -480,22 +480,22 @@ func (c *KinesisAnalyticsV2) AddApplicationReferenceDataSourceRequest(input *Add // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationReferenceDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/AddApplicationReferenceDataSource @@ -582,17 +582,17 @@ func (c *KinesisAnalyticsV2) AddApplicationVpcConfigurationRequest(input *AddApp // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation AddApplicationVpcConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. @@ -674,29 +674,29 @@ func (c *KinesisAnalyticsV2) CreateApplicationRequest(input *CreateApplicationIn // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation CreateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeCodeValidationException "CodeValidationException" +// Returned Error Types: +// * CodeValidationException // The user-provided application code (query) is not valid. This can be a simple // syntax error. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The number of allowed resources has been exceeded. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // Application created with too many tags, or too many tags added to an application. // Note that the maximum number of application tags includes system tags. The // maximum number of user-defined application tags is 50. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. @@ -777,24 +777,24 @@ func (c *KinesisAnalyticsV2) CreateApplicationSnapshotRequest(input *CreateAppli // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation CreateApplicationSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The number of allowed resources has been exceeded. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/CreateApplicationSnapshot @@ -874,25 +874,25 @@ func (c *KinesisAnalyticsV2) DeleteApplicationRequest(input *DeleteApplicationIn // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // -// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// * InvalidApplicationConfigurationException // The user-provided application configuration is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplication @@ -971,25 +971,25 @@ func (c *KinesisAnalyticsV2) DeleteApplicationCloudWatchLoggingOptionRequest(inp // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationCloudWatchLoggingOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // -// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// * InvalidApplicationConfigurationException // The user-provided application configuration is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationCloudWatchLoggingOption @@ -1067,22 +1067,22 @@ func (c *KinesisAnalyticsV2) DeleteApplicationInputProcessingConfigurationReques // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationInputProcessingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationInputProcessingConfiguration @@ -1163,22 +1163,22 @@ func (c *KinesisAnalyticsV2) DeleteApplicationOutputRequest(input *DeleteApplica // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationOutput for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationOutput @@ -1261,22 +1261,22 @@ func (c *KinesisAnalyticsV2) DeleteApplicationReferenceDataSourceRequest(input * // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationReferenceDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationReferenceDataSource @@ -1355,21 +1355,21 @@ func (c *KinesisAnalyticsV2) DeleteApplicationSnapshotRequest(input *DeleteAppli // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Specified application can't be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DeleteApplicationSnapshot @@ -1447,17 +1447,17 @@ func (c *KinesisAnalyticsV2) DeleteApplicationVpcConfigurationRequest(input *Del // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DeleteApplicationVpcConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. @@ -1540,14 +1540,14 @@ func (c *KinesisAnalyticsV2) DescribeApplicationRequest(input *DescribeApplicati // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DescribeApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DescribeApplication @@ -1625,14 +1625,14 @@ func (c *KinesisAnalyticsV2) DescribeApplicationSnapshotRequest(input *DescribeA // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DescribeApplicationSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1720,24 +1720,24 @@ func (c *KinesisAnalyticsV2) DiscoverInputSchemaRequest(input *DiscoverInputSche // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation DiscoverInputSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeUnableToDetectSchemaException "UnableToDetectSchemaException" +// * UnableToDetectSchemaException // The data format is not valid. Amazon Kinesis Data Analytics cannot detect // the schema for the given streaming source. // -// * ErrCodeResourceProvisionedThroughputExceededException "ResourceProvisionedThroughputExceededException" +// * ResourceProvisionedThroughputExceededException // Discovery failed to get a record from the streaming source because of the // Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, // see GetRecords (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) // in the Amazon Kinesis Streams API Reference. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service cannot complete the request. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/DiscoverInputSchema @@ -1815,11 +1815,11 @@ func (c *KinesisAnalyticsV2) ListApplicationSnapshotsRequest(input *ListApplicat // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation ListApplicationSnapshots for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -1902,8 +1902,8 @@ func (c *KinesisAnalyticsV2) ListApplicationsRequest(input *ListApplicationsInpu // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation ListApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/ListApplications @@ -1982,14 +1982,14 @@ func (c *KinesisAnalyticsV2) ListTagsForResourceRequest(input *ListTagsForResour // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. @@ -2071,20 +2071,20 @@ func (c *KinesisAnalyticsV2) StartApplicationRequest(input *StartApplicationInpu // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation StartApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// * InvalidApplicationConfigurationException // The user-provided application configuration is not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/StartApplication @@ -2165,20 +2165,20 @@ func (c *KinesisAnalyticsV2) StopApplicationRequest(input *StopApplicationInput) // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation StopApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // -// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// * InvalidApplicationConfigurationException // The user-provided application configuration is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/StopApplication @@ -2260,22 +2260,22 @@ func (c *KinesisAnalyticsV2) TagResourceRequest(input *TagResourceInput) (req *r // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // Application created with too many tags, or too many tags added to an application. // Note that the maximum number of application tags includes system tags. The // maximum number of user-defined application tags is 50. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. @@ -2357,22 +2357,22 @@ func (c *KinesisAnalyticsV2) UntagResourceRequest(input *UntagResourceInput) (re // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeTooManyTagsException "TooManyTagsException" +// * TooManyTagsException // Application created with too many tags, or too many tags added to an application. // Note that the maximum number of application tags includes system tags. The // maximum number of user-defined application tags is 50. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. @@ -2457,29 +2457,29 @@ func (c *KinesisAnalyticsV2) UpdateApplicationRequest(input *UpdateApplicationIn // See the AWS API reference guide for Amazon Kinesis Analytics's // API operation UpdateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeCodeValidationException "CodeValidationException" +// Returned Error Types: +// * CodeValidationException // The user-provided application code (query) is not valid. This can be a simple // syntax error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Specified application can't be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The application is not available for this operation. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The specified input parameter value is not valid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // Exception thrown as a result of concurrent modifications to an application. // This error can be the result of attempting to modify an application without // using the current application ID. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request JSON is not valid for the operation. // -// * ErrCodeInvalidApplicationConfigurationException "InvalidApplicationConfigurationException" +// * InvalidApplicationConfigurationException // The user-provided application configuration is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/UpdateApplication @@ -4748,6 +4748,121 @@ func (s *CodeContentUpdate) SetZipFileContentUpdate(v []byte) *CodeContentUpdate return s } +// The user-provided application code (query) is not valid. This can be a simple +// syntax error. +type CodeValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CodeValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeValidationException) GoString() string { + return s.String() +} + +func newErrorCodeValidationException(v protocol.ResponseMetadata) error { + return &CodeValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CodeValidationException) Code() string { + return "CodeValidationException" +} + +// Message returns the exception's message. +func (s CodeValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CodeValidationException) OrigErr() error { + return nil +} + +func (s CodeValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CodeValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CodeValidationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception thrown as a result of concurrent modifications to an application. +// This error can be the result of attempting to modify an application without +// using the current application ID. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateApplicationInput struct { _ struct{} `type:"structure"` @@ -7222,6 +7337,174 @@ func (s *InputUpdate) SetNamePrefixUpdate(v string) *InputUpdate { return s } +// The user-provided application configuration is not valid. +type InvalidApplicationConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidApplicationConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidApplicationConfigurationException) GoString() string { + return s.String() +} + +func newErrorInvalidApplicationConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidApplicationConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidApplicationConfigurationException) Code() string { + return "InvalidApplicationConfigurationException" +} + +// Message returns the exception's message. +func (s InvalidApplicationConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidApplicationConfigurationException) OrigErr() error { + return nil +} + +func (s InvalidApplicationConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidApplicationConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidApplicationConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified input parameter value is not valid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request JSON is not valid for the operation. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // For an SQL-based Amazon Kinesis Data Analytics application, provides additional // mapping information when JSON is the record format on the streaming source. type JSONMappingParameters struct { @@ -7921,6 +8204,62 @@ func (s *LambdaOutputUpdate) SetResourceARNUpdate(v string) *LambdaOutputUpdate return s } +// The number of allowed resources has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListApplicationSnapshotsInput struct { _ struct{} `type:"structure"` @@ -9351,6 +9690,177 @@ func (s *ReferenceDataSourceUpdate) SetTableNameUpdate(v string) *ReferenceDataS return s } +// The application is not available for this operation. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// Specified application can't be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Discovery failed to get a record from the streaming source because of the +// Amazon Kinesis Streams ProvisionedThroughputExceededException. For more information, +// see GetRecords (http://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetRecords.html) +// in the Amazon Kinesis Streams API Reference. +type ResourceProvisionedThroughputExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceProvisionedThroughputExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceProvisionedThroughputExceededException) GoString() string { + return s.String() +} + +func newErrorResourceProvisionedThroughputExceededException(v protocol.ResponseMetadata) error { + return &ResourceProvisionedThroughputExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceProvisionedThroughputExceededException) Code() string { + return "ResourceProvisionedThroughputExceededException" +} + +// Message returns the exception's message. +func (s ResourceProvisionedThroughputExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceProvisionedThroughputExceededException) OrigErr() error { + return nil +} + +func (s ResourceProvisionedThroughputExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceProvisionedThroughputExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceProvisionedThroughputExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the starting parameters for an Amazon Kinesis Data Analytics application. type RunConfiguration struct { _ struct{} `type:"structure"` @@ -9893,6 +10403,62 @@ func (s *S3ReferenceDataSourceUpdate) SetFileKeyUpdate(v string) *S3ReferenceDat return s } +// The service cannot complete the request. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides details about a snapshot of application state. type SnapshotDetails struct { _ struct{} `type:"structure"` @@ -10576,6 +11142,185 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Application created with too many tags, or too many tags added to an application. +// Note that the maximum number of application tags includes system tags. The +// maximum number of user-defined application tags is 50. +type TooManyTagsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsException) GoString() string { + return s.String() +} + +func newErrorTooManyTagsException(v protocol.ResponseMetadata) error { + return &TooManyTagsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsException) Code() string { + return "TooManyTagsException" +} + +// Message returns the exception's message. +func (s TooManyTagsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsException) OrigErr() error { + return nil +} + +func (s TooManyTagsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The data format is not valid. Amazon Kinesis Data Analytics cannot detect +// the schema for the given streaming source. +type UnableToDetectSchemaException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // Stream data that was modified by the processor specified in the InputProcessingConfiguration + // parameter. + ProcessedInputRecords []*string `type:"list"` + + // Raw stream data that was sampled to infer the schema. + RawInputRecords []*string `type:"list"` +} + +// String returns the string representation +func (s UnableToDetectSchemaException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnableToDetectSchemaException) GoString() string { + return s.String() +} + +func newErrorUnableToDetectSchemaException(v protocol.ResponseMetadata) error { + return &UnableToDetectSchemaException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnableToDetectSchemaException) Code() string { + return "UnableToDetectSchemaException" +} + +// Message returns the exception's message. +func (s UnableToDetectSchemaException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnableToDetectSchemaException) OrigErr() error { + return nil +} + +func (s UnableToDetectSchemaException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnableToDetectSchemaException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnableToDetectSchemaException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s UnsupportedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/kinesisanalyticsv2/errors.go b/service/kinesisanalyticsv2/errors.go index f4cac8577d0..85229629717 100644 --- a/service/kinesisanalyticsv2/errors.go +++ b/service/kinesisanalyticsv2/errors.go @@ -2,6 +2,10 @@ package kinesisanalyticsv2 +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCodeValidationException for service response error code @@ -92,3 +96,19 @@ const ( // a specified resource is not valid for this operation. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CodeValidationException": newErrorCodeValidationException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidApplicationConfigurationException": newErrorInvalidApplicationConfigurationException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceProvisionedThroughputExceededException": newErrorResourceProvisionedThroughputExceededException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyTagsException": newErrorTooManyTagsException, + "UnableToDetectSchemaException": newErrorUnableToDetectSchemaException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, +} diff --git a/service/kinesisanalyticsv2/service.go b/service/kinesisanalyticsv2/service.go index f26cef0cea0..9dc20825058 100644 --- a/service/kinesisanalyticsv2/service.go +++ b/service/kinesisanalyticsv2/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kinesisvideo/api.go b/service/kinesisvideo/api.go index 330795fb0e1..8266d661e4f 100644 --- a/service/kinesisvideo/api.go +++ b/service/kinesisvideo/api.go @@ -68,25 +68,25 @@ func (c *KinesisVideo) CreateSignalingChannelRequest(input *CreateSignalingChann // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation CreateSignalingChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeAccountChannelLimitExceededException "AccountChannelLimitExceededException" +// * AccountChannelLimitExceededException // You have reached the maximum limit of active signaling channels for this // AWS account in this region. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The stream is currently not available for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // -// * ErrCodeTagsPerResourceExceededLimitException "TagsPerResourceExceededLimitException" +// * TagsPerResourceExceededLimitException // You have exceeded the limit of tags that you can associate with the resource. // Kinesis video streams support up to 50 tags. // @@ -175,27 +175,27 @@ func (c *KinesisVideo) CreateStreamRequest(input *CreateStreamInput) (req *reque // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation CreateStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccountStreamLimitExceededException "AccountStreamLimitExceededException" +// Returned Error Types: +// * AccountStreamLimitExceededException // The number of streams created for the account is too high. // -// * ErrCodeDeviceStreamLimitExceededException "DeviceStreamLimitExceededException" +// * DeviceStreamLimitExceededException // Not implemented. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The stream is currently not available for this operation. // -// * ErrCodeInvalidDeviceException "InvalidDeviceException" +// * InvalidDeviceException // Not implemented. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeTagsPerResourceExceededLimitException "TagsPerResourceExceededLimitException" +// * TagsPerResourceExceededLimitException // You have exceeded the limit of tags that you can associate with the resource. // Kinesis video streams support up to 50 tags. // @@ -277,21 +277,21 @@ func (c *KinesisVideo) DeleteSignalingChannelRequest(input *DeleteSignalingChann // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation DeleteSignalingChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // The stream version that you specified is not the latest version. To get the // latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html) // API. @@ -383,21 +383,21 @@ func (c *KinesisVideo) DeleteStreamRequest(input *DeleteStreamInput) (req *reque // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation DeleteStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // The stream version that you specified is not the latest version. To get the // latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html) // API. @@ -478,18 +478,18 @@ func (c *KinesisVideo) DescribeSignalingChannelRequest(input *DescribeSignalingC // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation DescribeSignalingChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/DescribeSignalingChannel @@ -568,18 +568,18 @@ func (c *KinesisVideo) DescribeStreamRequest(input *DescribeStreamInput) (req *r // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation DescribeStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/DescribeStream @@ -665,18 +665,18 @@ func (c *KinesisVideo) GetDataEndpointRequest(input *GetDataEndpointInput) (req // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation GetDataEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/GetDataEndpoint @@ -766,21 +766,21 @@ func (c *KinesisVideo) GetSignalingChannelEndpointRequest(input *GetSignalingCha // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation GetSignalingChannelEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The stream is currently not available for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/GetSignalingChannelEndpoint @@ -866,15 +866,15 @@ func (c *KinesisVideo) ListSignalingChannelsRequest(input *ListSignalingChannels // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation ListSignalingChannels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/ListSignalingChannels @@ -1012,12 +1012,12 @@ func (c *KinesisVideo) ListStreamsRequest(input *ListStreamsInput) (req *request // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation ListStreams for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/ListStreams @@ -1147,18 +1147,18 @@ func (c *KinesisVideo) ListTagsForResourceRequest(input *ListTagsForResourceInpu // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/ListTagsForResource @@ -1238,21 +1238,21 @@ func (c *KinesisVideo) ListTagsForStreamRequest(input *ListTagsForStreamInput) ( // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation ListTagsForStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // -// * ErrCodeInvalidResourceFormatException "InvalidResourceFormatException" +// * InvalidResourceFormatException // The format of the StreamARN is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/ListTagsForStream @@ -1336,21 +1336,21 @@ func (c *KinesisVideo) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // -// * ErrCodeTagsPerResourceExceededLimitException "TagsPerResourceExceededLimitException" +// * TagsPerResourceExceededLimitException // You have exceeded the limit of tags that you can associate with the resource. // Kinesis video streams support up to 50 tags. // @@ -1441,24 +1441,24 @@ func (c *KinesisVideo) TagStreamRequest(input *TagStreamInput) (req *request.Req // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation TagStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // -// * ErrCodeInvalidResourceFormatException "InvalidResourceFormatException" +// * InvalidResourceFormatException // The format of the StreamARN is invalid. // -// * ErrCodeTagsPerResourceExceededLimitException "TagsPerResourceExceededLimitException" +// * TagsPerResourceExceededLimitException // You have exceeded the limit of tags that you can associate with the resource. // Kinesis video streams support up to 50 tags. // @@ -1540,18 +1540,18 @@ func (c *KinesisVideo) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/UntagResource @@ -1634,21 +1634,21 @@ func (c *KinesisVideo) UntagStreamRequest(input *UntagStreamInput) (req *request // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation UntagStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // -// * ErrCodeInvalidResourceFormatException "InvalidResourceFormatException" +// * InvalidResourceFormatException // The format of the StreamARN is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesisvideo-2017-09-30/UntagStream @@ -1747,24 +1747,24 @@ func (c *KinesisVideo) UpdateDataRetentionRequest(input *UpdateDataRetentionInpu // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation UpdateDataRetention for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The stream is currently not available for this operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // The stream version that you specified is not the latest version. To get the // latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html) // API. @@ -1851,24 +1851,24 @@ func (c *KinesisVideo) UpdateSignalingChannelRequest(input *UpdateSignalingChann // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation UpdateSignalingChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The stream is currently not available for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to perform this operation. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // The stream version that you specified is not the latest version. To get the // latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html) // API. @@ -1960,24 +1960,24 @@ func (c *KinesisVideo) UpdateStreamRequest(input *UpdateStreamInput) (req *reque // See the AWS API reference guide for Amazon Kinesis Video Streams's // API operation UpdateStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Amazon Kinesis Video Streams can't find the stream that you specified. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The stream is currently not available for this operation. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // -// * ErrCodeVersionMismatchException "VersionMismatchException" +// * VersionMismatchException // The stream version that you specified is not the latest version. To get the // latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html) // API. @@ -2004,6 +2004,175 @@ func (c *KinesisVideo) UpdateStreamWithContext(ctx aws.Context, input *UpdateStr return out, req.Send() } +// You do not have required permissions to perform this operation. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have reached the maximum limit of active signaling channels for this +// AWS account in this region. +type AccountChannelLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccountChannelLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountChannelLimitExceededException) GoString() string { + return s.String() +} + +func newErrorAccountChannelLimitExceededException(v protocol.ResponseMetadata) error { + return &AccountChannelLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountChannelLimitExceededException) Code() string { + return "AccountChannelLimitExceededException" +} + +// Message returns the exception's message. +func (s AccountChannelLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountChannelLimitExceededException) OrigErr() error { + return nil +} + +func (s AccountChannelLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountChannelLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountChannelLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The number of streams created for the account is too high. +type AccountStreamLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccountStreamLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountStreamLimitExceededException) GoString() string { + return s.String() +} + +func newErrorAccountStreamLimitExceededException(v protocol.ResponseMetadata) error { + return &AccountStreamLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountStreamLimitExceededException) Code() string { + return "AccountStreamLimitExceededException" +} + +// Message returns the exception's message. +func (s AccountStreamLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountStreamLimitExceededException) OrigErr() error { + return nil +} + +func (s AccountStreamLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountStreamLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountStreamLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // A structure that encapsulates a signaling channel's metadata and properties. type ChannelInfo struct { _ struct{} `type:"structure"` @@ -2132,6 +2301,63 @@ func (s *ChannelNameCondition) SetComparisonValue(v string) *ChannelNameConditio return s } +// Kinesis Video Streams has throttled the request because you have exceeded +// the limit of allowed client calls. Try making the call later. +type ClientLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ClientLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientLimitExceededException) GoString() string { + return s.String() +} + +func newErrorClientLimitExceededException(v protocol.ResponseMetadata) error { + return &ClientLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientLimitExceededException) Code() string { + return "ClientLimitExceededException" +} + +// Message returns the exception's message. +func (s ClientLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientLimitExceededException) OrigErr() error { + return nil +} + +func (s ClientLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateSignalingChannelInput struct { _ struct{} `type:"structure"` @@ -2674,6 +2900,62 @@ func (s *DescribeStreamOutput) SetStreamInfo(v *StreamInfo) *DescribeStreamOutpu return s } +// Not implemented. +type DeviceStreamLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DeviceStreamLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeviceStreamLimitExceededException) GoString() string { + return s.String() +} + +func newErrorDeviceStreamLimitExceededException(v protocol.ResponseMetadata) error { + return &DeviceStreamLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeviceStreamLimitExceededException) Code() string { + return "DeviceStreamLimitExceededException" +} + +// Message returns the exception's message. +func (s DeviceStreamLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeviceStreamLimitExceededException) OrigErr() error { + return nil +} + +func (s DeviceStreamLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeviceStreamLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeviceStreamLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type GetDataEndpointInput struct { _ struct{} `type:"structure"` @@ -2841,6 +3123,174 @@ func (s *GetSignalingChannelEndpointOutput) SetResourceEndpointList(v []*Resourc return s } +// The value for this input parameter is invalid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// Not implemented. +type InvalidDeviceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDeviceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeviceException) GoString() string { + return s.String() +} + +func newErrorInvalidDeviceException(v protocol.ResponseMetadata) error { + return &InvalidDeviceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeviceException) Code() string { + return "InvalidDeviceException" +} + +// Message returns the exception's message. +func (s InvalidDeviceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeviceException) OrigErr() error { + return nil +} + +func (s InvalidDeviceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeviceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeviceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The format of the StreamARN is invalid. +type InvalidResourceFormatException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidResourceFormatException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceFormatException) GoString() string { + return s.String() +} + +func newErrorInvalidResourceFormatException(v protocol.ResponseMetadata) error { + return &InvalidResourceFormatException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceFormatException) Code() string { + return "InvalidResourceFormatException" +} + +// Message returns the exception's message. +func (s InvalidResourceFormatException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceFormatException) OrigErr() error { + return nil +} + +func (s InvalidResourceFormatException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceFormatException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceFormatException) RequestID() string { + return s.respMetadata.RequestID +} + type ListSignalingChannelsInput struct { _ struct{} `type:"structure"` @@ -3210,6 +3660,62 @@ func (s *ListTagsForStreamOutput) SetTags(v map[string]*string) *ListTagsForStre return s } +// The caller is not authorized to perform this operation. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that describes the endpoint of the signaling channel returned by // the GetSignalingChannelEndpoint API. type ResourceEndpointListItem struct { @@ -3246,6 +3752,118 @@ func (s *ResourceEndpointListItem) SetResourceEndpoint(v string) *ResourceEndpoi return s } +// The stream is currently not available for this operation. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// Amazon Kinesis Video Streams can't find the stream that you specified. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that contains the endpoint configuration for the SINGLE_MASTER // channel type. type SingleMasterChannelEndpointConfiguration struct { @@ -3706,6 +4324,63 @@ func (s TagStreamOutput) GoString() string { return s.String() } +// You have exceeded the limit of tags that you can associate with the resource. +// Kinesis video streams support up to 50 tags. +type TagsPerResourceExceededLimitException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TagsPerResourceExceededLimitException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagsPerResourceExceededLimitException) GoString() string { + return s.String() +} + +func newErrorTagsPerResourceExceededLimitException(v protocol.ResponseMetadata) error { + return &TagsPerResourceExceededLimitException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagsPerResourceExceededLimitException) Code() string { + return "TagsPerResourceExceededLimitException" +} + +// Message returns the exception's message. +func (s TagsPerResourceExceededLimitException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagsPerResourceExceededLimitException) OrigErr() error { + return nil +} + +func (s TagsPerResourceExceededLimitException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagsPerResourceExceededLimitException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagsPerResourceExceededLimitException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -4172,6 +4847,64 @@ func (s UpdateStreamOutput) GoString() string { return s.String() } +// The stream version that you specified is not the latest version. To get the +// latest version, use the DescribeStream (https://docs.aws.amazon.com/kinesisvideostreams/latest/dg/API_DescribeStream.html) +// API. +type VersionMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s VersionMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VersionMismatchException) GoString() string { + return s.String() +} + +func newErrorVersionMismatchException(v protocol.ResponseMetadata) error { + return &VersionMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s VersionMismatchException) Code() string { + return "VersionMismatchException" +} + +// Message returns the exception's message. +func (s VersionMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s VersionMismatchException) OrigErr() error { + return nil +} + +func (s VersionMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s VersionMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s VersionMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // APINamePutMedia is a APIName enum value APINamePutMedia = "PUT_MEDIA" diff --git a/service/kinesisvideo/errors.go b/service/kinesisvideo/errors.go index 6616399e9d2..57993f66a76 100644 --- a/service/kinesisvideo/errors.go +++ b/service/kinesisvideo/errors.go @@ -2,6 +2,10 @@ package kinesisvideo +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -87,3 +91,19 @@ const ( // API. ErrCodeVersionMismatchException = "VersionMismatchException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AccountChannelLimitExceededException": newErrorAccountChannelLimitExceededException, + "AccountStreamLimitExceededException": newErrorAccountStreamLimitExceededException, + "ClientLimitExceededException": newErrorClientLimitExceededException, + "DeviceStreamLimitExceededException": newErrorDeviceStreamLimitExceededException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidDeviceException": newErrorInvalidDeviceException, + "InvalidResourceFormatException": newErrorInvalidResourceFormatException, + "NotAuthorizedException": newErrorNotAuthorizedException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TagsPerResourceExceededLimitException": newErrorTagsPerResourceExceededLimitException, + "VersionMismatchException": newErrorVersionMismatchException, +} diff --git a/service/kinesisvideo/service.go b/service/kinesisvideo/service.go index 3ea1c3d23f5..3694f941e7a 100644 --- a/service/kinesisvideo/service.go +++ b/service/kinesisvideo/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kinesisvideoarchivedmedia/api.go b/service/kinesisvideoarchivedmedia/api.go index fcd88e91932..121f35c0a1a 100644 --- a/service/kinesisvideoarchivedmedia/api.go +++ b/service/kinesisvideoarchivedmedia/api.go @@ -3,12 +3,14 @@ package kinesisvideoarchivedmedia import ( + "fmt" "io" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetDASHStreamingSessionURL = "GetDASHStreamingSessionURL" @@ -187,8 +189,8 @@ func (c *KinesisVideoArchivedMedia) GetDASHStreamingSessionURLRequest(input *Get // See the AWS API reference guide for Amazon Kinesis Video Streams Archived Media's // API operation GetDASHStreamingSessionURL for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // GetMedia throws this error when Kinesis Video Streams can't find the stream // that you specified. // @@ -198,32 +200,32 @@ func (c *KinesisVideoArchivedMedia) GetDASHStreamingSessionURLRequest(input *Get // a session with a PlaybackMode of LIVE is requested for a stream that has // no fragments within the last 30 seconds. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Status Code: 403, The caller is not authorized to perform an operation on // the given stream, or the token has expired. // -// * ErrCodeUnsupportedStreamMediaTypeException "UnsupportedStreamMediaTypeException" +// * UnsupportedStreamMediaTypeException // The type of the media (for example, h.264 or h.265 video or ACC or G.711 // audio) could not be determined from the codec IDs of the tracks in the first // fragment for a playback session. The codec ID for track 1 should be V_MPEG/ISO/AVC // and, optionally, the codec ID for track 2 should be A_AAC. // -// * ErrCodeNoDataRetentionException "NoDataRetentionException" +// * NoDataRetentionException // A streaming session was requested for a stream that does not retain data // (that is, has a DataRetentionInHours of 0). // -// * ErrCodeMissingCodecPrivateDataException "MissingCodecPrivateDataException" +// * MissingCodecPrivateDataException // No codec private data was found in at least one of tracks of the video stream. // -// * ErrCodeInvalidCodecPrivateDataException "InvalidCodecPrivateDataException" +// * InvalidCodecPrivateDataException // The codec private data in at least one of the tracks of the video stream // is not valid for this operation. // @@ -447,8 +449,8 @@ func (c *KinesisVideoArchivedMedia) GetHLSStreamingSessionURLRequest(input *GetH // See the AWS API reference guide for Amazon Kinesis Video Streams Archived Media's // API operation GetHLSStreamingSessionURL for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // GetMedia throws this error when Kinesis Video Streams can't find the stream // that you specified. // @@ -458,32 +460,32 @@ func (c *KinesisVideoArchivedMedia) GetHLSStreamingSessionURLRequest(input *GetH // a session with a PlaybackMode of LIVE is requested for a stream that has // no fragments within the last 30 seconds. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Status Code: 403, The caller is not authorized to perform an operation on // the given stream, or the token has expired. // -// * ErrCodeUnsupportedStreamMediaTypeException "UnsupportedStreamMediaTypeException" +// * UnsupportedStreamMediaTypeException // The type of the media (for example, h.264 or h.265 video or ACC or G.711 // audio) could not be determined from the codec IDs of the tracks in the first // fragment for a playback session. The codec ID for track 1 should be V_MPEG/ISO/AVC // and, optionally, the codec ID for track 2 should be A_AAC. // -// * ErrCodeNoDataRetentionException "NoDataRetentionException" +// * NoDataRetentionException // A streaming session was requested for a stream that does not retain data // (that is, has a DataRetentionInHours of 0). // -// * ErrCodeMissingCodecPrivateDataException "MissingCodecPrivateDataException" +// * MissingCodecPrivateDataException // No codec private data was found in at least one of tracks of the video stream. // -// * ErrCodeInvalidCodecPrivateDataException "InvalidCodecPrivateDataException" +// * InvalidCodecPrivateDataException // The codec private data in at least one of the tracks of the video stream // is not valid for this operation. // @@ -595,8 +597,8 @@ func (c *KinesisVideoArchivedMedia) GetMediaForFragmentListRequest(input *GetMed // See the AWS API reference guide for Amazon Kinesis Video Streams Archived Media's // API operation GetMediaForFragmentList for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // GetMedia throws this error when Kinesis Video Streams can't find the stream // that you specified. // @@ -606,15 +608,15 @@ func (c *KinesisVideoArchivedMedia) GetMediaForFragmentListRequest(input *GetMed // a session with a PlaybackMode of LIVE is requested for a stream that has // no fragments within the last 30 seconds. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Status Code: 403, The caller is not authorized to perform an operation on // the given stream, or the token has expired. // @@ -728,8 +730,8 @@ func (c *KinesisVideoArchivedMedia) ListFragmentsRequest(input *ListFragmentsInp // See the AWS API reference guide for Amazon Kinesis Video Streams Archived Media's // API operation ListFragments for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // GetMedia throws this error when Kinesis Video Streams can't find the stream // that you specified. // @@ -739,15 +741,15 @@ func (c *KinesisVideoArchivedMedia) ListFragmentsRequest(input *ListFragmentsInp // a session with a PlaybackMode of LIVE is requested for a stream that has // no fragments within the last 30 seconds. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // A specified parameter exceeds its restrictions, is not supported, or can't // be used. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Status Code: 403, The caller is not authorized to perform an operation on // the given stream, or the token has expired. // @@ -825,6 +827,63 @@ func (c *KinesisVideoArchivedMedia) ListFragmentsPagesWithContext(ctx aws.Contex return p.Err() } +// Kinesis Video Streams has throttled the request because you have exceeded +// the limit of allowed client calls. Try making the call later. +type ClientLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ClientLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientLimitExceededException) GoString() string { + return s.String() +} + +func newErrorClientLimitExceededException(v protocol.ResponseMetadata) error { + return &ClientLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientLimitExceededException) Code() string { + return "ClientLimitExceededException" +} + +// Message returns the exception's message. +func (s ClientLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientLimitExceededException) OrigErr() error { + return nil +} + +func (s ClientLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the range of timestamps for the requested media, and the source // of the timestamps. type DASHFragmentSelector struct { @@ -1812,6 +1871,120 @@ func (s *HLSTimestampRange) SetStartTimestamp(v time.Time) *HLSTimestampRange { return s } +// A specified parameter exceeds its restrictions, is not supported, or can't +// be used. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The codec private data in at least one of the tracks of the video stream +// is not valid for this operation. +type InvalidCodecPrivateDataException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidCodecPrivateDataException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCodecPrivateDataException) GoString() string { + return s.String() +} + +func newErrorInvalidCodecPrivateDataException(v protocol.ResponseMetadata) error { + return &InvalidCodecPrivateDataException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCodecPrivateDataException) Code() string { + return "InvalidCodecPrivateDataException" +} + +// Message returns the exception's message. +func (s InvalidCodecPrivateDataException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCodecPrivateDataException) OrigErr() error { + return nil +} + +func (s InvalidCodecPrivateDataException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCodecPrivateDataException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCodecPrivateDataException) RequestID() string { + return s.respMetadata.RequestID +} + type ListFragmentsInput struct { _ struct{} `type:"structure"` @@ -1930,6 +2103,239 @@ func (s *ListFragmentsOutput) SetNextToken(v string) *ListFragmentsOutput { return s } +// No codec private data was found in at least one of tracks of the video stream. +type MissingCodecPrivateDataException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MissingCodecPrivateDataException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingCodecPrivateDataException) GoString() string { + return s.String() +} + +func newErrorMissingCodecPrivateDataException(v protocol.ResponseMetadata) error { + return &MissingCodecPrivateDataException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingCodecPrivateDataException) Code() string { + return "MissingCodecPrivateDataException" +} + +// Message returns the exception's message. +func (s MissingCodecPrivateDataException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingCodecPrivateDataException) OrigErr() error { + return nil +} + +func (s MissingCodecPrivateDataException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingCodecPrivateDataException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingCodecPrivateDataException) RequestID() string { + return s.respMetadata.RequestID +} + +// A streaming session was requested for a stream that does not retain data +// (that is, has a DataRetentionInHours of 0). +type NoDataRetentionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NoDataRetentionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoDataRetentionException) GoString() string { + return s.String() +} + +func newErrorNoDataRetentionException(v protocol.ResponseMetadata) error { + return &NoDataRetentionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoDataRetentionException) Code() string { + return "NoDataRetentionException" +} + +// Message returns the exception's message. +func (s NoDataRetentionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoDataRetentionException) OrigErr() error { + return nil +} + +func (s NoDataRetentionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoDataRetentionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoDataRetentionException) RequestID() string { + return s.respMetadata.RequestID +} + +// Status Code: 403, The caller is not authorized to perform an operation on +// the given stream, or the token has expired. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + +// GetMedia throws this error when Kinesis Video Streams can't find the stream +// that you specified. +// +// GetHLSStreamingSessionURL and GetDASHStreamingSessionURL throw this error +// if a session with a PlaybackMode of ON_DEMAND or LIVE_REPLAYis requested +// for a stream that has no fragments within the requested time range, or if +// a session with a PlaybackMode of LIVE is requested for a stream that has +// no fragments within the last 30 seconds. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The range of timestamps for which to return fragments. type TimestampRange struct { _ struct{} `type:"structure"` @@ -1983,6 +2389,65 @@ func (s *TimestampRange) SetStartTimestamp(v time.Time) *TimestampRange { return s } +// The type of the media (for example, h.264 or h.265 video or ACC or G.711 +// audio) could not be determined from the codec IDs of the tracks in the first +// fragment for a playback session. The codec ID for track 1 should be V_MPEG/ISO/AVC +// and, optionally, the codec ID for track 2 should be A_AAC. +type UnsupportedStreamMediaTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedStreamMediaTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedStreamMediaTypeException) GoString() string { + return s.String() +} + +func newErrorUnsupportedStreamMediaTypeException(v protocol.ResponseMetadata) error { + return &UnsupportedStreamMediaTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedStreamMediaTypeException) Code() string { + return "UnsupportedStreamMediaTypeException" +} + +// Message returns the exception's message. +func (s UnsupportedStreamMediaTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedStreamMediaTypeException) OrigErr() error { + return nil +} + +func (s UnsupportedStreamMediaTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedStreamMediaTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedStreamMediaTypeException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ContainerFormatFragmentedMp4 is a ContainerFormat enum value ContainerFormatFragmentedMp4 = "FRAGMENTED_MP4" diff --git a/service/kinesisvideoarchivedmedia/errors.go b/service/kinesisvideoarchivedmedia/errors.go index 2a561a9f3bd..5936f4d1201 100644 --- a/service/kinesisvideoarchivedmedia/errors.go +++ b/service/kinesisvideoarchivedmedia/errors.go @@ -2,6 +2,10 @@ package kinesisvideoarchivedmedia +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeClientLimitExceededException for service response error code @@ -67,3 +71,14 @@ const ( // and, optionally, the codec ID for track 2 should be A_AAC. ErrCodeUnsupportedStreamMediaTypeException = "UnsupportedStreamMediaTypeException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ClientLimitExceededException": newErrorClientLimitExceededException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidCodecPrivateDataException": newErrorInvalidCodecPrivateDataException, + "MissingCodecPrivateDataException": newErrorMissingCodecPrivateDataException, + "NoDataRetentionException": newErrorNoDataRetentionException, + "NotAuthorizedException": newErrorNotAuthorizedException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "UnsupportedStreamMediaTypeException": newErrorUnsupportedStreamMediaTypeException, +} diff --git a/service/kinesisvideoarchivedmedia/service.go b/service/kinesisvideoarchivedmedia/service.go index 84bbf027120..6dd8c662b6d 100644 --- a/service/kinesisvideoarchivedmedia/service.go +++ b/service/kinesisvideoarchivedmedia/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kinesisvideomedia/api.go b/service/kinesisvideomedia/api.go index cd0dafd824f..a8fa1aa4f4c 100644 --- a/service/kinesisvideomedia/api.go +++ b/service/kinesisvideomedia/api.go @@ -3,12 +3,14 @@ package kinesisvideomedia import ( + "fmt" "io" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetMedia = "GetMedia" @@ -103,29 +105,29 @@ func (c *KinesisVideoMedia) GetMediaRequest(input *GetMediaInput) (req *request. // See the AWS API reference guide for Amazon Kinesis Video Streams Media's // API operation GetMedia for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Status Code: 404, The stream with the given name does not exist. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // Status Code: 403, The caller is not authorized to perform an operation on // the given stream, or the token has expired. // -// * ErrCodeInvalidEndpointException "InvalidEndpointException" +// * InvalidEndpointException // Status Code: 400, Caller used wrong endpoint to write data to a stream. On // receiving such an exception, the user must call GetDataEndpoint with AccessMode // set to "READ" and use the endpoint Kinesis Video returns in the next GetMedia // call. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client calls. Try making the call later. // -// * ErrCodeConnectionLimitExceededException "ConnectionLimitExceededException" +// * ConnectionLimitExceededException // Kinesis Video Streams has throttled the request because you have exceeded // the limit of allowed client connections. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesis-video-media-2017-09-30/GetMedia @@ -150,6 +152,120 @@ func (c *KinesisVideoMedia) GetMediaWithContext(ctx aws.Context, input *GetMedia return out, req.Send() } +// Kinesis Video Streams has throttled the request because you have exceeded +// the limit of allowed client calls. Try making the call later. +type ClientLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ClientLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientLimitExceededException) GoString() string { + return s.String() +} + +func newErrorClientLimitExceededException(v protocol.ResponseMetadata) error { + return &ClientLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientLimitExceededException) Code() string { + return "ClientLimitExceededException" +} + +// Message returns the exception's message. +func (s ClientLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientLimitExceededException) OrigErr() error { + return nil +} + +func (s ClientLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Kinesis Video Streams has throttled the request because you have exceeded +// the limit of allowed client connections. +type ConnectionLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConnectionLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConnectionLimitExceededException) GoString() string { + return s.String() +} + +func newErrorConnectionLimitExceededException(v protocol.ResponseMetadata) error { + return &ConnectionLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConnectionLimitExceededException) Code() string { + return "ConnectionLimitExceededException" +} + +// Message returns the exception's message. +func (s ConnectionLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConnectionLimitExceededException) OrigErr() error { + return nil +} + +func (s ConnectionLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConnectionLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConnectionLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type GetMediaInput struct { _ struct{} `type:"structure"` @@ -297,6 +413,234 @@ func (s *GetMediaOutput) SetPayload(v io.ReadCloser) *GetMediaOutput { return s } +// The value for this input parameter is invalid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// Status Code: 400, Caller used wrong endpoint to write data to a stream. On +// receiving such an exception, the user must call GetDataEndpoint with AccessMode +// set to "READ" and use the endpoint Kinesis Video returns in the next GetMedia +// call. +type InvalidEndpointException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidEndpointException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEndpointException) GoString() string { + return s.String() +} + +func newErrorInvalidEndpointException(v protocol.ResponseMetadata) error { + return &InvalidEndpointException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEndpointException) Code() string { + return "InvalidEndpointException" +} + +// Message returns the exception's message. +func (s InvalidEndpointException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEndpointException) OrigErr() error { + return nil +} + +func (s InvalidEndpointException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEndpointException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEndpointException) RequestID() string { + return s.respMetadata.RequestID +} + +// Status Code: 403, The caller is not authorized to perform an operation on +// the given stream, or the token has expired. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Status Code: 404, The stream with the given name does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Identifies the chunk on the Kinesis video stream where you want the GetMedia // API to start returning media data. You have the following options to identify // the starting chunk: diff --git a/service/kinesisvideomedia/errors.go b/service/kinesisvideomedia/errors.go index 0df527edeb4..ac403a2a6ad 100644 --- a/service/kinesisvideomedia/errors.go +++ b/service/kinesisvideomedia/errors.go @@ -2,6 +2,10 @@ package kinesisvideomedia +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeClientLimitExceededException for service response error code @@ -46,3 +50,12 @@ const ( // Status Code: 404, The stream with the given name does not exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ClientLimitExceededException": newErrorClientLimitExceededException, + "ConnectionLimitExceededException": newErrorConnectionLimitExceededException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidEndpointException": newErrorInvalidEndpointException, + "NotAuthorizedException": newErrorNotAuthorizedException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/kinesisvideomedia/service.go b/service/kinesisvideomedia/service.go index df97d5c69de..37b2b561007 100644 --- a/service/kinesisvideomedia/service.go +++ b/service/kinesisvideomedia/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kinesisvideosignalingchannels/api.go b/service/kinesisvideosignalingchannels/api.go index 14e6f921feb..83f3cc0cc73 100644 --- a/service/kinesisvideosignalingchannels/api.go +++ b/service/kinesisvideosignalingchannels/api.go @@ -3,9 +3,12 @@ package kinesisvideosignalingchannels import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetIceServerConfig = "GetIceServerConfig" @@ -76,26 +79,26 @@ func (c *KinesisVideoSignalingChannels) GetIceServerConfigRequest(input *GetIceS // See the AWS API reference guide for Amazon Kinesis Video Signaling Channels's // API operation GetIceServerConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidClientException "InvalidClientException" +// Returned Error Types: +// * InvalidClientException // The specified client is invalid. // -// * ErrCodeSessionExpiredException "SessionExpiredException" +// * SessionExpiredException // If the client session is expired. Once the client is connected, the session // is valid for 45 minutes. Client should reconnect to the channel to continue // sending/receiving messages. // -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// * ClientLimitExceededException // Your request was throttled because you have exceeded the limit of allowed // client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource is not found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesis-video-signaling-2019-12-04/GetIceServerConfig @@ -178,18 +181,18 @@ func (c *KinesisVideoSignalingChannels) SendAlexaOfferToMasterRequest(input *Sen // See the AWS API reference guide for Amazon Kinesis Video Signaling Channels's // API operation SendAlexaOfferToMaster for usage and error information. // -// Returned Error Codes: -// * ErrCodeClientLimitExceededException "ClientLimitExceededException" +// Returned Error Types: +// * ClientLimitExceededException // Your request was throttled because you have exceeded the limit of allowed // client calls. Try making the call later. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource is not found. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The value for this input parameter is invalid. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The caller is not authorized to perform this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kinesis-video-signaling-2019-12-04/SendAlexaOfferToMaster @@ -214,6 +217,63 @@ func (c *KinesisVideoSignalingChannels) SendAlexaOfferToMasterWithContext(ctx aw return out, req.Send() } +// Your request was throttled because you have exceeded the limit of allowed +// client calls. Try making the call later. +type ClientLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ClientLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClientLimitExceededException) GoString() string { + return s.String() +} + +func newErrorClientLimitExceededException(v protocol.ResponseMetadata) error { + return &ClientLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClientLimitExceededException) Code() string { + return "ClientLimitExceededException" +} + +// Message returns the exception's message. +func (s ClientLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClientLimitExceededException) OrigErr() error { + return nil +} + +func (s ClientLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClientLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClientLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type GetIceServerConfigInput struct { _ struct{} `type:"structure"` @@ -367,6 +427,230 @@ func (s *IceServer) SetUsername(v string) *IceServer { return s } +// The value for this input parameter is invalid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified client is invalid. +type InvalidClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidClientException) GoString() string { + return s.String() +} + +func newErrorInvalidClientException(v protocol.ResponseMetadata) error { + return &InvalidClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidClientException) Code() string { + return "InvalidClientException" +} + +// Message returns the exception's message. +func (s InvalidClientException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidClientException) OrigErr() error { + return nil +} + +func (s InvalidClientException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidClientException) RequestID() string { + return s.respMetadata.RequestID +} + +// The caller is not authorized to perform this operation. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource is not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type SendAlexaOfferToMasterInput struct { _ struct{} `type:"structure"` @@ -465,6 +749,64 @@ func (s *SendAlexaOfferToMasterOutput) SetAnswer(v string) *SendAlexaOfferToMast return s } +// If the client session is expired. Once the client is connected, the session +// is valid for 45 minutes. Client should reconnect to the channel to continue +// sending/receiving messages. +type SessionExpiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SessionExpiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SessionExpiredException) GoString() string { + return s.String() +} + +func newErrorSessionExpiredException(v protocol.ResponseMetadata) error { + return &SessionExpiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SessionExpiredException) Code() string { + return "SessionExpiredException" +} + +// Message returns the exception's message. +func (s SessionExpiredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SessionExpiredException) OrigErr() error { + return nil +} + +func (s SessionExpiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SessionExpiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SessionExpiredException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ServiceTurn is a Service enum value ServiceTurn = "TURN" diff --git a/service/kinesisvideosignalingchannels/errors.go b/service/kinesisvideosignalingchannels/errors.go index 7c596d11177..11a9de5b97a 100644 --- a/service/kinesisvideosignalingchannels/errors.go +++ b/service/kinesisvideosignalingchannels/errors.go @@ -2,6 +2,10 @@ package kinesisvideosignalingchannels +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeClientLimitExceededException for service response error code @@ -43,3 +47,12 @@ const ( // sending/receiving messages. ErrCodeSessionExpiredException = "SessionExpiredException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ClientLimitExceededException": newErrorClientLimitExceededException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidClientException": newErrorInvalidClientException, + "NotAuthorizedException": newErrorNotAuthorizedException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "SessionExpiredException": newErrorSessionExpiredException, +} diff --git a/service/kinesisvideosignalingchannels/service.go b/service/kinesisvideosignalingchannels/service.go index c8a42ca01e7..77f0f509550 100644 --- a/service/kinesisvideosignalingchannels/service.go +++ b/service/kinesisvideosignalingchannels/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/kms/api.go b/service/kms/api.go index 2d35146be7b..caa94ee95a6 100644 --- a/service/kms/api.go +++ b/service/kms/api.go @@ -76,24 +76,24 @@ func (c *KMS) CancelKeyDeletionRequest(input *CancelKeyDeletionInput) (req *requ // See the AWS API reference guide for AWS Key Management Service's // API operation CancelKeyDeletion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -214,15 +214,15 @@ func (c *KMS) ConnectCustomKeyStoreRequest(input *ConnectCustomKeyStoreInput) (r // See the AWS API reference guide for AWS Key Management Service's // API operation ConnectCustomKeyStore for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmClusterNotActiveException "CloudHsmClusterNotActiveException" +// Returned Error Types: +// * CloudHsmClusterNotActiveException // The request was rejected because the AWS CloudHSM cluster that is associated // with the custom key store is not active. Initialize and activate the cluster // and try the command again. For detailed instructions, see Getting Started // (https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) // in the AWS CloudHSM User Guide. // -// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// * CustomKeyStoreInvalidStateException // The request was rejected because of the ConnectionState of the custom key // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores // operation. @@ -241,15 +241,15 @@ func (c *KMS) ConnectCustomKeyStoreRequest(input *ConnectCustomKeyStoreInput) (r // with a ConnectionState of DISCONNECTING or FAILED. This operation is valid // for all other ConnectionState values. // -// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// * CustomKeyStoreNotFoundException // The request was rejected because AWS KMS cannot find a custom key store with // the specified key store name or ID. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// * CloudHsmClusterInvalidConfigurationException // The request was rejected because the associated AWS CloudHSM cluster did // not meet the configuration requirements for a custom key store. // @@ -420,32 +420,32 @@ func (c *KMS) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation CreateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// Returned Error Types: +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The request was rejected because it attempted to create a resource that already // exists. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidAliasNameException "InvalidAliasNameException" +// * InvalidAliasNameException // The request was rejected because the specified alias name is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because a limit was exceeded. For more information, // see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -550,8 +550,8 @@ func (c *KMS) CreateCustomKeyStoreRequest(input *CreateCustomKeyStoreInput) (req // See the AWS API reference guide for AWS Key Management Service's // API operation CreateCustomKeyStore for usage and error information. // -// Returned Error Codes: -// * ErrCodeCloudHsmClusterInUseException "CloudHsmClusterInUseException" +// Returned Error Types: +// * CloudHsmClusterInUseException // The request was rejected because the specified AWS CloudHSM cluster is already // associated with a custom key store or it shares a backup history with a cluster // that is associated with a custom key store. Each custom key store must be @@ -561,28 +561,28 @@ func (c *KMS) CreateCustomKeyStoreRequest(input *CreateCustomKeyStoreInput) (req // view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) // operation. // -// * ErrCodeCustomKeyStoreNameInUseException "CustomKeyStoreNameInUseException" +// * CustomKeyStoreNameInUseException // The request was rejected because the specified custom key store name is already // assigned to another custom key store in the account. Try again with a custom // key store name that is unique in the account. // -// * ErrCodeCloudHsmClusterNotFoundException "CloudHsmClusterNotFoundException" +// * CloudHsmClusterNotFoundException // The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster // with the specified cluster ID. Retry the request with a different cluster // ID. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeCloudHsmClusterNotActiveException "CloudHsmClusterNotActiveException" +// * CloudHsmClusterNotActiveException // The request was rejected because the AWS CloudHSM cluster that is associated // with the custom key store is not active. Initialize and activate the cluster // and try the command again. For detailed instructions, see Getting Started // (https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) // in the AWS CloudHSM User Guide. // -// * ErrCodeIncorrectTrustAnchorException "IncorrectTrustAnchorException" +// * IncorrectTrustAnchorException // The request was rejected because the trust anchor certificate in the request // is not the trust anchor certificate for the specified AWS CloudHSM cluster. // @@ -590,7 +590,7 @@ func (c *KMS) CreateCustomKeyStoreRequest(input *CreateCustomKeyStoreInput) (req // you create the trust anchor certificate and save it in the customerCA.crt // file. // -// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// * CloudHsmClusterInvalidConfigurationException // The request was rejected because the associated AWS CloudHSM cluster did // not meet the configuration requirements for a custom key store. // @@ -739,35 +739,35 @@ func (c *KMS) CreateGrantRequest(input *CreateGrantInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation CreateGrant for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because a limit was exceeded. For more information, // see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -910,40 +910,40 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // See the AWS API reference guide for AWS Key Management Service's // API operation CreateKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// Returned Error Types: +// * MalformedPolicyDocumentException // The request was rejected because the specified policy is not syntactically // or semantically correct. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because a limit was exceeded. For more information, // see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeTagException "TagException" +// * TagException // The request was rejected because one or more tags are not valid. // -// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// * CustomKeyStoreNotFoundException // The request was rejected because AWS KMS cannot find a custom key store with // the specified key store name or ID. // -// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// * CustomKeyStoreInvalidStateException // The request was rejected because of the ConnectionState of the custom key // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores // operation. @@ -962,7 +962,7 @@ func (c *KMS) CreateKeyRequest(input *CreateKeyInput) (req *request.Request, out // with a ConnectionState of DISCONNECTING or FAILED. This operation is valid // for all other ConnectionState values. // -// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// * CloudHsmClusterInvalidConfigurationException // The request was rejected because the associated AWS CloudHSM cluster did // not meet the configuration requirements for a custom key store. // @@ -1114,15 +1114,15 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // See the AWS API reference guide for AWS Key Management Service's // API operation Decrypt for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" +// * InvalidCiphertextException // From the Decrypt or ReEncrypt operation, the request was rejected because // the specified ciphertext, or additional authenticated data incorporated into // the ciphertext, such as the encryption context, is corrupted, missing, or @@ -1131,16 +1131,16 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // From the ImportKeyMaterial operation, the request was rejected because AWS // KMS could not decrypt the encrypted (wrapped) key material. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeIncorrectKeyException "IncorrectKeyException" +// * IncorrectKeyException // The request was rejected because the specified CMK cannot decrypt the data. // The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request // must identify the same CMK that was used to encrypt the ciphertext. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -1155,18 +1155,18 @@ func (c *KMS) DecryptRequest(input *DecryptInput) (req *request.Request, output // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1260,20 +1260,20 @@ func (c *KMS) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation DeleteAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// Returned Error Types: +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1385,14 +1385,14 @@ func (c *KMS) DeleteCustomKeyStoreRequest(input *DeleteCustomKeyStoreInput) (req // See the AWS API reference guide for AWS Key Management Service's // API operation DeleteCustomKeyStore for usage and error information. // -// Returned Error Codes: -// * ErrCodeCustomKeyStoreHasCMKsException "CustomKeyStoreHasCMKsException" +// Returned Error Types: +// * CustomKeyStoreHasCMKsException // The request was rejected because the custom key store contains AWS KMS customer // master keys (CMKs). After verifying that you do not need to use the CMKs, // use the ScheduleKeyDeletion operation to delete the CMKs. After they are // deleted, you can delete the custom key store. // -// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// * CustomKeyStoreInvalidStateException // The request was rejected because of the ConnectionState of the custom key // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores // operation. @@ -1411,11 +1411,11 @@ func (c *KMS) DeleteCustomKeyStoreRequest(input *DeleteCustomKeyStoreInput) (req // with a ConnectionState of DISCONNECTING or FAILED. This operation is valid // for all other ConnectionState values. // -// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// * CustomKeyStoreNotFoundException // The request was rejected because AWS KMS cannot find a custom key store with // the specified key store name or ID. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -1509,28 +1509,28 @@ func (c *KMS) DeleteImportedKeyMaterialRequest(input *DeleteImportedKeyMaterialI // See the AWS API reference guide for AWS Key Management Service's // API operation DeleteImportedKeyMaterial for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArnException "InvalidArnException" +// Returned Error Types: +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1639,12 +1639,12 @@ func (c *KMS) DescribeCustomKeyStoresRequest(input *DescribeCustomKeyStoresInput // See the AWS API reference guide for AWS Key Management Service's // API operation DescribeCustomKeyStores for usage and error information. // -// Returned Error Codes: -// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// Returned Error Types: +// * CustomKeyStoreNotFoundException // The request was rejected because AWS KMS cannot find a custom key store with // the specified key store name or ID. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -1757,20 +1757,20 @@ func (c *KMS) DescribeKeyRequest(input *DescribeKeyInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation DescribeKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -1860,24 +1860,24 @@ func (c *KMS) DisableKeyRequest(input *DisableKeyInput) (req *request.Request, o // See the AWS API reference guide for AWS Key Management Service's // API operation DisableKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1970,27 +1970,27 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re // See the AWS API reference guide for AWS Key Management Service's // API operation DisableKeyRotation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -1998,7 +1998,7 @@ func (c *KMS) DisableKeyRotationRequest(input *DisableKeyRotationInput) (req *re // Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide . // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -2097,8 +2097,8 @@ func (c *KMS) DisconnectCustomKeyStoreRequest(input *DisconnectCustomKeyStoreInp // See the AWS API reference guide for AWS Key Management Service's // API operation DisconnectCustomKeyStore for usage and error information. // -// Returned Error Codes: -// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// Returned Error Types: +// * CustomKeyStoreInvalidStateException // The request was rejected because of the ConnectionState of the custom key // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores // operation. @@ -2117,11 +2117,11 @@ func (c *KMS) DisconnectCustomKeyStoreRequest(input *DisconnectCustomKeyStoreInp // with a ConnectionState of DISCONNECTING or FAILED. This operation is valid // for all other ConnectionState values. // -// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// * CustomKeyStoreNotFoundException // The request was rejected because AWS KMS cannot find a custom key store with // the specified key store name or ID. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -2207,29 +2207,29 @@ func (c *KMS) EnableKeyRequest(input *EnableKeyInput) (req *request.Request, out // See the AWS API reference guide for AWS Key Management Service's // API operation EnableKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because a limit was exceeded. For more information, // see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2322,27 +2322,27 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ // See the AWS API reference guide for AWS Key Management Service's // API operation EnableKeyRotation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2350,7 +2350,7 @@ func (c *KMS) EnableKeyRotationRequest(input *EnableKeyRotationInput) (req *requ // Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide . // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -2489,23 +2489,23 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // See the AWS API reference guide for AWS Key Management Service's // API operation Encrypt for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -2520,14 +2520,14 @@ func (c *KMS) EncryptRequest(input *EncryptInput) (req *request.Request, output // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2663,23 +2663,23 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // See the AWS API reference guide for AWS Key Management Service's // API operation GenerateDataKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -2694,14 +2694,14 @@ func (c *KMS) GenerateDataKeyRequest(input *GenerateDataKeyInput) (req *request. // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2819,23 +2819,23 @@ func (c *KMS) GenerateDataKeyPairRequest(input *GenerateDataKeyPairInput) (req * // See the AWS API reference guide for AWS Key Management Service's // API operation GenerateDataKeyPair for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -2850,14 +2850,14 @@ func (c *KMS) GenerateDataKeyPairRequest(input *GenerateDataKeyPairInput) (req * // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -2969,23 +2969,23 @@ func (c *KMS) GenerateDataKeyPairWithoutPlaintextRequest(input *GenerateDataKeyP // See the AWS API reference guide for AWS Key Management Service's // API operation GenerateDataKeyPairWithoutPlaintext for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -3000,14 +3000,14 @@ func (c *KMS) GenerateDataKeyPairWithoutPlaintextRequest(input *GenerateDataKeyP // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3135,23 +3135,23 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho // See the AWS API reference guide for AWS Key Management Service's // API operation GenerateDataKeyWithoutPlaintext for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -3166,14 +3166,14 @@ func (c *KMS) GenerateDataKeyWithoutPlaintextRequest(input *GenerateDataKeyWitho // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3265,20 +3265,20 @@ func (c *KMS) GenerateRandomRequest(input *GenerateRandomInput) (req *request.Re // See the AWS API reference guide for AWS Key Management Service's // API operation GenerateRandom for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// Returned Error Types: +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// * CustomKeyStoreNotFoundException // The request was rejected because AWS KMS cannot find a custom key store with // the specified key store name or ID. // -// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// * CustomKeyStoreInvalidStateException // The request was rejected because of the ConnectionState of the custom key // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores // operation. @@ -3373,24 +3373,24 @@ func (c *KMS) GetKeyPolicyRequest(input *GetKeyPolicyInput) (req *request.Reques // See the AWS API reference guide for AWS Key Management Service's // API operation GetKeyPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3494,24 +3494,24 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req // See the AWS API reference guide for AWS Key Management Service's // API operation GetKeyRotationStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3519,7 +3519,7 @@ func (c *KMS) GetKeyRotationStatusRequest(input *GetKeyRotationStatusInput) (req // Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide . // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // @@ -3621,28 +3621,28 @@ func (c *KMS) GetParametersForImportRequest(input *GetParametersForImportInput) // See the AWS API reference guide for AWS Key Management Service's // API operation GetParametersForImport for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArnException "InvalidArnException" +// Returned Error Types: +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3765,34 +3765,34 @@ func (c *KMS) GetPublicKeyRequest(input *GetPublicKeyInput) (req *request.Reques // See the AWS API reference guide for AWS Key Management Service's // API operation GetPublicKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -3807,11 +3807,11 @@ func (c *KMS) GetPublicKeyRequest(input *GetPublicKeyInput) (req *request.Reques // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3940,28 +3940,28 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // See the AWS API reference guide for AWS Key Management Service's // API operation ImportKeyMaterial for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArnException "InvalidArnException" +// Returned Error Types: +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -3969,7 +3969,7 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide . // -// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" +// * InvalidCiphertextException // From the Decrypt or ReEncrypt operation, the request was rejected because // the specified ciphertext, or additional authenticated data incorporated into // the ciphertext, such as the encryption context, is corrupted, missing, or @@ -3978,17 +3978,17 @@ func (c *KMS) ImportKeyMaterialRequest(input *ImportKeyMaterialInput) (req *requ // From the ImportKeyMaterial operation, the request was rejected because AWS // KMS could not decrypt the encrypted (wrapped) key material. // -// * ErrCodeIncorrectKeyMaterialException "IncorrectKeyMaterialException" +// * IncorrectKeyMaterialException // The request was rejected because the key material in the request is, expired, // invalid, or is not the same key material that was previously imported into // this customer master key (CMK). // -// * ErrCodeExpiredImportTokenException "ExpiredImportTokenException" +// * ExpiredImportTokenException // The request was rejected because the specified import token is expired. Use // GetParametersForImport to get a new import token and public key, use the // new public key to encrypt the key material, and then try the request again. // -// * ErrCodeInvalidImportTokenException "InvalidImportTokenException" +// * InvalidImportTokenException // The request was rejected because the provided import token is invalid or // is associated with a different customer master key (CMK). // @@ -4088,24 +4088,24 @@ func (c *KMS) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation ListAliases for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// Returned Error Types: +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidMarkerException "InvalidMarkerException" +// * InvalidMarkerException // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // @@ -4245,28 +4245,28 @@ func (c *KMS) ListGrantsRequest(input *ListGrantsInput) (req *request.Request, o // See the AWS API reference guide for AWS Key Management Service's // API operation ListGrants for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidMarkerException "InvalidMarkerException" +// * InvalidMarkerException // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -4410,24 +4410,24 @@ func (c *KMS) ListKeyPoliciesRequest(input *ListKeyPoliciesInput) (req *request. // See the AWS API reference guide for AWS Key Management Service's // API operation ListKeyPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -4569,16 +4569,16 @@ func (c *KMS) ListKeysRequest(input *ListKeysInput) (req *request.Request, outpu // See the AWS API reference guide for AWS Key Management Service's // API operation ListKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// Returned Error Types: +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidMarkerException "InvalidMarkerException" +// * InvalidMarkerException // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // @@ -4711,20 +4711,20 @@ func (c *KMS) ListResourceTagsRequest(input *ListResourceTagsInput) (req *reques // See the AWS API reference guide for AWS Key Management Service's // API operation ListResourceTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "KMSInternalException" +// Returned Error Types: +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInvalidMarkerException "InvalidMarkerException" +// * InvalidMarkerException // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // @@ -4807,24 +4807,24 @@ func (c *KMS) ListRetirableGrantsRequest(input *ListRetirableGrantsInput) (req * // See the AWS API reference guide for AWS Key Management Service's // API operation ListRetirableGrants for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// Returned Error Types: +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidMarkerException "InvalidMarkerException" +// * InvalidMarkerException // The request was rejected because the marker that specifies where pagination // should next begin is not valid. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // @@ -4908,37 +4908,37 @@ func (c *KMS) PutKeyPolicyRequest(input *PutKeyPolicyInput) (req *request.Reques // See the AWS API reference guide for AWS Key Management Service's // API operation PutKeyPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// * MalformedPolicyDocumentException // The request was rejected because the specified policy is not syntactically // or semantically correct. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // The request was rejected because a specified parameter is not supported or // a specified resource is not valid for this operation. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because a limit was exceeded. For more information, // see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5081,15 +5081,15 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // See the AWS API reference guide for AWS Key Management Service's // API operation ReEncrypt for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeInvalidCiphertextException "InvalidCiphertextException" +// * InvalidCiphertextException // From the Decrypt or ReEncrypt operation, the request was rejected because // the specified ciphertext, or additional authenticated data incorporated into // the ciphertext, such as the encryption context, is corrupted, missing, or @@ -5098,20 +5098,20 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // From the ImportKeyMaterial operation, the request was rejected because AWS // KMS could not decrypt the encrypted (wrapped) key material. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeIncorrectKeyException "IncorrectKeyException" +// * IncorrectKeyException // The request was rejected because the specified CMK cannot decrypt the data. // The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request // must identify the same CMK that was used to encrypt the ciphertext. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -5126,14 +5126,14 @@ func (c *KMS) ReEncryptRequest(input *ReEncryptInput) (req *request.Request, out // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5232,30 +5232,30 @@ func (c *KMS) RetireGrantRequest(input *RetireGrantInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation RetireGrant for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArnException "InvalidArnException" +// Returned Error Types: +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInvalidGrantIdException "InvalidGrantIdException" +// * InvalidGrantIdException // The request was rejected because the specified GrantId is not valid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5343,27 +5343,27 @@ func (c *KMS) RevokeGrantRequest(input *RevokeGrantInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation RevokeGrant for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInvalidGrantIdException "InvalidGrantIdException" +// * InvalidGrantIdException // The request was rejected because the specified GrantId is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5474,24 +5474,24 @@ func (c *KMS) ScheduleKeyDeletionRequest(input *ScheduleKeyDeletionInput) (req * // See the AWS API reference guide for AWS Key Management Service's // API operation ScheduleKeyDeletion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5611,23 +5611,23 @@ func (c *KMS) SignRequest(input *SignInput) (req *request.Request, output *SignO // See the AWS API reference guide for AWS Key Management Service's // API operation Sign for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -5642,14 +5642,14 @@ func (c *KMS) SignRequest(input *SignInput) (req *request.Request, output *SignO // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5748,20 +5748,20 @@ func (c *KMS) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "KMSInternalException" +// Returned Error Types: +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5769,12 +5769,12 @@ func (c *KMS) TagResourceRequest(input *TagResourceInput) (req *request.Request, // Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide . // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because a limit was exceeded. For more information, // see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) // in the AWS Key Management Service Developer Guide. // -// * ErrCodeTagException "TagException" +// * TagException // The request was rejected because one or more tags are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResource @@ -5861,20 +5861,20 @@ func (c *KMS) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS Key Management Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "KMSInternalException" +// Returned Error Types: +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -5882,7 +5882,7 @@ func (c *KMS) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide . // -// * ErrCodeTagException "TagException" +// * TagException // The request was rejected because one or more tags are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/UntagResource @@ -5983,20 +5983,20 @@ func (c *KMS) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, // See the AWS API reference guide for AWS Key Management Service's // API operation UpdateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// Returned Error Types: +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -6113,22 +6113,22 @@ func (c *KMS) UpdateCustomKeyStoreRequest(input *UpdateCustomKeyStoreInput) (req // See the AWS API reference guide for AWS Key Management Service's // API operation UpdateCustomKeyStore for usage and error information. // -// Returned Error Codes: -// * ErrCodeCustomKeyStoreNotFoundException "CustomKeyStoreNotFoundException" +// Returned Error Types: +// * CustomKeyStoreNotFoundException // The request was rejected because AWS KMS cannot find a custom key store with // the specified key store name or ID. // -// * ErrCodeCustomKeyStoreNameInUseException "CustomKeyStoreNameInUseException" +// * CustomKeyStoreNameInUseException // The request was rejected because the specified custom key store name is already // assigned to another custom key store in the account. Try again with a custom // key store name that is unique in the account. // -// * ErrCodeCloudHsmClusterNotFoundException "CloudHsmClusterNotFoundException" +// * CloudHsmClusterNotFoundException // The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster // with the specified cluster ID. Retry the request with a different cluster // ID. // -// * ErrCodeCloudHsmClusterNotRelatedException "CloudHsmClusterNotRelatedException" +// * CloudHsmClusterNotRelatedException // The request was rejected because the specified AWS CloudHSM cluster has a // different cluster certificate than the original cluster. You cannot use the // operation to specify an unrelated cluster. @@ -6142,7 +6142,7 @@ func (c *KMS) UpdateCustomKeyStoreRequest(input *UpdateCustomKeyStoreInput) (req // view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) // operation. // -// * ErrCodeCustomKeyStoreInvalidStateException "CustomKeyStoreInvalidStateException" +// * CustomKeyStoreInvalidStateException // The request was rejected because of the ConnectionState of the custom key // store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores // operation. @@ -6161,18 +6161,18 @@ func (c *KMS) UpdateCustomKeyStoreRequest(input *UpdateCustomKeyStoreInput) (req // with a ConnectionState of DISCONNECTING or FAILED. This operation is valid // for all other ConnectionState values. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeCloudHsmClusterNotActiveException "CloudHsmClusterNotActiveException" +// * CloudHsmClusterNotActiveException // The request was rejected because the AWS CloudHSM cluster that is associated // with the custom key store is not active. Initialize and activate the cluster // and try the command again. For detailed instructions, see Getting Started // (https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) // in the AWS CloudHSM User Guide. // -// * ErrCodeCloudHsmClusterInvalidConfigurationException "CloudHsmClusterInvalidConfigurationException" +// * CloudHsmClusterInvalidConfigurationException // The request was rejected because the associated AWS CloudHSM cluster did // not meet the configuration requirements for a custom key store. // @@ -6287,24 +6287,24 @@ func (c *KMS) UpdateKeyDescriptionRequest(input *UpdateKeyDescriptionInput) (req // See the AWS API reference guide for AWS Key Management Service's // API operation UpdateKeyDescription for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeInvalidArnException "InvalidArnException" +// * InvalidArnException // The request was rejected because a specified ARN, or an ARN in a key policy, // is not valid. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -6416,23 +6416,23 @@ func (c *KMS) VerifyRequest(input *VerifyInput) (req *request.Request, output *V // See the AWS API reference guide for AWS Key Management Service's // API operation Verify for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The request was rejected because the specified entity or resource could not // be found. // -// * ErrCodeDisabledException "DisabledException" +// * DisabledException // The request was rejected because the specified CMK is not enabled. // -// * ErrCodeKeyUnavailableException "KeyUnavailableException" +// * KeyUnavailableException // The request was rejected because the specified CMK was not available. You // can retry the request. // -// * ErrCodeDependencyTimeoutException "DependencyTimeoutException" +// * DependencyTimeoutException // The system timed out while trying to fulfill the request. The request can // be retried. // -// * ErrCodeInvalidKeyUsageException "InvalidKeyUsageException" +// * InvalidKeyUsageException // The request was rejected for one of the following reasons: // // * The KeyUsage value of the CMK is incompatible with the API operation. @@ -6447,14 +6447,14 @@ func (c *KMS) VerifyRequest(input *VerifyInput) (req *request.Request, output *V // To find the encryption or signing algorithms supported for a particular CMK, // use the DescribeKey operation. // -// * ErrCodeInvalidGrantTokenException "InvalidGrantTokenException" +// * InvalidGrantTokenException // The request was rejected because the specified grant token is not valid. // -// * ErrCodeInternalException "KMSInternalException" +// * InternalException // The request was rejected because an internal exception occurred. The request // can be retried. // -// * ErrCodeInvalidStateException "KMSInvalidStateException" +// * InvalidStateException // The request was rejected because the state of the specified resource is not // valid for this request. // @@ -6462,7 +6462,7 @@ func (c *KMS) VerifyRequest(input *VerifyInput) (req *request.Request, output *V // Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) // in the AWS Key Management Service Developer Guide . // -// * ErrCodeKMSInvalidSignatureException "KMSInvalidSignatureException" +// * KMSInvalidSignatureException // The request was rejected because the signature verification failed. Signature // verification fails when it cannot confirm that signature was produced by // signing the specified message with the specified CMK and signing algorithm. @@ -6531,6 +6531,63 @@ func (s *AliasListEntry) SetTargetKeyId(v string) *AliasListEntry { return s } +// The request was rejected because it attempted to create a resource that already +// exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + type CancelKeyDeletionInput struct { _ struct{} `type:"structure"` @@ -6606,6 +6663,339 @@ func (s *CancelKeyDeletionOutput) SetKeyId(v string) *CancelKeyDeletionOutput { return s } +// The request was rejected because the specified AWS CloudHSM cluster is already +// associated with a custom key store or it shares a backup history with a cluster +// that is associated with a custom key store. Each custom key store must be +// associated with a different AWS CloudHSM cluster. +// +// Clusters that share a backup history have the same cluster certificate. To +// view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) +// operation. +type CloudHsmClusterInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmClusterInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmClusterInUseException) GoString() string { + return s.String() +} + +func newErrorCloudHsmClusterInUseException(v protocol.ResponseMetadata) error { + return &CloudHsmClusterInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmClusterInUseException) Code() string { + return "CloudHsmClusterInUseException" +} + +// Message returns the exception's message. +func (s CloudHsmClusterInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmClusterInUseException) OrigErr() error { + return nil +} + +func (s CloudHsmClusterInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmClusterInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmClusterInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the associated AWS CloudHSM cluster did +// not meet the configuration requirements for a custom key store. +// +// * The cluster must be configured with private subnets in at least two +// different Availability Zones in the Region. +// +// * The security group for the cluster (https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html) +// (cloudhsm-cluster--sg) must include inbound rules and outbound +// rules that allow TCP traffic on ports 2223-2225. The Source in the inbound +// rules and the Destination in the outbound rules must match the security +// group ID. These rules are set by default when you create the cluster. +// Do not delete or change them. To get information about a particular security +// group, use the DescribeSecurityGroups (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSecurityGroups.html) +// operation. +// +// * The cluster must contain at least as many HSMs as the operation requires. +// To add HSMs, use the AWS CloudHSM CreateHsm (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_CreateHsm.html) +// operation. For the CreateCustomKeyStore, UpdateCustomKeyStore, and CreateKey +// operations, the AWS CloudHSM cluster must have at least two active HSMs, +// each in a different Availability Zone. For the ConnectCustomKeyStore operation, +// the AWS CloudHSM must contain at least one active HSM. +// +// For information about the requirements for an AWS CloudHSM cluster that is +// associated with a custom key store, see Assemble the Prerequisites (https://docs.aws.amazon.com/kms/latest/developerguide/create-keystore.html#before-keystore) +// in the AWS Key Management Service Developer Guide. For information about +// creating a private subnet for an AWS CloudHSM cluster, see Create a Private +// Subnet (https://docs.aws.amazon.com/cloudhsm/latest/userguide/create-subnets.html) +// in the AWS CloudHSM User Guide. For information about cluster security groups, +// see Configure a Default Security Group (https://docs.aws.amazon.com/cloudhsm/latest/userguide/configure-sg.html) +// in the AWS CloudHSM User Guide . +type CloudHsmClusterInvalidConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmClusterInvalidConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmClusterInvalidConfigurationException) GoString() string { + return s.String() +} + +func newErrorCloudHsmClusterInvalidConfigurationException(v protocol.ResponseMetadata) error { + return &CloudHsmClusterInvalidConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmClusterInvalidConfigurationException) Code() string { + return "CloudHsmClusterInvalidConfigurationException" +} + +// Message returns the exception's message. +func (s CloudHsmClusterInvalidConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmClusterInvalidConfigurationException) OrigErr() error { + return nil +} + +func (s CloudHsmClusterInvalidConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmClusterInvalidConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmClusterInvalidConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the AWS CloudHSM cluster that is associated +// with the custom key store is not active. Initialize and activate the cluster +// and try the command again. For detailed instructions, see Getting Started +// (https://docs.aws.amazon.com/cloudhsm/latest/userguide/getting-started.html) +// in the AWS CloudHSM User Guide. +type CloudHsmClusterNotActiveException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmClusterNotActiveException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmClusterNotActiveException) GoString() string { + return s.String() +} + +func newErrorCloudHsmClusterNotActiveException(v protocol.ResponseMetadata) error { + return &CloudHsmClusterNotActiveException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmClusterNotActiveException) Code() string { + return "CloudHsmClusterNotActiveException" +} + +// Message returns the exception's message. +func (s CloudHsmClusterNotActiveException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmClusterNotActiveException) OrigErr() error { + return nil +} + +func (s CloudHsmClusterNotActiveException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmClusterNotActiveException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmClusterNotActiveException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because AWS KMS cannot find the AWS CloudHSM cluster +// with the specified cluster ID. Retry the request with a different cluster +// ID. +type CloudHsmClusterNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmClusterNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmClusterNotFoundException) GoString() string { + return s.String() +} + +func newErrorCloudHsmClusterNotFoundException(v protocol.ResponseMetadata) error { + return &CloudHsmClusterNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmClusterNotFoundException) Code() string { + return "CloudHsmClusterNotFoundException" +} + +// Message returns the exception's message. +func (s CloudHsmClusterNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmClusterNotFoundException) OrigErr() error { + return nil +} + +func (s CloudHsmClusterNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmClusterNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmClusterNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the specified AWS CloudHSM cluster has a +// different cluster certificate than the original cluster. You cannot use the +// operation to specify an unrelated cluster. +// +// Specify a cluster that shares a backup history with the original cluster. +// This includes clusters that were created from a backup of the current cluster, +// and clusters that were created from the same backup that produced the current +// cluster. +// +// Clusters that share a backup history have the same cluster certificate. To +// view the cluster certificate of a cluster, use the DescribeClusters (https://docs.aws.amazon.com/cloudhsm/latest/APIReference/API_DescribeClusters.html) +// operation. +type CloudHsmClusterNotRelatedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CloudHsmClusterNotRelatedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CloudHsmClusterNotRelatedException) GoString() string { + return s.String() +} + +func newErrorCloudHsmClusterNotRelatedException(v protocol.ResponseMetadata) error { + return &CloudHsmClusterNotRelatedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CloudHsmClusterNotRelatedException) Code() string { + return "CloudHsmClusterNotRelatedException" +} + +// Message returns the exception's message. +func (s CloudHsmClusterNotRelatedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CloudHsmClusterNotRelatedException) OrigErr() error { + return nil +} + +func (s CloudHsmClusterNotRelatedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CloudHsmClusterNotRelatedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CloudHsmClusterNotRelatedException) RequestID() string { + return s.respMetadata.RequestID +} + type ConnectCustomKeyStoreInput struct { _ struct{} `type:"structure"` @@ -7311,97 +7701,343 @@ func (s *CreateKeyOutput) SetKeyMetadata(v *KeyMetadata) *CreateKeyOutput { return s } -// Contains information about each custom key store in the custom key store -// list. -type CustomKeyStoresListEntry struct { - _ struct{} `type:"structure"` - - // A unique identifier for the AWS CloudHSM cluster that is associated with - // the custom key store. - CloudHsmClusterId *string `min:"19" type:"string"` - - // Describes the connection error. Valid values are: - // - // * CLUSTER_NOT_FOUND - AWS KMS cannot find the AWS CloudHSM cluster with - // the specified cluster ID. - // - // * INSUFFICIENT_CLOUDHSM_HSMS - The associated AWS CloudHSM cluster does - // not contain any active HSMs. To connect a custom key store to its AWS - // CloudHSM cluster, the cluster must contain at least one active HSM. - // - // * INTERNAL_ERROR - AWS KMS could not complete the request due to an internal - // error. Retry the request. For ConnectCustomKeyStore requests, disconnect - // the custom key store before trying to connect again. - // - // * INVALID_CREDENTIALS - AWS KMS does not have the correct password for - // the kmsuser crypto user in the AWS CloudHSM cluster. - // - // * NETWORK_ERRORS - Network errors are preventing AWS KMS from connecting - // to the custom key store. - // - // * USER_LOCKED_OUT - The kmsuser CU account is locked out of the associated - // AWS CloudHSM cluster due to too many failed password attempts. Before - // you can connect your custom key store to its AWS CloudHSM cluster, you - // must change the kmsuser account password and update the password value - // for the custom key store. - // - // For help with connection failures, see Troubleshooting Custom Key Stores - // (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) - // in the AWS Key Management Service Developer Guide. - ConnectionErrorCode *string `type:"string" enum:"ConnectionErrorCodeType"` - - // Indicates whether the custom key store is connected to its AWS CloudHSM cluster. - // - // You can create and use CMKs in your custom key stores only when its connection - // state is CONNECTED. - // - // The value is DISCONNECTED if the key store has never been connected or you - // use the DisconnectCustomKeyStore operation to disconnect it. If the value - // is CONNECTED but you are having trouble using the custom key store, make - // sure that its associated AWS CloudHSM cluster is active and contains at least - // one active HSM. - // - // A value of FAILED indicates that an attempt to connect was unsuccessful. - // For help resolving a connection failure, see Troubleshooting a Custom Key - // Store (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) - // in the AWS Key Management Service Developer Guide. - ConnectionState *string `type:"string" enum:"ConnectionStateType"` - - // The date and time when the custom key store was created. - CreationDate *time.Time `type:"timestamp"` - - // A unique identifier for the custom key store. - CustomKeyStoreId *string `min:"1" type:"string"` - - // The user-specified friendly name for the custom key store. - CustomKeyStoreName *string `min:"1" type:"string"` +// The request was rejected because the custom key store contains AWS KMS customer +// master keys (CMKs). After verifying that you do not need to use the CMKs, +// use the ScheduleKeyDeletion operation to delete the CMKs. After they are +// deleted, you can delete the custom key store. +type CustomKeyStoreHasCMKsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The trust anchor certificate of the associated AWS CloudHSM cluster. When - // you initialize the cluster (https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), - // you create this certificate and save it in the customerCA.crt file. - TrustAnchorCertificate *string `min:"1" type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s CustomKeyStoresListEntry) String() string { +func (s CustomKeyStoreHasCMKsException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CustomKeyStoresListEntry) GoString() string { +func (s CustomKeyStoreHasCMKsException) GoString() string { return s.String() } -// SetCloudHsmClusterId sets the CloudHsmClusterId field's value. -func (s *CustomKeyStoresListEntry) SetCloudHsmClusterId(v string) *CustomKeyStoresListEntry { - s.CloudHsmClusterId = &v - return s +func newErrorCustomKeyStoreHasCMKsException(v protocol.ResponseMetadata) error { + return &CustomKeyStoreHasCMKsException{ + respMetadata: v, + } } -// SetConnectionErrorCode sets the ConnectionErrorCode field's value. -func (s *CustomKeyStoresListEntry) SetConnectionErrorCode(v string) *CustomKeyStoresListEntry { - s.ConnectionErrorCode = &v - return s +// Code returns the exception type name. +func (s CustomKeyStoreHasCMKsException) Code() string { + return "CustomKeyStoreHasCMKsException" +} + +// Message returns the exception's message. +func (s CustomKeyStoreHasCMKsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomKeyStoreHasCMKsException) OrigErr() error { + return nil +} + +func (s CustomKeyStoreHasCMKsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomKeyStoreHasCMKsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomKeyStoreHasCMKsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because of the ConnectionState of the custom key +// store. To get the ConnectionState of a custom key store, use the DescribeCustomKeyStores +// operation. +// +// This exception is thrown under the following conditions: +// +// * You requested the CreateKey or GenerateRandom operation in a custom +// key store that is not connected. These operations are valid only when +// the custom key store ConnectionState is CONNECTED. +// +// * You requested the UpdateCustomKeyStore or DeleteCustomKeyStore operation +// on a custom key store that is not disconnected. This operation is valid +// only when the custom key store ConnectionState is DISCONNECTED. +// +// * You requested the ConnectCustomKeyStore operation on a custom key store +// with a ConnectionState of DISCONNECTING or FAILED. This operation is valid +// for all other ConnectionState values. +type CustomKeyStoreInvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CustomKeyStoreInvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomKeyStoreInvalidStateException) GoString() string { + return s.String() +} + +func newErrorCustomKeyStoreInvalidStateException(v protocol.ResponseMetadata) error { + return &CustomKeyStoreInvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CustomKeyStoreInvalidStateException) Code() string { + return "CustomKeyStoreInvalidStateException" +} + +// Message returns the exception's message. +func (s CustomKeyStoreInvalidStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomKeyStoreInvalidStateException) OrigErr() error { + return nil +} + +func (s CustomKeyStoreInvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomKeyStoreInvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomKeyStoreInvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the specified custom key store name is already +// assigned to another custom key store in the account. Try again with a custom +// key store name that is unique in the account. +type CustomKeyStoreNameInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CustomKeyStoreNameInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomKeyStoreNameInUseException) GoString() string { + return s.String() +} + +func newErrorCustomKeyStoreNameInUseException(v protocol.ResponseMetadata) error { + return &CustomKeyStoreNameInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CustomKeyStoreNameInUseException) Code() string { + return "CustomKeyStoreNameInUseException" +} + +// Message returns the exception's message. +func (s CustomKeyStoreNameInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomKeyStoreNameInUseException) OrigErr() error { + return nil +} + +func (s CustomKeyStoreNameInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomKeyStoreNameInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomKeyStoreNameInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because AWS KMS cannot find a custom key store with +// the specified key store name or ID. +type CustomKeyStoreNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CustomKeyStoreNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomKeyStoreNotFoundException) GoString() string { + return s.String() +} + +func newErrorCustomKeyStoreNotFoundException(v protocol.ResponseMetadata) error { + return &CustomKeyStoreNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CustomKeyStoreNotFoundException) Code() string { + return "CustomKeyStoreNotFoundException" +} + +// Message returns the exception's message. +func (s CustomKeyStoreNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomKeyStoreNotFoundException) OrigErr() error { + return nil +} + +func (s CustomKeyStoreNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomKeyStoreNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomKeyStoreNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Contains information about each custom key store in the custom key store +// list. +type CustomKeyStoresListEntry struct { + _ struct{} `type:"structure"` + + // A unique identifier for the AWS CloudHSM cluster that is associated with + // the custom key store. + CloudHsmClusterId *string `min:"19" type:"string"` + + // Describes the connection error. Valid values are: + // + // * CLUSTER_NOT_FOUND - AWS KMS cannot find the AWS CloudHSM cluster with + // the specified cluster ID. + // + // * INSUFFICIENT_CLOUDHSM_HSMS - The associated AWS CloudHSM cluster does + // not contain any active HSMs. To connect a custom key store to its AWS + // CloudHSM cluster, the cluster must contain at least one active HSM. + // + // * INTERNAL_ERROR - AWS KMS could not complete the request due to an internal + // error. Retry the request. For ConnectCustomKeyStore requests, disconnect + // the custom key store before trying to connect again. + // + // * INVALID_CREDENTIALS - AWS KMS does not have the correct password for + // the kmsuser crypto user in the AWS CloudHSM cluster. + // + // * NETWORK_ERRORS - Network errors are preventing AWS KMS from connecting + // to the custom key store. + // + // * USER_LOCKED_OUT - The kmsuser CU account is locked out of the associated + // AWS CloudHSM cluster due to too many failed password attempts. Before + // you can connect your custom key store to its AWS CloudHSM cluster, you + // must change the kmsuser account password and update the password value + // for the custom key store. + // + // For help with connection failures, see Troubleshooting Custom Key Stores + // (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) + // in the AWS Key Management Service Developer Guide. + ConnectionErrorCode *string `type:"string" enum:"ConnectionErrorCodeType"` + + // Indicates whether the custom key store is connected to its AWS CloudHSM cluster. + // + // You can create and use CMKs in your custom key stores only when its connection + // state is CONNECTED. + // + // The value is DISCONNECTED if the key store has never been connected or you + // use the DisconnectCustomKeyStore operation to disconnect it. If the value + // is CONNECTED but you are having trouble using the custom key store, make + // sure that its associated AWS CloudHSM cluster is active and contains at least + // one active HSM. + // + // A value of FAILED indicates that an attempt to connect was unsuccessful. + // For help resolving a connection failure, see Troubleshooting a Custom Key + // Store (https://docs.aws.amazon.com/kms/latest/developerguide/fix-keystore.html) + // in the AWS Key Management Service Developer Guide. + ConnectionState *string `type:"string" enum:"ConnectionStateType"` + + // The date and time when the custom key store was created. + CreationDate *time.Time `type:"timestamp"` + + // A unique identifier for the custom key store. + CustomKeyStoreId *string `min:"1" type:"string"` + + // The user-specified friendly name for the custom key store. + CustomKeyStoreName *string `min:"1" type:"string"` + + // The trust anchor certificate of the associated AWS CloudHSM cluster. When + // you initialize the cluster (https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), + // you create this certificate and save it in the customerCA.crt file. + TrustAnchorCertificate *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s CustomKeyStoresListEntry) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomKeyStoresListEntry) GoString() string { + return s.String() +} + +// SetCloudHsmClusterId sets the CloudHsmClusterId field's value. +func (s *CustomKeyStoresListEntry) SetCloudHsmClusterId(v string) *CustomKeyStoresListEntry { + s.CloudHsmClusterId = &v + return s +} + +// SetConnectionErrorCode sets the ConnectionErrorCode field's value. +func (s *CustomKeyStoresListEntry) SetConnectionErrorCode(v string) *CustomKeyStoresListEntry { + s.ConnectionErrorCode = &v + return s } // SetConnectionState sets the ConnectionState field's value. @@ -7785,6 +8421,63 @@ func (s DeleteImportedKeyMaterialOutput) GoString() string { return s.String() } +// The system timed out while trying to fulfill the request. The request can +// be retried. +type DependencyTimeoutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DependencyTimeoutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DependencyTimeoutException) GoString() string { + return s.String() +} + +func newErrorDependencyTimeoutException(v protocol.ResponseMetadata) error { + return &DependencyTimeoutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DependencyTimeoutException) Code() string { + return "DependencyTimeoutException" +} + +// Message returns the exception's message. +func (s DependencyTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DependencyTimeoutException) OrigErr() error { + return nil +} + +func (s DependencyTimeoutException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DependencyTimeoutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DependencyTimeoutException) RequestID() string { + return s.respMetadata.RequestID +} + type DescribeCustomKeyStoresInput struct { _ struct{} `type:"structure"` @@ -8148,6 +8841,62 @@ func (s DisableKeyRotationOutput) GoString() string { return s.String() } +// The request was rejected because the specified CMK is not enabled. +type DisabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DisabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisabledException) GoString() string { + return s.String() +} + +func newErrorDisabledException(v protocol.ResponseMetadata) error { + return &DisabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DisabledException) Code() string { + return "DisabledException" +} + +// Message returns the exception's message. +func (s DisabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DisabledException) OrigErr() error { + return nil +} + +func (s DisabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DisabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DisabledException) RequestID() string { + return s.respMetadata.RequestID +} + type DisconnectCustomKeyStoreInput struct { _ struct{} `type:"structure"` @@ -8504,13 +9253,71 @@ func (s *EncryptOutput) SetKeyId(v string) *EncryptOutput { return s } -type GenerateDataKeyInput struct { - _ struct{} `type:"structure"` +// The request was rejected because the specified import token is expired. Use +// GetParametersForImport to get a new import token and public key, use the +// new public key to encrypt the key material, and then try the request again. +type ExpiredImportTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // Specifies the encryption context that will be used when encrypting the data - // key. - // - // An encryption context is a collection of non-secret key-value pairs that + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExpiredImportTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredImportTokenException) GoString() string { + return s.String() +} + +func newErrorExpiredImportTokenException(v protocol.ResponseMetadata) error { + return &ExpiredImportTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredImportTokenException) Code() string { + return "ExpiredImportTokenException" +} + +// Message returns the exception's message. +func (s ExpiredImportTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredImportTokenException) OrigErr() error { + return nil +} + +func (s ExpiredImportTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredImportTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredImportTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +type GenerateDataKeyInput struct { + _ struct{} `type:"structure"` + + // Specifies the encryption context that will be used when encrypting the data + // key. + // + // An encryption context is a collection of non-secret key-value pairs that // represents additional authenticated data. When you use an encryption context // to encrypt data, you must specify the same (an exact case-sensitive match) // encryption context to decrypt the data. An encryption context is optional @@ -9934,95 +10741,917 @@ type ImportKeyMaterialInput struct { // KeyId is a required field KeyId *string `min:"1" type:"string" required:"true"` - // The time at which the imported key material expires. When the key material - // expires, AWS KMS deletes the key material and the CMK becomes unusable. You - // must omit this parameter when the ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. - // Otherwise it is required. - ValidTo *time.Time `type:"timestamp"` + // The time at which the imported key material expires. When the key material + // expires, AWS KMS deletes the key material and the CMK becomes unusable. You + // must omit this parameter when the ExpirationModel parameter is set to KEY_MATERIAL_DOES_NOT_EXPIRE. + // Otherwise it is required. + ValidTo *time.Time `type:"timestamp"` +} + +// String returns the string representation +func (s ImportKeyMaterialInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportKeyMaterialInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ImportKeyMaterialInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ImportKeyMaterialInput"} + if s.EncryptedKeyMaterial == nil { + invalidParams.Add(request.NewErrParamRequired("EncryptedKeyMaterial")) + } + if s.EncryptedKeyMaterial != nil && len(s.EncryptedKeyMaterial) < 1 { + invalidParams.Add(request.NewErrParamMinLen("EncryptedKeyMaterial", 1)) + } + if s.ImportToken == nil { + invalidParams.Add(request.NewErrParamRequired("ImportToken")) + } + if s.ImportToken != nil && len(s.ImportToken) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ImportToken", 1)) + } + if s.KeyId == nil { + invalidParams.Add(request.NewErrParamRequired("KeyId")) + } + if s.KeyId != nil && len(*s.KeyId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetEncryptedKeyMaterial sets the EncryptedKeyMaterial field's value. +func (s *ImportKeyMaterialInput) SetEncryptedKeyMaterial(v []byte) *ImportKeyMaterialInput { + s.EncryptedKeyMaterial = v + return s +} + +// SetExpirationModel sets the ExpirationModel field's value. +func (s *ImportKeyMaterialInput) SetExpirationModel(v string) *ImportKeyMaterialInput { + s.ExpirationModel = &v + return s +} + +// SetImportToken sets the ImportToken field's value. +func (s *ImportKeyMaterialInput) SetImportToken(v []byte) *ImportKeyMaterialInput { + s.ImportToken = v + return s +} + +// SetKeyId sets the KeyId field's value. +func (s *ImportKeyMaterialInput) SetKeyId(v string) *ImportKeyMaterialInput { + s.KeyId = &v + return s +} + +// SetValidTo sets the ValidTo field's value. +func (s *ImportKeyMaterialInput) SetValidTo(v time.Time) *ImportKeyMaterialInput { + s.ValidTo = &v + return s +} + +type ImportKeyMaterialOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s ImportKeyMaterialOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImportKeyMaterialOutput) GoString() string { + return s.String() +} + +// The request was rejected because the specified CMK cannot decrypt the data. +// The KeyId in a Decrypt request and the SourceKeyId in a ReEncrypt request +// must identify the same CMK that was used to encrypt the ciphertext. +type IncorrectKeyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IncorrectKeyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncorrectKeyException) GoString() string { + return s.String() +} + +func newErrorIncorrectKeyException(v protocol.ResponseMetadata) error { + return &IncorrectKeyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncorrectKeyException) Code() string { + return "IncorrectKeyException" +} + +// Message returns the exception's message. +func (s IncorrectKeyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncorrectKeyException) OrigErr() error { + return nil +} + +func (s IncorrectKeyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncorrectKeyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncorrectKeyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the key material in the request is, expired, +// invalid, or is not the same key material that was previously imported into +// this customer master key (CMK). +type IncorrectKeyMaterialException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IncorrectKeyMaterialException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncorrectKeyMaterialException) GoString() string { + return s.String() +} + +func newErrorIncorrectKeyMaterialException(v protocol.ResponseMetadata) error { + return &IncorrectKeyMaterialException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncorrectKeyMaterialException) Code() string { + return "IncorrectKeyMaterialException" +} + +// Message returns the exception's message. +func (s IncorrectKeyMaterialException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncorrectKeyMaterialException) OrigErr() error { + return nil +} + +func (s IncorrectKeyMaterialException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncorrectKeyMaterialException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncorrectKeyMaterialException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the trust anchor certificate in the request +// is not the trust anchor certificate for the specified AWS CloudHSM cluster. +// +// When you initialize the cluster (https://docs.aws.amazon.com/cloudhsm/latest/userguide/initialize-cluster.html#sign-csr), +// you create the trust anchor certificate and save it in the customerCA.crt +// file. +type IncorrectTrustAnchorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IncorrectTrustAnchorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncorrectTrustAnchorException) GoString() string { + return s.String() +} + +func newErrorIncorrectTrustAnchorException(v protocol.ResponseMetadata) error { + return &IncorrectTrustAnchorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncorrectTrustAnchorException) Code() string { + return "IncorrectTrustAnchorException" +} + +// Message returns the exception's message. +func (s IncorrectTrustAnchorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncorrectTrustAnchorException) OrigErr() error { + return nil +} + +func (s IncorrectTrustAnchorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncorrectTrustAnchorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncorrectTrustAnchorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because an internal exception occurred. The request +// can be retried. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "KMSInternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the specified alias name is not valid. +type InvalidAliasNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidAliasNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAliasNameException) GoString() string { + return s.String() +} + +func newErrorInvalidAliasNameException(v protocol.ResponseMetadata) error { + return &InvalidAliasNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAliasNameException) Code() string { + return "InvalidAliasNameException" +} + +// Message returns the exception's message. +func (s InvalidAliasNameException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAliasNameException) OrigErr() error { + return nil +} + +func (s InvalidAliasNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAliasNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAliasNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because a specified ARN, or an ARN in a key policy, +// is not valid. +type InvalidArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArnException) GoString() string { + return s.String() +} + +func newErrorInvalidArnException(v protocol.ResponseMetadata) error { + return &InvalidArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArnException) Code() string { + return "InvalidArnException" +} + +// Message returns the exception's message. +func (s InvalidArnException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArnException) OrigErr() error { + return nil +} + +func (s InvalidArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// From the Decrypt or ReEncrypt operation, the request was rejected because +// the specified ciphertext, or additional authenticated data incorporated into +// the ciphertext, such as the encryption context, is corrupted, missing, or +// otherwise invalid. +// +// From the ImportKeyMaterial operation, the request was rejected because AWS +// KMS could not decrypt the encrypted (wrapped) key material. +type InvalidCiphertextException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidCiphertextException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCiphertextException) GoString() string { + return s.String() +} + +func newErrorInvalidCiphertextException(v protocol.ResponseMetadata) error { + return &InvalidCiphertextException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCiphertextException) Code() string { + return "InvalidCiphertextException" +} + +// Message returns the exception's message. +func (s InvalidCiphertextException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCiphertextException) OrigErr() error { + return nil +} + +func (s InvalidCiphertextException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCiphertextException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCiphertextException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the specified GrantId is not valid. +type InvalidGrantIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidGrantIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidGrantIdException) GoString() string { + return s.String() +} + +func newErrorInvalidGrantIdException(v protocol.ResponseMetadata) error { + return &InvalidGrantIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidGrantIdException) Code() string { + return "InvalidGrantIdException" +} + +// Message returns the exception's message. +func (s InvalidGrantIdException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidGrantIdException) OrigErr() error { + return nil +} + +func (s InvalidGrantIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidGrantIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidGrantIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the specified grant token is not valid. +type InvalidGrantTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidGrantTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidGrantTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidGrantTokenException(v protocol.ResponseMetadata) error { + return &InvalidGrantTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidGrantTokenException) Code() string { + return "InvalidGrantTokenException" +} + +// Message returns the exception's message. +func (s InvalidGrantTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidGrantTokenException) OrigErr() error { + return nil +} + +func (s InvalidGrantTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidGrantTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidGrantTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the provided import token is invalid or +// is associated with a different customer master key (CMK). +type InvalidImportTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidImportTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidImportTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidImportTokenException(v protocol.ResponseMetadata) error { + return &InvalidImportTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidImportTokenException) Code() string { + return "InvalidImportTokenException" +} + +// Message returns the exception's message. +func (s InvalidImportTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidImportTokenException) OrigErr() error { + return nil +} + +func (s InvalidImportTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidImportTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidImportTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected for one of the following reasons: +// +// * The KeyUsage value of the CMK is incompatible with the API operation. +// +// * The encryption algorithm or signing algorithm specified for the operation +// is incompatible with the type of key material in the CMK (CustomerMasterKeySpec). +// +// For encrypting, decrypting, re-encrypting, and generating data keys, the +// KeyUsage must be ENCRYPT_DECRYPT. For signing and verifying, the KeyUsage +// must be SIGN_VERIFY. To find the KeyUsage of a CMK, use the DescribeKey operation. +// +// To find the encryption or signing algorithms supported for a particular CMK, +// use the DescribeKey operation. +type InvalidKeyUsageException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidKeyUsageException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidKeyUsageException) GoString() string { + return s.String() +} + +func newErrorInvalidKeyUsageException(v protocol.ResponseMetadata) error { + return &InvalidKeyUsageException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidKeyUsageException) Code() string { + return "InvalidKeyUsageException" +} + +// Message returns the exception's message. +func (s InvalidKeyUsageException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidKeyUsageException) OrigErr() error { + return nil +} + +func (s InvalidKeyUsageException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidKeyUsageException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidKeyUsageException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the marker that specifies where pagination +// should next begin is not valid. +type InvalidMarkerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidMarkerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidMarkerException) GoString() string { + return s.String() +} + +func newErrorInvalidMarkerException(v protocol.ResponseMetadata) error { + return &InvalidMarkerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidMarkerException) Code() string { + return "InvalidMarkerException" +} + +// Message returns the exception's message. +func (s InvalidMarkerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMarkerException) OrigErr() error { + return nil +} + +func (s InvalidMarkerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMarkerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidMarkerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the state of the specified resource is not +// valid for this request. +// +// For more information about how key state affects the use of a CMK, see How +// Key State Affects Use of a Customer Master Key (https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html) +// in the AWS Key Management Service Developer Guide . +type InvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ImportKeyMaterialInput) String() string { +func (s InvalidStateException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ImportKeyMaterialInput) GoString() string { +func (s InvalidStateException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ImportKeyMaterialInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ImportKeyMaterialInput"} - if s.EncryptedKeyMaterial == nil { - invalidParams.Add(request.NewErrParamRequired("EncryptedKeyMaterial")) - } - if s.EncryptedKeyMaterial != nil && len(s.EncryptedKeyMaterial) < 1 { - invalidParams.Add(request.NewErrParamMinLen("EncryptedKeyMaterial", 1)) - } - if s.ImportToken == nil { - invalidParams.Add(request.NewErrParamRequired("ImportToken")) - } - if s.ImportToken != nil && len(s.ImportToken) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ImportToken", 1)) - } - if s.KeyId == nil { - invalidParams.Add(request.NewErrParamRequired("KeyId")) - } - if s.KeyId != nil && len(*s.KeyId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("KeyId", 1)) +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidStateException) Code() string { + return "KMSInvalidStateException" } -// SetEncryptedKeyMaterial sets the EncryptedKeyMaterial field's value. -func (s *ImportKeyMaterialInput) SetEncryptedKeyMaterial(v []byte) *ImportKeyMaterialInput { - s.EncryptedKeyMaterial = v - return s +// Message returns the exception's message. +func (s InvalidStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetExpirationModel sets the ExpirationModel field's value. -func (s *ImportKeyMaterialInput) SetExpirationModel(v string) *ImportKeyMaterialInput { - s.ExpirationModel = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateException) OrigErr() error { + return nil } -// SetImportToken sets the ImportToken field's value. -func (s *ImportKeyMaterialInput) SetImportToken(v []byte) *ImportKeyMaterialInput { - s.ImportToken = v - return s +func (s InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetKeyId sets the KeyId field's value. -func (s *ImportKeyMaterialInput) SetKeyId(v string) *ImportKeyMaterialInput { - s.KeyId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetValidTo sets the ValidTo field's value. -func (s *ImportKeyMaterialInput) SetValidTo(v time.Time) *ImportKeyMaterialInput { - s.ValidTo = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidStateException) RequestID() string { + return s.respMetadata.RequestID } -type ImportKeyMaterialOutput struct { - _ struct{} `type:"structure"` +// The request was rejected because the signature verification failed. Signature +// verification fails when it cannot confirm that signature was produced by +// signing the specified message with the specified CMK and signing algorithm. +type KMSInvalidSignatureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ImportKeyMaterialOutput) String() string { +func (s KMSInvalidSignatureException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ImportKeyMaterialOutput) GoString() string { +func (s KMSInvalidSignatureException) GoString() string { return s.String() } +func newErrorKMSInvalidSignatureException(v protocol.ResponseMetadata) error { + return &KMSInvalidSignatureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSInvalidSignatureException) Code() string { + return "KMSInvalidSignatureException" +} + +// Message returns the exception's message. +func (s KMSInvalidSignatureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSInvalidSignatureException) OrigErr() error { + return nil +} + +func (s KMSInvalidSignatureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSInvalidSignatureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSInvalidSignatureException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about each entry in the key list. type KeyListEntry struct { _ struct{} `type:"structure"` @@ -10269,6 +11898,121 @@ func (s *KeyMetadata) SetValidTo(v time.Time) *KeyMetadata { return s } +// The request was rejected because the specified CMK was not available. You +// can retry the request. +type KeyUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s KeyUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KeyUnavailableException) GoString() string { + return s.String() +} + +func newErrorKeyUnavailableException(v protocol.ResponseMetadata) error { + return &KeyUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KeyUnavailableException) Code() string { + return "KeyUnavailableException" +} + +// Message returns the exception's message. +func (s KeyUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KeyUnavailableException) OrigErr() error { + return nil +} + +func (s KeyUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KeyUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KeyUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because a limit was exceeded. For more information, +// see Limits (https://docs.aws.amazon.com/kms/latest/developerguide/limits.html) +// in the AWS Key Management Service Developer Guide. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAliasesInput struct { _ struct{} `type:"structure"` @@ -10954,6 +12698,120 @@ func (s *ListRetirableGrantsInput) SetRetiringPrincipal(v string) *ListRetirable return s } +// The request was rejected because the specified policy is not syntactically +// or semantically correct. +type MalformedPolicyDocumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MalformedPolicyDocumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MalformedPolicyDocumentException) GoString() string { + return s.String() +} + +func newErrorMalformedPolicyDocumentException(v protocol.ResponseMetadata) error { + return &MalformedPolicyDocumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MalformedPolicyDocumentException) Code() string { + return "MalformedPolicyDocumentException" +} + +// Message returns the exception's message. +func (s MalformedPolicyDocumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedPolicyDocumentException) OrigErr() error { + return nil +} + +func (s MalformedPolicyDocumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MalformedPolicyDocumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MalformedPolicyDocumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because the specified entity or resource could not +// be found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type PutKeyPolicyInput struct { _ struct{} `type:"structure"` @@ -11847,6 +13705,62 @@ func (s *Tag) SetTagValue(v string) *Tag { return s } +// The request was rejected because one or more tags are not valid. +type TagException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TagException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagException) GoString() string { + return s.String() +} + +func newErrorTagException(v protocol.ResponseMetadata) error { + return &TagException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagException) Code() string { + return "TagException" +} + +// Message returns the exception's message. +func (s TagException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagException) OrigErr() error { + return nil +} + +func (s TagException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -11936,6 +13850,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The request was rejected because a specified parameter is not supported or +// a specified resource is not valid for this operation. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s UnsupportedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/kms/errors.go b/service/kms/errors.go index 5bf4265c0bf..7d2d6cd1349 100644 --- a/service/kms/errors.go +++ b/service/kms/errors.go @@ -2,6 +2,10 @@ package kms +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlreadyExistsException for service response error code @@ -325,3 +329,39 @@ const ( // a specified resource is not valid for this operation. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlreadyExistsException": newErrorAlreadyExistsException, + "CloudHsmClusterInUseException": newErrorCloudHsmClusterInUseException, + "CloudHsmClusterInvalidConfigurationException": newErrorCloudHsmClusterInvalidConfigurationException, + "CloudHsmClusterNotActiveException": newErrorCloudHsmClusterNotActiveException, + "CloudHsmClusterNotFoundException": newErrorCloudHsmClusterNotFoundException, + "CloudHsmClusterNotRelatedException": newErrorCloudHsmClusterNotRelatedException, + "CustomKeyStoreHasCMKsException": newErrorCustomKeyStoreHasCMKsException, + "CustomKeyStoreInvalidStateException": newErrorCustomKeyStoreInvalidStateException, + "CustomKeyStoreNameInUseException": newErrorCustomKeyStoreNameInUseException, + "CustomKeyStoreNotFoundException": newErrorCustomKeyStoreNotFoundException, + "DependencyTimeoutException": newErrorDependencyTimeoutException, + "DisabledException": newErrorDisabledException, + "ExpiredImportTokenException": newErrorExpiredImportTokenException, + "IncorrectKeyException": newErrorIncorrectKeyException, + "IncorrectKeyMaterialException": newErrorIncorrectKeyMaterialException, + "IncorrectTrustAnchorException": newErrorIncorrectTrustAnchorException, + "KMSInternalException": newErrorInternalException, + "InvalidAliasNameException": newErrorInvalidAliasNameException, + "InvalidArnException": newErrorInvalidArnException, + "InvalidCiphertextException": newErrorInvalidCiphertextException, + "InvalidGrantIdException": newErrorInvalidGrantIdException, + "InvalidGrantTokenException": newErrorInvalidGrantTokenException, + "InvalidImportTokenException": newErrorInvalidImportTokenException, + "InvalidKeyUsageException": newErrorInvalidKeyUsageException, + "InvalidMarkerException": newErrorInvalidMarkerException, + "KMSInvalidStateException": newErrorInvalidStateException, + "KMSInvalidSignatureException": newErrorKMSInvalidSignatureException, + "KeyUnavailableException": newErrorKeyUnavailableException, + "LimitExceededException": newErrorLimitExceededException, + "MalformedPolicyDocumentException": newErrorMalformedPolicyDocumentException, + "NotFoundException": newErrorNotFoundException, + "TagException": newErrorTagException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, +} diff --git a/service/kms/service.go b/service/kms/service.go index 687a9d81506..50ca0c092e1 100644 --- a/service/kms/service.go +++ b/service/kms/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/lakeformation/api.go b/service/lakeformation/api.go index b457320c659..34a54bd9441 100644 --- a/service/lakeformation/api.go +++ b/service/lakeformation/api.go @@ -66,11 +66,11 @@ func (c *LakeFormation) BatchGrantPermissionsRequest(input *BatchGrantPermission // See the AWS API reference guide for AWS Lake Formation's // API operation BatchGrantPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/BatchGrantPermissions @@ -148,11 +148,11 @@ func (c *LakeFormation) BatchRevokePermissionsRequest(input *BatchRevokePermissi // See the AWS API reference guide for AWS Lake Formation's // API operation BatchRevokePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/BatchRevokePermissions @@ -234,17 +234,17 @@ func (c *LakeFormation) DeregisterResourceRequest(input *DeregisterResourceInput // See the AWS API reference guide for AWS Lake Formation's // API operation DeregisterResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/DeregisterResource @@ -323,17 +323,17 @@ func (c *LakeFormation) DescribeResourceRequest(input *DescribeResourceInput) (r // See the AWS API reference guide for AWS Lake Formation's // API operation DescribeResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/DescribeResource @@ -411,14 +411,14 @@ func (c *LakeFormation) GetDataLakeSettingsRequest(input *GetDataLakeSettingsInp // See the AWS API reference guide for AWS Lake Formation's // API operation GetDataLakeSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/GetDataLakeSettings @@ -503,17 +503,17 @@ func (c *LakeFormation) GetEffectivePermissionsForPathRequest(input *GetEffectiv // See the AWS API reference guide for AWS Lake Formation's // API operation GetEffectivePermissionsForPath for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/GetEffectivePermissionsForPath @@ -648,14 +648,14 @@ func (c *LakeFormation) GrantPermissionsRequest(input *GrantPermissionsInput) (r // See the AWS API reference guide for AWS Lake Formation's // API operation GrantPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/GrantPermissions @@ -746,14 +746,14 @@ func (c *LakeFormation) ListPermissionsRequest(input *ListPermissionsInput) (req // See the AWS API reference guide for AWS Lake Formation's // API operation ListPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/ListPermissions @@ -889,14 +889,14 @@ func (c *LakeFormation) ListResourcesRequest(input *ListResourcesInput) (req *re // See the AWS API reference guide for AWS Lake Formation's // API operation ListResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/ListResources @@ -1027,11 +1027,11 @@ func (c *LakeFormation) PutDataLakeSettingsRequest(input *PutDataLakeSettingsInp // See the AWS API reference guide for AWS Lake Formation's // API operation PutDataLakeSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/PutDataLakeSettings @@ -1119,17 +1119,17 @@ func (c *LakeFormation) RegisterResourceRequest(input *RegisterResourceInput) (r // See the AWS API reference guide for AWS Lake Formation's // API operation RegisterResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // A resource to be created or added already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/RegisterResource @@ -1209,14 +1209,14 @@ func (c *LakeFormation) RevokePermissionsRequest(input *RevokePermissionsInput) // See the AWS API reference guide for AWS Lake Formation's // API operation RevokePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // Two processes are trying to modify a resource simultaneously. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The input provided was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/RevokePermissions @@ -1296,17 +1296,17 @@ func (c *LakeFormation) UpdateResourceRequest(input *UpdateResourceInput) (req * // See the AWS API reference guide for AWS Lake Formation's // API operation UpdateResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The input provided was not valid. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // An internal service error occurred. // -// * ErrCodeOperationTimeoutException "OperationTimeoutException" +// * OperationTimeoutException // The operation timed out. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // A specified entity does not exist // // See also, https://docs.aws.amazon.com/goto/WebAPI/lakeformation-2017-03-31/UpdateResource @@ -1331,6 +1331,63 @@ func (c *LakeFormation) UpdateResourceWithContext(ctx aws.Context, input *Update return out, req.Send() } +// A resource to be created or added already exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + type BatchGrantPermissionsInput struct { _ struct{} `type:"structure"` @@ -1666,6 +1723,63 @@ func (s *ColumnWildcard) SetExcludedColumnNames(v []*string) *ColumnWildcard { return s } +// Two processes are trying to modify a resource simultaneously. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // The AWS Lake Formation principal. type DataLakePrincipal struct { _ struct{} `type:"structure"` @@ -1982,6 +2096,63 @@ func (s *DescribeResourceOutput) SetResourceInfo(v *ResourceInfo) *DescribeResou return s } +// A specified entity does not exist +type EntityNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EntityNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityNotFoundException) GoString() string { + return s.String() +} + +func newErrorEntityNotFoundException(v protocol.ResponseMetadata) error { + return &EntityNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityNotFoundException) Code() string { + return "EntityNotFoundException" +} + +// Message returns the exception's message. +func (s EntityNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityNotFoundException) OrigErr() error { + return nil +} + +func (s EntityNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about an error. type ErrorDetail struct { _ struct{} `type:"structure"` @@ -2355,6 +2526,120 @@ func (s GrantPermissionsOutput) GoString() string { return s.String() } +// An internal service error occurred. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input provided was not valid. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + type ListPermissionsInput struct { _ struct{} `type:"structure"` @@ -2579,6 +2864,63 @@ func (s *ListResourcesOutput) SetResourceInfoList(v []*ResourceInfo) *ListResour return s } +// The operation timed out. +type OperationTimeoutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A message describing the problem. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OperationTimeoutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationTimeoutException) GoString() string { + return s.String() +} + +func newErrorOperationTimeoutException(v protocol.ResponseMetadata) error { + return &OperationTimeoutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationTimeoutException) Code() string { + return "OperationTimeoutException" +} + +// Message returns the exception's message. +func (s OperationTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationTimeoutException) OrigErr() error { + return nil +} + +func (s OperationTimeoutException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationTimeoutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationTimeoutException) RequestID() string { + return s.respMetadata.RequestID +} + // Permissions granted to a principal. type PrincipalPermissions struct { _ struct{} `type:"structure"` diff --git a/service/lakeformation/errors.go b/service/lakeformation/errors.go index 1bbdaf1289d..959f989d8a3 100644 --- a/service/lakeformation/errors.go +++ b/service/lakeformation/errors.go @@ -2,6 +2,10 @@ package lakeformation +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlreadyExistsException for service response error code @@ -40,3 +44,12 @@ const ( // The operation timed out. ErrCodeOperationTimeoutException = "OperationTimeoutException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlreadyExistsException": newErrorAlreadyExistsException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "EntityNotFoundException": newErrorEntityNotFoundException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidInputException": newErrorInvalidInputException, + "OperationTimeoutException": newErrorOperationTimeoutException, +} diff --git a/service/lakeformation/service.go b/service/lakeformation/service.go index f18f04f1f26..4d6e49a18e6 100644 --- a/service/lakeformation/service.go +++ b/service/lakeformation/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/lambda/api.go b/service/lambda/api.go index 83b03561e0c..9677d3d09c4 100644 --- a/service/lambda/api.go +++ b/service/lambda/api.go @@ -3,6 +3,7 @@ package lambda import ( + "fmt" "io" "time" @@ -73,26 +74,26 @@ func (c *Lambda) AddLayerVersionPermissionRequest(input *AddLayerVersionPermissi // See the AWS API reference guide for AWS Lambda's // API operation AddLayerVersionPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" +// * PolicyLengthExceededException // The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. @@ -188,26 +189,26 @@ func (c *Lambda) AddPermissionRequest(input *AddPermissionInput) (req *request.R // See the AWS API reference guide for AWS Lambda's // API operation AddPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodePolicyLengthExceededException "PolicyLengthExceededException" +// * PolicyLengthExceededException // The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. @@ -293,20 +294,20 @@ func (c *Lambda) CreateAliasRequest(input *CreateAliasInput) (req *request.Reque // See the AWS API reference guide for AWS Lambda's // API operation CreateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateAlias @@ -408,20 +409,20 @@ func (c *Lambda) CreateEventSourceMappingRequest(input *CreateEventSourceMapping // See the AWS API reference guide for AWS Lambda's // API operation CreateEventSourceMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateEventSourceMapping @@ -534,23 +535,23 @@ func (c *Lambda) CreateFunctionRequest(input *CreateFunctionInput) (req *request // See the AWS API reference guide for AWS Lambda's // API operation CreateFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" +// * CodeStorageExceededException // You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/CreateFunction @@ -629,17 +630,17 @@ func (c *Lambda) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Reque // See the AWS API reference guide for AWS Lambda's // API operation DeleteAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteAlias @@ -721,20 +722,20 @@ func (c *Lambda) DeleteEventSourceMappingRequest(input *DeleteEventSourceMapping // See the AWS API reference guide for AWS Lambda's // API operation DeleteEventSourceMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to update an EventSource Mapping in CREATING, or tried to delete // a EventSource mapping currently in the UPDATING state. @@ -820,20 +821,20 @@ func (c *Lambda) DeleteFunctionRequest(input *DeleteFunctionInput) (req *request // See the AWS API reference guide for AWS Lambda's // API operation DeleteFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunction @@ -912,20 +913,20 @@ func (c *Lambda) DeleteFunctionConcurrencyRequest(input *DeleteFunctionConcurren // See the AWS API reference guide for AWS Lambda's // API operation DeleteFunctionConcurrency for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionConcurrency @@ -1007,17 +1008,17 @@ func (c *Lambda) DeleteFunctionEventInvokeConfigRequest(input *DeleteFunctionEve // See the AWS API reference guide for AWS Lambda's // API operation DeleteFunctionEventInvokeConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteFunctionEventInvokeConfig @@ -1099,11 +1100,11 @@ func (c *Lambda) DeleteLayerVersionRequest(input *DeleteLayerVersionInput) (req // See the AWS API reference guide for AWS Lambda's // API operation DeleteLayerVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteLayerVersion @@ -1182,20 +1183,20 @@ func (c *Lambda) DeleteProvisionedConcurrencyConfigRequest(input *DeleteProvisio // See the AWS API reference guide for AWS Lambda's // API operation DeleteProvisionedConcurrencyConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // The AWS Lambda service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/DeleteProvisionedConcurrencyConfig @@ -1274,11 +1275,11 @@ func (c *Lambda) GetAccountSettingsRequest(input *GetAccountSettingsInput) (req // See the AWS API reference guide for AWS Lambda's // API operation GetAccountSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // The AWS Lambda service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAccountSettings @@ -1356,17 +1357,17 @@ func (c *Lambda) GetAliasRequest(input *GetAliasInput) (req *request.Request, ou // See the AWS API reference guide for AWS Lambda's // API operation GetAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetAlias @@ -1445,17 +1446,17 @@ func (c *Lambda) GetEventSourceMappingRequest(input *GetEventSourceMappingInput) // See the AWS API reference guide for AWS Lambda's // API operation GetEventSourceMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetEventSourceMapping @@ -1535,17 +1536,17 @@ func (c *Lambda) GetFunctionRequest(input *GetFunctionInput) (req *request.Reque // See the AWS API reference guide for AWS Lambda's // API operation GetFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunction @@ -1624,17 +1625,17 @@ func (c *Lambda) GetFunctionConcurrencyRequest(input *GetFunctionConcurrencyInpu // See the AWS API reference guide for AWS Lambda's // API operation GetFunctionConcurrency for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // The AWS Lambda service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConcurrency @@ -1717,17 +1718,17 @@ func (c *Lambda) GetFunctionConfigurationRequest(input *GetFunctionConfiguration // See the AWS API reference guide for AWS Lambda's // API operation GetFunctionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionConfiguration @@ -1808,17 +1809,17 @@ func (c *Lambda) GetFunctionEventInvokeConfigRequest(input *GetFunctionEventInvo // See the AWS API reference guide for AWS Lambda's // API operation GetFunctionEventInvokeConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetFunctionEventInvokeConfig @@ -1897,17 +1898,17 @@ func (c *Lambda) GetLayerVersionRequest(input *GetLayerVersionInput) (req *reque // See the AWS API reference guide for AWS Lambda's // API operation GetLayerVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersion @@ -1986,17 +1987,17 @@ func (c *Lambda) GetLayerVersionByArnRequest(input *GetLayerVersionByArnInput) ( // See the AWS API reference guide for AWS Lambda's // API operation GetLayerVersionByArn for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionByArn @@ -2075,17 +2076,17 @@ func (c *Lambda) GetLayerVersionPolicyRequest(input *GetLayerVersionPolicyInput) // See the AWS API reference guide for AWS Lambda's // API operation GetLayerVersionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy @@ -2164,17 +2165,17 @@ func (c *Lambda) GetPolicyRequest(input *GetPolicyInput) (req *request.Request, // See the AWS API reference guide for AWS Lambda's // API operation GetPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetPolicy @@ -2253,20 +2254,20 @@ func (c *Lambda) GetProvisionedConcurrencyConfigRequest(input *GetProvisionedCon // See the AWS API reference guide for AWS Lambda's // API operation GetProvisionedConcurrencyConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeProvisionedConcurrencyConfigNotFoundException "ProvisionedConcurrencyConfigNotFoundException" +// * ProvisionedConcurrencyConfigNotFoundException // The specified configuration does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetProvisionedConcurrencyConfig @@ -2380,82 +2381,82 @@ func (c *Lambda) InvokeRequest(input *InvokeInput) (req *request.Request, output // See the AWS API reference guide for AWS Lambda's // API operation Invoke for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" +// * InvalidRequestContentException // The request body could not be parsed as JSON. // -// * ErrCodeRequestTooLargeException "RequestTooLargeException" +// * RequestTooLargeException // The request payload exceeded the Invoke request body JSON input limit. For // more information, see Limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html). // -// * ErrCodeUnsupportedMediaTypeException "UnsupportedMediaTypeException" +// * UnsupportedMediaTypeException // The content type of the Invoke request body is not JSON. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeEC2UnexpectedException "EC2UnexpectedException" +// * EC2UnexpectedException // AWS Lambda received an unexpected EC2 client exception while setting up for // the Lambda function. // -// * ErrCodeSubnetIPAddressLimitReachedException "SubnetIPAddressLimitReachedException" +// * SubnetIPAddressLimitReachedException // AWS Lambda was not able to set up VPC access for the Lambda function because // one or more configured subnets has no available IP addresses. // -// * ErrCodeENILimitReachedException "ENILimitReachedException" +// * ENILimitReachedException // AWS Lambda was not able to create an elastic network interface in the VPC, // specified as part of Lambda function configuration, because the limit for // network interfaces has been reached. // -// * ErrCodeEC2ThrottledException "EC2ThrottledException" +// * EC2ThrottledException // AWS Lambda was throttled by Amazon EC2 during Lambda function initialization // using the execution role provided for the Lambda function. // -// * ErrCodeEC2AccessDeniedException "EC2AccessDeniedException" +// * EC2AccessDeniedException // Need additional permissions to configure VPC settings. // -// * ErrCodeInvalidSubnetIDException "InvalidSubnetIDException" +// * InvalidSubnetIDException // The Subnet ID provided in the Lambda function VPC configuration is invalid. // -// * ErrCodeInvalidSecurityGroupIDException "InvalidSecurityGroupIDException" +// * InvalidSecurityGroupIDException // The Security Group ID provided in the Lambda function VPC configuration is // invalid. // -// * ErrCodeInvalidZipFileException "InvalidZipFileException" +// * InvalidZipFileException // AWS Lambda could not unzip the deployment package. // -// * ErrCodeKMSDisabledException "KMSDisabledException" +// * KMSDisabledException // Lambda was unable to decrypt the environment variables because the KMS key // used is disabled. Check the Lambda function's KMS key settings. // -// * ErrCodeKMSInvalidStateException "KMSInvalidStateException" +// * KMSInvalidStateException // Lambda was unable to decrypt the environment variables because the KMS key // used is in an invalid state for Decrypt. Check the function's KMS key settings. // -// * ErrCodeKMSAccessDeniedException "KMSAccessDeniedException" +// * KMSAccessDeniedException // Lambda was unable to decrypt the environment variables because KMS access // was denied. Check the Lambda function's KMS permissions. // -// * ErrCodeKMSNotFoundException "KMSNotFoundException" +// * KMSNotFoundException // Lambda was unable to decrypt the environment variables because the KMS key // was not found. Check the function's KMS key settings. // -// * ErrCodeInvalidRuntimeException "InvalidRuntimeException" +// * InvalidRuntimeException // The runtime or runtime version specified is not supported. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeResourceNotReadyException "ResourceNotReadyException" +// * ResourceNotReadyException // The function is inactive and its VPC connection is no longer available. Wait // for the VPC connection to reestablish and try again. // @@ -2542,20 +2543,20 @@ func (c *Lambda) InvokeAsyncRequest(input *InvokeAsyncInput) (req *request.Reque // See the AWS API reference guide for AWS Lambda's // API operation InvokeAsync for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidRequestContentException "InvalidRequestContentException" +// * InvalidRequestContentException // The request body could not be parsed as JSON. // -// * ErrCodeInvalidRuntimeException "InvalidRuntimeException" +// * InvalidRuntimeException // The runtime or runtime version specified is not supported. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/InvokeAsync @@ -2644,17 +2645,17 @@ func (c *Lambda) ListAliasesRequest(input *ListAliasesInput) (req *request.Reque // See the AWS API reference guide for AWS Lambda's // API operation ListAliases for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListAliases @@ -2791,17 +2792,17 @@ func (c *Lambda) ListEventSourceMappingsRequest(input *ListEventSourceMappingsIn // See the AWS API reference guide for AWS Lambda's // API operation ListEventSourceMappings for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListEventSourceMappings @@ -2939,17 +2940,17 @@ func (c *Lambda) ListFunctionEventInvokeConfigsRequest(input *ListFunctionEventI // See the AWS API reference guide for AWS Lambda's // API operation ListFunctionEventInvokeConfigs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // The AWS Lambda service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctionEventInvokeConfigs @@ -3090,14 +3091,14 @@ func (c *Lambda) ListFunctionsRequest(input *ListFunctionsInput) (req *request.R // See the AWS API reference guide for AWS Lambda's // API operation ListFunctions for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListFunctions @@ -3236,17 +3237,17 @@ func (c *Lambda) ListLayerVersionsRequest(input *ListLayerVersionsInput) (req *r // See the AWS API reference guide for AWS Lambda's // API operation ListLayerVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayerVersions @@ -3385,14 +3386,14 @@ func (c *Lambda) ListLayersRequest(input *ListLayersInput) (req *request.Request // See the AWS API reference guide for AWS Lambda's // API operation ListLayers for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListLayers @@ -3528,17 +3529,17 @@ func (c *Lambda) ListProvisionedConcurrencyConfigsRequest(input *ListProvisioned // See the AWS API reference guide for AWS Lambda's // API operation ListProvisionedConcurrencyConfigs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // The AWS Lambda service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListProvisionedConcurrencyConfigs @@ -3669,17 +3670,17 @@ func (c *Lambda) ListTagsRequest(input *ListTagsInput) (req *request.Request, ou // See the AWS API reference guide for AWS Lambda's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListTags @@ -3764,17 +3765,17 @@ func (c *Lambda) ListVersionsByFunctionRequest(input *ListVersionsByFunctionInpu // See the AWS API reference guide for AWS Lambda's // API operation ListVersionsByFunction for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/ListVersionsByFunction @@ -3908,20 +3909,20 @@ func (c *Lambda) PublishLayerVersionRequest(input *PublishLayerVersionInput) (re // See the AWS API reference guide for AWS Lambda's // API operation PublishLayerVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" +// * CodeStorageExceededException // You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishLayerVersion @@ -4008,28 +4009,28 @@ func (c *Lambda) PublishVersionRequest(input *PublishVersionInput) (req *request // See the AWS API reference guide for AWS Lambda's // API operation PublishVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" +// * CodeStorageExceededException // You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PublishVersion @@ -4120,20 +4121,20 @@ func (c *Lambda) PutFunctionConcurrencyRequest(input *PutFunctionConcurrencyInpu // See the AWS API reference guide for AWS Lambda's // API operation PutFunctionConcurrency for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionConcurrency @@ -4218,17 +4219,17 @@ func (c *Lambda) PutFunctionEventInvokeConfigRequest(input *PutFunctionEventInvo // See the AWS API reference guide for AWS Lambda's // API operation PutFunctionEventInvokeConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutFunctionEventInvokeConfig @@ -4306,20 +4307,20 @@ func (c *Lambda) PutProvisionedConcurrencyConfigRequest(input *PutProvisionedCon // See the AWS API reference guide for AWS Lambda's // API operation PutProvisionedConcurrencyConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // The AWS Lambda service encountered an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/PutProvisionedConcurrencyConfig @@ -4400,20 +4401,20 @@ func (c *Lambda) RemoveLayerVersionPermissionRequest(input *RemoveLayerVersionPe // See the AWS API reference guide for AWS Lambda's // API operation RemoveLayerVersionPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. @@ -4495,20 +4496,20 @@ func (c *Lambda) RemovePermissionRequest(input *RemovePermissionInput) (req *req // See the AWS API reference guide for AWS Lambda's // API operation RemovePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. @@ -4590,17 +4591,17 @@ func (c *Lambda) TagResourceRequest(input *TagResourceInput) (req *request.Reque // See the AWS API reference guide for AWS Lambda's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/TagResource @@ -4680,17 +4681,17 @@ func (c *Lambda) UntagResourceRequest(input *UntagResourceInput) (req *request.R // See the AWS API reference guide for AWS Lambda's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UntagResource @@ -4768,25 +4769,25 @@ func (c *Lambda) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Reque // See the AWS API reference guide for AWS Lambda's // API operation UpdateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateAlias @@ -4880,23 +4881,23 @@ func (c *Lambda) UpdateEventSourceMappingRequest(input *UpdateEventSourceMapping // See the AWS API reference guide for AWS Lambda's // API operation UpdateEventSourceMapping for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The operation conflicts with the resource's availability. For example, you // attempted to update an EventSource Mapping in CREATING, or tried to delete // a EventSource mapping currently in the UPDATING state. @@ -4979,28 +4980,28 @@ func (c *Lambda) UpdateFunctionCodeRequest(input *UpdateFunctionCodeInput) (req // See the AWS API reference guide for AWS Lambda's // API operation UpdateFunctionCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeCodeStorageExceededException "CodeStorageExceededException" +// * CodeStorageExceededException // You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionCode @@ -5093,23 +5094,23 @@ func (c *Lambda) UpdateFunctionConfigurationRequest(input *UpdateFunctionConfigu // See the AWS API reference guide for AWS Lambda's // API operation UpdateFunctionConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource already exists, or another operation is in progress. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The RevisionId provided does not match the latest RevisionId for the Lambda // function or alias. Call the GetFunction or the GetAlias API to retrieve the // latest RevisionId for your resource. @@ -5192,17 +5193,17 @@ func (c *Lambda) UpdateFunctionEventInvokeConfigRequest(input *UpdateFunctionEve // See the AWS API reference guide for AWS Lambda's // API operation UpdateFunctionEventInvokeConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // The AWS Lambda service encountered an internal error. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource specified in the request does not exist. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One of the parameters in the request is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The request throughput limit was exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/UpdateFunctionEventInvokeConfig @@ -5757,6 +5758,65 @@ func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*fl return s } +// You have exceeded your maximum total code size per account. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) +type CodeStorageExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // The exception type. + Type *string `type:"string"` +} + +// String returns the string representation +func (s CodeStorageExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CodeStorageExceededException) GoString() string { + return s.String() +} + +func newErrorCodeStorageExceededException(v protocol.ResponseMetadata) error { + return &CodeStorageExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CodeStorageExceededException) Code() string { + return "CodeStorageExceededException" +} + +// Message returns the exception's message. +func (s CodeStorageExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CodeStorageExceededException) OrigErr() error { + return nil +} + +func (s CodeStorageExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CodeStorageExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CodeStorageExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateAliasInput struct { _ struct{} `type:"structure"` @@ -6842,6 +6902,244 @@ func (s *DestinationConfig) SetOnSuccess(v *OnSuccess) *DestinationConfig { return s } +// Need additional permissions to configure VPC settings. +type EC2AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s EC2AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EC2AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorEC2AccessDeniedException(v protocol.ResponseMetadata) error { + return &EC2AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EC2AccessDeniedException) Code() string { + return "EC2AccessDeniedException" +} + +// Message returns the exception's message. +func (s EC2AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EC2AccessDeniedException) OrigErr() error { + return nil +} + +func (s EC2AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EC2AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EC2AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Lambda was throttled by Amazon EC2 during Lambda function initialization +// using the execution role provided for the Lambda function. +type EC2ThrottledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s EC2ThrottledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EC2ThrottledException) GoString() string { + return s.String() +} + +func newErrorEC2ThrottledException(v protocol.ResponseMetadata) error { + return &EC2ThrottledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EC2ThrottledException) Code() string { + return "EC2ThrottledException" +} + +// Message returns the exception's message. +func (s EC2ThrottledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EC2ThrottledException) OrigErr() error { + return nil +} + +func (s EC2ThrottledException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EC2ThrottledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EC2ThrottledException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Lambda received an unexpected EC2 client exception while setting up for +// the Lambda function. +type EC2UnexpectedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + EC2ErrorCode *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s EC2UnexpectedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EC2UnexpectedException) GoString() string { + return s.String() +} + +func newErrorEC2UnexpectedException(v protocol.ResponseMetadata) error { + return &EC2UnexpectedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EC2UnexpectedException) Code() string { + return "EC2UnexpectedException" +} + +// Message returns the exception's message. +func (s EC2UnexpectedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EC2UnexpectedException) OrigErr() error { + return nil +} + +func (s EC2UnexpectedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EC2UnexpectedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EC2UnexpectedException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Lambda was not able to create an elastic network interface in the VPC, +// specified as part of Lambda function configuration, because the limit for +// network interfaces has been reached. +type ENILimitReachedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s ENILimitReachedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ENILimitReachedException) GoString() string { + return s.String() +} + +func newErrorENILimitReachedException(v protocol.ResponseMetadata) error { + return &ENILimitReachedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ENILimitReachedException) Code() string { + return "ENILimitReachedException" +} + +// Message returns the exception's message. +func (s ENILimitReachedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ENILimitReachedException) OrigErr() error { + return nil +} + +func (s ENILimitReachedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ENILimitReachedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ENILimitReachedException) RequestID() string { + return s.respMetadata.RequestID +} + // A function's environment variable settings. type Environment struct { _ struct{} `type:"structure"` @@ -8652,140 +8950,493 @@ func (s *GetProvisionedConcurrencyConfigOutput) SetStatusReason(v string) *GetPr return s } -// Deprecated: InvokeAsyncInput has been deprecated -type InvokeAsyncInput struct { - _ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"` +// One of the parameters in the request is invalid. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The name of the Lambda function. - // - // Name formats - // - // * Function name - my-function. - // - // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. - // - // * Partial ARN - 123456789012:function:my-function. - // - // The length constraint applies only to the full ARN. If you specify only the - // function name, it is limited to 64 characters in length. - // - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + // The exception message. + Message_ *string `locationName:"message" type:"string"` - // The JSON that you want to provide to your Lambda function as input. - // - // InvokeArgs is a required field - InvokeArgs io.ReadSeeker `type:"blob" required:"true"` + // The exception type. + Type *string `type:"string"` } // String returns the string representation -func (s InvokeAsyncInput) String() string { +func (s InvalidParameterValueException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvokeAsyncInput) GoString() string { +func (s InvalidParameterValueException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InvokeAsyncInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InvokeAsyncInput"} - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.InvokeArgs == nil { - invalidParams.Add(request.NewErrParamRequired("InvokeArgs")) +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { return nil } -// SetFunctionName sets the FunctionName field's value. -func (s *InvokeAsyncInput) SetFunctionName(v string) *InvokeAsyncInput { - s.FunctionName = &v - return s +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetInvokeArgs sets the InvokeArgs field's value. -func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput { - s.InvokeArgs = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode } -// A success response (202 Accepted) indicates that the request is queued for -// invocation. -// -// Deprecated: InvokeAsyncOutput has been deprecated -type InvokeAsyncOutput struct { - _ struct{} `deprecated:"true" type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} - // The status code. - Status *int64 `location:"statusCode" type:"integer"` +// The request body could not be parsed as JSON. +type InvalidRequestContentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception message. + Message_ *string `locationName:"message" type:"string"` + + // The exception type. + Type *string `type:"string"` } // String returns the string representation -func (s InvokeAsyncOutput) String() string { +func (s InvalidRequestContentException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InvokeAsyncOutput) GoString() string { +func (s InvalidRequestContentException) GoString() string { return s.String() } -// SetStatus sets the Status field's value. -func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput { - s.Status = &v - return s +func newErrorInvalidRequestContentException(v protocol.ResponseMetadata) error { + return &InvalidRequestContentException{ + respMetadata: v, + } } -type InvokeInput struct { - _ struct{} `type:"structure" payload:"Payload"` +// Code returns the exception type name. +func (s InvalidRequestContentException) Code() string { + return "InvalidRequestContentException" +} - // Up to 3583 bytes of base64-encoded data about the invoking client to pass - // to the function in the context object. - ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"` +// Message returns the exception's message. +func (s InvalidRequestContentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The name of the Lambda function, version, or alias. - // - // Name formats - // - // * Function name - my-function (name-only), my-function:v1 (with alias). - // - // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. - // - // * Partial ARN - 123456789012:function:my-function. - // - // You can append a version number or alias to any of the formats. The length - // constraint applies only to the full ARN. If you specify only the function - // name, it is limited to 64 characters in length. - // - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestContentException) OrigErr() error { + return nil +} - // Choose from the following options. - // - // * RequestResponse (default) - Invoke the function synchronously. Keep - // the connection open until the function returns a response or times out. - // The API response includes the function response and additional data. - // - // * Event - Invoke the function asynchronously. Send events that fail multiple - // times to the function's dead-letter queue (if it's configured). The API - // response only includes a status code. - // - // * DryRun - Validate parameter values and verify that the user or role - // has permission to invoke the function. - InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"InvocationType"` +func (s InvalidRequestContentException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} - // Set to Tail to include the execution log in the response. - LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestContentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestContentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The runtime or runtime version specified is not supported. +type InvalidRuntimeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s InvalidRuntimeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRuntimeException) GoString() string { + return s.String() +} + +func newErrorInvalidRuntimeException(v protocol.ResponseMetadata) error { + return &InvalidRuntimeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRuntimeException) Code() string { + return "InvalidRuntimeException" +} + +// Message returns the exception's message. +func (s InvalidRuntimeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRuntimeException) OrigErr() error { + return nil +} + +func (s InvalidRuntimeException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRuntimeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRuntimeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Security Group ID provided in the Lambda function VPC configuration is +// invalid. +type InvalidSecurityGroupIDException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s InvalidSecurityGroupIDException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSecurityGroupIDException) GoString() string { + return s.String() +} + +func newErrorInvalidSecurityGroupIDException(v protocol.ResponseMetadata) error { + return &InvalidSecurityGroupIDException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSecurityGroupIDException) Code() string { + return "InvalidSecurityGroupIDException" +} + +// Message returns the exception's message. +func (s InvalidSecurityGroupIDException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSecurityGroupIDException) OrigErr() error { + return nil +} + +func (s InvalidSecurityGroupIDException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSecurityGroupIDException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSecurityGroupIDException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Subnet ID provided in the Lambda function VPC configuration is invalid. +type InvalidSubnetIDException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s InvalidSubnetIDException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSubnetIDException) GoString() string { + return s.String() +} + +func newErrorInvalidSubnetIDException(v protocol.ResponseMetadata) error { + return &InvalidSubnetIDException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSubnetIDException) Code() string { + return "InvalidSubnetIDException" +} + +// Message returns the exception's message. +func (s InvalidSubnetIDException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSubnetIDException) OrigErr() error { + return nil +} + +func (s InvalidSubnetIDException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSubnetIDException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSubnetIDException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Lambda could not unzip the deployment package. +type InvalidZipFileException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s InvalidZipFileException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidZipFileException) GoString() string { + return s.String() +} + +func newErrorInvalidZipFileException(v protocol.ResponseMetadata) error { + return &InvalidZipFileException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidZipFileException) Code() string { + return "InvalidZipFileException" +} + +// Message returns the exception's message. +func (s InvalidZipFileException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidZipFileException) OrigErr() error { + return nil +} + +func (s InvalidZipFileException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidZipFileException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidZipFileException) RequestID() string { + return s.respMetadata.RequestID +} + +// Deprecated: InvokeAsyncInput has been deprecated +type InvokeAsyncInput struct { + _ struct{} `deprecated:"true" type:"structure" payload:"InvokeArgs"` + + // The name of the Lambda function. + // + // Name formats + // + // * Function name - my-function. + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // The length constraint applies only to the full ARN. If you specify only the + // function name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // The JSON that you want to provide to your Lambda function as input. + // + // InvokeArgs is a required field + InvokeArgs io.ReadSeeker `type:"blob" required:"true"` +} + +// String returns the string representation +func (s InvokeAsyncInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvokeAsyncInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InvokeAsyncInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InvokeAsyncInput"} + if s.FunctionName == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionName")) + } + if s.FunctionName != nil && len(*s.FunctionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) + } + if s.InvokeArgs == nil { + invalidParams.Add(request.NewErrParamRequired("InvokeArgs")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFunctionName sets the FunctionName field's value. +func (s *InvokeAsyncInput) SetFunctionName(v string) *InvokeAsyncInput { + s.FunctionName = &v + return s +} + +// SetInvokeArgs sets the InvokeArgs field's value. +func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput { + s.InvokeArgs = v + return s +} + +// A success response (202 Accepted) indicates that the request is queued for +// invocation. +// +// Deprecated: InvokeAsyncOutput has been deprecated +type InvokeAsyncOutput struct { + _ struct{} `deprecated:"true" type:"structure"` + + // The status code. + Status *int64 `location:"statusCode" type:"integer"` +} + +// String returns the string representation +func (s InvokeAsyncOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvokeAsyncOutput) GoString() string { + return s.String() +} + +// SetStatus sets the Status field's value. +func (s *InvokeAsyncOutput) SetStatus(v int64) *InvokeAsyncOutput { + s.Status = &v + return s +} + +type InvokeInput struct { + _ struct{} `type:"structure" payload:"Payload"` + + // Up to 3583 bytes of base64-encoded data about the invoking client to pass + // to the function in the context object. + ClientContext *string `location:"header" locationName:"X-Amz-Client-Context" type:"string"` + + // The name of the Lambda function, version, or alias. + // + // Name formats + // + // * Function name - my-function (name-only), my-function:v1 (with alias). + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // You can append a version number or alias to any of the formats. The length + // constraint applies only to the full ARN. If you specify only the function + // name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // Choose from the following options. + // + // * RequestResponse (default) - Invoke the function synchronously. Keep + // the connection open until the function returns a response or times out. + // The API response includes the function response and additional data. + // + // * Event - Invoke the function asynchronously. Send events that fail multiple + // times to the function's dead-letter queue (if it's configured). The API + // response only includes a status code. + // + // * DryRun - Validate parameter values and verify that the user or role + // has permission to invoke the function. + InvocationType *string `location:"header" locationName:"X-Amz-Invocation-Type" type:"string" enum:"InvocationType"` + + // Set to Tail to include the execution log in the response. + LogType *string `location:"header" locationName:"X-Amz-Log-Type" type:"string" enum:"LogType"` // The JSON that you want to provide to your Lambda function as input. Payload []byte `type:"blob" sensitive:"true"` @@ -8929,8 +9580,244 @@ func (s *InvokeOutput) SetStatusCode(v int64) *InvokeOutput { return s } -// An AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). -type Layer struct { +// Lambda was unable to decrypt the environment variables because KMS access +// was denied. Check the Lambda function's KMS permissions. +type KMSAccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s KMSAccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSAccessDeniedException) GoString() string { + return s.String() +} + +func newErrorKMSAccessDeniedException(v protocol.ResponseMetadata) error { + return &KMSAccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSAccessDeniedException) Code() string { + return "KMSAccessDeniedException" +} + +// Message returns the exception's message. +func (s KMSAccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSAccessDeniedException) OrigErr() error { + return nil +} + +func (s KMSAccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSAccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSAccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Lambda was unable to decrypt the environment variables because the KMS key +// used is disabled. Check the Lambda function's KMS key settings. +type KMSDisabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s KMSDisabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSDisabledException) GoString() string { + return s.String() +} + +func newErrorKMSDisabledException(v protocol.ResponseMetadata) error { + return &KMSDisabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSDisabledException) Code() string { + return "KMSDisabledException" +} + +// Message returns the exception's message. +func (s KMSDisabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSDisabledException) OrigErr() error { + return nil +} + +func (s KMSDisabledException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSDisabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSDisabledException) RequestID() string { + return s.respMetadata.RequestID +} + +// Lambda was unable to decrypt the environment variables because the KMS key +// used is in an invalid state for Decrypt. Check the function's KMS key settings. +type KMSInvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s KMSInvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSInvalidStateException) GoString() string { + return s.String() +} + +func newErrorKMSInvalidStateException(v protocol.ResponseMetadata) error { + return &KMSInvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSInvalidStateException) Code() string { + return "KMSInvalidStateException" +} + +// Message returns the exception's message. +func (s KMSInvalidStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSInvalidStateException) OrigErr() error { + return nil +} + +func (s KMSInvalidStateException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSInvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSInvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// Lambda was unable to decrypt the environment variables because the KMS key +// was not found. Check the function's KMS key settings. +type KMSNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s KMSNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSNotFoundException) GoString() string { + return s.String() +} + +func newErrorKMSNotFoundException(v protocol.ResponseMetadata) error { + return &KMSNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSNotFoundException) Code() string { + return "KMSNotFoundException" +} + +// Message returns the exception's message. +func (s KMSNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSNotFoundException) OrigErr() error { + return nil +} + +func (s KMSNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// An AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html). +type Layer struct { _ struct{} `type:"structure"` // The Amazon Resource Name (ARN) of the function layer. @@ -10143,6 +11030,126 @@ func (s *OnSuccess) SetDestination(v string) *OnSuccess { return s } +// The permissions policy for the resource is too large. Learn more (https://docs.aws.amazon.com/lambda/latest/dg/limits.html) +type PolicyLengthExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s PolicyLengthExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyLengthExceededException) GoString() string { + return s.String() +} + +func newErrorPolicyLengthExceededException(v protocol.ResponseMetadata) error { + return &PolicyLengthExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyLengthExceededException) Code() string { + return "PolicyLengthExceededException" +} + +// Message returns the exception's message. +func (s PolicyLengthExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyLengthExceededException) OrigErr() error { + return nil +} + +func (s PolicyLengthExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyLengthExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyLengthExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The RevisionId provided does not match the latest RevisionId for the Lambda +// function or alias. Call the GetFunction or the GetAlias API to retrieve the +// latest RevisionId for your resource. +type PreconditionFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception message. + Message_ *string `locationName:"message" type:"string"` + + // The exception type. + Type *string `type:"string"` +} + +// String returns the string representation +func (s PreconditionFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PreconditionFailedException) GoString() string { + return s.String() +} + +func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error { + return &PreconditionFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PreconditionFailedException) Code() string { + return "PreconditionFailedException" +} + +// Message returns the exception's message. +func (s PreconditionFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PreconditionFailedException) OrigErr() error { + return nil +} + +func (s PreconditionFailedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PreconditionFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PreconditionFailedException) RequestID() string { + return s.respMetadata.RequestID +} + // Details about the provisioned concurrency configuration for a function alias // or version. type ProvisionedConcurrencyConfigListItem struct { @@ -10224,6 +11231,64 @@ func (s *ProvisionedConcurrencyConfigListItem) SetStatusReason(v string) *Provis return s } +// The specified configuration does not exist. +type ProvisionedConcurrencyConfigNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s ProvisionedConcurrencyConfigNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedConcurrencyConfigNotFoundException) GoString() string { + return s.String() +} + +func newErrorProvisionedConcurrencyConfigNotFoundException(v protocol.ResponseMetadata) error { + return &ProvisionedConcurrencyConfigNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProvisionedConcurrencyConfigNotFoundException) Code() string { + return "ProvisionedConcurrencyConfigNotFoundException" +} + +// Message returns the exception's message. +func (s ProvisionedConcurrencyConfigNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProvisionedConcurrencyConfigNotFoundException) OrigErr() error { + return nil +} + +func (s ProvisionedConcurrencyConfigNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProvisionedConcurrencyConfigNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProvisionedConcurrencyConfigNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type PublishLayerVersionInput struct { _ struct{} `type:"structure"` @@ -10860,259 +11925,674 @@ type PutProvisionedConcurrencyConfigOutput struct { // The status of the allocation process. Status *string `type:"string" enum:"ProvisionedConcurrencyStatusEnum"` - // For failed allocations, the reason that provisioned concurrency could not - // be allocated. - StatusReason *string `type:"string"` + // For failed allocations, the reason that provisioned concurrency could not + // be allocated. + StatusReason *string `type:"string"` +} + +// String returns the string representation +func (s PutProvisionedConcurrencyConfigOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PutProvisionedConcurrencyConfigOutput) GoString() string { + return s.String() +} + +// SetAllocatedProvisionedConcurrentExecutions sets the AllocatedProvisionedConcurrentExecutions field's value. +func (s *PutProvisionedConcurrencyConfigOutput) SetAllocatedProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput { + s.AllocatedProvisionedConcurrentExecutions = &v + return s +} + +// SetAvailableProvisionedConcurrentExecutions sets the AvailableProvisionedConcurrentExecutions field's value. +func (s *PutProvisionedConcurrencyConfigOutput) SetAvailableProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput { + s.AvailableProvisionedConcurrentExecutions = &v + return s +} + +// SetLastModified sets the LastModified field's value. +func (s *PutProvisionedConcurrencyConfigOutput) SetLastModified(v string) *PutProvisionedConcurrencyConfigOutput { + s.LastModified = &v + return s +} + +// SetRequestedProvisionedConcurrentExecutions sets the RequestedProvisionedConcurrentExecutions field's value. +func (s *PutProvisionedConcurrencyConfigOutput) SetRequestedProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput { + s.RequestedProvisionedConcurrentExecutions = &v + return s +} + +// SetStatus sets the Status field's value. +func (s *PutProvisionedConcurrencyConfigOutput) SetStatus(v string) *PutProvisionedConcurrencyConfigOutput { + s.Status = &v + return s +} + +// SetStatusReason sets the StatusReason field's value. +func (s *PutProvisionedConcurrencyConfigOutput) SetStatusReason(v string) *PutProvisionedConcurrencyConfigOutput { + s.StatusReason = &v + return s +} + +type RemoveLayerVersionPermissionInput struct { + _ struct{} `type:"structure"` + + // The name or Amazon Resource Name (ARN) of the layer. + // + // LayerName is a required field + LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` + + // Only update the policy if the revision ID matches the ID specified. Use this + // option to avoid modifying a policy that has changed since you last read it. + RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` + + // The identifier that was specified when the statement was added. + // + // StatementId is a required field + StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` + + // The version number. + // + // VersionNumber is a required field + VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` +} + +// String returns the string representation +func (s RemoveLayerVersionPermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveLayerVersionPermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemoveLayerVersionPermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemoveLayerVersionPermissionInput"} + if s.LayerName == nil { + invalidParams.Add(request.NewErrParamRequired("LayerName")) + } + if s.LayerName != nil && len(*s.LayerName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) + } + if s.StatementId == nil { + invalidParams.Add(request.NewErrParamRequired("StatementId")) + } + if s.StatementId != nil && len(*s.StatementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) + } + if s.VersionNumber == nil { + invalidParams.Add(request.NewErrParamRequired("VersionNumber")) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLayerName sets the LayerName field's value. +func (s *RemoveLayerVersionPermissionInput) SetLayerName(v string) *RemoveLayerVersionPermissionInput { + s.LayerName = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *RemoveLayerVersionPermissionInput) SetRevisionId(v string) *RemoveLayerVersionPermissionInput { + s.RevisionId = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *RemoveLayerVersionPermissionInput) SetStatementId(v string) *RemoveLayerVersionPermissionInput { + s.StatementId = &v + return s +} + +// SetVersionNumber sets the VersionNumber field's value. +func (s *RemoveLayerVersionPermissionInput) SetVersionNumber(v int64) *RemoveLayerVersionPermissionInput { + s.VersionNumber = &v + return s +} + +type RemoveLayerVersionPermissionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemoveLayerVersionPermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemoveLayerVersionPermissionOutput) GoString() string { + return s.String() +} + +type RemovePermissionInput struct { + _ struct{} `type:"structure"` + + // The name of the Lambda function, version, or alias. + // + // Name formats + // + // * Function name - my-function (name-only), my-function:v1 (with alias). + // + // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. + // + // * Partial ARN - 123456789012:function:my-function. + // + // You can append a version number or alias to any of the formats. The length + // constraint applies only to the full ARN. If you specify only the function + // name, it is limited to 64 characters in length. + // + // FunctionName is a required field + FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` + + // Specify a version or alias to remove permissions from a published version + // of the function. + Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` + + // Only update the policy if the revision ID matches the ID that's specified. + // Use this option to avoid modifying a policy that has changed since you last + // read it. + RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` + + // Statement ID of the permission to remove. + // + // StatementId is a required field + StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s RemovePermissionInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemovePermissionInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *RemovePermissionInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "RemovePermissionInput"} + if s.FunctionName == nil { + invalidParams.Add(request.NewErrParamRequired("FunctionName")) + } + if s.FunctionName != nil && len(*s.FunctionName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) + } + if s.Qualifier != nil && len(*s.Qualifier) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) + } + if s.StatementId == nil { + invalidParams.Add(request.NewErrParamRequired("StatementId")) + } + if s.StatementId != nil && len(*s.StatementId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetFunctionName sets the FunctionName field's value. +func (s *RemovePermissionInput) SetFunctionName(v string) *RemovePermissionInput { + s.FunctionName = &v + return s +} + +// SetQualifier sets the Qualifier field's value. +func (s *RemovePermissionInput) SetQualifier(v string) *RemovePermissionInput { + s.Qualifier = &v + return s +} + +// SetRevisionId sets the RevisionId field's value. +func (s *RemovePermissionInput) SetRevisionId(v string) *RemovePermissionInput { + s.RevisionId = &v + return s +} + +// SetStatementId sets the StatementId field's value. +func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput { + s.StatementId = &v + return s +} + +type RemovePermissionOutput struct { + _ struct{} `type:"structure"` +} + +// String returns the string representation +func (s RemovePermissionOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RemovePermissionOutput) GoString() string { + return s.String() +} + +// The request payload exceeded the Invoke request body JSON input limit. For +// more information, see Limits (https://docs.aws.amazon.com/lambda/latest/dg/limits.html). +type RequestTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s RequestTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestTooLargeException) GoString() string { + return s.String() +} + +func newErrorRequestTooLargeException(v protocol.ResponseMetadata) error { + return &RequestTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestTooLargeException) Code() string { + return "RequestTooLargeException" +} + +// Message returns the exception's message. +func (s RequestTooLargeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestTooLargeException) OrigErr() error { + return nil +} + +func (s RequestTooLargeException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource already exists, or another operation is in progress. +type ResourceConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception message. + Message_ *string `locationName:"message" type:"string"` + + // The exception type. + Type *string `type:"string"` +} + +// String returns the string representation +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceConflictException) OrigErr() error { + return nil +} + +func (s ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation conflicts with the resource's availability. For example, you +// attempted to update an EventSource Mapping in CREATING, or tried to delete +// a EventSource mapping currently in the UPDATING state. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource specified in the request does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` } // String returns the string representation -func (s PutProvisionedConcurrencyConfigOutput) String() string { +func (s ResourceNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PutProvisionedConcurrencyConfigOutput) GoString() string { +func (s ResourceNotFoundException) GoString() string { return s.String() } -// SetAllocatedProvisionedConcurrentExecutions sets the AllocatedProvisionedConcurrentExecutions field's value. -func (s *PutProvisionedConcurrencyConfigOutput) SetAllocatedProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput { - s.AllocatedProvisionedConcurrentExecutions = &v - return s +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } } -// SetAvailableProvisionedConcurrentExecutions sets the AvailableProvisionedConcurrentExecutions field's value. -func (s *PutProvisionedConcurrencyConfigOutput) SetAvailableProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput { - s.AvailableProvisionedConcurrentExecutions = &v - return s +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" } -// SetLastModified sets the LastModified field's value. -func (s *PutProvisionedConcurrencyConfigOutput) SetLastModified(v string) *PutProvisionedConcurrencyConfigOutput { - s.LastModified = &v - return s +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetRequestedProvisionedConcurrentExecutions sets the RequestedProvisionedConcurrentExecutions field's value. -func (s *PutProvisionedConcurrencyConfigOutput) SetRequestedProvisionedConcurrentExecutions(v int64) *PutProvisionedConcurrencyConfigOutput { - s.RequestedProvisionedConcurrentExecutions = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil } -// SetStatus sets the Status field's value. -func (s *PutProvisionedConcurrencyConfigOutput) SetStatus(v string) *PutProvisionedConcurrencyConfigOutput { - s.Status = &v - return s +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetStatusReason sets the StatusReason field's value. -func (s *PutProvisionedConcurrencyConfigOutput) SetStatusReason(v string) *PutProvisionedConcurrencyConfigOutput { - s.StatusReason = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode } -type RemoveLayerVersionPermissionInput struct { - _ struct{} `type:"structure"` - - // The name or Amazon Resource Name (ARN) of the layer. - // - // LayerName is a required field - LayerName *string `location:"uri" locationName:"LayerName" min:"1" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} - // Only update the policy if the revision ID matches the ID specified. Use this - // option to avoid modifying a policy that has changed since you last read it. - RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` +// The function is inactive and its VPC connection is no longer available. Wait +// for the VPC connection to reestablish and try again. +type ResourceNotReadyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The identifier that was specified when the statement was added. - // - // StatementId is a required field - StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` + // The exception message. + Message_ *string `locationName:"message" type:"string"` - // The version number. - // - // VersionNumber is a required field - VersionNumber *int64 `location:"uri" locationName:"VersionNumber" type:"long" required:"true"` + // The exception type. + Type *string `type:"string"` } // String returns the string representation -func (s RemoveLayerVersionPermissionInput) String() string { +func (s ResourceNotReadyException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemoveLayerVersionPermissionInput) GoString() string { +func (s ResourceNotReadyException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemoveLayerVersionPermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemoveLayerVersionPermissionInput"} - if s.LayerName == nil { - invalidParams.Add(request.NewErrParamRequired("LayerName")) - } - if s.LayerName != nil && len(*s.LayerName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LayerName", 1)) - } - if s.StatementId == nil { - invalidParams.Add(request.NewErrParamRequired("StatementId")) - } - if s.StatementId != nil && len(*s.StatementId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) - } - if s.VersionNumber == nil { - invalidParams.Add(request.NewErrParamRequired("VersionNumber")) +func newErrorResourceNotReadyException(v protocol.ResponseMetadata) error { + return &ResourceNotReadyException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s ResourceNotReadyException) Code() string { + return "ResourceNotReadyException" +} + +// Message returns the exception's message. +func (s ResourceNotReadyException) Message() string { + if s.Message_ != nil { + return *s.Message_ } - return nil + return "" } -// SetLayerName sets the LayerName field's value. -func (s *RemoveLayerVersionPermissionInput) SetLayerName(v string) *RemoveLayerVersionPermissionInput { - s.LayerName = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotReadyException) OrigErr() error { + return nil } -// SetRevisionId sets the RevisionId field's value. -func (s *RemoveLayerVersionPermissionInput) SetRevisionId(v string) *RemoveLayerVersionPermissionInput { - s.RevisionId = &v - return s +func (s ResourceNotReadyException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// SetStatementId sets the StatementId field's value. -func (s *RemoveLayerVersionPermissionInput) SetStatementId(v string) *RemoveLayerVersionPermissionInput { - s.StatementId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotReadyException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetVersionNumber sets the VersionNumber field's value. -func (s *RemoveLayerVersionPermissionInput) SetVersionNumber(v int64) *RemoveLayerVersionPermissionInput { - s.VersionNumber = &v - return s +// RequestID returns the service's response RequestID for request. +func (s ResourceNotReadyException) RequestID() string { + return s.respMetadata.RequestID } -type RemoveLayerVersionPermissionOutput struct { - _ struct{} `type:"structure"` +// The AWS Lambda service encountered an internal error. +type ServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` } // String returns the string representation -func (s RemoveLayerVersionPermissionOutput) String() string { +func (s ServiceException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemoveLayerVersionPermissionOutput) GoString() string { +func (s ServiceException) GoString() string { return s.String() } -type RemovePermissionInput struct { - _ struct{} `type:"structure"` +func newErrorServiceException(v protocol.ResponseMetadata) error { + return &ServiceException{ + respMetadata: v, + } +} - // The name of the Lambda function, version, or alias. - // - // Name formats - // - // * Function name - my-function (name-only), my-function:v1 (with alias). - // - // * Function ARN - arn:aws:lambda:us-west-2:123456789012:function:my-function. - // - // * Partial ARN - 123456789012:function:my-function. - // - // You can append a version number or alias to any of the formats. The length - // constraint applies only to the full ARN. If you specify only the function - // name, it is limited to 64 characters in length. - // - // FunctionName is a required field - FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` +// Code returns the exception type name. +func (s ServiceException) Code() string { + return "ServiceException" +} - // Specify a version or alias to remove permissions from a published version - // of the function. - Qualifier *string `location:"querystring" locationName:"Qualifier" min:"1" type:"string"` +// Message returns the exception's message. +func (s ServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // Only update the policy if the revision ID matches the ID that's specified. - // Use this option to avoid modifying a policy that has changed since you last - // read it. - RevisionId *string `location:"querystring" locationName:"RevisionId" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceException) OrigErr() error { + return nil +} - // Statement ID of the permission to remove. - // - // StatementId is a required field - StatementId *string `location:"uri" locationName:"StatementId" min:"1" type:"string" required:"true"` +func (s ServiceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Lambda was not able to set up VPC access for the Lambda function because +// one or more configured subnets has no available IP addresses. +type SubnetIPAddressLimitReachedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` } // String returns the string representation -func (s RemovePermissionInput) String() string { +func (s SubnetIPAddressLimitReachedException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s RemovePermissionInput) GoString() string { +func (s SubnetIPAddressLimitReachedException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *RemovePermissionInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "RemovePermissionInput"} - if s.FunctionName == nil { - invalidParams.Add(request.NewErrParamRequired("FunctionName")) - } - if s.FunctionName != nil && len(*s.FunctionName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("FunctionName", 1)) - } - if s.Qualifier != nil && len(*s.Qualifier) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Qualifier", 1)) - } - if s.StatementId == nil { - invalidParams.Add(request.NewErrParamRequired("StatementId")) - } - if s.StatementId != nil && len(*s.StatementId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorSubnetIPAddressLimitReachedException(v protocol.ResponseMetadata) error { + return &SubnetIPAddressLimitReachedException{ + respMetadata: v, } - return nil } -// SetFunctionName sets the FunctionName field's value. -func (s *RemovePermissionInput) SetFunctionName(v string) *RemovePermissionInput { - s.FunctionName = &v - return s -} - -// SetQualifier sets the Qualifier field's value. -func (s *RemovePermissionInput) SetQualifier(v string) *RemovePermissionInput { - s.Qualifier = &v - return s +// Code returns the exception type name. +func (s SubnetIPAddressLimitReachedException) Code() string { + return "SubnetIPAddressLimitReachedException" } -// SetRevisionId sets the RevisionId field's value. -func (s *RemovePermissionInput) SetRevisionId(v string) *RemovePermissionInput { - s.RevisionId = &v - return s +// Message returns the exception's message. +func (s SubnetIPAddressLimitReachedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetStatementId sets the StatementId field's value. -func (s *RemovePermissionInput) SetStatementId(v string) *RemovePermissionInput { - s.StatementId = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubnetIPAddressLimitReachedException) OrigErr() error { + return nil } -type RemovePermissionOutput struct { - _ struct{} `type:"structure"` +func (s SubnetIPAddressLimitReachedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// String returns the string representation -func (s RemovePermissionOutput) String() string { - return awsutil.Prettify(s) +// Status code returns the HTTP status code for the request's response error. +func (s SubnetIPAddressLimitReachedException) StatusCode() int { + return s.respMetadata.StatusCode } -// GoString returns the string representation -func (s RemovePermissionOutput) GoString() string { - return s.String() +// RequestID returns the service's response RequestID for request. +func (s SubnetIPAddressLimitReachedException) RequestID() string { + return s.respMetadata.RequestID } type TagResourceInput struct { @@ -11184,6 +12664,69 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The request throughput limit was exceeded. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + Reason *string `type:"string" enum:"ThrottleReason"` + + // The number of seconds the caller should wait before retrying. + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // The function's AWS X-Ray tracing configuration. type TracingConfig struct { _ struct{} `type:"structure"` @@ -11232,6 +12775,64 @@ func (s *TracingConfigResponse) SetMode(v string) *TracingConfigResponse { return s } +// The content type of the Invoke request body is not JSON. +type UnsupportedMediaTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s UnsupportedMediaTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedMediaTypeException) GoString() string { + return s.String() +} + +func newErrorUnsupportedMediaTypeException(v protocol.ResponseMetadata) error { + return &UnsupportedMediaTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedMediaTypeException) Code() string { + return "UnsupportedMediaTypeException" +} + +// Message returns the exception's message. +func (s UnsupportedMediaTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedMediaTypeException) OrigErr() error { + return nil +} + +func (s UnsupportedMediaTypeException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedMediaTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedMediaTypeException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/lambda/errors.go b/service/lambda/errors.go index 843bd0ac133..739daeca0a5 100644 --- a/service/lambda/errors.go +++ b/service/lambda/errors.go @@ -2,6 +2,10 @@ package lambda +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCodeStorageExceededException for service response error code @@ -182,3 +186,33 @@ const ( // The content type of the Invoke request body is not JSON. ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CodeStorageExceededException": newErrorCodeStorageExceededException, + "EC2AccessDeniedException": newErrorEC2AccessDeniedException, + "EC2ThrottledException": newErrorEC2ThrottledException, + "EC2UnexpectedException": newErrorEC2UnexpectedException, + "ENILimitReachedException": newErrorENILimitReachedException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidRequestContentException": newErrorInvalidRequestContentException, + "InvalidRuntimeException": newErrorInvalidRuntimeException, + "InvalidSecurityGroupIDException": newErrorInvalidSecurityGroupIDException, + "InvalidSubnetIDException": newErrorInvalidSubnetIDException, + "InvalidZipFileException": newErrorInvalidZipFileException, + "KMSAccessDeniedException": newErrorKMSAccessDeniedException, + "KMSDisabledException": newErrorKMSDisabledException, + "KMSInvalidStateException": newErrorKMSInvalidStateException, + "KMSNotFoundException": newErrorKMSNotFoundException, + "PolicyLengthExceededException": newErrorPolicyLengthExceededException, + "PreconditionFailedException": newErrorPreconditionFailedException, + "ProvisionedConcurrencyConfigNotFoundException": newErrorProvisionedConcurrencyConfigNotFoundException, + "RequestTooLargeException": newErrorRequestTooLargeException, + "ResourceConflictException": newErrorResourceConflictException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceNotReadyException": newErrorResourceNotReadyException, + "ServiceException": newErrorServiceException, + "SubnetIPAddressLimitReachedException": newErrorSubnetIPAddressLimitReachedException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnsupportedMediaTypeException": newErrorUnsupportedMediaTypeException, +} diff --git a/service/lambda/service.go b/service/lambda/service.go index 65f5c622f5d..20a8ee892f5 100644 --- a/service/lambda/service.go +++ b/service/lambda/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/lexmodelbuildingservice/api.go b/service/lexmodelbuildingservice/api.go index b6481e4595b..f721043304e 100644 --- a/service/lexmodelbuildingservice/api.go +++ b/service/lexmodelbuildingservice/api.go @@ -76,25 +76,25 @@ func (c *LexModelBuildingService) CreateBotVersionRequest(input *CreateBotVersio // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation CreateBotVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The checksum of the resource that you are trying to change does not match // the checksum in the request. Check the resource's checksum and try again. // @@ -185,25 +185,25 @@ func (c *LexModelBuildingService) CreateIntentVersionRequest(input *CreateIntent // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation CreateIntentVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The checksum of the resource that you are trying to change does not match // the checksum in the request. Check the resource's checksum and try again. // @@ -293,25 +293,25 @@ func (c *LexModelBuildingService) CreateSlotTypeVersionRequest(input *CreateSlot // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation CreateSlotTypeVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The checksum of the resource that you are trying to change does not match // the checksum in the request. Check the resource's checksum and try again. // @@ -406,25 +406,25 @@ func (c *LexModelBuildingService) DeleteBotRequest(input *DeleteBotInput) (req * // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteBot for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are attempting to delete is referred to by another // resource. Use this information to remove references to the resource that // you are trying to delete. @@ -521,25 +521,25 @@ func (c *LexModelBuildingService) DeleteBotAliasRequest(input *DeleteBotAliasInp // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteBotAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are attempting to delete is referred to by another // resource. Use this information to remove references to the resource that // you are trying to delete. @@ -631,21 +631,21 @@ func (c *LexModelBuildingService) DeleteBotChannelAssociationRequest(input *Dele // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteBotChannelAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -728,25 +728,25 @@ func (c *LexModelBuildingService) DeleteBotVersionRequest(input *DeleteBotVersio // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteBotVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are attempting to delete is referred to by another // resource. Use this information to remove references to the resource that // you are trying to delete. @@ -848,25 +848,25 @@ func (c *LexModelBuildingService) DeleteIntentRequest(input *DeleteIntentInput) // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteIntent for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are attempting to delete is referred to by another // resource. Use this information to remove references to the resource that // you are trying to delete. @@ -958,25 +958,25 @@ func (c *LexModelBuildingService) DeleteIntentVersionRequest(input *DeleteIntent // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteIntentVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are attempting to delete is referred to by another // resource. Use this information to remove references to the resource that // you are trying to delete. @@ -1080,25 +1080,25 @@ func (c *LexModelBuildingService) DeleteSlotTypeRequest(input *DeleteSlotTypeInp // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteSlotType for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are attempting to delete is referred to by another // resource. Use this information to remove references to the resource that // you are trying to delete. @@ -1190,25 +1190,25 @@ func (c *LexModelBuildingService) DeleteSlotTypeVersionRequest(input *DeleteSlot // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteSlotTypeVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you are attempting to delete is referred to by another // resource. Use this information to remove references to the resource that // you are trying to delete. @@ -1310,18 +1310,18 @@ func (c *LexModelBuildingService) DeleteUtterancesRequest(input *DeleteUtterance // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation DeleteUtterances for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -1403,18 +1403,18 @@ func (c *LexModelBuildingService) GetBotRequest(input *GetBotInput) (req *reques // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBot for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -1496,18 +1496,18 @@ func (c *LexModelBuildingService) GetBotAliasRequest(input *GetBotAliasInput) (r // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBotAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -1594,14 +1594,14 @@ func (c *LexModelBuildingService) GetBotAliasesRequest(input *GetBotAliasesInput // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBotAliases for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -1736,18 +1736,18 @@ func (c *LexModelBuildingService) GetBotChannelAssociationRequest(input *GetBotC // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBotChannelAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -1835,14 +1835,14 @@ func (c *LexModelBuildingService) GetBotChannelAssociationsRequest(input *GetBot // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBotChannelAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -1989,18 +1989,18 @@ func (c *LexModelBuildingService) GetBotVersionsRequest(input *GetBotVersionsInp // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBotVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2146,18 +2146,18 @@ func (c *LexModelBuildingService) GetBotsRequest(input *GetBotsInput) (req *requ // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBots for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2290,18 +2290,18 @@ func (c *LexModelBuildingService) GetBuiltinIntentRequest(input *GetBuiltinInten // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBuiltinIntent for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2388,14 +2388,14 @@ func (c *LexModelBuildingService) GetBuiltinIntentsRequest(input *GetBuiltinInte // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBuiltinIntents for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2537,14 +2537,14 @@ func (c *LexModelBuildingService) GetBuiltinSlotTypesRequest(input *GetBuiltinSl // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetBuiltinSlotTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2675,18 +2675,18 @@ func (c *LexModelBuildingService) GetExportRequest(input *GetExportInput) (req * // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetExport for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2765,18 +2765,18 @@ func (c *LexModelBuildingService) GetImportRequest(input *GetImportInput) (req * // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetImport for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2858,18 +2858,18 @@ func (c *LexModelBuildingService) GetIntentRequest(input *GetIntentInput) (req * // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetIntent for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -2964,18 +2964,18 @@ func (c *LexModelBuildingService) GetIntentVersionsRequest(input *GetIntentVersi // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetIntentVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -3120,18 +3120,18 @@ func (c *LexModelBuildingService) GetIntentsRequest(input *GetIntentsInput) (req // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetIntents for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -3265,18 +3265,18 @@ func (c *LexModelBuildingService) GetSlotTypeRequest(input *GetSlotTypeInput) (r // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetSlotType for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -3371,18 +3371,18 @@ func (c *LexModelBuildingService) GetSlotTypeVersionsRequest(input *GetSlotTypeV // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetSlotTypeVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -3527,18 +3527,18 @@ func (c *LexModelBuildingService) GetSlotTypesRequest(input *GetSlotTypesInput) // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetSlotTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource specified in the request was not found. Check the resource and // try again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -3693,14 +3693,14 @@ func (c *LexModelBuildingService) GetUtterancesViewRequest(input *GetUtterancesV // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation GetUtterancesView for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -3796,21 +3796,21 @@ func (c *LexModelBuildingService) PutBotRequest(input *PutBotInput) (req *reques // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation PutBot for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The checksum of the resource that you are trying to change does not match // the checksum in the request. Check the resource's checksum and try again. // @@ -3893,21 +3893,21 @@ func (c *LexModelBuildingService) PutBotAliasRequest(input *PutBotAliasInput) (r // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation PutBotAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The checksum of the resource that you are trying to change does not match // the checksum in the request. Check the resource's checksum and try again. // @@ -4030,21 +4030,21 @@ func (c *LexModelBuildingService) PutIntentRequest(input *PutIntentInput) (req * // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation PutIntent for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The checksum of the resource that you are trying to change does not match // the checksum in the request. Check the resource's checksum and try again. // @@ -4136,21 +4136,21 @@ func (c *LexModelBuildingService) PutSlotTypeRequest(input *PutSlotTypeInput) (r // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation PutSlotType for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // There was a conflict processing the request. Try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // -// * ErrCodePreconditionFailedException "PreconditionFailedException" +// * PreconditionFailedException // The checksum of the resource that you are trying to change does not match // the checksum in the request. Check the resource's checksum and try again. // @@ -4229,14 +4229,14 @@ func (c *LexModelBuildingService) StartImportRequest(input *StartImportInput) (r // See the AWS API reference guide for Amazon Lex Model Building Service's // API operation StartImport for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The request exceeded a limit. Try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal Amazon Lex error occurred. Try your request again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request is not well formed. For example, a value is invalid or a required // field is missing. Check the field values, and try again. // @@ -4262,6 +4262,63 @@ func (c *LexModelBuildingService) StartImportWithContext(ctx aws.Context, input return out, req.Send() } +// The request is not well formed. For example, a value is invalid or a required +// field is missing. Check the field values, and try again. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information about a bot alias. type BotAliasMetadata struct { _ struct{} `type:"structure"` @@ -4686,6 +4743,62 @@ func (s *CodeHook) SetUri(v string) *CodeHook { return s } +// There was a conflict processing the request. Try your request again. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides the settings needed for conversation logs. type ConversationLogsRequest struct { _ struct{} `type:"structure"` @@ -8811,6 +8924,120 @@ func (s *IntentMetadata) SetVersion(v string) *IntentMetadata { return s } +// An internal Amazon Lex error occurred. Try your request again. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request exceeded a limit. Try your request again. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Settings used to configure delivery mode and destination for conversation // logs. type LogSettingsRequest struct { @@ -9033,6 +9260,120 @@ func (s *Message) SetGroupNumber(v int64) *Message { return s } +// The resource specified in the request was not found. Check the resource and +// try again. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The checksum of the resource that you are trying to change does not match +// the checksum in the request. Check the resource's checksum and try again. +type PreconditionFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PreconditionFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PreconditionFailedException) GoString() string { + return s.String() +} + +func newErrorPreconditionFailedException(v protocol.ResponseMetadata) error { + return &PreconditionFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PreconditionFailedException) Code() string { + return "PreconditionFailedException" +} + +// Message returns the exception's message. +func (s PreconditionFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PreconditionFailedException) OrigErr() error { + return nil +} + +func (s PreconditionFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PreconditionFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PreconditionFailedException) RequestID() string { + return s.respMetadata.RequestID +} + // Obtains information from the user. To define a prompt, provide one or more // messages and specify the number of attempts to get information from the user. // If you provide more than one message, Amazon Lex chooses one of the messages @@ -10498,6 +10839,74 @@ func (s *PutSlotTypeOutput) SetVersion(v string) *PutSlotTypeOutput { return s } +// The resource that you are attempting to delete is referred to by another +// resource. Use this information to remove references to the resource that +// you are trying to delete. +// +// The body of the exception contains a JSON object that describes the resource. +// +// { "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT, +// +// "resourceReference": { +// +// "name": string, "version": string } } +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Describes the resource that refers to the resource that you are attempting + // to delete. This object is returned as part of the ResourceInUseException + // exception. + ExampleReference *ResourceReference `locationName:"exampleReference" type:"structure"` + + ReferenceType *string `locationName:"referenceType" type:"string" enum:"ReferenceType"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the resource that refers to the resource that you are attempting // to delete. This object is returned as part of the ResourceInUseException // exception. diff --git a/service/lexmodelbuildingservice/errors.go b/service/lexmodelbuildingservice/errors.go index da3b08cb8d6..ad9e017f214 100644 --- a/service/lexmodelbuildingservice/errors.go +++ b/service/lexmodelbuildingservice/errors.go @@ -2,6 +2,10 @@ package lexmodelbuildingservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -59,3 +63,13 @@ const ( // "name": string, "version": string } } ErrCodeResourceInUseException = "ResourceInUseException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "InternalFailureException": newErrorInternalFailureException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "PreconditionFailedException": newErrorPreconditionFailedException, + "ResourceInUseException": newErrorResourceInUseException, +} diff --git a/service/lexmodelbuildingservice/service.go b/service/lexmodelbuildingservice/service.go index c976c898f5d..3d811922053 100644 --- a/service/lexmodelbuildingservice/service.go +++ b/service/lexmodelbuildingservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/lexruntimeservice/api.go b/service/lexruntimeservice/api.go index edb1e69d19a..74f94ebc70b 100644 --- a/service/lexruntimeservice/api.go +++ b/service/lexruntimeservice/api.go @@ -10,6 +10,7 @@ import ( "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" ) const opDeleteSession = "DeleteSession" @@ -65,22 +66,22 @@ func (c *LexRuntimeService) DeleteSessionRequest(input *DeleteSessionInput) (req // See the AWS API reference guide for Amazon Lex Runtime Service's // API operation DeleteSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (such as the Amazon Lex bot or an alias) that is referred to // is not found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Request validation failed, there is no usable message in the context, or // the bot build failed, is still in progress, or contains unbuilt changes. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exceeded a limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Internal service error. Retry the call. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Two clients are using the same AWS account, Amazon Lex bot, and user ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/DeleteSession @@ -158,19 +159,19 @@ func (c *LexRuntimeService) GetSessionRequest(input *GetSessionInput) (req *requ // See the AWS API reference guide for Amazon Lex Runtime Service's // API operation GetSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (such as the Amazon Lex bot or an alias) that is referred to // is not found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Request validation failed, there is no usable message in the context, or // the bot build failed, is still in progress, or contains unbuilt changes. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exceeded a limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Internal service error. Retry the call. // // See also, https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/GetSession @@ -297,34 +298,34 @@ func (c *LexRuntimeService) PostContentRequest(input *PostContentInput) (req *re // See the AWS API reference guide for Amazon Lex Runtime Service's // API operation PostContent for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (such as the Amazon Lex bot or an alias) that is referred to // is not found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Request validation failed, there is no usable message in the context, or // the bot build failed, is still in progress, or contains unbuilt changes. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exceeded a limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Internal service error. Retry the call. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Two clients are using the same AWS account, Amazon Lex bot, and user ID. // -// * ErrCodeUnsupportedMediaTypeException "UnsupportedMediaTypeException" +// * UnsupportedMediaTypeException // The Content-Type header (PostContent API) has an invalid value. // -// * ErrCodeNotAcceptableException "NotAcceptableException" +// * NotAcceptableException // The accept header in the request does not have a valid value. // -// * ErrCodeRequestTimeoutException "RequestTimeoutException" +// * RequestTimeoutException // The input speech is too long. // -// * ErrCodeDependencyFailedException "DependencyFailedException" +// * DependencyFailedException // One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. // For example, // @@ -336,11 +337,11 @@ func (c *LexRuntimeService) PostContentRequest(input *PostContentInput) (req *re // * If a fulfillment Lambda function returns a Delegate dialog action without // removing any slot values. // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // Either the Amazon Lex bot is still building, or one of the dependent services // (Amazon Polly, AWS Lambda) failed with an internal service error. // -// * ErrCodeLoopDetectedException "LoopDetectedException" +// * LoopDetectedException // This exception is not used. // // See also, https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostContent @@ -459,25 +460,25 @@ func (c *LexRuntimeService) PostTextRequest(input *PostTextInput) (req *request. // See the AWS API reference guide for Amazon Lex Runtime Service's // API operation PostText for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (such as the Amazon Lex bot or an alias) that is referred to // is not found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Request validation failed, there is no usable message in the context, or // the bot build failed, is still in progress, or contains unbuilt changes. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exceeded a limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Internal service error. Retry the call. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Two clients are using the same AWS account, Amazon Lex bot, and user ID. // -// * ErrCodeDependencyFailedException "DependencyFailedException" +// * DependencyFailedException // One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. // For example, // @@ -489,11 +490,11 @@ func (c *LexRuntimeService) PostTextRequest(input *PostTextInput) (req *request. // * If a fulfillment Lambda function returns a Delegate dialog action without // removing any slot values. // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // Either the Amazon Lex bot is still building, or one of the dependent services // (Amazon Polly, AWS Lambda) failed with an internal service error. // -// * ErrCodeLoopDetectedException "LoopDetectedException" +// * LoopDetectedException // This exception is not used. // // See also, https://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostText @@ -575,28 +576,28 @@ func (c *LexRuntimeService) PutSessionRequest(input *PutSessionInput) (req *requ // See the AWS API reference guide for Amazon Lex Runtime Service's // API operation PutSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (such as the Amazon Lex bot or an alias) that is referred to // is not found. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Request validation failed, there is no usable message in the context, or // the bot build failed, is still in progress, or contains unbuilt changes. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Exceeded a limit. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // Internal service error. Retry the call. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Two clients are using the same AWS account, Amazon Lex bot, and user ID. // -// * ErrCodeNotAcceptableException "NotAcceptableException" +// * NotAcceptableException // The accept header in the request does not have a valid value. // -// * ErrCodeDependencyFailedException "DependencyFailedException" +// * DependencyFailedException // One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. // For example, // @@ -608,7 +609,7 @@ func (c *LexRuntimeService) PutSessionRequest(input *PutSessionInput) (req *requ // * If a fulfillment Lambda function returns a Delegate dialog action without // removing any slot values. // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // Either the Amazon Lex bot is still building, or one of the dependent services // (Amazon Polly, AWS Lambda) failed with an internal service error. // @@ -634,6 +635,120 @@ func (c *LexRuntimeService) PutSessionWithContext(ctx aws.Context, input *PutSes return out, req.Send() } +// Either the Amazon Lex bot is still building, or one of the dependent services +// (Amazon Polly, AWS Lambda) failed with an internal service error. +type BadGatewayException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadGatewayException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadGatewayException) GoString() string { + return s.String() +} + +func newErrorBadGatewayException(v protocol.ResponseMetadata) error { + return &BadGatewayException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadGatewayException) Code() string { + return "BadGatewayException" +} + +// Message returns the exception's message. +func (s BadGatewayException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadGatewayException) OrigErr() error { + return nil +} + +func (s BadGatewayException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadGatewayException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadGatewayException) RequestID() string { + return s.respMetadata.RequestID +} + +// Request validation failed, there is no usable message in the context, or +// the bot build failed, is still in progress, or contains unbuilt changes. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents an option to be shown on the client platform (Facebook, Slack, // etc.) type Button struct { @@ -674,6 +789,62 @@ func (s *Button) SetValue(v string) *Button { return s } +// Two clients are using the same AWS account, Amazon Lex bot, and user ID. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteSessionInput struct { _ struct{} `type:"structure"` @@ -799,6 +970,71 @@ func (s *DeleteSessionOutput) SetUserId(v string) *DeleteSessionOutput { return s } +// One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. +// For example, +// +// * If Amazon Lex does not have sufficient permissions to call a Lambda +// function. +// +// * If a Lambda function takes longer than 30 seconds to execute. +// +// * If a fulfillment Lambda function returns a Delegate dialog action without +// removing any slot values. +type DependencyFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DependencyFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DependencyFailedException) GoString() string { + return s.String() +} + +func newErrorDependencyFailedException(v protocol.ResponseMetadata) error { + return &DependencyFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DependencyFailedException) Code() string { + return "DependencyFailedException" +} + +// Message returns the exception's message. +func (s DependencyFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DependencyFailedException) OrigErr() error { + return nil +} + +func (s DependencyFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DependencyFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DependencyFailedException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the next action that the bot should take in its interaction with // the user and provides information about the context in which the action takes // place. Use the DialogAction data type to set the interaction to a specific @@ -1280,6 +1516,289 @@ func (s *IntentSummary) SetSlots(v map[string]*string) *IntentSummary { return s } +// Internal service error. Retry the call. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exceeded a limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is not used. +type LoopDetectedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LoopDetectedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LoopDetectedException) GoString() string { + return s.String() +} + +func newErrorLoopDetectedException(v protocol.ResponseMetadata) error { + return &LoopDetectedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LoopDetectedException) Code() string { + return "LoopDetectedException" +} + +// Message returns the exception's message. +func (s LoopDetectedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LoopDetectedException) OrigErr() error { + return nil +} + +func (s LoopDetectedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LoopDetectedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LoopDetectedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The accept header in the request does not have a valid value. +type NotAcceptableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotAcceptableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAcceptableException) GoString() string { + return s.String() +} + +func newErrorNotAcceptableException(v protocol.ResponseMetadata) error { + return &NotAcceptableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAcceptableException) Code() string { + return "NotAcceptableException" +} + +// Message returns the exception's message. +func (s NotAcceptableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAcceptableException) OrigErr() error { + return nil +} + +func (s NotAcceptableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAcceptableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAcceptableException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource (such as the Amazon Lex bot or an alias) that is referred to +// is not found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type PostContentInput struct { _ struct{} `type:"structure" payload:"InputStream"` @@ -2317,6 +2836,62 @@ func (s *PutSessionOutput) SetSlots(v aws.JSONValue) *PutSessionOutput { return s } +// The input speech is too long. +type RequestTimeoutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s RequestTimeoutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestTimeoutException) GoString() string { + return s.String() +} + +func newErrorRequestTimeoutException(v protocol.ResponseMetadata) error { + return &RequestTimeoutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestTimeoutException) Code() string { + return "RequestTimeoutException" +} + +// Message returns the exception's message. +func (s RequestTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestTimeoutException) OrigErr() error { + return nil +} + +func (s RequestTimeoutException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestTimeoutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestTimeoutException) RequestID() string { + return s.respMetadata.RequestID +} + // If you configure a response card when creating your bots, Amazon Lex substitutes // the session attributes and slot values that are available, and then returns // it. The response card can also come from a Lambda function ( dialogCodeHook @@ -2399,6 +2974,62 @@ func (s *SentimentResponse) SetSentimentScore(v string) *SentimentResponse { return s } +// The Content-Type header (PostContent API) has an invalid value. +type UnsupportedMediaTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedMediaTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedMediaTypeException) GoString() string { + return s.String() +} + +func newErrorUnsupportedMediaTypeException(v protocol.ResponseMetadata) error { + return &UnsupportedMediaTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedMediaTypeException) Code() string { + return "UnsupportedMediaTypeException" +} + +// Message returns the exception's message. +func (s UnsupportedMediaTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedMediaTypeException) OrigErr() error { + return nil +} + +func (s UnsupportedMediaTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedMediaTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedMediaTypeException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ConfirmationStatusNone is a ConfirmationStatus enum value ConfirmationStatusNone = "None" diff --git a/service/lexruntimeservice/errors.go b/service/lexruntimeservice/errors.go index 8cb079f04bc..f3faf9be412 100644 --- a/service/lexruntimeservice/errors.go +++ b/service/lexruntimeservice/errors.go @@ -2,6 +2,10 @@ package lexruntimeservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadGatewayException for service response error code @@ -82,3 +86,17 @@ const ( // The Content-Type header (PostContent API) has an invalid value. ErrCodeUnsupportedMediaTypeException = "UnsupportedMediaTypeException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadGatewayException": newErrorBadGatewayException, + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "DependencyFailedException": newErrorDependencyFailedException, + "InternalFailureException": newErrorInternalFailureException, + "LimitExceededException": newErrorLimitExceededException, + "LoopDetectedException": newErrorLoopDetectedException, + "NotAcceptableException": newErrorNotAcceptableException, + "NotFoundException": newErrorNotFoundException, + "RequestTimeoutException": newErrorRequestTimeoutException, + "UnsupportedMediaTypeException": newErrorUnsupportedMediaTypeException, +} diff --git a/service/lexruntimeservice/service.go b/service/lexruntimeservice/service.go index 97abbb29d17..baa25c2374b 100644 --- a/service/lexruntimeservice/service.go +++ b/service/lexruntimeservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/licensemanager/api.go b/service/licensemanager/api.go index ee7f9813aa8..6fab0ad67e7 100644 --- a/service/licensemanager/api.go +++ b/service/licensemanager/api.go @@ -73,24 +73,24 @@ func (c *LicenseManager) CreateLicenseConfigurationRequest(input *CreateLicenseC // See the AWS API reference guide for AWS License Manager's // API operation CreateLicenseConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration @@ -171,21 +171,21 @@ func (c *LicenseManager) DeleteLicenseConfigurationRequest(input *DeleteLicenseC // See the AWS API reference guide for AWS License Manager's // API operation DeleteLicenseConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration @@ -263,21 +263,21 @@ func (c *LicenseManager) GetLicenseConfigurationRequest(input *GetLicenseConfigu // See the AWS API reference guide for AWS License Manager's // API operation GetLicenseConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration @@ -355,18 +355,18 @@ func (c *LicenseManager) GetServiceSettingsRequest(input *GetServiceSettingsInpu // See the AWS API reference guide for AWS License Manager's // API operation GetServiceSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeServerInternalException "ServerInternalException" +// Returned Error Types: +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetServiceSettings @@ -448,24 +448,24 @@ func (c *LicenseManager) ListAssociationsForLicenseConfigurationRequest(input *L // See the AWS API reference guide for AWS License Manager's // API operation ListAssociationsForLicenseConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// * FilterLimitExceededException // The request uses too many filters or too many filter values. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration @@ -543,21 +543,21 @@ func (c *LicenseManager) ListFailuresForLicenseConfigurationOperationsRequest(in // See the AWS API reference guide for AWS License Manager's // API operation ListFailuresForLicenseConfigurationOperations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListFailuresForLicenseConfigurationOperations @@ -635,24 +635,24 @@ func (c *LicenseManager) ListLicenseConfigurationsRequest(input *ListLicenseConf // See the AWS API reference guide for AWS License Manager's // API operation ListLicenseConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// * FilterLimitExceededException // The request uses too many filters or too many filter values. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseConfigurations @@ -730,21 +730,21 @@ func (c *LicenseManager) ListLicenseSpecificationsForResourceRequest(input *List // See the AWS API reference guide for AWS License Manager's // API operation ListLicenseSpecificationsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource @@ -822,27 +822,27 @@ func (c *LicenseManager) ListResourceInventoryRequest(input *ListResourceInvento // See the AWS API reference guide for AWS License Manager's // API operation ListResourceInventory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// * FilterLimitExceededException // The request uses too many filters or too many filter values. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // A dependency required to run the API is missing. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListResourceInventory @@ -920,21 +920,21 @@ func (c *LicenseManager) ListTagsForResourceRequest(input *ListTagsForResourceIn // See the AWS API reference guide for AWS License Manager's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTagsForResource @@ -1014,24 +1014,24 @@ func (c *LicenseManager) ListUsageForLicenseConfigurationRequest(input *ListUsag // See the AWS API reference guide for AWS License Manager's // API operation ListUsageForLicenseConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeFilterLimitExceededException "FilterLimitExceededException" +// * FilterLimitExceededException // The request uses too many filters or too many filter values. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListUsageForLicenseConfiguration @@ -1110,21 +1110,21 @@ func (c *LicenseManager) TagResourceRequest(input *TagResourceInput) (req *reque // See the AWS API reference guide for AWS License Manager's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/TagResource @@ -1203,21 +1203,21 @@ func (c *LicenseManager) UntagResourceRequest(input *UntagResourceInput) (req *r // See the AWS API reference guide for AWS License Manager's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UntagResource @@ -1303,21 +1303,21 @@ func (c *LicenseManager) UpdateLicenseConfigurationRequest(input *UpdateLicenseC // See the AWS API reference guide for AWS License Manager's // API operation UpdateLicenseConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration @@ -1402,30 +1402,30 @@ func (c *LicenseManager) UpdateLicenseSpecificationsForResourceRequest(input *Up // See the AWS API reference guide for AWS License Manager's // API operation UpdateLicenseSpecificationsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // License Manager cannot allocate a license to a resource because of its state. // // For example, you cannot allocate a license to an instance in the process // of shutting down. // -// * ErrCodeLicenseUsageException "LicenseUsageException" +// * LicenseUsageException // You do not have enough licenses available to support a new resource launch. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseSpecificationsForResource @@ -1504,21 +1504,21 @@ func (c *LicenseManager) UpdateServiceSettingsRequest(input *UpdateServiceSettin // See the AWS API reference guide for AWS License Manager's // API operation UpdateServiceSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameter values are not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The server experienced an internal error. Try again. // -// * ErrCodeAuthorizationException "AuthorizationException" +// * AuthorizationException // The AWS user account does not have permission to perform the action. Check // the IAM policy associated with this account. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access to resource denied. // -// * ErrCodeRateLimitExceededException "RateLimitExceededException" +// * RateLimitExceededException // Too many requests have been submitted. Try again after a brief wait. // // See also, https://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateServiceSettings @@ -1543,6 +1543,119 @@ func (c *LicenseManager) UpdateServiceSettingsWithContext(ctx aws.Context, input return out, req.Send() } +// Access to resource denied. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The AWS user account does not have permission to perform the action. Check +// the IAM policy associated with this account. +type AuthorizationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AuthorizationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthorizationException) GoString() string { + return s.String() +} + +func newErrorAuthorizationException(v protocol.ResponseMetadata) error { + return &AuthorizationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AuthorizationException) Code() string { + return "AuthorizationException" +} + +// Message returns the exception's message. +func (s AuthorizationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AuthorizationException) OrigErr() error { + return nil +} + +func (s AuthorizationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AuthorizationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AuthorizationException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes automated discovery. type AutomatedDiscoveryInformation struct { _ struct{} `type:"structure"` @@ -1803,6 +1916,62 @@ func (s DeleteLicenseConfigurationOutput) GoString() string { return s.String() } +// A dependency required to run the API is missing. +type FailedDependencyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FailedDependencyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FailedDependencyException) GoString() string { + return s.String() +} + +func newErrorFailedDependencyException(v protocol.ResponseMetadata) error { + return &FailedDependencyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FailedDependencyException) Code() string { + return "FailedDependencyException" +} + +// Message returns the exception's message. +func (s FailedDependencyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FailedDependencyException) OrigErr() error { + return nil +} + +func (s FailedDependencyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FailedDependencyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FailedDependencyException) RequestID() string { + return s.respMetadata.RequestID +} + // A filter name and value pair that is used to return more specific results // from a describe operation. Filters can be used to match a set of resources // by specific criteria, such as tags, attributes, or IDs. @@ -1838,6 +2007,62 @@ func (s *Filter) SetValues(v []*string) *Filter { return s } +// The request uses too many filters or too many filter values. +type FilterLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FilterLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FilterLimitExceededException) GoString() string { + return s.String() +} + +func newErrorFilterLimitExceededException(v protocol.ResponseMetadata) error { + return &FilterLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FilterLimitExceededException) Code() string { + return "FilterLimitExceededException" +} + +// Message returns the exception's message. +func (s FilterLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FilterLimitExceededException) OrigErr() error { + return nil +} + +func (s FilterLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FilterLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FilterLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type GetLicenseConfigurationInput struct { _ struct{} `type:"structure"` @@ -2110,6 +2335,121 @@ func (s *GetServiceSettingsOutput) SetSnsTopicArn(v string) *GetServiceSettingsO return s } +// One or more parameter values are not valid. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// License Manager cannot allocate a license to a resource because of its state. +// +// For example, you cannot allocate a license to an instance in the process +// of shutting down. +type InvalidResourceStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidResourceStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceStateException) GoString() string { + return s.String() +} + +func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error { + return &InvalidResourceStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceStateException) Code() string { + return "InvalidResourceStateException" +} + +// Message returns the exception's message. +func (s InvalidResourceStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceStateException) OrigErr() error { + return nil +} + +func (s InvalidResourceStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceStateException) RequestID() string { + return s.respMetadata.RequestID +} + // An inventory filter. type InventoryFilter struct { _ struct{} `type:"structure"` @@ -2573,6 +2913,62 @@ func (s *LicenseSpecification) SetLicenseConfigurationArn(v string) *LicenseSpec return s } +// You do not have enough licenses available to support a new resource launch. +type LicenseUsageException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LicenseUsageException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LicenseUsageException) GoString() string { + return s.String() +} + +func newErrorLicenseUsageException(v protocol.ResponseMetadata) error { + return &LicenseUsageException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LicenseUsageException) Code() string { + return "LicenseUsageException" +} + +// Message returns the exception's message. +func (s LicenseUsageException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LicenseUsageException) OrigErr() error { + return nil +} + +func (s LicenseUsageException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LicenseUsageException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LicenseUsageException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAssociationsForLicenseConfigurationInput struct { _ struct{} `type:"structure"` @@ -3460,6 +3856,62 @@ func (s *ProductInformationFilter) SetProductInformationFilterValue(v []*string) return s } +// Too many requests have been submitted. Try again after a brief wait. +type RateLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s RateLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RateLimitExceededException) GoString() string { + return s.String() +} + +func newErrorRateLimitExceededException(v protocol.ResponseMetadata) error { + return &RateLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RateLimitExceededException) Code() string { + return "RateLimitExceededException" +} + +// Message returns the exception's message. +func (s RateLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RateLimitExceededException) OrigErr() error { + return nil +} + +func (s RateLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RateLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RateLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Details about a resource. type ResourceInventory struct { _ struct{} `type:"structure"` @@ -3529,6 +3981,118 @@ func (s *ResourceInventory) SetResourceType(v string) *ResourceInventory { return s } +// Your resource limits have been exceeded. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The server experienced an internal error. Try again. +type ServerInternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServerInternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerInternalException) GoString() string { + return s.String() +} + +func newErrorServerInternalException(v protocol.ResponseMetadata) error { + return &ServerInternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerInternalException) Code() string { + return "ServerInternalException" +} + +// Message returns the exception's message. +func (s ServerInternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerInternalException) OrigErr() error { + return nil +} + +func (s ServerInternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerInternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerInternalException) RequestID() string { + return s.respMetadata.RequestID +} + // Details about a tag for a license configuration. type Tag struct { _ struct{} `type:"structure"` diff --git a/service/licensemanager/errors.go b/service/licensemanager/errors.go index 7a6816be97e..31ef544090d 100644 --- a/service/licensemanager/errors.go +++ b/service/licensemanager/errors.go @@ -2,6 +2,10 @@ package licensemanager +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -68,3 +72,16 @@ const ( // The server experienced an internal error. Try again. ErrCodeServerInternalException = "ServerInternalException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AuthorizationException": newErrorAuthorizationException, + "FailedDependencyException": newErrorFailedDependencyException, + "FilterLimitExceededException": newErrorFilterLimitExceededException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidResourceStateException": newErrorInvalidResourceStateException, + "LicenseUsageException": newErrorLicenseUsageException, + "RateLimitExceededException": newErrorRateLimitExceededException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ServerInternalException": newErrorServerInternalException, +} diff --git a/service/licensemanager/service.go b/service/licensemanager/service.go index 60f3bceb3bb..7a4b8be0345 100644 --- a/service/licensemanager/service.go +++ b/service/licensemanager/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/lightsail/api.go b/service/lightsail/api.go index 53e3acae25a..8f35cdbc45f 100644 --- a/service/lightsail/api.go +++ b/service/lightsail/api.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opAllocateStaticIp = "AllocateStaticIp" @@ -64,11 +65,11 @@ func (c *Lightsail) AllocateStaticIpRequest(input *AllocateStaticIpInput) (req * // See the AWS API reference guide for Amazon Lightsail's // API operation AllocateStaticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -76,21 +77,21 @@ func (c *Lightsail) AllocateStaticIpRequest(input *AllocateStaticIpInput) (req * // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AllocateStaticIp @@ -173,11 +174,11 @@ func (c *Lightsail) AttachDiskRequest(input *AttachDiskInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation AttachDisk for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -185,21 +186,21 @@ func (c *Lightsail) AttachDiskRequest(input *AttachDiskInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachDisk @@ -284,11 +285,11 @@ func (c *Lightsail) AttachInstancesToLoadBalancerRequest(input *AttachInstancesT // See the AWS API reference guide for Amazon Lightsail's // API operation AttachInstancesToLoadBalancer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -296,21 +297,21 @@ func (c *Lightsail) AttachInstancesToLoadBalancerRequest(input *AttachInstancesT // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachInstancesToLoadBalancer @@ -399,11 +400,11 @@ func (c *Lightsail) AttachLoadBalancerTlsCertificateRequest(input *AttachLoadBal // See the AWS API reference guide for Amazon Lightsail's // API operation AttachLoadBalancerTlsCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -411,21 +412,21 @@ func (c *Lightsail) AttachLoadBalancerTlsCertificateRequest(input *AttachLoadBal // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachLoadBalancerTlsCertificate @@ -503,11 +504,11 @@ func (c *Lightsail) AttachStaticIpRequest(input *AttachStaticIpInput) (req *requ // See the AWS API reference guide for Amazon Lightsail's // API operation AttachStaticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -515,21 +516,21 @@ func (c *Lightsail) AttachStaticIpRequest(input *AttachStaticIpInput) (req *requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/AttachStaticIp @@ -611,11 +612,11 @@ func (c *Lightsail) CloseInstancePublicPortsRequest(input *CloseInstancePublicPo // See the AWS API reference guide for Amazon Lightsail's // API operation CloseInstancePublicPorts for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -623,21 +624,21 @@ func (c *Lightsail) CloseInstancePublicPortsRequest(input *CloseInstancePublicPo // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CloseInstancePublicPorts @@ -725,11 +726,11 @@ func (c *Lightsail) CopySnapshotRequest(input *CopySnapshotInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation CopySnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -737,21 +738,21 @@ func (c *Lightsail) CopySnapshotRequest(input *CopySnapshotInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CopySnapshot @@ -837,11 +838,11 @@ func (c *Lightsail) CreateCloudFormationStackRequest(input *CreateCloudFormation // See the AWS API reference guide for Amazon Lightsail's // API operation CreateCloudFormationStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -849,21 +850,21 @@ func (c *Lightsail) CreateCloudFormationStackRequest(input *CreateCloudFormation // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateCloudFormationStack @@ -945,11 +946,11 @@ func (c *Lightsail) CreateDiskRequest(input *CreateDiskInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation CreateDisk for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -957,21 +958,21 @@ func (c *Lightsail) CreateDiskRequest(input *CreateDiskInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDisk @@ -1055,11 +1056,11 @@ func (c *Lightsail) CreateDiskFromSnapshotRequest(input *CreateDiskFromSnapshotI // See the AWS API reference guide for Amazon Lightsail's // API operation CreateDiskFromSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1067,21 +1068,21 @@ func (c *Lightsail) CreateDiskFromSnapshotRequest(input *CreateDiskFromSnapshotI // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDiskFromSnapshot @@ -1185,11 +1186,11 @@ func (c *Lightsail) CreateDiskSnapshotRequest(input *CreateDiskSnapshotInput) (r // See the AWS API reference guide for Amazon Lightsail's // API operation CreateDiskSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1197,21 +1198,21 @@ func (c *Lightsail) CreateDiskSnapshotRequest(input *CreateDiskSnapshotInput) (r // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDiskSnapshot @@ -1292,11 +1293,11 @@ func (c *Lightsail) CreateDomainRequest(input *CreateDomainInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation CreateDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1304,21 +1305,21 @@ func (c *Lightsail) CreateDomainRequest(input *CreateDomainInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomain @@ -1402,11 +1403,11 @@ func (c *Lightsail) CreateDomainEntryRequest(input *CreateDomainEntryInput) (req // See the AWS API reference guide for Amazon Lightsail's // API operation CreateDomainEntry for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1414,21 +1415,21 @@ func (c *Lightsail) CreateDomainEntryRequest(input *CreateDomainEntryInput) (req // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateDomainEntry @@ -1510,11 +1511,11 @@ func (c *Lightsail) CreateInstanceSnapshotRequest(input *CreateInstanceSnapshotI // See the AWS API reference guide for Amazon Lightsail's // API operation CreateInstanceSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1522,21 +1523,21 @@ func (c *Lightsail) CreateInstanceSnapshotRequest(input *CreateInstanceSnapshotI // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstanceSnapshot @@ -1617,11 +1618,11 @@ func (c *Lightsail) CreateInstancesRequest(input *CreateInstancesInput) (req *re // See the AWS API reference guide for Amazon Lightsail's // API operation CreateInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1629,21 +1630,21 @@ func (c *Lightsail) CreateInstancesRequest(input *CreateInstancesInput) (req *re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstances @@ -1727,11 +1728,11 @@ func (c *Lightsail) CreateInstancesFromSnapshotRequest(input *CreateInstancesFro // See the AWS API reference guide for Amazon Lightsail's // API operation CreateInstancesFromSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1739,21 +1740,21 @@ func (c *Lightsail) CreateInstancesFromSnapshotRequest(input *CreateInstancesFro // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateInstancesFromSnapshot @@ -1834,11 +1835,11 @@ func (c *Lightsail) CreateKeyPairRequest(input *CreateKeyPairInput) (req *reques // See the AWS API reference guide for Amazon Lightsail's // API operation CreateKeyPair for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1846,21 +1847,21 @@ func (c *Lightsail) CreateKeyPairRequest(input *CreateKeyPairInput) (req *reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateKeyPair @@ -1948,11 +1949,11 @@ func (c *Lightsail) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (r // See the AWS API reference guide for Amazon Lightsail's // API operation CreateLoadBalancer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -1960,21 +1961,21 @@ func (c *Lightsail) CreateLoadBalancerRequest(input *CreateLoadBalancerInput) (r // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateLoadBalancer @@ -2058,11 +2059,11 @@ func (c *Lightsail) CreateLoadBalancerTlsCertificateRequest(input *CreateLoadBal // See the AWS API reference guide for Amazon Lightsail's // API operation CreateLoadBalancerTlsCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2070,21 +2071,21 @@ func (c *Lightsail) CreateLoadBalancerTlsCertificateRequest(input *CreateLoadBal // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateLoadBalancerTlsCertificate @@ -2165,11 +2166,11 @@ func (c *Lightsail) CreateRelationalDatabaseRequest(input *CreateRelationalDatab // See the AWS API reference guide for Amazon Lightsail's // API operation CreateRelationalDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2177,21 +2178,21 @@ func (c *Lightsail) CreateRelationalDatabaseRequest(input *CreateRelationalDatab // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabase @@ -2278,11 +2279,11 @@ func (c *Lightsail) CreateRelationalDatabaseFromSnapshotRequest(input *CreateRel // See the AWS API reference guide for Amazon Lightsail's // API operation CreateRelationalDatabaseFromSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2290,21 +2291,21 @@ func (c *Lightsail) CreateRelationalDatabaseFromSnapshotRequest(input *CreateRel // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabaseFromSnapshot @@ -2388,11 +2389,11 @@ func (c *Lightsail) CreateRelationalDatabaseSnapshotRequest(input *CreateRelatio // See the AWS API reference guide for Amazon Lightsail's // API operation CreateRelationalDatabaseSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2400,21 +2401,21 @@ func (c *Lightsail) CreateRelationalDatabaseSnapshotRequest(input *CreateRelatio // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/CreateRelationalDatabaseSnapshot @@ -2493,11 +2494,11 @@ func (c *Lightsail) DeleteAutoSnapshotRequest(input *DeleteAutoSnapshotInput) (r // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteAutoSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2505,17 +2506,17 @@ func (c *Lightsail) DeleteAutoSnapshotRequest(input *DeleteAutoSnapshotInput) (r // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteAutoSnapshot @@ -2600,11 +2601,11 @@ func (c *Lightsail) DeleteDiskRequest(input *DeleteDiskInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteDisk for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2612,21 +2613,21 @@ func (c *Lightsail) DeleteDiskRequest(input *DeleteDiskInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDisk @@ -2715,11 +2716,11 @@ func (c *Lightsail) DeleteDiskSnapshotRequest(input *DeleteDiskSnapshotInput) (r // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteDiskSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2727,21 +2728,21 @@ func (c *Lightsail) DeleteDiskSnapshotRequest(input *DeleteDiskSnapshotInput) (r // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDiskSnapshot @@ -2823,11 +2824,11 @@ func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2835,21 +2836,21 @@ func (c *Lightsail) DeleteDomainRequest(input *DeleteDomainInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomain @@ -2931,11 +2932,11 @@ func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteDomainEntry for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -2943,21 +2944,21 @@ func (c *Lightsail) DeleteDomainEntryRequest(input *DeleteDomainEntryInput) (req // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteDomainEntry @@ -3039,11 +3040,11 @@ func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *requ // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3051,21 +3052,21 @@ func (c *Lightsail) DeleteInstanceRequest(input *DeleteInstanceInput) (req *requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstance @@ -3147,11 +3148,11 @@ func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotI // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteInstanceSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3159,21 +3160,21 @@ func (c *Lightsail) DeleteInstanceSnapshotRequest(input *DeleteInstanceSnapshotI // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteInstanceSnapshot @@ -3255,11 +3256,11 @@ func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *reques // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteKeyPair for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3267,21 +3268,21 @@ func (c *Lightsail) DeleteKeyPairRequest(input *DeleteKeyPairInput) (req *reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKeyPair @@ -3367,11 +3368,11 @@ func (c *Lightsail) DeleteKnownHostKeysRequest(input *DeleteKnownHostKeysInput) // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteKnownHostKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3379,21 +3380,21 @@ func (c *Lightsail) DeleteKnownHostKeysRequest(input *DeleteKnownHostKeysInput) // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteKnownHostKeys @@ -3477,11 +3478,11 @@ func (c *Lightsail) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (r // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteLoadBalancer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3489,21 +3490,21 @@ func (c *Lightsail) DeleteLoadBalancerRequest(input *DeleteLoadBalancerInput) (r // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancer @@ -3585,11 +3586,11 @@ func (c *Lightsail) DeleteLoadBalancerTlsCertificateRequest(input *DeleteLoadBal // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteLoadBalancerTlsCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3597,21 +3598,21 @@ func (c *Lightsail) DeleteLoadBalancerTlsCertificateRequest(input *DeleteLoadBal // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteLoadBalancerTlsCertificate @@ -3693,11 +3694,11 @@ func (c *Lightsail) DeleteRelationalDatabaseRequest(input *DeleteRelationalDatab // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteRelationalDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3705,21 +3706,21 @@ func (c *Lightsail) DeleteRelationalDatabaseRequest(input *DeleteRelationalDatab // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteRelationalDatabase @@ -3801,11 +3802,11 @@ func (c *Lightsail) DeleteRelationalDatabaseSnapshotRequest(input *DeleteRelatio // See the AWS API reference guide for Amazon Lightsail's // API operation DeleteRelationalDatabaseSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3813,21 +3814,21 @@ func (c *Lightsail) DeleteRelationalDatabaseSnapshotRequest(input *DeleteRelatio // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DeleteRelationalDatabaseSnapshot @@ -3911,11 +3912,11 @@ func (c *Lightsail) DetachDiskRequest(input *DetachDiskInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation DetachDisk for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -3923,21 +3924,21 @@ func (c *Lightsail) DetachDiskRequest(input *DetachDiskInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachDisk @@ -4022,11 +4023,11 @@ func (c *Lightsail) DetachInstancesFromLoadBalancerRequest(input *DetachInstance // See the AWS API reference guide for Amazon Lightsail's // API operation DetachInstancesFromLoadBalancer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4034,21 +4035,21 @@ func (c *Lightsail) DetachInstancesFromLoadBalancerRequest(input *DetachInstance // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachInstancesFromLoadBalancer @@ -4126,11 +4127,11 @@ func (c *Lightsail) DetachStaticIpRequest(input *DetachStaticIpInput) (req *requ // See the AWS API reference guide for Amazon Lightsail's // API operation DetachStaticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4138,21 +4139,21 @@ func (c *Lightsail) DetachStaticIpRequest(input *DetachStaticIpInput) (req *requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DetachStaticIp @@ -4231,11 +4232,11 @@ func (c *Lightsail) DisableAddOnRequest(input *DisableAddOnInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation DisableAddOn for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4243,17 +4244,17 @@ func (c *Lightsail) DisableAddOnRequest(input *DisableAddOnInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DisableAddOn @@ -4331,11 +4332,11 @@ func (c *Lightsail) DownloadDefaultKeyPairRequest(input *DownloadDefaultKeyPairI // See the AWS API reference guide for Amazon Lightsail's // API operation DownloadDefaultKeyPair for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4343,21 +4344,21 @@ func (c *Lightsail) DownloadDefaultKeyPairRequest(input *DownloadDefaultKeyPairI // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/DownloadDefaultKeyPair @@ -4436,11 +4437,11 @@ func (c *Lightsail) EnableAddOnRequest(input *EnableAddOnInput) (req *request.Re // See the AWS API reference guide for Amazon Lightsail's // API operation EnableAddOn for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4448,17 +4449,17 @@ func (c *Lightsail) EnableAddOnRequest(input *EnableAddOnInput) (req *request.Re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/EnableAddOn @@ -4552,11 +4553,11 @@ func (c *Lightsail) ExportSnapshotRequest(input *ExportSnapshotInput) (req *requ // See the AWS API reference guide for Amazon Lightsail's // API operation ExportSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4564,21 +4565,21 @@ func (c *Lightsail) ExportSnapshotRequest(input *ExportSnapshotInput) (req *requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ExportSnapshot @@ -4656,11 +4657,11 @@ func (c *Lightsail) GetActiveNamesRequest(input *GetActiveNamesInput) (req *requ // See the AWS API reference guide for Amazon Lightsail's // API operation GetActiveNames for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4668,21 +4669,21 @@ func (c *Lightsail) GetActiveNamesRequest(input *GetActiveNamesInput) (req *requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetActiveNames @@ -4761,11 +4762,11 @@ func (c *Lightsail) GetAutoSnapshotsRequest(input *GetAutoSnapshotsInput) (req * // See the AWS API reference guide for Amazon Lightsail's // API operation GetAutoSnapshots for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4773,17 +4774,17 @@ func (c *Lightsail) GetAutoSnapshotsRequest(input *GetAutoSnapshotsInput) (req * // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetAutoSnapshots @@ -4869,11 +4870,11 @@ func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *reques // See the AWS API reference guide for Amazon Lightsail's // API operation GetBlueprints for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4881,21 +4882,21 @@ func (c *Lightsail) GetBlueprintsRequest(input *GetBlueprintsInput) (req *reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBlueprints @@ -4974,11 +4975,11 @@ func (c *Lightsail) GetBundlesRequest(input *GetBundlesInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation GetBundles for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -4986,21 +4987,21 @@ func (c *Lightsail) GetBundlesRequest(input *GetBundlesInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetBundles @@ -5082,11 +5083,11 @@ func (c *Lightsail) GetCloudFormationStackRecordsRequest(input *GetCloudFormatio // See the AWS API reference guide for Amazon Lightsail's // API operation GetCloudFormationStackRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5094,21 +5095,21 @@ func (c *Lightsail) GetCloudFormationStackRecordsRequest(input *GetCloudFormatio // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetCloudFormationStackRecords @@ -5186,11 +5187,11 @@ func (c *Lightsail) GetDiskRequest(input *GetDiskInput) (req *request.Request, o // See the AWS API reference guide for Amazon Lightsail's // API operation GetDisk for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5198,21 +5199,21 @@ func (c *Lightsail) GetDiskRequest(input *GetDiskInput) (req *request.Request, o // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisk @@ -5290,11 +5291,11 @@ func (c *Lightsail) GetDiskSnapshotRequest(input *GetDiskSnapshotInput) (req *re // See the AWS API reference guide for Amazon Lightsail's // API operation GetDiskSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5302,21 +5303,21 @@ func (c *Lightsail) GetDiskSnapshotRequest(input *GetDiskSnapshotInput) (req *re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshot @@ -5399,11 +5400,11 @@ func (c *Lightsail) GetDiskSnapshotsRequest(input *GetDiskSnapshotsInput) (req * // See the AWS API reference guide for Amazon Lightsail's // API operation GetDiskSnapshots for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5411,21 +5412,21 @@ func (c *Lightsail) GetDiskSnapshotsRequest(input *GetDiskSnapshotsInput) (req * // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDiskSnapshots @@ -5508,11 +5509,11 @@ func (c *Lightsail) GetDisksRequest(input *GetDisksInput) (req *request.Request, // See the AWS API reference guide for Amazon Lightsail's // API operation GetDisks for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5520,21 +5521,21 @@ func (c *Lightsail) GetDisksRequest(input *GetDisksInput) (req *request.Request, // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDisks @@ -5612,11 +5613,11 @@ func (c *Lightsail) GetDomainRequest(input *GetDomainInput) (req *request.Reques // See the AWS API reference guide for Amazon Lightsail's // API operation GetDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5624,21 +5625,21 @@ func (c *Lightsail) GetDomainRequest(input *GetDomainInput) (req *request.Reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomain @@ -5716,11 +5717,11 @@ func (c *Lightsail) GetDomainsRequest(input *GetDomainsInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation GetDomains for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5728,21 +5729,21 @@ func (c *Lightsail) GetDomainsRequest(input *GetDomainsInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetDomains @@ -5824,11 +5825,11 @@ func (c *Lightsail) GetExportSnapshotRecordsRequest(input *GetExportSnapshotReco // See the AWS API reference guide for Amazon Lightsail's // API operation GetExportSnapshotRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5836,21 +5837,21 @@ func (c *Lightsail) GetExportSnapshotRecordsRequest(input *GetExportSnapshotReco // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetExportSnapshotRecords @@ -5929,11 +5930,11 @@ func (c *Lightsail) GetInstanceRequest(input *GetInstanceInput) (req *request.Re // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -5941,21 +5942,21 @@ func (c *Lightsail) GetInstanceRequest(input *GetInstanceInput) (req *request.Re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstance @@ -6038,11 +6039,11 @@ func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDeta // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstanceAccessDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6050,21 +6051,21 @@ func (c *Lightsail) GetInstanceAccessDetailsRequest(input *GetInstanceAccessDeta // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceAccessDetails @@ -6143,11 +6144,11 @@ func (c *Lightsail) GetInstanceMetricDataRequest(input *GetInstanceMetricDataInp // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstanceMetricData for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6155,21 +6156,21 @@ func (c *Lightsail) GetInstanceMetricDataRequest(input *GetInstanceMetricDataInp // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceMetricData @@ -6247,11 +6248,11 @@ func (c *Lightsail) GetInstancePortStatesRequest(input *GetInstancePortStatesInp // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstancePortStates for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6259,21 +6260,21 @@ func (c *Lightsail) GetInstancePortStatesRequest(input *GetInstancePortStatesInp // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstancePortStates @@ -6351,11 +6352,11 @@ func (c *Lightsail) GetInstanceSnapshotRequest(input *GetInstanceSnapshotInput) // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstanceSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6363,21 +6364,21 @@ func (c *Lightsail) GetInstanceSnapshotRequest(input *GetInstanceSnapshotInput) // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshot @@ -6455,11 +6456,11 @@ func (c *Lightsail) GetInstanceSnapshotsRequest(input *GetInstanceSnapshotsInput // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstanceSnapshots for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6467,21 +6468,21 @@ func (c *Lightsail) GetInstanceSnapshotsRequest(input *GetInstanceSnapshotsInput // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceSnapshots @@ -6559,11 +6560,11 @@ func (c *Lightsail) GetInstanceStateRequest(input *GetInstanceStateInput) (req * // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstanceState for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6571,21 +6572,21 @@ func (c *Lightsail) GetInstanceStateRequest(input *GetInstanceStateInput) (req * // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstanceState @@ -6664,11 +6665,11 @@ func (c *Lightsail) GetInstancesRequest(input *GetInstancesInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation GetInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6676,21 +6677,21 @@ func (c *Lightsail) GetInstancesRequest(input *GetInstancesInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetInstances @@ -6768,11 +6769,11 @@ func (c *Lightsail) GetKeyPairRequest(input *GetKeyPairInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation GetKeyPair for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6780,21 +6781,21 @@ func (c *Lightsail) GetKeyPairRequest(input *GetKeyPairInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPair @@ -6872,11 +6873,11 @@ func (c *Lightsail) GetKeyPairsRequest(input *GetKeyPairsInput) (req *request.Re // See the AWS API reference guide for Amazon Lightsail's // API operation GetKeyPairs for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6884,21 +6885,21 @@ func (c *Lightsail) GetKeyPairsRequest(input *GetKeyPairsInput) (req *request.Re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetKeyPairs @@ -6976,11 +6977,11 @@ func (c *Lightsail) GetLoadBalancerRequest(input *GetLoadBalancerInput) (req *re // See the AWS API reference guide for Amazon Lightsail's // API operation GetLoadBalancer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -6988,21 +6989,21 @@ func (c *Lightsail) GetLoadBalancerRequest(input *GetLoadBalancerInput) (req *re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancer @@ -7080,11 +7081,11 @@ func (c *Lightsail) GetLoadBalancerMetricDataRequest(input *GetLoadBalancerMetri // See the AWS API reference guide for Amazon Lightsail's // API operation GetLoadBalancerMetricData for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7092,21 +7093,21 @@ func (c *Lightsail) GetLoadBalancerMetricDataRequest(input *GetLoadBalancerMetri // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerMetricData @@ -7190,11 +7191,11 @@ func (c *Lightsail) GetLoadBalancerTlsCertificatesRequest(input *GetLoadBalancer // See the AWS API reference guide for Amazon Lightsail's // API operation GetLoadBalancerTlsCertificates for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7202,21 +7203,21 @@ func (c *Lightsail) GetLoadBalancerTlsCertificatesRequest(input *GetLoadBalancer // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancerTlsCertificates @@ -7298,11 +7299,11 @@ func (c *Lightsail) GetLoadBalancersRequest(input *GetLoadBalancersInput) (req * // See the AWS API reference guide for Amazon Lightsail's // API operation GetLoadBalancers for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7310,21 +7311,21 @@ func (c *Lightsail) GetLoadBalancersRequest(input *GetLoadBalancersInput) (req * // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetLoadBalancers @@ -7404,11 +7405,11 @@ func (c *Lightsail) GetOperationRequest(input *GetOperationInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation GetOperation for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7416,21 +7417,21 @@ func (c *Lightsail) GetOperationRequest(input *GetOperationInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperation @@ -7512,11 +7513,11 @@ func (c *Lightsail) GetOperationsRequest(input *GetOperationsInput) (req *reques // See the AWS API reference guide for Amazon Lightsail's // API operation GetOperations for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7524,21 +7525,21 @@ func (c *Lightsail) GetOperationsRequest(input *GetOperationsInput) (req *reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperations @@ -7616,11 +7617,11 @@ func (c *Lightsail) GetOperationsForResourceRequest(input *GetOperationsForResou // See the AWS API reference guide for Amazon Lightsail's // API operation GetOperationsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7628,21 +7629,21 @@ func (c *Lightsail) GetOperationsForResourceRequest(input *GetOperationsForResou // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetOperationsForResource @@ -7721,11 +7722,11 @@ func (c *Lightsail) GetRegionsRequest(input *GetRegionsInput) (req *request.Requ // See the AWS API reference guide for Amazon Lightsail's // API operation GetRegions for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7733,21 +7734,21 @@ func (c *Lightsail) GetRegionsRequest(input *GetRegionsInput) (req *request.Requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRegions @@ -7825,11 +7826,11 @@ func (c *Lightsail) GetRelationalDatabaseRequest(input *GetRelationalDatabaseInp // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7837,21 +7838,21 @@ func (c *Lightsail) GetRelationalDatabaseRequest(input *GetRelationalDatabaseInp // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabase @@ -7933,11 +7934,11 @@ func (c *Lightsail) GetRelationalDatabaseBlueprintsRequest(input *GetRelationalD // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseBlueprints for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -7945,21 +7946,21 @@ func (c *Lightsail) GetRelationalDatabaseBlueprintsRequest(input *GetRelationalD // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseBlueprints @@ -8041,11 +8042,11 @@ func (c *Lightsail) GetRelationalDatabaseBundlesRequest(input *GetRelationalData // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseBundles for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8053,21 +8054,21 @@ func (c *Lightsail) GetRelationalDatabaseBundlesRequest(input *GetRelationalData // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseBundles @@ -8145,11 +8146,11 @@ func (c *Lightsail) GetRelationalDatabaseEventsRequest(input *GetRelationalDatab // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8157,21 +8158,21 @@ func (c *Lightsail) GetRelationalDatabaseEventsRequest(input *GetRelationalDatab // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseEvents @@ -8249,11 +8250,11 @@ func (c *Lightsail) GetRelationalDatabaseLogEventsRequest(input *GetRelationalDa // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseLogEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8261,21 +8262,21 @@ func (c *Lightsail) GetRelationalDatabaseLogEventsRequest(input *GetRelationalDa // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseLogEvents @@ -8354,11 +8355,11 @@ func (c *Lightsail) GetRelationalDatabaseLogStreamsRequest(input *GetRelationalD // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseLogStreams for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8366,21 +8367,21 @@ func (c *Lightsail) GetRelationalDatabaseLogStreamsRequest(input *GetRelationalD // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseLogStreams @@ -8462,11 +8463,11 @@ func (c *Lightsail) GetRelationalDatabaseMasterUserPasswordRequest(input *GetRel // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseMasterUserPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8474,21 +8475,21 @@ func (c *Lightsail) GetRelationalDatabaseMasterUserPasswordRequest(input *GetRel // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseMasterUserPassword @@ -8567,11 +8568,11 @@ func (c *Lightsail) GetRelationalDatabaseMetricDataRequest(input *GetRelationalD // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseMetricData for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8579,21 +8580,21 @@ func (c *Lightsail) GetRelationalDatabaseMetricDataRequest(input *GetRelationalD // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseMetricData @@ -8677,11 +8678,11 @@ func (c *Lightsail) GetRelationalDatabaseParametersRequest(input *GetRelationalD // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8689,21 +8690,21 @@ func (c *Lightsail) GetRelationalDatabaseParametersRequest(input *GetRelationalD // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseParameters @@ -8781,11 +8782,11 @@ func (c *Lightsail) GetRelationalDatabaseSnapshotRequest(input *GetRelationalDat // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8793,21 +8794,21 @@ func (c *Lightsail) GetRelationalDatabaseSnapshotRequest(input *GetRelationalDat // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseSnapshot @@ -8885,11 +8886,11 @@ func (c *Lightsail) GetRelationalDatabaseSnapshotsRequest(input *GetRelationalDa // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabaseSnapshots for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -8897,21 +8898,21 @@ func (c *Lightsail) GetRelationalDatabaseSnapshotsRequest(input *GetRelationalDa // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabaseSnapshots @@ -8989,11 +8990,11 @@ func (c *Lightsail) GetRelationalDatabasesRequest(input *GetRelationalDatabasesI // See the AWS API reference guide for Amazon Lightsail's // API operation GetRelationalDatabases for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9001,21 +9002,21 @@ func (c *Lightsail) GetRelationalDatabasesRequest(input *GetRelationalDatabasesI // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetRelationalDatabases @@ -9093,11 +9094,11 @@ func (c *Lightsail) GetStaticIpRequest(input *GetStaticIpInput) (req *request.Re // See the AWS API reference guide for Amazon Lightsail's // API operation GetStaticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9105,21 +9106,21 @@ func (c *Lightsail) GetStaticIpRequest(input *GetStaticIpInput) (req *request.Re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIp @@ -9197,11 +9198,11 @@ func (c *Lightsail) GetStaticIpsRequest(input *GetStaticIpsInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation GetStaticIps for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9209,21 +9210,21 @@ func (c *Lightsail) GetStaticIpsRequest(input *GetStaticIpsInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/GetStaticIps @@ -9301,11 +9302,11 @@ func (c *Lightsail) ImportKeyPairRequest(input *ImportKeyPairInput) (req *reques // See the AWS API reference guide for Amazon Lightsail's // API operation ImportKeyPair for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9313,21 +9314,21 @@ func (c *Lightsail) ImportKeyPairRequest(input *ImportKeyPairInput) (req *reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ImportKeyPair @@ -9405,11 +9406,11 @@ func (c *Lightsail) IsVpcPeeredRequest(input *IsVpcPeeredInput) (req *request.Re // See the AWS API reference guide for Amazon Lightsail's // API operation IsVpcPeered for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9417,21 +9418,21 @@ func (c *Lightsail) IsVpcPeeredRequest(input *IsVpcPeeredInput) (req *request.Re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/IsVpcPeered @@ -9513,11 +9514,11 @@ func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPort // See the AWS API reference guide for Amazon Lightsail's // API operation OpenInstancePublicPorts for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9525,21 +9526,21 @@ func (c *Lightsail) OpenInstancePublicPortsRequest(input *OpenInstancePublicPort // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/OpenInstancePublicPorts @@ -9617,11 +9618,11 @@ func (c *Lightsail) PeerVpcRequest(input *PeerVpcInput) (req *request.Request, o // See the AWS API reference guide for Amazon Lightsail's // API operation PeerVpc for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9629,21 +9630,21 @@ func (c *Lightsail) PeerVpcRequest(input *PeerVpcInput) (req *request.Request, o // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PeerVpc @@ -9726,11 +9727,11 @@ func (c *Lightsail) PutInstancePublicPortsRequest(input *PutInstancePublicPortsI // See the AWS API reference guide for Amazon Lightsail's // API operation PutInstancePublicPorts for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9738,21 +9739,21 @@ func (c *Lightsail) PutInstancePublicPortsRequest(input *PutInstancePublicPortsI // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/PutInstancePublicPorts @@ -9834,11 +9835,11 @@ func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *requ // See the AWS API reference guide for Amazon Lightsail's // API operation RebootInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9846,21 +9847,21 @@ func (c *Lightsail) RebootInstanceRequest(input *RebootInstanceInput) (req *requ // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootInstance @@ -9942,11 +9943,11 @@ func (c *Lightsail) RebootRelationalDatabaseRequest(input *RebootRelationalDatab // See the AWS API reference guide for Amazon Lightsail's // API operation RebootRelationalDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -9954,21 +9955,21 @@ func (c *Lightsail) RebootRelationalDatabaseRequest(input *RebootRelationalDatab // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/RebootRelationalDatabase @@ -10046,11 +10047,11 @@ func (c *Lightsail) ReleaseStaticIpRequest(input *ReleaseStaticIpInput) (req *re // See the AWS API reference guide for Amazon Lightsail's // API operation ReleaseStaticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10058,21 +10059,21 @@ func (c *Lightsail) ReleaseStaticIpRequest(input *ReleaseStaticIpInput) (req *re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/ReleaseStaticIp @@ -10160,11 +10161,11 @@ func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *reques // See the AWS API reference guide for Amazon Lightsail's // API operation StartInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10172,21 +10173,21 @@ func (c *Lightsail) StartInstanceRequest(input *StartInstanceInput) (req *reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartInstance @@ -10269,11 +10270,11 @@ func (c *Lightsail) StartRelationalDatabaseRequest(input *StartRelationalDatabas // See the AWS API reference guide for Amazon Lightsail's // API operation StartRelationalDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10281,21 +10282,21 @@ func (c *Lightsail) StartRelationalDatabaseRequest(input *StartRelationalDatabas // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StartRelationalDatabase @@ -10382,11 +10383,11 @@ func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request. // See the AWS API reference guide for Amazon Lightsail's // API operation StopInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10394,21 +10395,21 @@ func (c *Lightsail) StopInstanceRequest(input *StopInstanceInput) (req *request. // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopInstance @@ -10490,11 +10491,11 @@ func (c *Lightsail) StopRelationalDatabaseRequest(input *StopRelationalDatabaseI // See the AWS API reference guide for Amazon Lightsail's // API operation StopRelationalDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10502,21 +10503,21 @@ func (c *Lightsail) StopRelationalDatabaseRequest(input *StopRelationalDatabaseI // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/StopRelationalDatabase @@ -10601,11 +10602,11 @@ func (c *Lightsail) TagResourceRequest(input *TagResourceInput) (req *request.Re // See the AWS API reference guide for Amazon Lightsail's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10613,21 +10614,21 @@ func (c *Lightsail) TagResourceRequest(input *TagResourceInput) (req *request.Re // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/TagResource @@ -10705,11 +10706,11 @@ func (c *Lightsail) UnpeerVpcRequest(input *UnpeerVpcInput) (req *request.Reques // See the AWS API reference guide for Amazon Lightsail's // API operation UnpeerVpc for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10717,21 +10718,21 @@ func (c *Lightsail) UnpeerVpcRequest(input *UnpeerVpcInput) (req *request.Reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UnpeerVpc @@ -10814,11 +10815,11 @@ func (c *Lightsail) UntagResourceRequest(input *UntagResourceInput) (req *reques // See the AWS API reference guide for Amazon Lightsail's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10826,21 +10827,21 @@ func (c *Lightsail) UntagResourceRequest(input *UntagResourceInput) (req *reques // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UntagResource @@ -10922,11 +10923,11 @@ func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req // See the AWS API reference guide for Amazon Lightsail's // API operation UpdateDomainEntry for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -10934,21 +10935,21 @@ func (c *Lightsail) UpdateDomainEntryRequest(input *UpdateDomainEntryInput) (req // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateDomainEntry @@ -11031,11 +11032,11 @@ func (c *Lightsail) UpdateLoadBalancerAttributeRequest(input *UpdateLoadBalancer // See the AWS API reference guide for Amazon Lightsail's // API operation UpdateLoadBalancerAttribute for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -11043,21 +11044,21 @@ func (c *Lightsail) UpdateLoadBalancerAttributeRequest(input *UpdateLoadBalancer // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateLoadBalancerAttribute @@ -11142,11 +11143,11 @@ func (c *Lightsail) UpdateRelationalDatabaseRequest(input *UpdateRelationalDatab // See the AWS API reference guide for Amazon Lightsail's // API operation UpdateRelationalDatabase for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -11154,21 +11155,21 @@ func (c *Lightsail) UpdateRelationalDatabaseRequest(input *UpdateRelationalDatab // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateRelationalDatabase @@ -11257,11 +11258,11 @@ func (c *Lightsail) UpdateRelationalDatabaseParametersRequest(input *UpdateRelat // See the AWS API reference guide for Amazon Lightsail's // API operation UpdateRelationalDatabaseParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceException "ServiceException" +// Returned Error Types: +// * ServiceException // A general service exception. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Lightsail throws this exception when user input does not conform to the validation // rules of an input field. // @@ -11269,21 +11270,21 @@ func (c *Lightsail) UpdateRelationalDatabaseParametersRequest(input *UpdateRelat // Please set your AWS Region configuration to us-east-1 to create, view, or // edit these resources. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Lightsail throws this exception when it cannot find a resource. // -// * ErrCodeOperationFailureException "OperationFailureException" +// * OperationFailureException // Lightsail throws this exception when an operation fails to execute. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Lightsail throws this exception when the user cannot be authenticated or // uses invalid credentials to access a resource. // -// * ErrCodeAccountSetupInProgressException "AccountSetupInProgressException" +// * AccountSetupInProgressException // Lightsail throws this exception when an account is still in the setup in // progress state. // -// * ErrCodeUnauthenticatedException "UnauthenticatedException" +// * UnauthenticatedException // Lightsail throws this exception when the user has not been authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/lightsail-2016-11-28/UpdateRelationalDatabaseParameters @@ -11308,6 +11309,132 @@ func (c *Lightsail) UpdateRelationalDatabaseParametersWithContext(ctx aws.Contex return out, req.Send() } +// Lightsail throws this exception when the user cannot be authenticated or +// uses invalid credentials to access a resource. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Docs *string `locationName:"docs" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Tip *string `locationName:"tip" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Lightsail throws this exception when an account is still in the setup in +// progress state. +type AccountSetupInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Docs *string `locationName:"docs" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Tip *string `locationName:"tip" type:"string"` +} + +// String returns the string representation +func (s AccountSetupInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountSetupInProgressException) GoString() string { + return s.String() +} + +func newErrorAccountSetupInProgressException(v protocol.ResponseMetadata) error { + return &AccountSetupInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountSetupInProgressException) Code() string { + return "AccountSetupInProgressException" +} + +// Message returns the exception's message. +func (s AccountSetupInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountSetupInProgressException) OrigErr() error { + return nil +} + +func (s AccountSetupInProgressException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountSetupInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountSetupInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an add-on that is enabled for an Amazon Lightsail resource. type AddOn struct { _ struct{} `type:"structure"` @@ -21345,6 +21472,73 @@ func (s *InstanceState) SetName(v string) *InstanceState { return s } +// Lightsail throws this exception when user input does not conform to the validation +// rules of an input field. +// +// Domain-related APIs are only available in the N. Virginia (us-east-1) Region. +// Please set your AWS Region configuration to us-east-1 to create, view, or +// edit these resources. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Docs *string `locationName:"docs" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Tip *string `locationName:"tip" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + type IsVpcPeeredInput struct { _ struct{} `type:"structure"` } @@ -22219,6 +22413,68 @@ func (s *MonthlyTransfer) SetGbPerMonthAllocated(v int64) *MonthlyTransfer { return s } +// Lightsail throws this exception when it cannot find a resource. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Docs *string `locationName:"docs" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Tip *string `locationName:"tip" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type OpenInstancePublicPortsInput struct { _ struct{} `type:"structure"` @@ -22417,6 +22673,68 @@ func (s *Operation) SetStatusChangedAt(v time.Time) *Operation { return s } +// Lightsail throws this exception when an operation fails to execute. +type OperationFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Docs *string `locationName:"docs" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Tip *string `locationName:"tip" type:"string"` +} + +// String returns the string representation +func (s OperationFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationFailureException) GoString() string { + return s.String() +} + +func newErrorOperationFailureException(v protocol.ResponseMetadata) error { + return &OperationFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationFailureException) Code() string { + return "OperationFailureException" +} + +// Message returns the exception's message. +func (s OperationFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationFailureException) OrigErr() error { + return nil +} + +func (s OperationFailureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationFailureException) RequestID() string { + return s.respMetadata.RequestID +} + // The password data for the Windows Server-based instance, including the ciphertext // and the key pair name. type PasswordData struct { @@ -23796,6 +24114,68 @@ func (s *ResourceLocation) SetRegionName(v string) *ResourceLocation { return s } +// A general service exception. +type ServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Docs *string `locationName:"docs" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Tip *string `locationName:"tip" type:"string"` +} + +// String returns the string representation +func (s ServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceException) GoString() string { + return s.String() +} + +func newErrorServiceException(v protocol.ResponseMetadata) error { + return &ServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceException) Code() string { + return "ServiceException" +} + +// Message returns the exception's message. +func (s ServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceException) OrigErr() error { + return nil +} + +func (s ServiceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceException) RequestID() string { + return s.respMetadata.RequestID +} + type StartInstanceInput struct { _ struct{} `type:"structure"` @@ -24289,6 +24669,68 @@ func (s *TagResourceOutput) SetOperations(v []*Operation) *TagResourceOutput { return s } +// Lightsail throws this exception when the user has not been authenticated. +type UnauthenticatedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"code" type:"string"` + + Docs *string `locationName:"docs" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + Tip *string `locationName:"tip" type:"string"` +} + +// String returns the string representation +func (s UnauthenticatedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthenticatedException) GoString() string { + return s.String() +} + +func newErrorUnauthenticatedException(v protocol.ResponseMetadata) error { + return &UnauthenticatedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthenticatedException) Code() string { + return "UnauthenticatedException" +} + +// Message returns the exception's message. +func (s UnauthenticatedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthenticatedException) OrigErr() error { + return nil +} + +func (s UnauthenticatedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthenticatedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthenticatedException) RequestID() string { + return s.respMetadata.RequestID +} + type UnpeerVpcInput struct { _ struct{} `type:"structure"` } diff --git a/service/lightsail/errors.go b/service/lightsail/errors.go index bda8b8a6688..dbfd78b434d 100644 --- a/service/lightsail/errors.go +++ b/service/lightsail/errors.go @@ -2,6 +2,10 @@ package lightsail +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -53,3 +57,13 @@ const ( // Lightsail throws this exception when the user has not been authenticated. ErrCodeUnauthenticatedException = "UnauthenticatedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AccountSetupInProgressException": newErrorAccountSetupInProgressException, + "InvalidInputException": newErrorInvalidInputException, + "NotFoundException": newErrorNotFoundException, + "OperationFailureException": newErrorOperationFailureException, + "ServiceException": newErrorServiceException, + "UnauthenticatedException": newErrorUnauthenticatedException, +} diff --git a/service/lightsail/service.go b/service/lightsail/service.go index 1cde6a81132..171dd999964 100644 --- a/service/lightsail/service.go +++ b/service/lightsail/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/machinelearning/api.go b/service/machinelearning/api.go index 5a4b54bf42f..a64e05d765d 100644 --- a/service/machinelearning/api.go +++ b/service/machinelearning/api.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opAddTags = "AddTags" @@ -64,19 +65,19 @@ func (c *MachineLearning) AddTagsRequest(input *AddTagsInput) (req *request.Requ // See the AWS API reference guide for Amazon Machine Learning's // API operation AddTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // -// * ErrCodeTagLimitExceededException "TagLimitExceededException" +// * TagLimitExceededException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) AddTags(input *AddTagsInput) (*AddTagsOutput, error) { @@ -164,15 +165,15 @@ func (c *MachineLearning) CreateBatchPredictionRequest(input *CreateBatchPredict // See the AWS API reference guide for Amazon Machine Learning's // API operation CreateBatchPrediction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -262,15 +263,15 @@ func (c *MachineLearning) CreateDataSourceFromRDSRequest(input *CreateDataSource // See the AWS API reference guide for Amazon Machine Learning's // API operation CreateDataSourceFromRDS for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -379,15 +380,15 @@ func (c *MachineLearning) CreateDataSourceFromRedshiftRequest(input *CreateDataS // See the AWS API reference guide for Amazon Machine Learning's // API operation CreateDataSourceFromRedshift for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -491,15 +492,15 @@ func (c *MachineLearning) CreateDataSourceFromS3Request(input *CreateDataSourceF // See the AWS API reference guide for Amazon Machine Learning's // API operation CreateDataSourceFromS3 for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -591,15 +592,15 @@ func (c *MachineLearning) CreateEvaluationRequest(input *CreateEvaluationInput) // See the AWS API reference guide for Amazon Machine Learning's // API operation CreateEvaluation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -692,15 +693,15 @@ func (c *MachineLearning) CreateMLModelRequest(input *CreateMLModelInput) (req * // See the AWS API reference guide for Amazon Machine Learning's // API operation CreateMLModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A second request to use or change an object was not allowed. This can result // from retrying a request using a parameter that was not present in the original // request. @@ -779,15 +780,15 @@ func (c *MachineLearning) CreateRealtimeEndpointRequest(input *CreateRealtimeEnd // See the AWS API reference guide for Amazon Machine Learning's // API operation CreateRealtimeEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) CreateRealtimeEndpoint(input *CreateRealtimeEndpointInput) (*CreateRealtimeEndpointOutput, error) { @@ -867,15 +868,15 @@ func (c *MachineLearning) DeleteBatchPredictionRequest(input *DeleteBatchPredict // See the AWS API reference guide for Amazon Machine Learning's // API operation DeleteBatchPrediction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteBatchPrediction(input *DeleteBatchPredictionInput) (*DeleteBatchPredictionOutput, error) { @@ -955,15 +956,15 @@ func (c *MachineLearning) DeleteDataSourceRequest(input *DeleteDataSourceInput) // See the AWS API reference guide for Amazon Machine Learning's // API operation DeleteDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteDataSource(input *DeleteDataSourceInput) (*DeleteDataSourceOutput, error) { @@ -1043,15 +1044,15 @@ func (c *MachineLearning) DeleteEvaluationRequest(input *DeleteEvaluationInput) // See the AWS API reference guide for Amazon Machine Learning's // API operation DeleteEvaluation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteEvaluation(input *DeleteEvaluationInput) (*DeleteEvaluationOutput, error) { @@ -1131,15 +1132,15 @@ func (c *MachineLearning) DeleteMLModelRequest(input *DeleteMLModelInput) (req * // See the AWS API reference guide for Amazon Machine Learning's // API operation DeleteMLModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteMLModel(input *DeleteMLModelInput) (*DeleteMLModelOutput, error) { @@ -1214,15 +1215,15 @@ func (c *MachineLearning) DeleteRealtimeEndpointRequest(input *DeleteRealtimeEnd // See the AWS API reference guide for Amazon Machine Learning's // API operation DeleteRealtimeEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteRealtimeEndpoint(input *DeleteRealtimeEndpointInput) (*DeleteRealtimeEndpointOutput, error) { @@ -1300,17 +1301,17 @@ func (c *MachineLearning) DeleteTagsRequest(input *DeleteTagsInput) (req *reques // See the AWS API reference guide for Amazon Machine Learning's // API operation DeleteTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { @@ -1392,12 +1393,12 @@ func (c *MachineLearning) DescribeBatchPredictionsRequest(input *DescribeBatchPr // See the AWS API reference guide for Amazon Machine Learning's // API operation DescribeBatchPredictions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeBatchPredictions(input *DescribeBatchPredictionsInput) (*DescribeBatchPredictionsOutput, error) { @@ -1530,12 +1531,12 @@ func (c *MachineLearning) DescribeDataSourcesRequest(input *DescribeDataSourcesI // See the AWS API reference guide for Amazon Machine Learning's // API operation DescribeDataSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeDataSources(input *DescribeDataSourcesInput) (*DescribeDataSourcesOutput, error) { @@ -1669,12 +1670,12 @@ func (c *MachineLearning) DescribeEvaluationsRequest(input *DescribeEvaluationsI // See the AWS API reference guide for Amazon Machine Learning's // API operation DescribeEvaluations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeEvaluations(input *DescribeEvaluationsInput) (*DescribeEvaluationsOutput, error) { @@ -1807,12 +1808,12 @@ func (c *MachineLearning) DescribeMLModelsRequest(input *DescribeMLModelsInput) // See the AWS API reference guide for Amazon Machine Learning's // API operation DescribeMLModels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeMLModels(input *DescribeMLModelsInput) (*DescribeMLModelsOutput, error) { @@ -1939,15 +1940,15 @@ func (c *MachineLearning) DescribeTagsRequest(input *DescribeTagsInput) (req *re // See the AWS API reference guide for Amazon Machine Learning's // API operation DescribeTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) { @@ -2023,15 +2024,15 @@ func (c *MachineLearning) GetBatchPredictionRequest(input *GetBatchPredictionInp // See the AWS API reference guide for Amazon Machine Learning's // API operation GetBatchPrediction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetBatchPrediction(input *GetBatchPredictionInput) (*GetBatchPredictionOutput, error) { @@ -2111,15 +2112,15 @@ func (c *MachineLearning) GetDataSourceRequest(input *GetDataSourceInput) (req * // See the AWS API reference guide for Amazon Machine Learning's // API operation GetDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetDataSource(input *GetDataSourceInput) (*GetDataSourceOutput, error) { @@ -2195,15 +2196,15 @@ func (c *MachineLearning) GetEvaluationRequest(input *GetEvaluationInput) (req * // See the AWS API reference guide for Amazon Machine Learning's // API operation GetEvaluation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetEvaluation(input *GetEvaluationInput) (*GetEvaluationOutput, error) { @@ -2281,15 +2282,15 @@ func (c *MachineLearning) GetMLModelRequest(input *GetMLModelInput) (req *reques // See the AWS API reference guide for Amazon Machine Learning's // API operation GetMLModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) GetMLModel(input *GetMLModelInput) (*GetMLModelOutput, error) { @@ -2367,22 +2368,22 @@ func (c *MachineLearning) PredictRequest(input *PredictInput) (req *request.Requ // See the AWS API reference guide for Amazon Machine Learning's // API operation Predict for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The subscriber exceeded the maximum number of operations. This exception // can occur when listing objects such as DataSource. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // -// * ErrCodePredictorNotMountedException "PredictorNotMountedException" +// * PredictorNotMountedException // The exception is thrown when a predict request is made to an unmounted MLModel. // func (c *MachineLearning) Predict(input *PredictInput) (*PredictOutput, error) { @@ -2460,15 +2461,15 @@ func (c *MachineLearning) UpdateBatchPredictionRequest(input *UpdateBatchPredict // See the AWS API reference guide for Amazon Machine Learning's // API operation UpdateBatchPrediction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateBatchPrediction(input *UpdateBatchPredictionInput) (*UpdateBatchPredictionOutput, error) { @@ -2546,15 +2547,15 @@ func (c *MachineLearning) UpdateDataSourceRequest(input *UpdateDataSourceInput) // See the AWS API reference guide for Amazon Machine Learning's // API operation UpdateDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateDataSource(input *UpdateDataSourceInput) (*UpdateDataSourceOutput, error) { @@ -2632,15 +2633,15 @@ func (c *MachineLearning) UpdateEvaluationRequest(input *UpdateEvaluationInput) // See the AWS API reference guide for Amazon Machine Learning's // API operation UpdateEvaluation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateEvaluation(input *UpdateEvaluationInput) (*UpdateEvaluationOutput, error) { @@ -2718,15 +2719,15 @@ func (c *MachineLearning) UpdateMLModelRequest(input *UpdateMLModelInput) (req * // See the AWS API reference guide for Amazon Machine Learning's // API operation UpdateMLModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // An error on the client occurred. Typically, the cause is an invalid input // value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource cannot be located. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An error on the server occurred when trying to process a request. // func (c *MachineLearning) UpdateMLModel(input *UpdateMLModelInput) (*UpdateMLModelOutput, error) { @@ -6841,6 +6842,297 @@ func (s *GetMLModelOutput) SetTrainingParameters(v map[string]*string) *GetMLMod return s } +// A second request to use or change an object was not allowed. This can result +// from retrying a request using a parameter that was not present in the original +// request. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *int64 `locationName:"code" type:"integer"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error on the server occurred when trying to process a request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *int64 `locationName:"code" type:"integer"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error on the client occurred. Typically, the cause is an invalid input +// value. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *int64 `locationName:"code" type:"integer"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +type InvalidTagException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidTagException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagException) GoString() string { + return s.String() +} + +func newErrorInvalidTagException(v protocol.ResponseMetadata) error { + return &InvalidTagException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTagException) Code() string { + return "InvalidTagException" +} + +// Message returns the exception's message. +func (s InvalidTagException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagException) OrigErr() error { + return nil +} + +func (s InvalidTagException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagException) RequestID() string { + return s.respMetadata.RequestID +} + +// The subscriber exceeded the maximum number of operations. This exception +// can occur when listing objects such as DataSource. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *int64 `locationName:"code" type:"integer"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the output of a GetMLModel operation. // // The content consists of the detailed metadata and the current status of the @@ -7294,6 +7586,62 @@ func (s *Prediction) SetPredictedValue(v float64) *Prediction { return s } +// The exception is thrown when a predict request is made to an unmounted MLModel. +type PredictorNotMountedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PredictorNotMountedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PredictorNotMountedException) GoString() string { + return s.String() +} + +func newErrorPredictorNotMountedException(v protocol.ResponseMetadata) error { + return &PredictorNotMountedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PredictorNotMountedException) Code() string { + return "PredictorNotMountedException" +} + +// Message returns the exception's message. +func (s PredictorNotMountedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PredictorNotMountedException) OrigErr() error { + return nil +} + +func (s PredictorNotMountedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PredictorNotMountedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PredictorNotMountedException) RequestID() string { + return s.respMetadata.RequestID +} + // The data specification of an Amazon Relational Database Service (Amazon RDS) // DataSource. type RDSDataSpec struct { @@ -8227,6 +8575,64 @@ func (s *RedshiftMetadata) SetSelectSqlQuery(v string) *RedshiftMetadata { return s } +// A specified resource cannot be located. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *int64 `locationName:"code" type:"integer"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the data specification of a DataSource. type S3DataSpec struct { _ struct{} `type:"structure"` @@ -8429,6 +8835,61 @@ func (s *Tag) SetValue(v string) *Tag { return s } +type TagLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TagLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error { + return &TagLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagLimitExceededException) Code() string { + return "TagLimitExceededException" +} + +// Message returns the exception's message. +func (s TagLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagLimitExceededException) OrigErr() error { + return nil +} + +func (s TagLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateBatchPredictionInput struct { _ struct{} `type:"structure"` diff --git a/service/machinelearning/errors.go b/service/machinelearning/errors.go index eb2f86437d9..440afed5939 100644 --- a/service/machinelearning/errors.go +++ b/service/machinelearning/errors.go @@ -2,6 +2,10 @@ package machinelearning +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeIdempotentParameterMismatchException for service response error code @@ -52,3 +56,14 @@ const ( // "TagLimitExceededException". ErrCodeTagLimitExceededException = "TagLimitExceededException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "InternalServerException": newErrorInternalServerException, + "InvalidInputException": newErrorInvalidInputException, + "InvalidTagException": newErrorInvalidTagException, + "LimitExceededException": newErrorLimitExceededException, + "PredictorNotMountedException": newErrorPredictorNotMountedException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TagLimitExceededException": newErrorTagLimitExceededException, +} diff --git a/service/machinelearning/service.go b/service/machinelearning/service.go index 5c643e9df90..99f66426925 100644 --- a/service/machinelearning/service.go +++ b/service/machinelearning/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/macie/api.go b/service/macie/api.go index a3a890dcb22..615361d048f 100644 --- a/service/macie/api.go +++ b/service/macie/api.go @@ -66,16 +66,16 @@ func (c *Macie) AssociateMemberAccountRequest(input *AssociateMemberAccountInput // See the AWS API reference guide for Amazon Macie's // API operation AssociateMemberAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateMemberAccount @@ -157,19 +157,19 @@ func (c *Macie) AssociateS3ResourcesRequest(input *AssociateS3ResourcesInput) (r // See the AWS API reference guide for Amazon Macie's // API operation AssociateS3Resources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/AssociateS3Resources @@ -248,12 +248,12 @@ func (c *Macie) DisassociateMemberAccountRequest(input *DisassociateMemberAccoun // See the AWS API reference guide for Amazon Macie's // API operation DisassociateMemberAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateMemberAccount @@ -334,15 +334,15 @@ func (c *Macie) DisassociateS3ResourcesRequest(input *DisassociateS3ResourcesInp // See the AWS API reference guide for Amazon Macie's // API operation DisassociateS3Resources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/DisassociateS3Resources @@ -427,11 +427,11 @@ func (c *Macie) ListMemberAccountsRequest(input *ListMemberAccountsInput) (req * // See the AWS API reference guide for Amazon Macie's // API operation ListMemberAccounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // @@ -572,15 +572,15 @@ func (c *Macie) ListS3ResourcesRequest(input *ListS3ResourcesInput) (req *reques // See the AWS API reference guide for Amazon Macie's // API operation ListS3Resources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/ListS3Resources @@ -714,15 +714,15 @@ func (c *Macie) UpdateS3ResourcesRequest(input *UpdateS3ResourcesInput) (req *re // See the AWS API reference guide for Amazon Macie's // API operation UpdateS3Resources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // The request was rejected because an invalid or out-of-range value was supplied // for an input parameter. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have required permissions to access the requested resource. // -// * ErrCodeInternalException "InternalException" +// * InternalException // Internal server error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/macie-2017-12-19/UpdateS3Resources @@ -747,6 +747,65 @@ func (c *Macie) UpdateS3ResourcesWithContext(ctx aws.Context, input *UpdateS3Res return out, req.Send() } +// You do not have required permissions to access the requested resource. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + // Resource type that caused the exception + ResourceType *string `locationName:"resourceType" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AssociateMemberAccountInput struct { _ struct{} `type:"structure"` @@ -1155,6 +1214,191 @@ func (s *FailedS3Resource) SetFailedItem(v *S3Resource) *FailedS3Resource { return s } +// Internal server error. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error code for the exception + ErrorCode *string `locationName:"errorCode" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because an invalid or out-of-range value was supplied +// for an input parameter. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error code for the exception + ErrorCode *string `locationName:"errorCode" type:"string"` + + // Field that has invalid input + FieldName *string `locationName:"fieldName" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error code for the exception + ErrorCode *string `locationName:"errorCode" type:"string"` + + Message_ *string `locationName:"message" type:"string"` + + // Resource type that caused the exception + ResourceType *string `locationName:"resourceType" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListMemberAccountsInput struct { _ struct{} `type:"structure"` diff --git a/service/macie/errors.go b/service/macie/errors.go index 77768d52eb5..9c265a3d1bc 100644 --- a/service/macie/errors.go +++ b/service/macie/errors.go @@ -2,6 +2,10 @@ package macie +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -30,3 +34,10 @@ const ( // the current AWS account limits. The error code describes the limit exceeded. ErrCodeLimitExceededException = "LimitExceededException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "InternalException": newErrorInternalException, + "InvalidInputException": newErrorInvalidInputException, + "LimitExceededException": newErrorLimitExceededException, +} diff --git a/service/macie/service.go b/service/macie/service.go index 2bcf3cf592b..e4eca163c26 100644 --- a/service/macie/service.go +++ b/service/macie/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/managedblockchain/api.go b/service/managedblockchain/api.go index bea6e734bed..0dba7679c4e 100644 --- a/service/managedblockchain/api.go +++ b/service/managedblockchain/api.go @@ -66,37 +66,37 @@ func (c *ManagedBlockchain) CreateMemberRequest(input *CreateMemberInput) (req * // See the AWS API reference guide for Amazon Managed Blockchain's // API operation CreateMember for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource request is issued for a resource that already exists. // -// * ErrCodeResourceNotReadyException "ResourceNotReadyException" +// * ResourceNotReadyException // The requested resource exists but is not in a status that can complete the // operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of resources of that type already exist. Ensure the resources // requested are within the boundaries of the service edition and your account // limits. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -175,29 +175,29 @@ func (c *ManagedBlockchain) CreateNetworkRequest(input *CreateNetworkInput) (req // See the AWS API reference guide for Amazon Managed Blockchain's // API operation CreateNetwork for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource request is issued for a resource that already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of resources of that type already exist. Ensure the resources // requested are within the boundaries of the service edition and your account // limits. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -276,37 +276,37 @@ func (c *ManagedBlockchain) CreateNodeRequest(input *CreateNodeInput) (req *requ // See the AWS API reference guide for Amazon Managed Blockchain's // API operation CreateNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A resource request is issued for a resource that already exists. // -// * ErrCodeResourceNotReadyException "ResourceNotReadyException" +// * ResourceNotReadyException // The requested resource exists but is not in a status that can complete the // operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of resources of that type already exist. Ensure the resources // requested are within the boundaries of the service edition and your account // limits. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -387,29 +387,29 @@ func (c *ManagedBlockchain) CreateProposalRequest(input *CreateProposalInput) (r // See the AWS API reference guide for Amazon Managed Blockchain's // API operation CreateProposal for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeResourceNotReadyException "ResourceNotReadyException" +// * ResourceNotReadyException // The requested resource exists but is not in a status that can complete the // operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -495,29 +495,29 @@ func (c *ManagedBlockchain) DeleteMemberRequest(input *DeleteMemberInput) (req * // See the AWS API reference guide for Amazon Managed Blockchain's // API operation DeleteMember for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeResourceNotReadyException "ResourceNotReadyException" +// * ResourceNotReadyException // The requested resource exists but is not in a status that can complete the // operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -598,29 +598,29 @@ func (c *ManagedBlockchain) DeleteNodeRequest(input *DeleteNodeInput) (req *requ // See the AWS API reference guide for Amazon Managed Blockchain's // API operation DeleteNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeResourceNotReadyException "ResourceNotReadyException" +// * ResourceNotReadyException // The requested resource exists but is not in a status that can complete the // operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -699,25 +699,25 @@ func (c *ManagedBlockchain) GetMemberRequest(input *GetMemberInput) (req *reques // See the AWS API reference guide for Amazon Managed Blockchain's // API operation GetMember for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -796,25 +796,25 @@ func (c *ManagedBlockchain) GetNetworkRequest(input *GetNetworkInput) (req *requ // See the AWS API reference guide for Amazon Managed Blockchain's // API operation GetNetwork for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -893,25 +893,25 @@ func (c *ManagedBlockchain) GetNodeRequest(input *GetNodeInput) (req *request.Re // See the AWS API reference guide for Amazon Managed Blockchain's // API operation GetNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -990,25 +990,25 @@ func (c *ManagedBlockchain) GetProposalRequest(input *GetProposalInput) (req *re // See the AWS API reference guide for Amazon Managed Blockchain's // API operation GetProposal for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -1093,30 +1093,30 @@ func (c *ManagedBlockchain) ListInvitationsRequest(input *ListInvitationsInput) // See the AWS API reference guide for Amazon Managed Blockchain's // API operation ListInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // The maximum number of resources of that type already exist. Ensure the resources // requested are within the boundaries of the service edition and your account // limits. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -1253,21 +1253,21 @@ func (c *ManagedBlockchain) ListMembersRequest(input *ListMembersInput) (req *re // See the AWS API reference guide for Amazon Managed Blockchain's // API operation ListMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -1405,21 +1405,21 @@ func (c *ManagedBlockchain) ListNetworksRequest(input *ListNetworksInput) (req * // See the AWS API reference guide for Amazon Managed Blockchain's // API operation ListNetworks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -1556,21 +1556,21 @@ func (c *ManagedBlockchain) ListNodesRequest(input *ListNodesInput) (req *reques // See the AWS API reference guide for Amazon Managed Blockchain's // API operation ListNodes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -1708,21 +1708,21 @@ func (c *ManagedBlockchain) ListProposalVotesRequest(input *ListProposalVotesInp // See the AWS API reference guide for Amazon Managed Blockchain's // API operation ListProposalVotes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -1859,25 +1859,25 @@ func (c *ManagedBlockchain) ListProposalsRequest(input *ListProposalsInput) (req // See the AWS API reference guide for Amazon Managed Blockchain's // API operation ListProposals for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -2011,27 +2011,27 @@ func (c *ManagedBlockchain) RejectInvitationRequest(input *RejectInvitationInput // See the AWS API reference guide for Amazon Managed Blockchain's // API operation RejectInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeIllegalActionException "IllegalActionException" +// * IllegalActionException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -2113,27 +2113,27 @@ func (c *ManagedBlockchain) VoteOnProposalRequest(input *VoteOnProposalInput) (r // See the AWS API reference guide for Amazon Managed Blockchain's // API operation VoteOnProposal for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The action or operation requested is invalid. Verify that the action is typed // correctly. // -// * ErrCodeIllegalActionException "IllegalActionException" +// * IllegalActionException // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A requested resource does not exist on the network. It may have been deleted // or referenced inaccurately. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request or operation could not be performed because a service is throttling // requests. The most common source of throttling errors is launching EC2 instances // such that your service limit for EC2 instances is exceeded. Request a limit // increase or delete unused resources if possible. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The request processing has failed because of an unknown error, exception // or failure. // @@ -2159,6 +2159,57 @@ func (c *ManagedBlockchain) VoteOnProposalWithContext(ctx aws.Context, input *Vo return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // A policy type that defines the voting rules for the network. The rules decide // if a proposal is approved. Approval may be based on criteria such as the // percentage of YES votes and the duration of the proposal. The policy applies @@ -3256,6 +3307,170 @@ func (s *GetProposalOutput) SetProposal(v *Proposal) *GetProposalOutput { return s } +type IllegalActionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IllegalActionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IllegalActionException) GoString() string { + return s.String() +} + +func newErrorIllegalActionException(v protocol.ResponseMetadata) error { + return &IllegalActionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IllegalActionException) Code() string { + return "IllegalActionException" +} + +// Message returns the exception's message. +func (s IllegalActionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IllegalActionException) OrigErr() error { + return nil +} + +func (s IllegalActionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IllegalActionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IllegalActionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request processing has failed because of an unknown error, exception +// or failure. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s InternalServiceErrorException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s InternalServiceErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The action or operation requested is invalid. Verify that the action is typed +// correctly. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // An invitation to an AWS account to create a member and join the network. type Invitation struct { _ struct{} `type:"structure"` @@ -5423,6 +5638,288 @@ func (s *RemoveAction) SetMemberId(v string) *RemoveAction { return s } +// A resource request is issued for a resource that already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of resources of that type already exist. Ensure the resources +// requested are within the boundaries of the service edition and your account +// limits. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A requested resource does not exist on the network. It may have been deleted +// or referenced inaccurately. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource exists but is not in a status that can complete the +// operation. +type ResourceNotReadyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotReadyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotReadyException) GoString() string { + return s.String() +} + +func newErrorResourceNotReadyException(v protocol.ResponseMetadata) error { + return &ResourceNotReadyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotReadyException) Code() string { + return "ResourceNotReadyException" +} + +// Message returns the exception's message. +func (s ResourceNotReadyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotReadyException) OrigErr() error { + return nil +} + +func (s ResourceNotReadyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotReadyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotReadyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request or operation could not be performed because a service is throttling +// requests. The most common source of throttling errors is launching EC2 instances +// such that your service limit for EC2 instances is exceeded. Request a limit +// increase or delete unused resources if possible. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type VoteOnProposalInput struct { _ struct{} `type:"structure"` diff --git a/service/managedblockchain/errors.go b/service/managedblockchain/errors.go index a959e22ee9d..6e803ddae39 100644 --- a/service/managedblockchain/errors.go +++ b/service/managedblockchain/errors.go @@ -2,6 +2,10 @@ package managedblockchain +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -65,3 +69,15 @@ const ( // increase or delete unused resources if possible. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "IllegalActionException": newErrorIllegalActionException, + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceNotReadyException": newErrorResourceNotReadyException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/managedblockchain/service.go b/service/managedblockchain/service.go index 02c130eec6b..ade725afa64 100644 --- a/service/managedblockchain/service.go +++ b/service/managedblockchain/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/marketplacecatalog/api.go b/service/marketplacecatalog/api.go index c8eb6c9193f..41c04b48ec8 100644 --- a/service/marketplacecatalog/api.go +++ b/service/marketplacecatalog/api.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCancelChangeSet = "CancelChangeSet" @@ -66,23 +67,23 @@ func (c *MarketplaceCatalog) CancelChangeSetRequest(input *CancelChangeSetInput) // See the AWS API reference guide for AWS Marketplace Catalog Service's // API operation CancelChangeSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // There was an internal service exception. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access is denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An error occurred during validation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource wasn't found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is currently in use. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Too many requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/CancelChangeSet @@ -160,20 +161,20 @@ func (c *MarketplaceCatalog) DescribeChangeSetRequest(input *DescribeChangeSetIn // See the AWS API reference guide for AWS Marketplace Catalog Service's // API operation DescribeChangeSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // There was an internal service exception. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access is denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An error occurred during validation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource wasn't found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Too many requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DescribeChangeSet @@ -251,23 +252,23 @@ func (c *MarketplaceCatalog) DescribeEntityRequest(input *DescribeEntityInput) ( // See the AWS API reference guide for AWS Marketplace Catalog Service's // API operation DescribeEntity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // There was an internal service exception. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access is denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An error occurred during validation. // -// * ErrCodeResourceNotSupportedException "ResourceNotSupportedException" +// * ResourceNotSupportedException // Currently, the specified resource is not supported. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource wasn't found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Too many requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DescribeEntity @@ -357,17 +358,17 @@ func (c *MarketplaceCatalog) ListChangeSetsRequest(input *ListChangeSetsInput) ( // See the AWS API reference guide for AWS Marketplace Catalog Service's // API operation ListChangeSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // There was an internal service exception. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access is denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An error occurred during validation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Too many requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/ListChangeSets @@ -503,20 +504,20 @@ func (c *MarketplaceCatalog) ListEntitiesRequest(input *ListEntitiesInput) (req // See the AWS API reference guide for AWS Marketplace Catalog Service's // API operation ListEntities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // There was an internal service exception. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access is denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An error occurred during validation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource wasn't found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Too many requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/ListEntities @@ -646,26 +647,26 @@ func (c *MarketplaceCatalog) StartChangeSetRequest(input *StartChangeSetInput) ( // See the AWS API reference guide for AWS Marketplace Catalog Service's // API operation StartChangeSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceException "InternalServiceException" +// Returned Error Types: +// * InternalServiceException // There was an internal service exception. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Access is denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // An error occurred during validation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource wasn't found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource is currently in use. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Too many requests. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // The maximum number of open requests per account has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/StartChangeSet @@ -690,6 +691,62 @@ func (c *MarketplaceCatalog) StartChangeSetWithContext(ctx aws.Context, input *S return out, req.Send() } +// Access is denied. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type CancelChangeSetInput struct { _ struct{} `type:"structure"` @@ -1495,6 +1552,62 @@ func (s *Filter) SetValueList(v []*string) *Filter { return s } +// There was an internal service exception. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + type ListChangeSetsInput struct { _ struct{} `type:"structure"` @@ -1783,6 +1896,230 @@ func (s *ListEntitiesOutput) SetNextToken(v string) *ListEntitiesOutput { return s } +// The resource is currently in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource wasn't found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Currently, the specified resource is not supported. +type ResourceNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotSupportedException) GoString() string { + return s.String() +} + +func newErrorResourceNotSupportedException(v protocol.ResponseMetadata) error { + return &ResourceNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotSupportedException) Code() string { + return "ResourceNotSupportedException" +} + +// Message returns the exception's message. +func (s ResourceNotSupportedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotSupportedException) OrigErr() error { + return nil +} + +func (s ResourceNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of open requests per account has been exceeded. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that contains two attributes, sortBy and sortOrder. type Sort struct { _ struct{} `type:"structure"` @@ -1957,6 +2294,118 @@ func (s *StartChangeSetOutput) SetChangeSetId(v string) *StartChangeSetOutput { return s } +// Too many requests. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error occurred during validation. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ChangeStatusPreparing is a ChangeStatus enum value ChangeStatusPreparing = "PREPARING" diff --git a/service/marketplacecatalog/errors.go b/service/marketplacecatalog/errors.go index f2ccf0e41d8..3a789a57de2 100644 --- a/service/marketplacecatalog/errors.go +++ b/service/marketplacecatalog/errors.go @@ -2,6 +2,10 @@ package marketplacecatalog +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -52,3 +56,14 @@ const ( // An error occurred during validation. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "InternalServiceException": newErrorInternalServiceException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceNotSupportedException": newErrorResourceNotSupportedException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/marketplacecatalog/service.go b/service/marketplacecatalog/service.go index bca99548557..ae4063ce913 100644 --- a/service/marketplacecatalog/service.go +++ b/service/marketplacecatalog/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/marketplacecommerceanalytics/api.go b/service/marketplacecommerceanalytics/api.go index 1faacc74615..a34808b9b8e 100644 --- a/service/marketplacecommerceanalytics/api.go +++ b/service/marketplacecommerceanalytics/api.go @@ -3,11 +3,13 @@ package marketplacecommerceanalytics import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGenerateDataSet = "GenerateDataSet" @@ -72,8 +74,8 @@ func (c *MarketplaceCommerceAnalytics) GenerateDataSetRequest(input *GenerateDat // See the AWS API reference guide for AWS Marketplace Commerce Analytics's // API operation GenerateDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeException "MarketplaceCommerceAnalyticsException" +// Returned Error Types: +// * Exception // This exception is thrown when an internal service error occurs. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/GenerateDataSet @@ -161,8 +163,8 @@ func (c *MarketplaceCommerceAnalytics) StartSupportDataExportRequest(input *Star // See the AWS API reference guide for AWS Marketplace Commerce Analytics's // API operation StartSupportDataExport for usage and error information. // -// Returned Error Codes: -// * ErrCodeException "MarketplaceCommerceAnalyticsException" +// Returned Error Types: +// * Exception // This exception is thrown when an internal service error occurs. // // See also, https://docs.aws.amazon.com/goto/WebAPI/marketplacecommerceanalytics-2015-07-01/StartSupportDataExport @@ -187,6 +189,63 @@ func (c *MarketplaceCommerceAnalytics) StartSupportDataExportWithContext(ctx aws return out, req.Send() } +// This exception is thrown when an internal service error occurs. +type Exception struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // This message describes details of the error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s Exception) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Exception) GoString() string { + return s.String() +} + +func newErrorException(v protocol.ResponseMetadata) error { + return &Exception{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s Exception) Code() string { + return "MarketplaceCommerceAnalyticsException" +} + +// Message returns the exception's message. +func (s Exception) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s Exception) OrigErr() error { + return nil +} + +func (s Exception) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s Exception) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s Exception) RequestID() string { + return s.respMetadata.RequestID +} + // Container for the parameters to the GenerateDataSet operation. type GenerateDataSetInput struct { _ struct{} `type:"structure"` diff --git a/service/marketplacecommerceanalytics/errors.go b/service/marketplacecommerceanalytics/errors.go index ff07e02b5e0..bd230266f9b 100644 --- a/service/marketplacecommerceanalytics/errors.go +++ b/service/marketplacecommerceanalytics/errors.go @@ -2,6 +2,10 @@ package marketplacecommerceanalytics +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeException for service response error code @@ -10,3 +14,7 @@ const ( // This exception is thrown when an internal service error occurs. ErrCodeException = "MarketplaceCommerceAnalyticsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "MarketplaceCommerceAnalyticsException": newErrorException, +} diff --git a/service/marketplacecommerceanalytics/service.go b/service/marketplacecommerceanalytics/service.go index 9aaf9d3eeee..ef9fdfa5c61 100644 --- a/service/marketplacecommerceanalytics/service.go +++ b/service/marketplacecommerceanalytics/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/marketplaceentitlementservice/api.go b/service/marketplaceentitlementservice/api.go index 2995af62439..c6f6aa4d926 100644 --- a/service/marketplaceentitlementservice/api.go +++ b/service/marketplaceentitlementservice/api.go @@ -3,11 +3,13 @@ package marketplaceentitlementservice import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetEntitlements = "GetEntitlements" @@ -64,14 +66,14 @@ func (c *MarketplaceEntitlementService) GetEntitlementsRequest(input *GetEntitle // See the AWS API reference guide for AWS Marketplace Entitlement Service's // API operation GetEntitlements for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in your request was invalid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The calls to the GetEntitlements API are throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error has occurred. Retry your request. If the problem persists, // post a message with details on the AWS forums. // @@ -338,6 +340,175 @@ func (s *GetEntitlementsOutput) SetNextToken(v string) *GetEntitlementsOutput { return s } +// An internal error has occurred. Retry your request. If the problem persists, +// post a message with details on the AWS forums. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s InternalServiceErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s InternalServiceErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more parameters in your request was invalid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The calls to the GetEntitlements API are throttled. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // GetEntitlementFilterNameCustomerIdentifier is a GetEntitlementFilterName enum value GetEntitlementFilterNameCustomerIdentifier = "CUSTOMER_IDENTIFIER" diff --git a/service/marketplaceentitlementservice/errors.go b/service/marketplaceentitlementservice/errors.go index 2876f45b54d..67b80c3549a 100644 --- a/service/marketplaceentitlementservice/errors.go +++ b/service/marketplaceentitlementservice/errors.go @@ -2,6 +2,10 @@ package marketplaceentitlementservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServiceErrorException for service response error code @@ -23,3 +27,9 @@ const ( // The calls to the GetEntitlements API are throttled. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "InvalidParameterException": newErrorInvalidParameterException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/marketplaceentitlementservice/service.go b/service/marketplaceentitlementservice/service.go index 33d783da503..50c4fde7820 100644 --- a/service/marketplaceentitlementservice/service.go +++ b/service/marketplaceentitlementservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/marketplacemetering/api.go b/service/marketplacemetering/api.go index 4b94a65f8c7..bb83e6f48e6 100644 --- a/service/marketplacemetering/api.go +++ b/service/marketplacemetering/api.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opBatchMeterUsage = "BatchMeterUsage" @@ -73,29 +74,29 @@ func (c *MarketplaceMetering) BatchMeterUsageRequest(input *BatchMeterUsageInput // See the AWS API reference guide for AWSMarketplace Metering's // API operation BatchMeterUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// Returned Error Types: +// * InternalServiceErrorException // An internal error has occurred. Retry your request. If the problem persists, // post a message with details on the AWS forums. // -// * ErrCodeInvalidProductCodeException "InvalidProductCodeException" +// * InvalidProductCodeException // The product code passed does not match the product code used for publishing // the product. // -// * ErrCodeInvalidUsageDimensionException "InvalidUsageDimensionException" +// * InvalidUsageDimensionException // The usage dimension does not match one of the UsageDimensions associated // with products. // -// * ErrCodeInvalidCustomerIdentifierException "InvalidCustomerIdentifierException" +// * InvalidCustomerIdentifierException // You have metered usage for a CustomerIdentifier that does not exist. // -// * ErrCodeTimestampOutOfBoundsException "TimestampOutOfBoundsException" +// * TimestampOutOfBoundsException // The timestamp value passed in the meterUsage() is out of allowed range. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The calls to the API are throttled. // -// * ErrCodeDisabledApiException "DisabledApiException" +// * DisabledApiException // The API is disabled in the Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/BatchMeterUsage @@ -177,36 +178,36 @@ func (c *MarketplaceMetering) MeterUsageRequest(input *MeterUsageInput) (req *re // See the AWS API reference guide for AWSMarketplace Metering's // API operation MeterUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// Returned Error Types: +// * InternalServiceErrorException // An internal error has occurred. Retry your request. If the problem persists, // post a message with details on the AWS forums. // -// * ErrCodeInvalidProductCodeException "InvalidProductCodeException" +// * InvalidProductCodeException // The product code passed does not match the product code used for publishing // the product. // -// * ErrCodeInvalidUsageDimensionException "InvalidUsageDimensionException" +// * InvalidUsageDimensionException // The usage dimension does not match one of the UsageDimensions associated // with products. // -// * ErrCodeInvalidEndpointRegionException "InvalidEndpointRegionException" +// * InvalidEndpointRegionException // The endpoint being called is in a AWS Region different from your EC2 instance, // ECS task, or EKS pod. The Region of the Metering Service endpoint and the // AWS Region of the resource must match. // -// * ErrCodeTimestampOutOfBoundsException "TimestampOutOfBoundsException" +// * TimestampOutOfBoundsException // The timestamp value passed in the meterUsage() is out of allowed range. // -// * ErrCodeDuplicateRequestException "DuplicateRequestException" +// * DuplicateRequestException // A metering record has already been emitted by the same EC2 instance, ECS // task, or EKS pod for the given {usageDimension, timestamp} with a different // usageQuantity. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The calls to the API are throttled. // -// * ErrCodeCustomerNotEntitledException "CustomerNotEntitledException" +// * CustomerNotEntitledException // Exception thrown when the customer does not have a valid subscription for // the product. // @@ -315,35 +316,35 @@ func (c *MarketplaceMetering) RegisterUsageRequest(input *RegisterUsageInput) (r // See the AWS API reference guide for AWSMarketplace Metering's // API operation RegisterUsage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidProductCodeException "InvalidProductCodeException" +// Returned Error Types: +// * InvalidProductCodeException // The product code passed does not match the product code used for publishing // the product. // -// * ErrCodeInvalidRegionException "InvalidRegionException" +// * InvalidRegionException // RegisterUsage must be called in the same AWS Region the ECS task was launched // in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) // when calling RegisterUsage. // -// * ErrCodeInvalidPublicKeyVersionException "InvalidPublicKeyVersionException" +// * InvalidPublicKeyVersionException // Public Key version is invalid. // -// * ErrCodePlatformNotSupportedException "PlatformNotSupportedException" +// * PlatformNotSupportedException // AWS Marketplace does not support metering usage from the underlying platform. // Currently, only Amazon ECS is supported. // -// * ErrCodeCustomerNotEntitledException "CustomerNotEntitledException" +// * CustomerNotEntitledException // Exception thrown when the customer does not have a valid subscription for // the product. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The calls to the API are throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error has occurred. Retry your request. If the problem persists, // post a message with details on the AWS forums. // -// * ErrCodeDisabledApiException "DisabledApiException" +// * DisabledApiException // The API is disabled in the Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/RegisterUsage @@ -424,25 +425,25 @@ func (c *MarketplaceMetering) ResolveCustomerRequest(input *ResolveCustomerInput // See the AWS API reference guide for AWSMarketplace Metering's // API operation ResolveCustomer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidTokenException "InvalidTokenException" +// Returned Error Types: +// * InvalidTokenException // Registration token is invalid. // -// * ErrCodeExpiredTokenException "ExpiredTokenException" +// * ExpiredTokenException // The submitted registration token has expired. This can happen if the buyer's // browser takes too long to redirect to your page, the buyer has resubmitted // the registration token, or your application has held on to the registration // token for too long. Your SaaS registration website should redeem this token // as soon as it is submitted by the buyer's browser. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The calls to the API are throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error has occurred. Retry your request. If the problem persists, // post a message with details on the AWS forums. // -// * ErrCodeDisabledApiException "DisabledApiException" +// * DisabledApiException // The API is disabled in the Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/meteringmarketplace-2016-01-14/ResolveCustomer @@ -574,6 +575,692 @@ func (s *BatchMeterUsageOutput) SetUnprocessedRecords(v []*UsageRecord) *BatchMe return s } +// Exception thrown when the customer does not have a valid subscription for +// the product. +type CustomerNotEntitledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CustomerNotEntitledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomerNotEntitledException) GoString() string { + return s.String() +} + +func newErrorCustomerNotEntitledException(v protocol.ResponseMetadata) error { + return &CustomerNotEntitledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CustomerNotEntitledException) Code() string { + return "CustomerNotEntitledException" +} + +// Message returns the exception's message. +func (s CustomerNotEntitledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomerNotEntitledException) OrigErr() error { + return nil +} + +func (s CustomerNotEntitledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomerNotEntitledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomerNotEntitledException) RequestID() string { + return s.respMetadata.RequestID +} + +// The API is disabled in the Region. +type DisabledApiException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DisabledApiException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisabledApiException) GoString() string { + return s.String() +} + +func newErrorDisabledApiException(v protocol.ResponseMetadata) error { + return &DisabledApiException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DisabledApiException) Code() string { + return "DisabledApiException" +} + +// Message returns the exception's message. +func (s DisabledApiException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DisabledApiException) OrigErr() error { + return nil +} + +func (s DisabledApiException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DisabledApiException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DisabledApiException) RequestID() string { + return s.respMetadata.RequestID +} + +// A metering record has already been emitted by the same EC2 instance, ECS +// task, or EKS pod for the given {usageDimension, timestamp} with a different +// usageQuantity. +type DuplicateRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DuplicateRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateRequestException) GoString() string { + return s.String() +} + +func newErrorDuplicateRequestException(v protocol.ResponseMetadata) error { + return &DuplicateRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateRequestException) Code() string { + return "DuplicateRequestException" +} + +// Message returns the exception's message. +func (s DuplicateRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateRequestException) OrigErr() error { + return nil +} + +func (s DuplicateRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The submitted registration token has expired. This can happen if the buyer's +// browser takes too long to redirect to your page, the buyer has resubmitted +// the registration token, or your application has held on to the registration +// token for too long. Your SaaS registration website should redeem this token +// as soon as it is submitted by the buyer's browser. +type ExpiredTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExpiredTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredTokenException) GoString() string { + return s.String() +} + +func newErrorExpiredTokenException(v protocol.ResponseMetadata) error { + return &ExpiredTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredTokenException) Code() string { + return "ExpiredTokenException" +} + +// Message returns the exception's message. +func (s ExpiredTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredTokenException) OrigErr() error { + return nil +} + +func (s ExpiredTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// An internal error has occurred. Retry your request. If the problem persists, +// post a message with details on the AWS forums. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s InternalServiceErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s InternalServiceErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have metered usage for a CustomerIdentifier that does not exist. +type InvalidCustomerIdentifierException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidCustomerIdentifierException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCustomerIdentifierException) GoString() string { + return s.String() +} + +func newErrorInvalidCustomerIdentifierException(v protocol.ResponseMetadata) error { + return &InvalidCustomerIdentifierException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCustomerIdentifierException) Code() string { + return "InvalidCustomerIdentifierException" +} + +// Message returns the exception's message. +func (s InvalidCustomerIdentifierException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCustomerIdentifierException) OrigErr() error { + return nil +} + +func (s InvalidCustomerIdentifierException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCustomerIdentifierException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCustomerIdentifierException) RequestID() string { + return s.respMetadata.RequestID +} + +// The endpoint being called is in a AWS Region different from your EC2 instance, +// ECS task, or EKS pod. The Region of the Metering Service endpoint and the +// AWS Region of the resource must match. +type InvalidEndpointRegionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidEndpointRegionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidEndpointRegionException) GoString() string { + return s.String() +} + +func newErrorInvalidEndpointRegionException(v protocol.ResponseMetadata) error { + return &InvalidEndpointRegionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidEndpointRegionException) Code() string { + return "InvalidEndpointRegionException" +} + +// Message returns the exception's message. +func (s InvalidEndpointRegionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidEndpointRegionException) OrigErr() error { + return nil +} + +func (s InvalidEndpointRegionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidEndpointRegionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidEndpointRegionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The product code passed does not match the product code used for publishing +// the product. +type InvalidProductCodeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidProductCodeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidProductCodeException) GoString() string { + return s.String() +} + +func newErrorInvalidProductCodeException(v protocol.ResponseMetadata) error { + return &InvalidProductCodeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidProductCodeException) Code() string { + return "InvalidProductCodeException" +} + +// Message returns the exception's message. +func (s InvalidProductCodeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidProductCodeException) OrigErr() error { + return nil +} + +func (s InvalidProductCodeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidProductCodeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidProductCodeException) RequestID() string { + return s.respMetadata.RequestID +} + +// Public Key version is invalid. +type InvalidPublicKeyVersionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPublicKeyVersionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPublicKeyVersionException) GoString() string { + return s.String() +} + +func newErrorInvalidPublicKeyVersionException(v protocol.ResponseMetadata) error { + return &InvalidPublicKeyVersionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPublicKeyVersionException) Code() string { + return "InvalidPublicKeyVersionException" +} + +// Message returns the exception's message. +func (s InvalidPublicKeyVersionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPublicKeyVersionException) OrigErr() error { + return nil +} + +func (s InvalidPublicKeyVersionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPublicKeyVersionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPublicKeyVersionException) RequestID() string { + return s.respMetadata.RequestID +} + +// RegisterUsage must be called in the same AWS Region the ECS task was launched +// in. This prevents a container from hardcoding a Region (e.g. withRegion(“us-east-1”) +// when calling RegisterUsage. +type InvalidRegionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRegionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRegionException) GoString() string { + return s.String() +} + +func newErrorInvalidRegionException(v protocol.ResponseMetadata) error { + return &InvalidRegionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRegionException) Code() string { + return "InvalidRegionException" +} + +// Message returns the exception's message. +func (s InvalidRegionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRegionException) OrigErr() error { + return nil +} + +func (s InvalidRegionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRegionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRegionException) RequestID() string { + return s.respMetadata.RequestID +} + +// Registration token is invalid. +type InvalidTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidTokenException(v protocol.ResponseMetadata) error { + return &InvalidTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTokenException) Code() string { + return "InvalidTokenException" +} + +// Message returns the exception's message. +func (s InvalidTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTokenException) OrigErr() error { + return nil +} + +func (s InvalidTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The usage dimension does not match one of the UsageDimensions associated +// with products. +type InvalidUsageDimensionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidUsageDimensionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidUsageDimensionException) GoString() string { + return s.String() +} + +func newErrorInvalidUsageDimensionException(v protocol.ResponseMetadata) error { + return &InvalidUsageDimensionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidUsageDimensionException) Code() string { + return "InvalidUsageDimensionException" +} + +// Message returns the exception's message. +func (s InvalidUsageDimensionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidUsageDimensionException) OrigErr() error { + return nil +} + +func (s InvalidUsageDimensionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidUsageDimensionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidUsageDimensionException) RequestID() string { + return s.respMetadata.RequestID +} + type MeterUsageInput struct { _ struct{} `type:"structure"` @@ -694,6 +1381,63 @@ func (s *MeterUsageOutput) SetMeteringRecordId(v string) *MeterUsageOutput { return s } +// AWS Marketplace does not support metering usage from the underlying platform. +// Currently, only Amazon ECS is supported. +type PlatformNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PlatformNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PlatformNotSupportedException) GoString() string { + return s.String() +} + +func newErrorPlatformNotSupportedException(v protocol.ResponseMetadata) error { + return &PlatformNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PlatformNotSupportedException) Code() string { + return "PlatformNotSupportedException" +} + +// Message returns the exception's message. +func (s PlatformNotSupportedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PlatformNotSupportedException) OrigErr() error { + return nil +} + +func (s PlatformNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PlatformNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PlatformNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + type RegisterUsageInput struct { _ struct{} `type:"structure"` @@ -875,6 +1619,118 @@ func (s *ResolveCustomerOutput) SetProductCode(v string) *ResolveCustomerOutput return s } +// The calls to the API are throttled. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// The timestamp value passed in the meterUsage() is out of allowed range. +type TimestampOutOfBoundsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TimestampOutOfBoundsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TimestampOutOfBoundsException) GoString() string { + return s.String() +} + +func newErrorTimestampOutOfBoundsException(v protocol.ResponseMetadata) error { + return &TimestampOutOfBoundsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TimestampOutOfBoundsException) Code() string { + return "TimestampOutOfBoundsException" +} + +// Message returns the exception's message. +func (s TimestampOutOfBoundsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TimestampOutOfBoundsException) OrigErr() error { + return nil +} + +func (s TimestampOutOfBoundsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TimestampOutOfBoundsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TimestampOutOfBoundsException) RequestID() string { + return s.respMetadata.RequestID +} + // A UsageRecord indicates a quantity of usage for a given product, customer, // dimension and time. // diff --git a/service/marketplacemetering/errors.go b/service/marketplacemetering/errors.go index 1825f241c41..0b8dc28c250 100644 --- a/service/marketplacemetering/errors.go +++ b/service/marketplacemetering/errors.go @@ -2,6 +2,10 @@ package marketplacemetering +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCustomerNotEntitledException for service response error code @@ -109,3 +113,21 @@ const ( // The timestamp value passed in the meterUsage() is out of allowed range. ErrCodeTimestampOutOfBoundsException = "TimestampOutOfBoundsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CustomerNotEntitledException": newErrorCustomerNotEntitledException, + "DisabledApiException": newErrorDisabledApiException, + "DuplicateRequestException": newErrorDuplicateRequestException, + "ExpiredTokenException": newErrorExpiredTokenException, + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "InvalidCustomerIdentifierException": newErrorInvalidCustomerIdentifierException, + "InvalidEndpointRegionException": newErrorInvalidEndpointRegionException, + "InvalidProductCodeException": newErrorInvalidProductCodeException, + "InvalidPublicKeyVersionException": newErrorInvalidPublicKeyVersionException, + "InvalidRegionException": newErrorInvalidRegionException, + "InvalidTokenException": newErrorInvalidTokenException, + "InvalidUsageDimensionException": newErrorInvalidUsageDimensionException, + "PlatformNotSupportedException": newErrorPlatformNotSupportedException, + "ThrottlingException": newErrorThrottlingException, + "TimestampOutOfBoundsException": newErrorTimestampOutOfBoundsException, +} diff --git a/service/marketplacemetering/service.go b/service/marketplacemetering/service.go index 4decd723042..47aecb2e0b6 100644 --- a/service/marketplacemetering/service.go +++ b/service/marketplacemetering/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mediaconnect/api.go b/service/mediaconnect/api.go index 552798277ef..b34602a9046 100644 --- a/service/mediaconnect/api.go +++ b/service/mediaconnect/api.go @@ -65,38 +65,38 @@ func (c *MediaConnect) AddFlowOutputsRequest(input *AddFlowOutputsInput) (req *r // See the AWS API reference guide for AWS MediaConnect's // API operation AddFlowOutputs for usage and error information. // -// Returned Error Codes: -// * ErrCodeAddFlowOutputs420Exception "AddFlowOutputs420Exception" +// Returned Error Types: +// * AddFlowOutputs420Exception // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -177,33 +177,33 @@ func (c *MediaConnect) CreateFlowRequest(input *CreateFlowInput) (req *request.R // See the AWS API reference guide for AWS MediaConnect's // API operation CreateFlow for usage and error information. // -// Returned Error Codes: -// * ErrCodeCreateFlow420Exception "CreateFlow420Exception" +// Returned Error Types: +// * CreateFlow420Exception // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -283,33 +283,33 @@ func (c *MediaConnect) DeleteFlowRequest(input *DeleteFlowInput) (req *request.R // See the AWS API reference guide for AWS MediaConnect's // API operation DeleteFlow for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -391,33 +391,33 @@ func (c *MediaConnect) DescribeFlowRequest(input *DescribeFlowInput) (req *reque // See the AWS API reference guide for AWS MediaConnect's // API operation DescribeFlow for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -497,38 +497,38 @@ func (c *MediaConnect) GrantFlowEntitlementsRequest(input *GrantFlowEntitlements // See the AWS API reference guide for AWS MediaConnect's // API operation GrantFlowEntitlements for usage and error information. // -// Returned Error Codes: -// * ErrCodeGrantFlowEntitlements420Exception "GrantFlowEntitlements420Exception" +// Returned Error Types: +// * GrantFlowEntitlements420Exception // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -615,23 +615,23 @@ func (c *MediaConnect) ListEntitlementsRequest(input *ListEntitlementsInput) (re // See the AWS API reference guide for AWS MediaConnect's // API operation ListEntitlements for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -770,23 +770,23 @@ func (c *MediaConnect) ListFlowsRequest(input *ListFlowsInput) (req *request.Req // See the AWS API reference guide for AWS MediaConnect's // API operation ListFlows for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -918,18 +918,18 @@ func (c *MediaConnect) ListTagsForResourceRequest(input *ListTagsForResourceInpu // See the AWS API reference guide for AWS MediaConnect's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1013,33 +1013,33 @@ func (c *MediaConnect) RemoveFlowOutputRequest(input *RemoveFlowOutputInput) (re // See the AWS API reference guide for AWS MediaConnect's // API operation RemoveFlowOutput for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1120,33 +1120,33 @@ func (c *MediaConnect) RevokeFlowEntitlementRequest(input *RevokeFlowEntitlement // See the AWS API reference guide for AWS MediaConnect's // API operation RevokeFlowEntitlement for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1226,33 +1226,33 @@ func (c *MediaConnect) StartFlowRequest(input *StartFlowInput) (req *request.Req // See the AWS API reference guide for AWS MediaConnect's // API operation StartFlow for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1332,33 +1332,33 @@ func (c *MediaConnect) StopFlowRequest(input *StopFlowInput) (req *request.Reque // See the AWS API reference guide for AWS MediaConnect's // API operation StopFlow for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1442,18 +1442,18 @@ func (c *MediaConnect) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for AWS MediaConnect's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1534,18 +1534,18 @@ func (c *MediaConnect) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for AWS MediaConnect's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1627,33 +1627,33 @@ func (c *MediaConnect) UpdateFlowEntitlementRequest(input *UpdateFlowEntitlement // See the AWS API reference guide for AWS MediaConnect's // API operation UpdateFlowEntitlement for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1733,33 +1733,33 @@ func (c *MediaConnect) UpdateFlowOutputRequest(input *UpdateFlowOutputInput) (re // See the AWS API reference guide for AWS MediaConnect's // API operation UpdateFlowOutput for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1839,33 +1839,33 @@ func (c *MediaConnect) UpdateFlowSourceRequest(input *UpdateFlowSourceInput) (re // See the AWS API reference guide for AWS MediaConnect's // API operation UpdateFlowSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Exception raised by AWS Elemental MediaConnect. See the error message and // documentation for the operation for more information on the cause of this // exception. @@ -1892,6 +1892,64 @@ func (c *MediaConnect) UpdateFlowSourceWithContext(ctx aws.Context, input *Updat return out, req.Send() } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type AddFlowOutputs420Exception struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AddFlowOutputs420Exception) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AddFlowOutputs420Exception) GoString() string { + return s.String() +} + +func newErrorAddFlowOutputs420Exception(v protocol.ResponseMetadata) error { + return &AddFlowOutputs420Exception{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AddFlowOutputs420Exception) Code() string { + return "AddFlowOutputs420Exception" +} + +// Message returns the exception's message. +func (s AddFlowOutputs420Exception) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AddFlowOutputs420Exception) OrigErr() error { + return nil +} + +func (s AddFlowOutputs420Exception) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AddFlowOutputs420Exception) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AddFlowOutputs420Exception) RequestID() string { + return s.respMetadata.RequestID +} + // Adds outputs to an existing flow. You can create up to 20 outputs per flow. type AddFlowOutputsInput struct { _ struct{} `type:"structure"` @@ -2129,6 +2187,122 @@ func (s *AddOutputRequest) SetStreamId(v string) *AddOutputRequest { return s } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type CreateFlow420Exception struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CreateFlow420Exception) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateFlow420Exception) GoString() string { + return s.String() +} + +func newErrorCreateFlow420Exception(v protocol.ResponseMetadata) error { + return &CreateFlow420Exception{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CreateFlow420Exception) Code() string { + return "CreateFlow420Exception" +} + +// Message returns the exception's message. +func (s CreateFlow420Exception) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CreateFlow420Exception) OrigErr() error { + return nil +} + +func (s CreateFlow420Exception) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CreateFlow420Exception) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CreateFlow420Exception) RequestID() string { + return s.respMetadata.RequestID +} + // Creates a new flow. The request must include one source. The request optionally // can include outputs (up to 20) and one entitlement. type CreateFlowInput struct { @@ -2726,6 +2900,64 @@ func (s *Flow) SetStatus(v string) *Flow { return s } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + // The entitlements that you want to grant on a flow. type GrantEntitlementRequest struct { _ struct{} `type:"structure"` @@ -2812,6 +3044,64 @@ func (s *GrantEntitlementRequest) SetSubscribers(v []*string) *GrantEntitlementR return s } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type GrantFlowEntitlements420Exception struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s GrantFlowEntitlements420Exception) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GrantFlowEntitlements420Exception) GoString() string { + return s.String() +} + +func newErrorGrantFlowEntitlements420Exception(v protocol.ResponseMetadata) error { + return &GrantFlowEntitlements420Exception{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GrantFlowEntitlements420Exception) Code() string { + return "GrantFlowEntitlements420Exception" +} + +// Message returns the exception's message. +func (s GrantFlowEntitlements420Exception) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GrantFlowEntitlements420Exception) OrigErr() error { + return nil +} + +func (s GrantFlowEntitlements420Exception) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GrantFlowEntitlements420Exception) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GrantFlowEntitlements420Exception) RequestID() string { + return s.respMetadata.RequestID +} + // Grants an entitlement on a flow. type GrantFlowEntitlementsInput struct { _ struct{} `type:"structure"` @@ -2909,6 +3199,64 @@ func (s *GrantFlowEntitlementsOutput) SetFlowArn(v string) *GrantFlowEntitlement return s } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListEntitlementsInput struct { _ struct{} `type:"structure"` @@ -3293,6 +3641,64 @@ func (s *Messages) SetErrors(v []*string) *Messages { return s } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The settings for an output. type Output struct { _ struct{} `type:"structure"` @@ -3582,6 +3988,64 @@ func (s *RevokeFlowEntitlementOutput) SetFlowArn(v string) *RevokeFlowEntitlemen return s } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // The settings for the source of the flow. type SetSourceRequest struct { _ struct{} `type:"structure"` @@ -4037,6 +4501,64 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// Exception raised by AWS Elemental MediaConnect. See the error message and +// documentation for the operation for more information on the cause of this +// exception. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // Attributes related to the transport stream that are used in a source or output. type Transport struct { _ struct{} `type:"structure"` diff --git a/service/mediaconnect/errors.go b/service/mediaconnect/errors.go index c6f36c1e53f..a63b993b383 100644 --- a/service/mediaconnect/errors.go +++ b/service/mediaconnect/errors.go @@ -2,6 +2,10 @@ package mediaconnect +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAddFlowOutputs420Exception for service response error code @@ -76,3 +80,15 @@ const ( // exception. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AddFlowOutputs420Exception": newErrorAddFlowOutputs420Exception, + "BadRequestException": newErrorBadRequestException, + "CreateFlow420Exception": newErrorCreateFlow420Exception, + "ForbiddenException": newErrorForbiddenException, + "GrantFlowEntitlements420Exception": newErrorGrantFlowEntitlements420Exception, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/mediaconnect/service.go b/service/mediaconnect/service.go index 9c472941267..849797382e5 100644 --- a/service/mediaconnect/service.go +++ b/service/mediaconnect/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mediaconvert/api.go b/service/mediaconvert/api.go index c56f9e46a89..634841527e2 100644 --- a/service/mediaconvert/api.go +++ b/service/mediaconvert/api.go @@ -68,18 +68,18 @@ func (c *MediaConvert) AssociateCertificateRequest(input *AssociateCertificateIn // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation AssociateCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/AssociateCertificate func (c *MediaConvert) AssociateCertificate(input *AssociateCertificateInput) (*AssociateCertificateOutput, error) { @@ -158,18 +158,18 @@ func (c *MediaConvert) CancelJobRequest(input *CancelJobInput) (req *request.Req // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation CancelJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/CancelJob func (c *MediaConvert) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) { @@ -247,18 +247,18 @@ func (c *MediaConvert) CreateJobRequest(input *CreateJobInput) (req *request.Req // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation CreateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/CreateJob func (c *MediaConvert) CreateJob(input *CreateJobInput) (*CreateJobOutput, error) { @@ -336,18 +336,18 @@ func (c *MediaConvert) CreateJobTemplateRequest(input *CreateJobTemplateInput) ( // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation CreateJobTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/CreateJobTemplate func (c *MediaConvert) CreateJobTemplate(input *CreateJobTemplateInput) (*CreateJobTemplateOutput, error) { @@ -425,18 +425,18 @@ func (c *MediaConvert) CreatePresetRequest(input *CreatePresetInput) (req *reque // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation CreatePreset for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/CreatePreset func (c *MediaConvert) CreatePreset(input *CreatePresetInput) (*CreatePresetOutput, error) { @@ -514,18 +514,18 @@ func (c *MediaConvert) CreateQueueRequest(input *CreateQueueInput) (req *request // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation CreateQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/CreateQueue func (c *MediaConvert) CreateQueue(input *CreateQueueInput) (*CreateQueueOutput, error) { @@ -603,18 +603,18 @@ func (c *MediaConvert) DeleteJobTemplateRequest(input *DeleteJobTemplateInput) ( // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation DeleteJobTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/DeleteJobTemplate func (c *MediaConvert) DeleteJobTemplate(input *DeleteJobTemplateInput) (*DeleteJobTemplateOutput, error) { @@ -692,18 +692,18 @@ func (c *MediaConvert) DeletePresetRequest(input *DeletePresetInput) (req *reque // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation DeletePreset for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/DeletePreset func (c *MediaConvert) DeletePreset(input *DeletePresetInput) (*DeletePresetOutput, error) { @@ -781,18 +781,18 @@ func (c *MediaConvert) DeleteQueueRequest(input *DeleteQueueInput) (req *request // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation DeleteQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/DeleteQueue func (c *MediaConvert) DeleteQueue(input *DeleteQueueInput) (*DeleteQueueOutput, error) { @@ -876,18 +876,18 @@ func (c *MediaConvert) DescribeEndpointsRequest(input *DescribeEndpointsInput) ( // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation DescribeEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/DescribeEndpoints func (c *MediaConvert) DescribeEndpoints(input *DescribeEndpointsInput) (*DescribeEndpointsOutput, error) { @@ -1018,18 +1018,18 @@ func (c *MediaConvert) DisassociateCertificateRequest(input *DisassociateCertifi // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation DisassociateCertificate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/DisassociateCertificate func (c *MediaConvert) DisassociateCertificate(input *DisassociateCertificateInput) (*DisassociateCertificateOutput, error) { @@ -1106,18 +1106,18 @@ func (c *MediaConvert) GetJobRequest(input *GetJobInput) (req *request.Request, // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation GetJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/GetJob func (c *MediaConvert) GetJob(input *GetJobInput) (*GetJobOutput, error) { @@ -1194,18 +1194,18 @@ func (c *MediaConvert) GetJobTemplateRequest(input *GetJobTemplateInput) (req *r // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation GetJobTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/GetJobTemplate func (c *MediaConvert) GetJobTemplate(input *GetJobTemplateInput) (*GetJobTemplateOutput, error) { @@ -1282,18 +1282,18 @@ func (c *MediaConvert) GetPresetRequest(input *GetPresetInput) (req *request.Req // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation GetPreset for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/GetPreset func (c *MediaConvert) GetPreset(input *GetPresetInput) (*GetPresetOutput, error) { @@ -1370,18 +1370,18 @@ func (c *MediaConvert) GetQueueRequest(input *GetQueueInput) (req *request.Reque // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation GetQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/GetQueue func (c *MediaConvert) GetQueue(input *GetQueueInput) (*GetQueueOutput, error) { @@ -1466,18 +1466,18 @@ func (c *MediaConvert) ListJobTemplatesRequest(input *ListJobTemplatesInput) (re // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation ListJobTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/ListJobTemplates func (c *MediaConvert) ListJobTemplates(input *ListJobTemplatesInput) (*ListJobTemplatesOutput, error) { @@ -1615,18 +1615,18 @@ func (c *MediaConvert) ListJobsRequest(input *ListJobsInput) (req *request.Reque // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/ListJobs func (c *MediaConvert) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) { @@ -1763,18 +1763,18 @@ func (c *MediaConvert) ListPresetsRequest(input *ListPresetsInput) (req *request // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation ListPresets for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/ListPresets func (c *MediaConvert) ListPresets(input *ListPresetsInput) (*ListPresetsOutput, error) { @@ -1911,18 +1911,18 @@ func (c *MediaConvert) ListQueuesRequest(input *ListQueuesInput) (req *request.R // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation ListQueues for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/ListQueues func (c *MediaConvert) ListQueues(input *ListQueuesInput) (*ListQueuesOutput, error) { @@ -2051,18 +2051,18 @@ func (c *MediaConvert) ListTagsForResourceRequest(input *ListTagsForResourceInpu // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/ListTagsForResource func (c *MediaConvert) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -2141,18 +2141,18 @@ func (c *MediaConvert) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/TagResource func (c *MediaConvert) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -2231,18 +2231,18 @@ func (c *MediaConvert) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/UntagResource func (c *MediaConvert) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -2319,18 +2319,18 @@ func (c *MediaConvert) UpdateJobTemplateRequest(input *UpdateJobTemplateInput) ( // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation UpdateJobTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/UpdateJobTemplate func (c *MediaConvert) UpdateJobTemplate(input *UpdateJobTemplateInput) (*UpdateJobTemplateOutput, error) { @@ -2407,18 +2407,18 @@ func (c *MediaConvert) UpdatePresetRequest(input *UpdatePresetInput) (req *reque // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation UpdatePreset for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/UpdatePreset func (c *MediaConvert) UpdatePreset(input *UpdatePresetInput) (*UpdatePresetOutput, error) { @@ -2495,18 +2495,18 @@ func (c *MediaConvert) UpdateQueueRequest(input *UpdateQueueInput) (req *request // See the AWS API reference guide for AWS Elemental MediaConvert's // API operation UpdateQueue for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/UpdateQueue func (c *MediaConvert) UpdateQueue(input *UpdateQueueInput) (*UpdateQueueOutput, error) { @@ -3643,6 +3643,61 @@ func (s *AvailBlanking) SetAvailBlankingImage(v string) *AvailBlanking { return s } +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Burn-In Destination Settings. type BurninDestinationSettings struct { _ struct{} `type:"structure"` @@ -4974,6 +5029,61 @@ func (s *ColorCorrector) SetSaturation(v int64) *ColorCorrector { return s } +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Container specific settings. type ContainerSettings struct { _ struct{} `type:"structure"` @@ -7778,6 +7888,61 @@ func (s *FileSourceSettings) SetTimeDelta(v int64) *FileSourceSettings { return s } +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + // Required when you set (Codec) under (VideoDescription)>(CodecSettings) to // the value FRAME_CAPTURE. type FrameCaptureSettings struct { @@ -10993,6 +11158,61 @@ func (s *InsertableImage) SetWidth(v int64) *InsertableImage { return s } +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Each job converts an input file into an output file or files. For more information, // see the User Guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html type Job struct { @@ -14276,6 +14496,61 @@ func (s *NoiseReducerTemporalFilterSettings) SetStrength(v int64) *NoiseReducerT return s } +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An output object describes the settings for a single output file or stream // in an output group. type Output struct { @@ -16231,6 +16506,61 @@ func (s *Timing) SetSubmitTime(v time.Time) *Timing { return s } +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // Settings specific to caption sources that are specified by track number. // Currently, this is only IMSC captions in an IMF package. If your caption // source is IMSC 1.1 in a separate xml file, use FileSourceSettings instead diff --git a/service/mediaconvert/errors.go b/service/mediaconvert/errors.go index 7a607419d1c..bbdf25e801d 100644 --- a/service/mediaconvert/errors.go +++ b/service/mediaconvert/errors.go @@ -2,6 +2,10 @@ package mediaconvert +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -28,3 +32,12 @@ const ( // "TooManyRequestsException". ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/mediaconvert/service.go b/service/mediaconvert/service.go index fd706dc225d..12694bc3803 100644 --- a/service/mediaconvert/service.go +++ b/service/mediaconvert/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/medialive/api.go b/service/medialive/api.go index dce876da921..1da8ed50865 100644 --- a/service/medialive/api.go +++ b/service/medialive/api.go @@ -65,22 +65,22 @@ func (c *MediaLive) BatchUpdateScheduleRequest(input *BatchUpdateScheduleInput) // See the AWS API reference guide for AWS Elemental MediaLive's // API operation BatchUpdateSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/BatchUpdateSchedule func (c *MediaLive) BatchUpdateSchedule(input *BatchUpdateScheduleInput) (*BatchUpdateScheduleOutput, error) { @@ -157,22 +157,22 @@ func (c *MediaLive) CreateChannelRequest(input *CreateChannelInput) (req *reques // See the AWS API reference guide for AWS Elemental MediaLive's // API operation CreateChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/CreateChannel func (c *MediaLive) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) { @@ -249,18 +249,18 @@ func (c *MediaLive) CreateInputRequest(input *CreateInputInput) (req *request.Re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation CreateInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/CreateInput func (c *MediaLive) CreateInput(input *CreateInputInput) (*CreateInputOutput, error) { @@ -337,18 +337,18 @@ func (c *MediaLive) CreateInputSecurityGroupRequest(input *CreateInputSecurityGr // See the AWS API reference guide for AWS Elemental MediaLive's // API operation CreateInputSecurityGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/CreateInputSecurityGroup func (c *MediaLive) CreateInputSecurityGroup(input *CreateInputSecurityGroupInput) (*CreateInputSecurityGroupOutput, error) { @@ -425,22 +425,22 @@ func (c *MediaLive) CreateMultiplexRequest(input *CreateMultiplexInput) (req *re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation CreateMultiplex for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/CreateMultiplex func (c *MediaLive) CreateMultiplex(input *CreateMultiplexInput) (*CreateMultiplexOutput, error) { @@ -517,22 +517,22 @@ func (c *MediaLive) CreateMultiplexProgramRequest(input *CreateMultiplexProgramI // See the AWS API reference guide for AWS Elemental MediaLive's // API operation CreateMultiplexProgram for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/CreateMultiplexProgram func (c *MediaLive) CreateMultiplexProgram(input *CreateMultiplexProgramInput) (*CreateMultiplexProgramOutput, error) { @@ -610,14 +610,14 @@ func (c *MediaLive) CreateTagsRequest(input *CreateTagsInput) (req *request.Requ // See the AWS API reference guide for AWS Elemental MediaLive's // API operation CreateTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/CreateTags func (c *MediaLive) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) { @@ -694,22 +694,22 @@ func (c *MediaLive) DeleteChannelRequest(input *DeleteChannelInput) (req *reques // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteChannel func (c *MediaLive) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) { @@ -787,22 +787,22 @@ func (c *MediaLive) DeleteInputRequest(input *DeleteInputInput) (req *request.Re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteInput func (c *MediaLive) DeleteInput(input *DeleteInputInput) (*DeleteInputOutput, error) { @@ -880,20 +880,20 @@ func (c *MediaLive) DeleteInputSecurityGroupRequest(input *DeleteInputSecurityGr // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteInputSecurityGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteInputSecurityGroup func (c *MediaLive) DeleteInputSecurityGroup(input *DeleteInputSecurityGroupInput) (*DeleteInputSecurityGroupOutput, error) { @@ -970,22 +970,22 @@ func (c *MediaLive) DeleteMultiplexRequest(input *DeleteMultiplexInput) (req *re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteMultiplex for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteMultiplex func (c *MediaLive) DeleteMultiplex(input *DeleteMultiplexInput) (*DeleteMultiplexOutput, error) { @@ -1062,22 +1062,22 @@ func (c *MediaLive) DeleteMultiplexProgramRequest(input *DeleteMultiplexProgramI // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteMultiplexProgram for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteMultiplexProgram func (c *MediaLive) DeleteMultiplexProgram(input *DeleteMultiplexProgramInput) (*DeleteMultiplexProgramOutput, error) { @@ -1154,22 +1154,22 @@ func (c *MediaLive) DeleteReservationRequest(input *DeleteReservationInput) (req // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteReservation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteReservation func (c *MediaLive) DeleteReservation(input *DeleteReservationInput) (*DeleteReservationOutput, error) { @@ -1247,20 +1247,20 @@ func (c *MediaLive) DeleteScheduleRequest(input *DeleteScheduleInput) (req *requ // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteSchedule func (c *MediaLive) DeleteSchedule(input *DeleteScheduleInput) (*DeleteScheduleOutput, error) { @@ -1338,14 +1338,14 @@ func (c *MediaLive) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Requ // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DeleteTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DeleteTags func (c *MediaLive) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) { @@ -1422,20 +1422,20 @@ func (c *MediaLive) DescribeChannelRequest(input *DescribeChannelInput) (req *re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeChannel func (c *MediaLive) DescribeChannel(input *DescribeChannelInput) (*DescribeChannelOutput, error) { @@ -1512,20 +1512,20 @@ func (c *MediaLive) DescribeInputRequest(input *DescribeInputInput) (req *reques // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeInput func (c *MediaLive) DescribeInput(input *DescribeInputInput) (*DescribeInputOutput, error) { @@ -1602,20 +1602,20 @@ func (c *MediaLive) DescribeInputSecurityGroupRequest(input *DescribeInputSecuri // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeInputSecurityGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeInputSecurityGroup func (c *MediaLive) DescribeInputSecurityGroup(input *DescribeInputSecurityGroupInput) (*DescribeInputSecurityGroupOutput, error) { @@ -1692,20 +1692,20 @@ func (c *MediaLive) DescribeMultiplexRequest(input *DescribeMultiplexInput) (req // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeMultiplex for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeMultiplex func (c *MediaLive) DescribeMultiplex(input *DescribeMultiplexInput) (*DescribeMultiplexOutput, error) { @@ -1782,20 +1782,20 @@ func (c *MediaLive) DescribeMultiplexProgramRequest(input *DescribeMultiplexProg // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeMultiplexProgram for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeMultiplexProgram func (c *MediaLive) DescribeMultiplexProgram(input *DescribeMultiplexProgramInput) (*DescribeMultiplexProgramOutput, error) { @@ -1872,20 +1872,20 @@ func (c *MediaLive) DescribeOfferingRequest(input *DescribeOfferingInput) (req * // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeOffering for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeOffering func (c *MediaLive) DescribeOffering(input *DescribeOfferingInput) (*DescribeOfferingOutput, error) { @@ -1962,20 +1962,20 @@ func (c *MediaLive) DescribeReservationRequest(input *DescribeReservationInput) // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeReservation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeReservation func (c *MediaLive) DescribeReservation(input *DescribeReservationInput) (*DescribeReservationOutput, error) { @@ -2058,20 +2058,20 @@ func (c *MediaLive) DescribeScheduleRequest(input *DescribeScheduleInput) (req * // See the AWS API reference guide for AWS Elemental MediaLive's // API operation DescribeSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/DescribeSchedule func (c *MediaLive) DescribeSchedule(input *DescribeScheduleInput) (*DescribeScheduleOutput, error) { @@ -2206,18 +2206,18 @@ func (c *MediaLive) ListChannelsRequest(input *ListChannelsInput) (req *request. // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListChannels for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListChannels func (c *MediaLive) ListChannels(input *ListChannelsInput) (*ListChannelsOutput, error) { @@ -2352,18 +2352,18 @@ func (c *MediaLive) ListInputSecurityGroupsRequest(input *ListInputSecurityGroup // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListInputSecurityGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListInputSecurityGroups func (c *MediaLive) ListInputSecurityGroups(input *ListInputSecurityGroupsInput) (*ListInputSecurityGroupsOutput, error) { @@ -2498,18 +2498,18 @@ func (c *MediaLive) ListInputsRequest(input *ListInputsInput) (req *request.Requ // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListInputs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListInputs func (c *MediaLive) ListInputs(input *ListInputsInput) (*ListInputsOutput, error) { @@ -2644,20 +2644,20 @@ func (c *MediaLive) ListMultiplexProgramsRequest(input *ListMultiplexProgramsInp // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListMultiplexPrograms for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListMultiplexPrograms func (c *MediaLive) ListMultiplexPrograms(input *ListMultiplexProgramsInput) (*ListMultiplexProgramsOutput, error) { @@ -2792,18 +2792,18 @@ func (c *MediaLive) ListMultiplexesRequest(input *ListMultiplexesInput) (req *re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListMultiplexes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListMultiplexes func (c *MediaLive) ListMultiplexes(input *ListMultiplexesInput) (*ListMultiplexesOutput, error) { @@ -2938,18 +2938,18 @@ func (c *MediaLive) ListOfferingsRequest(input *ListOfferingsInput) (req *reques // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListOfferings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListOfferings func (c *MediaLive) ListOfferings(input *ListOfferingsInput) (*ListOfferingsOutput, error) { @@ -3084,18 +3084,18 @@ func (c *MediaLive) ListReservationsRequest(input *ListReservationsInput) (req * // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListReservations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListReservations func (c *MediaLive) ListReservations(input *ListReservationsInput) (*ListReservationsOutput, error) { @@ -3224,14 +3224,14 @@ func (c *MediaLive) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS Elemental MediaLive's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/ListTagsForResource func (c *MediaLive) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -3308,22 +3308,22 @@ func (c *MediaLive) PurchaseOfferingRequest(input *PurchaseOfferingInput) (req * // See the AWS API reference guide for AWS Elemental MediaLive's // API operation PurchaseOffering for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/PurchaseOffering func (c *MediaLive) PurchaseOffering(input *PurchaseOfferingInput) (*PurchaseOfferingOutput, error) { @@ -3400,22 +3400,22 @@ func (c *MediaLive) StartChannelRequest(input *StartChannelInput) (req *request. // See the AWS API reference guide for AWS Elemental MediaLive's // API operation StartChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/StartChannel func (c *MediaLive) StartChannel(input *StartChannelInput) (*StartChannelOutput, error) { @@ -3493,22 +3493,22 @@ func (c *MediaLive) StartMultiplexRequest(input *StartMultiplexInput) (req *requ // See the AWS API reference guide for AWS Elemental MediaLive's // API operation StartMultiplex for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/StartMultiplex func (c *MediaLive) StartMultiplex(input *StartMultiplexInput) (*StartMultiplexOutput, error) { @@ -3585,22 +3585,22 @@ func (c *MediaLive) StopChannelRequest(input *StopChannelInput) (req *request.Re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation StopChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/StopChannel func (c *MediaLive) StopChannel(input *StopChannelInput) (*StopChannelOutput, error) { @@ -3678,22 +3678,22 @@ func (c *MediaLive) StopMultiplexRequest(input *StopMultiplexInput) (req *reques // See the AWS API reference guide for AWS Elemental MediaLive's // API operation StopMultiplex for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/StopMultiplex func (c *MediaLive) StopMultiplex(input *StopMultiplexInput) (*StopMultiplexOutput, error) { @@ -3770,20 +3770,20 @@ func (c *MediaLive) UpdateChannelRequest(input *UpdateChannelInput) (req *reques // See the AWS API reference guide for AWS Elemental MediaLive's // API operation UpdateChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UpdateChannel func (c *MediaLive) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) { @@ -3860,24 +3860,24 @@ func (c *MediaLive) UpdateChannelClassRequest(input *UpdateChannelClassInput) (r // See the AWS API reference guide for AWS Elemental MediaLive's // API operation UpdateChannelClass for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UpdateChannelClass func (c *MediaLive) UpdateChannelClass(input *UpdateChannelClassInput) (*UpdateChannelClassOutput, error) { @@ -3954,20 +3954,20 @@ func (c *MediaLive) UpdateInputRequest(input *UpdateInputInput) (req *request.Re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation UpdateInput for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UpdateInput func (c *MediaLive) UpdateInput(input *UpdateInputInput) (*UpdateInputOutput, error) { @@ -4044,20 +4044,20 @@ func (c *MediaLive) UpdateInputSecurityGroupRequest(input *UpdateInputSecurityGr // See the AWS API reference guide for AWS Elemental MediaLive's // API operation UpdateInputSecurityGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UpdateInputSecurityGroup func (c *MediaLive) UpdateInputSecurityGroup(input *UpdateInputSecurityGroupInput) (*UpdateInputSecurityGroupOutput, error) { @@ -4134,22 +4134,22 @@ func (c *MediaLive) UpdateMultiplexRequest(input *UpdateMultiplexInput) (req *re // See the AWS API reference guide for AWS Elemental MediaLive's // API operation UpdateMultiplex for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UpdateMultiplex func (c *MediaLive) UpdateMultiplex(input *UpdateMultiplexInput) (*UpdateMultiplexOutput, error) { @@ -4226,22 +4226,22 @@ func (c *MediaLive) UpdateMultiplexProgramRequest(input *UpdateMultiplexProgramI // See the AWS API reference guide for AWS Elemental MediaLive's // API operation UpdateMultiplexProgram for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UpdateMultiplexProgram func (c *MediaLive) UpdateMultiplexProgram(input *UpdateMultiplexProgramInput) (*UpdateMultiplexProgramOutput, error) { @@ -4318,22 +4318,22 @@ func (c *MediaLive) UpdateReservationRequest(input *UpdateReservationInput) (req // See the AWS API reference guide for AWS Elemental MediaLive's // API operation UpdateReservation for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeBadGatewayException "BadGatewayException" +// * BadGatewayException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeGatewayTimeoutException "GatewayTimeoutException" +// * GatewayTimeoutException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/UpdateReservation func (c *MediaLive) UpdateReservation(input *UpdateReservationInput) (*UpdateReservationOutput, error) { @@ -5514,6 +5514,116 @@ func (s *AvailSettings) SetScte35TimeSignalApos(v *Scte35TimeSignalApos) *AvailS return s } +type BadGatewayException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadGatewayException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadGatewayException) GoString() string { + return s.String() +} + +func newErrorBadGatewayException(v protocol.ResponseMetadata) error { + return &BadGatewayException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadGatewayException) Code() string { + return "BadGatewayException" +} + +// Message returns the exception's message. +func (s BadGatewayException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadGatewayException) OrigErr() error { + return nil +} + +func (s BadGatewayException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadGatewayException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadGatewayException) RequestID() string { + return s.respMetadata.RequestID +} + +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // A list of schedule actions to create (in a request) or that have been created // (in a response). type BatchScheduleActionCreateRequest struct { @@ -6873,6 +6983,61 @@ func (s ColorSpacePassthroughSettings) GoString() string { return s.String() } +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateChannelInput struct { _ struct{} `type:"structure"` @@ -10611,6 +10776,61 @@ func (s *FollowModeScheduleActionStartSettings) SetReferenceActionName(v string) return s } +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + // Frame Capture Group Settings type FrameCaptureGroupSettings struct { _ struct{} `type:"structure"` @@ -10733,6 +10953,61 @@ func (s *FrameCaptureSettings) SetCaptureIntervalUnits(v string) *FrameCaptureSe return s } +type GatewayTimeoutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s GatewayTimeoutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GatewayTimeoutException) GoString() string { + return s.String() +} + +func newErrorGatewayTimeoutException(v protocol.ResponseMetadata) error { + return &GatewayTimeoutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GatewayTimeoutException) Code() string { + return "GatewayTimeoutException" +} + +// Message returns the exception's message. +func (s GatewayTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GatewayTimeoutException) OrigErr() error { + return nil +} + +func (s GatewayTimeoutException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GatewayTimeoutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GatewayTimeoutException) RequestID() string { + return s.respMetadata.RequestID +} + // Global Configuration type GlobalConfiguration struct { _ struct{} `type:"structure"` @@ -13947,6 +14222,61 @@ func (s *InputWhitelistRuleCidr) SetCidr(v string) *InputWhitelistRuleCidr { return s } +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Key Provider Settings type KeyProviderSettings struct { _ struct{} `type:"structure"` @@ -16850,6 +17180,61 @@ func (s *NielsenConfiguration) SetNielsenPcmToId3Tagging(v string) *NielsenConfi return s } +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Reserved resources available for purchase type Offering struct { _ struct{} `type:"structure"` @@ -20419,6 +20804,61 @@ func (s *TimecodeConfig) SetSyncThreshold(v int64) *TimecodeConfig { return s } +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // Ttml Destination Settings type TtmlDestinationSettings struct { _ struct{} `type:"structure"` @@ -20617,6 +21057,63 @@ func (s *UdpOutputSettings) SetFecOutputSettings(v *FecOutputSettings) *UdpOutpu return s } +type UnprocessableEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"` +} + +// String returns the string representation +func (s UnprocessableEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnprocessableEntityException) GoString() string { + return s.String() +} + +func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { + return &UnprocessableEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnprocessableEntityException) Code() string { + return "UnprocessableEntityException" +} + +// Message returns the exception's message. +func (s UnprocessableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnprocessableEntityException) OrigErr() error { + return nil +} + +func (s UnprocessableEntityException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnprocessableEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnprocessableEntityException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateChannelClassInput struct { _ struct{} `type:"structure"` diff --git a/service/medialive/errors.go b/service/medialive/errors.go index 247fb52c70c..ecd77c4fac2 100644 --- a/service/medialive/errors.go +++ b/service/medialive/errors.go @@ -2,6 +2,10 @@ package medialive +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadGatewayException for service response error code @@ -40,3 +44,15 @@ const ( // "UnprocessableEntityException". ErrCodeUnprocessableEntityException = "UnprocessableEntityException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadGatewayException": newErrorBadGatewayException, + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "GatewayTimeoutException": newErrorGatewayTimeoutException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnprocessableEntityException": newErrorUnprocessableEntityException, +} diff --git a/service/medialive/service.go b/service/medialive/service.go index 90b8c9106e8..56eec0de58a 100644 --- a/service/medialive/service.go +++ b/service/medialive/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mediapackage/api.go b/service/mediapackage/api.go index f7f1ea4f4e2..2f468581307 100644 --- a/service/mediapackage/api.go +++ b/service/mediapackage/api.go @@ -65,18 +65,18 @@ func (c *MediaPackage) CreateChannelRequest(input *CreateChannelInput) (req *req // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation CreateChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateChannel func (c *MediaPackage) CreateChannel(input *CreateChannelInput) (*CreateChannelOutput, error) { @@ -153,18 +153,18 @@ func (c *MediaPackage) CreateHarvestJobRequest(input *CreateHarvestJobInput) (re // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation CreateHarvestJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateHarvestJob func (c *MediaPackage) CreateHarvestJob(input *CreateHarvestJobInput) (*CreateHarvestJobOutput, error) { @@ -241,18 +241,18 @@ func (c *MediaPackage) CreateOriginEndpointRequest(input *CreateOriginEndpointIn // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation CreateOriginEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/CreateOriginEndpoint func (c *MediaPackage) CreateOriginEndpoint(input *CreateOriginEndpointInput) (*CreateOriginEndpointOutput, error) { @@ -330,18 +330,18 @@ func (c *MediaPackage) DeleteChannelRequest(input *DeleteChannelInput) (req *req // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation DeleteChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DeleteChannel func (c *MediaPackage) DeleteChannel(input *DeleteChannelInput) (*DeleteChannelOutput, error) { @@ -419,18 +419,18 @@ func (c *MediaPackage) DeleteOriginEndpointRequest(input *DeleteOriginEndpointIn // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation DeleteOriginEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DeleteOriginEndpoint func (c *MediaPackage) DeleteOriginEndpoint(input *DeleteOriginEndpointInput) (*DeleteOriginEndpointOutput, error) { @@ -507,18 +507,18 @@ func (c *MediaPackage) DescribeChannelRequest(input *DescribeChannelInput) (req // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation DescribeChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeChannel func (c *MediaPackage) DescribeChannel(input *DescribeChannelInput) (*DescribeChannelOutput, error) { @@ -595,18 +595,18 @@ func (c *MediaPackage) DescribeHarvestJobRequest(input *DescribeHarvestJobInput) // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation DescribeHarvestJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeHarvestJob func (c *MediaPackage) DescribeHarvestJob(input *DescribeHarvestJobInput) (*DescribeHarvestJobOutput, error) { @@ -683,18 +683,18 @@ func (c *MediaPackage) DescribeOriginEndpointRequest(input *DescribeOriginEndpoi // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation DescribeOriginEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/DescribeOriginEndpoint func (c *MediaPackage) DescribeOriginEndpoint(input *DescribeOriginEndpointInput) (*DescribeOriginEndpointOutput, error) { @@ -777,18 +777,18 @@ func (c *MediaPackage) ListChannelsRequest(input *ListChannelsInput) (req *reque // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation ListChannels for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListChannels func (c *MediaPackage) ListChannels(input *ListChannelsInput) (*ListChannelsOutput, error) { @@ -923,18 +923,18 @@ func (c *MediaPackage) ListHarvestJobsRequest(input *ListHarvestJobsInput) (req // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation ListHarvestJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListHarvestJobs func (c *MediaPackage) ListHarvestJobs(input *ListHarvestJobsInput) (*ListHarvestJobsOutput, error) { @@ -1069,18 +1069,18 @@ func (c *MediaPackage) ListOriginEndpointsRequest(input *ListOriginEndpointsInpu // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation ListOriginEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/ListOriginEndpoints func (c *MediaPackage) ListOriginEndpoints(input *ListOriginEndpointsInput) (*ListOriginEndpointsOutput, error) { @@ -1287,18 +1287,18 @@ func (c *MediaPackage) RotateChannelCredentialsRequest(input *RotateChannelCrede // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation RotateChannelCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/RotateChannelCredentials // @@ -1380,18 +1380,18 @@ func (c *MediaPackage) RotateIngestEndpointCredentialsRequest(input *RotateInges // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation RotateIngestEndpointCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/RotateIngestEndpointCredentials func (c *MediaPackage) RotateIngestEndpointCredentials(input *RotateIngestEndpointCredentialsInput) (*RotateIngestEndpointCredentialsOutput, error) { @@ -1614,18 +1614,18 @@ func (c *MediaPackage) UpdateChannelRequest(input *UpdateChannelInput) (req *req // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation UpdateChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateChannel func (c *MediaPackage) UpdateChannel(input *UpdateChannelInput) (*UpdateChannelOutput, error) { @@ -1702,18 +1702,18 @@ func (c *MediaPackage) UpdateOriginEndpointRequest(input *UpdateOriginEndpointIn // See the AWS API reference guide for AWS Elemental MediaPackage's // API operation UpdateOriginEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/UpdateOriginEndpoint func (c *MediaPackage) UpdateOriginEndpoint(input *UpdateOriginEndpointInput) (*UpdateOriginEndpointOutput, error) { @@ -3411,6 +3411,61 @@ func (s *DescribeOriginEndpointOutput) SetWhitelist(v []*string) *DescribeOrigin return s } +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + // A HarvestJob resource configuration type HarvestJob struct { _ struct{} `type:"structure"` @@ -4064,6 +4119,61 @@ func (s *IngestEndpoint) SetUsername(v string) *IngestEndpoint { return s } +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListChannelsInput struct { _ struct{} `type:"structure"` @@ -4479,6 +4589,61 @@ func (s *MssPackage) SetStreamSelection(v *StreamSelection) *MssPackage { return s } +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An OriginEndpoint resource configuration. type OriginEndpoint struct { _ struct{} `type:"structure"` @@ -4920,6 +5085,61 @@ func (s *S3Destination) SetRoleArn(v string) *S3Destination { return s } +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // A configuration for accessing an external Secure Packager and Encoder Key // Exchange (SPEKE) service that will provide encryption keys. type SpekeKeyProvider struct { @@ -5121,6 +5341,116 @@ func (s TagResourceOutput) GoString() string { return s.String() } +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +type UnprocessableEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnprocessableEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnprocessableEntityException) GoString() string { + return s.String() +} + +func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { + return &UnprocessableEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnprocessableEntityException) Code() string { + return "UnprocessableEntityException" +} + +// Message returns the exception's message. +func (s UnprocessableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnprocessableEntityException) OrigErr() error { + return nil +} + +func (s UnprocessableEntityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnprocessableEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnprocessableEntityException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/mediapackage/errors.go b/service/mediapackage/errors.go index c6ba3649e5c..ad731558cba 100644 --- a/service/mediapackage/errors.go +++ b/service/mediapackage/errors.go @@ -2,6 +2,10 @@ package mediapackage +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeForbiddenException for service response error code @@ -28,3 +32,12 @@ const ( // "UnprocessableEntityException". ErrCodeUnprocessableEntityException = "UnprocessableEntityException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnprocessableEntityException": newErrorUnprocessableEntityException, +} diff --git a/service/mediapackage/service.go b/service/mediapackage/service.go index 5a8fa1b535f..ea0ee0a921a 100644 --- a/service/mediapackage/service.go +++ b/service/mediapackage/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mediapackagevod/api.go b/service/mediapackagevod/api.go index dc5aa5d0c9f..83270828c56 100644 --- a/service/mediapackagevod/api.go +++ b/service/mediapackagevod/api.go @@ -3,6 +3,8 @@ package mediapackagevod import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -63,18 +65,18 @@ func (c *MediaPackageVod) CreateAssetRequest(input *CreateAssetInput) (req *requ // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation CreateAsset for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreateAsset func (c *MediaPackageVod) CreateAsset(input *CreateAssetInput) (*CreateAssetOutput, error) { @@ -151,18 +153,18 @@ func (c *MediaPackageVod) CreatePackagingConfigurationRequest(input *CreatePacka // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation CreatePackagingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingConfiguration func (c *MediaPackageVod) CreatePackagingConfiguration(input *CreatePackagingConfigurationInput) (*CreatePackagingConfigurationOutput, error) { @@ -239,18 +241,18 @@ func (c *MediaPackageVod) CreatePackagingGroupRequest(input *CreatePackagingGrou // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation CreatePackagingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/CreatePackagingGroup func (c *MediaPackageVod) CreatePackagingGroup(input *CreatePackagingGroupInput) (*CreatePackagingGroupOutput, error) { @@ -328,18 +330,18 @@ func (c *MediaPackageVod) DeleteAssetRequest(input *DeleteAssetInput) (req *requ // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation DeleteAsset for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeleteAsset func (c *MediaPackageVod) DeleteAsset(input *DeleteAssetInput) (*DeleteAssetOutput, error) { @@ -417,18 +419,18 @@ func (c *MediaPackageVod) DeletePackagingConfigurationRequest(input *DeletePacka // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation DeletePackagingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingConfiguration func (c *MediaPackageVod) DeletePackagingConfiguration(input *DeletePackagingConfigurationInput) (*DeletePackagingConfigurationOutput, error) { @@ -506,18 +508,18 @@ func (c *MediaPackageVod) DeletePackagingGroupRequest(input *DeletePackagingGrou // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation DeletePackagingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DeletePackagingGroup func (c *MediaPackageVod) DeletePackagingGroup(input *DeletePackagingGroupInput) (*DeletePackagingGroupOutput, error) { @@ -594,18 +596,18 @@ func (c *MediaPackageVod) DescribeAssetRequest(input *DescribeAssetInput) (req * // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation DescribeAsset for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribeAsset func (c *MediaPackageVod) DescribeAsset(input *DescribeAssetInput) (*DescribeAssetOutput, error) { @@ -682,18 +684,18 @@ func (c *MediaPackageVod) DescribePackagingConfigurationRequest(input *DescribeP // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation DescribePackagingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingConfiguration func (c *MediaPackageVod) DescribePackagingConfiguration(input *DescribePackagingConfigurationInput) (*DescribePackagingConfigurationOutput, error) { @@ -770,18 +772,18 @@ func (c *MediaPackageVod) DescribePackagingGroupRequest(input *DescribePackaging // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation DescribePackagingGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/DescribePackagingGroup func (c *MediaPackageVod) DescribePackagingGroup(input *DescribePackagingGroupInput) (*DescribePackagingGroupOutput, error) { @@ -864,18 +866,18 @@ func (c *MediaPackageVod) ListAssetsRequest(input *ListAssetsInput) (req *reques // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation ListAssets for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListAssets func (c *MediaPackageVod) ListAssets(input *ListAssetsInput) (*ListAssetsOutput, error) { @@ -1010,18 +1012,18 @@ func (c *MediaPackageVod) ListPackagingConfigurationsRequest(input *ListPackagin // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation ListPackagingConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingConfigurations func (c *MediaPackageVod) ListPackagingConfigurations(input *ListPackagingConfigurationsInput) (*ListPackagingConfigurationsOutput, error) { @@ -1156,18 +1158,18 @@ func (c *MediaPackageVod) ListPackagingGroupsRequest(input *ListPackagingGroupsI // See the AWS API reference guide for AWS Elemental MediaPackage VOD's // API operation ListPackagingGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnprocessableEntityException "UnprocessableEntityException" +// Returned Error Types: +// * UnprocessableEntityException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediapackage-vod-2018-11-07/ListPackagingGroups func (c *MediaPackageVod) ListPackagingGroups(input *ListPackagingGroupsInput) (*ListPackagingGroupsOutput, error) { @@ -2499,6 +2501,61 @@ func (s *EgressEndpoint) SetUrl(v string) *EgressEndpoint { return s } +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + // An HTTP Live Streaming (HLS) encryption configuration. type HlsEncryption struct { _ struct{} `type:"structure"` @@ -2715,6 +2772,61 @@ func (s *HlsPackage) SetUseAudioRenditionGroup(v bool) *HlsPackage { return s } +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAssetsInput struct { _ struct{} `type:"structure"` @@ -3090,6 +3202,61 @@ func (s *MssPackage) SetSegmentDurationSeconds(v int64) *MssPackage { return s } +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A MediaPackage VOD PackagingConfiguration resource. type PackagingConfiguration struct { _ struct{} `type:"structure"` @@ -3210,6 +3377,61 @@ func (s *PackagingGroup) SetId(v string) *PackagingGroup { return s } +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // A configuration for accessing an external Secure Packager and Encoder Key // Exchange (SPEKE) service that will provide encryption keys. type SpekeKeyProvider struct { @@ -3321,6 +3543,116 @@ func (s *StreamSelection) SetStreamOrder(v string) *StreamSelection { return s } +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +type UnprocessableEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnprocessableEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnprocessableEntityException) GoString() string { + return s.String() +} + +func newErrorUnprocessableEntityException(v protocol.ResponseMetadata) error { + return &UnprocessableEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnprocessableEntityException) Code() string { + return "UnprocessableEntityException" +} + +// Message returns the exception's message. +func (s UnprocessableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnprocessableEntityException) OrigErr() error { + return nil +} + +func (s UnprocessableEntityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnprocessableEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnprocessableEntityException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // AdMarkersNone is a AdMarkers enum value AdMarkersNone = "NONE" diff --git a/service/mediapackagevod/errors.go b/service/mediapackagevod/errors.go index 13e76e272ea..a1c57572108 100644 --- a/service/mediapackagevod/errors.go +++ b/service/mediapackagevod/errors.go @@ -2,6 +2,10 @@ package mediapackagevod +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeForbiddenException for service response error code @@ -28,3 +32,12 @@ const ( // "UnprocessableEntityException". ErrCodeUnprocessableEntityException = "UnprocessableEntityException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnprocessableEntityException": newErrorUnprocessableEntityException, +} diff --git a/service/mediapackagevod/service.go b/service/mediapackagevod/service.go index 60063e8850c..5a26abb4de6 100644 --- a/service/mediapackagevod/service.go +++ b/service/mediapackagevod/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mediastore/api.go b/service/mediastore/api.go index 1434cf99bbf..daa0851e7dc 100644 --- a/service/mediastore/api.go +++ b/service/mediastore/api.go @@ -67,15 +67,15 @@ func (c *MediaStore) CreateContainerRequest(input *CreateContainerInput) (req *r // See the AWS API reference guide for AWS Elemental MediaStore's // API operation CreateContainer for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A service limit has been exceeded. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/CreateContainer @@ -156,15 +156,15 @@ func (c *MediaStore) DeleteContainerRequest(input *DeleteContainerInput) (req *r // See the AWS API reference guide for AWS Elemental MediaStore's // API operation DeleteContainer for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainer @@ -243,18 +243,18 @@ func (c *MediaStore) DeleteContainerPolicyRequest(input *DeleteContainerPolicyIn // See the AWS API reference guide for AWS Elemental MediaStore's // API operation DeleteContainerPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // The policy that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteContainerPolicy @@ -338,18 +338,18 @@ func (c *MediaStore) DeleteCorsPolicyRequest(input *DeleteCorsPolicyInput) (req // See the AWS API reference guide for AWS Elemental MediaStore's // API operation DeleteCorsPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeCorsPolicyNotFoundException "CorsPolicyNotFoundException" +// * CorsPolicyNotFoundException // The CORS policy that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteCorsPolicy @@ -429,18 +429,18 @@ func (c *MediaStore) DeleteLifecyclePolicyRequest(input *DeleteLifecyclePolicyIn // See the AWS API reference guide for AWS Elemental MediaStore's // API operation DeleteLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // The policy that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DeleteLifecyclePolicy @@ -523,11 +523,11 @@ func (c *MediaStore) DescribeContainerRequest(input *DescribeContainerInput) (re // See the AWS API reference guide for AWS Elemental MediaStore's // API operation DescribeContainer for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/DescribeContainer @@ -607,18 +607,18 @@ func (c *MediaStore) GetContainerPolicyRequest(input *GetContainerPolicyInput) ( // See the AWS API reference guide for AWS Elemental MediaStore's // API operation GetContainerPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // The policy that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetContainerPolicy @@ -701,18 +701,18 @@ func (c *MediaStore) GetCorsPolicyRequest(input *GetCorsPolicyInput) (req *reque // See the AWS API reference guide for AWS Elemental MediaStore's // API operation GetCorsPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeCorsPolicyNotFoundException "CorsPolicyNotFoundException" +// * CorsPolicyNotFoundException // The CORS policy that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetCorsPolicy @@ -790,18 +790,18 @@ func (c *MediaStore) GetLifecyclePolicyRequest(input *GetLifecyclePolicyInput) ( // See the AWS API reference guide for AWS Elemental MediaStore's // API operation GetLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // The policy that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicy @@ -894,8 +894,8 @@ func (c *MediaStore) ListContainersRequest(input *ListContainersInput) (req *req // See the AWS API reference guide for AWS Elemental MediaStore's // API operation ListContainers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListContainers @@ -1025,15 +1025,15 @@ func (c *MediaStore) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS Elemental MediaStore's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/ListTagsForResource @@ -1119,15 +1119,15 @@ func (c *MediaStore) PutContainerPolicyRequest(input *PutContainerPolicyInput) ( // See the AWS API reference guide for AWS Elemental MediaStore's // API operation PutContainerPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeContainerInUseException "ContainerInUseException" +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutContainerPolicy @@ -1219,15 +1219,15 @@ func (c *MediaStore) PutCorsPolicyRequest(input *PutCorsPolicyInput) (req *reque // See the AWS API reference guide for AWS Elemental MediaStore's // API operation PutCorsPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeContainerInUseException "ContainerInUseException" +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutCorsPolicy @@ -1311,15 +1311,15 @@ func (c *MediaStore) PutLifecyclePolicyRequest(input *PutLifecyclePolicyInput) ( // See the AWS API reference guide for AWS Elemental MediaStore's // API operation PutLifecyclePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/PutLifecyclePolicy @@ -1400,15 +1400,15 @@ func (c *MediaStore) StartAccessLoggingRequest(input *StartAccessLoggingInput) ( // See the AWS API reference guide for AWS Elemental MediaStore's // API operation StartAccessLogging for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StartAccessLogging @@ -1489,15 +1489,15 @@ func (c *MediaStore) StopAccessLoggingRequest(input *StopAccessLoggingInput) (re // See the AWS API reference guide for AWS Elemental MediaStore's // API operation StopAccessLogging for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/StopAccessLogging @@ -1581,15 +1581,15 @@ func (c *MediaStore) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for AWS Elemental MediaStore's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/TagResource @@ -1669,15 +1669,15 @@ func (c *MediaStore) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for AWS Elemental MediaStore's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerInUseException "ContainerInUseException" +// Returned Error Types: +// * ContainerInUseException // The container that you specified in the request already exists or is being // updated. // -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// * ContainerNotFoundException // The container that you specified in the request does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/UntagResource @@ -1787,6 +1787,175 @@ func (s *Container) SetStatus(v string) *Container { return s } +// The container that you specified in the request already exists or is being +// updated. +type ContainerInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ContainerInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerInUseException) GoString() string { + return s.String() +} + +func newErrorContainerInUseException(v protocol.ResponseMetadata) error { + return &ContainerInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ContainerInUseException) Code() string { + return "ContainerInUseException" +} + +// Message returns the exception's message. +func (s ContainerInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ContainerInUseException) OrigErr() error { + return nil +} + +func (s ContainerInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ContainerInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ContainerInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The container that you specified in the request does not exist. +type ContainerNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ContainerNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerNotFoundException) GoString() string { + return s.String() +} + +func newErrorContainerNotFoundException(v protocol.ResponseMetadata) error { + return &ContainerNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ContainerNotFoundException) Code() string { + return "ContainerNotFoundException" +} + +// Message returns the exception's message. +func (s ContainerNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ContainerNotFoundException) OrigErr() error { + return nil +} + +func (s ContainerNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ContainerNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ContainerNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The CORS policy that you specified in the request does not exist. +type CorsPolicyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s CorsPolicyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CorsPolicyNotFoundException) GoString() string { + return s.String() +} + +func newErrorCorsPolicyNotFoundException(v protocol.ResponseMetadata) error { + return &CorsPolicyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CorsPolicyNotFoundException) Code() string { + return "CorsPolicyNotFoundException" +} + +// Message returns the exception's message. +func (s CorsPolicyNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CorsPolicyNotFoundException) OrigErr() error { + return nil +} + +func (s CorsPolicyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CorsPolicyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CorsPolicyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A rule for a CORS policy. You can add up to 100 rules to a CORS policy. If // more than one rule applies, the service uses the first applicable rule listed. type CorsRule struct { @@ -2479,6 +2648,118 @@ func (s *GetLifecyclePolicyOutput) SetLifecyclePolicy(v string) *GetLifecyclePol return s } +// The service is temporarily unavailable. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// A service limit has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListContainersInput struct { _ struct{} `type:"structure"` @@ -2631,6 +2912,62 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput return s } +// The policy that you specified in the request does not exist. +type PolicyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s PolicyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyNotFoundException) GoString() string { + return s.String() +} + +func newErrorPolicyNotFoundException(v protocol.ResponseMetadata) error { + return &PolicyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyNotFoundException) Code() string { + return "PolicyNotFoundException" +} + +// Message returns the exception's message. +func (s PolicyNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyNotFoundException) OrigErr() error { + return nil +} + +func (s PolicyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type PutContainerPolicyInput struct { _ struct{} `type:"structure"` diff --git a/service/mediastore/errors.go b/service/mediastore/errors.go index f64caedd3b6..ca3b3a099dd 100644 --- a/service/mediastore/errors.go +++ b/service/mediastore/errors.go @@ -2,6 +2,10 @@ package mediastore +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeContainerInUseException for service response error code @@ -41,3 +45,12 @@ const ( // The policy that you specified in the request does not exist. ErrCodePolicyNotFoundException = "PolicyNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ContainerInUseException": newErrorContainerInUseException, + "ContainerNotFoundException": newErrorContainerNotFoundException, + "CorsPolicyNotFoundException": newErrorCorsPolicyNotFoundException, + "InternalServerError": newErrorInternalServerError, + "LimitExceededException": newErrorLimitExceededException, + "PolicyNotFoundException": newErrorPolicyNotFoundException, +} diff --git a/service/mediastore/service.go b/service/mediastore/service.go index 38355b9ca31..98d1be28cba 100644 --- a/service/mediastore/service.go +++ b/service/mediastore/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mediastoredata/api.go b/service/mediastoredata/api.go index 773f341b62e..6fd56c6dc09 100644 --- a/service/mediastoredata/api.go +++ b/service/mediastoredata/api.go @@ -3,6 +3,7 @@ package mediastoredata import ( + "fmt" "io" "time" @@ -68,14 +69,14 @@ func (c *MediaStoreData) DeleteObjectRequest(input *DeleteObjectInput) (req *req // See the AWS API reference guide for AWS Elemental MediaStore Data Plane's // API operation DeleteObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The specified container was not found for the specified account. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // Could not perform an operation on an object that does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/DeleteObject @@ -153,14 +154,14 @@ func (c *MediaStoreData) DescribeObjectRequest(input *DescribeObjectInput) (req // See the AWS API reference guide for AWS Elemental MediaStore Data Plane's // API operation DescribeObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The specified container was not found for the specified account. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // Could not perform an operation on an object that does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/DescribeObject @@ -240,17 +241,17 @@ func (c *MediaStoreData) GetObjectRequest(input *GetObjectInput) (req *request.R // See the AWS API reference guide for AWS Elemental MediaStore Data Plane's // API operation GetObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The specified container was not found for the specified account. // -// * ErrCodeObjectNotFoundException "ObjectNotFoundException" +// * ObjectNotFoundException // Could not perform an operation on an object that does not exist. // -// * ErrCodeRequestedRangeNotSatisfiableException "RequestedRangeNotSatisfiableException" +// * RequestedRangeNotSatisfiableException // The requested content range is not valid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/GetObject @@ -335,11 +336,11 @@ func (c *MediaStoreData) ListItemsRequest(input *ListItemsInput) (req *request.R // See the AWS API reference guide for AWS Elemental MediaStore Data Plane's // API operation ListItems for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The specified container was not found for the specified account. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/ListItems @@ -473,11 +474,11 @@ func (c *MediaStoreData) PutObjectRequest(input *PutObjectInput) (req *request.R // See the AWS API reference guide for AWS Elemental MediaStore Data Plane's // API operation PutObject for usage and error information. // -// Returned Error Codes: -// * ErrCodeContainerNotFoundException "ContainerNotFoundException" +// Returned Error Types: +// * ContainerNotFoundException // The specified container was not found for the specified account. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediastore-data-2017-09-01/PutObject @@ -502,6 +503,62 @@ func (c *MediaStoreData) PutObjectWithContext(ctx aws.Context, input *PutObjectI return out, req.Send() } +// The specified container was not found for the specified account. +type ContainerNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ContainerNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ContainerNotFoundException) GoString() string { + return s.String() +} + +func newErrorContainerNotFoundException(v protocol.ResponseMetadata) error { + return &ContainerNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ContainerNotFoundException) Code() string { + return "ContainerNotFoundException" +} + +// Message returns the exception's message. +func (s ContainerNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ContainerNotFoundException) OrigErr() error { + return nil +} + +func (s ContainerNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ContainerNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ContainerNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteObjectInput struct { _ struct{} `type:"structure"` @@ -833,6 +890,62 @@ func (s *GetObjectOutput) SetStatusCode(v int64) *GetObjectOutput { return s } +// The service is temporarily unavailable. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + // A metadata entry for a folder or object. type Item struct { _ struct{} `type:"structure"` @@ -1007,6 +1120,62 @@ func (s *ListItemsOutput) SetNextToken(v string) *ListItemsOutput { return s } +// Could not perform an operation on an object that does not exist. +type ObjectNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ObjectNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ObjectNotFoundException) GoString() string { + return s.String() +} + +func newErrorObjectNotFoundException(v protocol.ResponseMetadata) error { + return &ObjectNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ObjectNotFoundException) Code() string { + return "ObjectNotFoundException" +} + +// Message returns the exception's message. +func (s ObjectNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ObjectNotFoundException) OrigErr() error { + return nil +} + +func (s ObjectNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ObjectNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ObjectNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type PutObjectInput struct { _ struct{} `type:"structure" payload:"Body"` @@ -1185,6 +1354,62 @@ func (s *PutObjectOutput) SetStorageClass(v string) *PutObjectOutput { return s } +// The requested content range is not valid. +type RequestedRangeNotSatisfiableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s RequestedRangeNotSatisfiableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestedRangeNotSatisfiableException) GoString() string { + return s.String() +} + +func newErrorRequestedRangeNotSatisfiableException(v protocol.ResponseMetadata) error { + return &RequestedRangeNotSatisfiableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestedRangeNotSatisfiableException) Code() string { + return "RequestedRangeNotSatisfiableException" +} + +// Message returns the exception's message. +func (s RequestedRangeNotSatisfiableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestedRangeNotSatisfiableException) OrigErr() error { + return nil +} + +func (s RequestedRangeNotSatisfiableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestedRangeNotSatisfiableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestedRangeNotSatisfiableException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ItemTypeObject is a ItemType enum value ItemTypeObject = "OBJECT" diff --git a/service/mediastoredata/errors.go b/service/mediastoredata/errors.go index 95f0acdbd0f..05b5c57b1f4 100644 --- a/service/mediastoredata/errors.go +++ b/service/mediastoredata/errors.go @@ -2,6 +2,10 @@ package mediastoredata +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeContainerNotFoundException for service response error code @@ -28,3 +32,10 @@ const ( // The requested content range is not valid. ErrCodeRequestedRangeNotSatisfiableException = "RequestedRangeNotSatisfiableException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ContainerNotFoundException": newErrorContainerNotFoundException, + "InternalServerError": newErrorInternalServerError, + "ObjectNotFoundException": newErrorObjectNotFoundException, + "RequestedRangeNotSatisfiableException": newErrorRequestedRangeNotSatisfiableException, +} diff --git a/service/mediastoredata/service.go b/service/mediastoredata/service.go index 68825dba25e..48d7a9cbc34 100644 --- a/service/mediastoredata/service.go +++ b/service/mediastoredata/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mediatailor/api.go b/service/mediatailor/api.go index 0b558137624..6ff5fbbb29a 100644 --- a/service/mediatailor/api.go +++ b/service/mediatailor/api.go @@ -3,6 +3,8 @@ package mediatailor import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -291,8 +293,8 @@ func (c *MediaTailor) ListTagsForResourceRequest(input *ListTagsForResourceInput // See the AWS API reference guide for AWS MediaTailor's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/ListTagsForResource @@ -446,8 +448,8 @@ func (c *MediaTailor) TagResourceRequest(input *TagResourceInput) (req *request. // See the AWS API reference guide for AWS MediaTailor's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/TagResource @@ -527,8 +529,8 @@ func (c *MediaTailor) UntagResourceRequest(input *UntagResourceInput) (req *requ // See the AWS API reference guide for AWS MediaTailor's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // One of the parameters in the request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mediatailor-2018-04-23/UntagResource @@ -553,6 +555,63 @@ func (c *MediaTailor) UntagResourceWithContext(ctx aws.Context, input *UntagReso return out, req.Send() } +// One of the parameters in the request is invalid. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // One of the parameters in the request is invalid. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // The configuration for using a content delivery network (CDN), like Amazon // CloudFront, for content and ad segment management. type CdnConfiguration struct { diff --git a/service/mediatailor/errors.go b/service/mediatailor/errors.go index ae85e9e5025..a6106d7cda7 100644 --- a/service/mediatailor/errors.go +++ b/service/mediatailor/errors.go @@ -2,6 +2,10 @@ package mediatailor +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -10,3 +14,7 @@ const ( // One of the parameters in the request is invalid. ErrCodeBadRequestException = "BadRequestException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, +} diff --git a/service/mediatailor/service.go b/service/mediatailor/service.go index b8fb0af6715..8b9215232fd 100644 --- a/service/mediatailor/service.go +++ b/service/mediatailor/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/migrationhub/api.go b/service/migrationhub/api.go index 589dac0cc14..2db4a3c4e9b 100644 --- a/service/migrationhub/api.go +++ b/service/migrationhub/api.go @@ -79,37 +79,37 @@ func (c *MigrationHub) AssociateCreatedArtifactRequest(input *AssociateCreatedAr // See the AWS API reference guide for AWS Migration Hub's // API operation AssociateCreatedArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateCreatedArtifact @@ -189,42 +189,42 @@ func (c *MigrationHub) AssociateDiscoveredResourceRequest(input *AssociateDiscov // See the AWS API reference guide for AWS Migration Hub's // API operation AssociateDiscoveredResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodePolicyErrorException "PolicyErrorException" +// * PolicyErrorException // Exception raised when there are problems accessing Application Discovery // Service (Application Discovery Service); most likely due to a misconfigured // policy or the migrationhub-discovery role is missing or not configured correctly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/AssociateDiscoveredResource @@ -307,31 +307,31 @@ func (c *MigrationHub) CreateProgressUpdateStreamRequest(input *CreateProgressUp // See the AWS API reference guide for AWS Migration Hub's // API operation CreateProgressUpdateStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/CreateProgressUpdateStream @@ -432,37 +432,37 @@ func (c *MigrationHub) DeleteProgressUpdateStreamRequest(input *DeleteProgressUp // See the AWS API reference guide for AWS Migration Hub's // API operation DeleteProgressUpdateStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DeleteProgressUpdateStream @@ -540,34 +540,34 @@ func (c *MigrationHub) DescribeApplicationStateRequest(input *DescribeApplicatio // See the AWS API reference guide for AWS Migration Hub's // API operation DescribeApplicationState for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodePolicyErrorException "PolicyErrorException" +// * PolicyErrorException // Exception raised when there are problems accessing Application Discovery // Service (Application Discovery Service); most likely due to a misconfigured // policy or the migrationhub-discovery role is missing or not configured correctly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DescribeApplicationState @@ -645,29 +645,29 @@ func (c *MigrationHub) DescribeMigrationTaskRequest(input *DescribeMigrationTask // See the AWS API reference guide for AWS Migration Hub's // API operation DescribeMigrationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DescribeMigrationTask @@ -758,37 +758,37 @@ func (c *MigrationHub) DisassociateCreatedArtifactRequest(input *DisassociateCre // See the AWS API reference guide for AWS Migration Hub's // API operation DisassociateCreatedArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DisassociateCreatedArtifact @@ -868,37 +868,37 @@ func (c *MigrationHub) DisassociateDiscoveredResourceRequest(input *Disassociate // See the AWS API reference guide for AWS Migration Hub's // API operation DisassociateDiscoveredResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/DisassociateDiscoveredResource @@ -982,37 +982,37 @@ func (c *MigrationHub) ImportMigrationTaskRequest(input *ImportMigrationTaskInpu // See the AWS API reference guide for AWS Migration Hub's // API operation ImportMigrationTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ImportMigrationTask @@ -1098,23 +1098,23 @@ func (c *MigrationHub) ListApplicationStatesRequest(input *ListApplicationStates // See the AWS API reference guide for AWS Migration Hub's // API operation ListApplicationStates for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListApplicationStates @@ -1258,29 +1258,29 @@ func (c *MigrationHub) ListCreatedArtifactsRequest(input *ListCreatedArtifactsIn // See the AWS API reference guide for AWS Migration Hub's // API operation ListCreatedArtifacts for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListCreatedArtifacts @@ -1416,29 +1416,29 @@ func (c *MigrationHub) ListDiscoveredResourcesRequest(input *ListDiscoveredResou // See the AWS API reference guide for AWS Migration Hub's // API operation ListDiscoveredResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListDiscoveredResources @@ -1582,34 +1582,34 @@ func (c *MigrationHub) ListMigrationTasksRequest(input *ListMigrationTasksInput) // See the AWS API reference guide for AWS Migration Hub's // API operation ListMigrationTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodePolicyErrorException "PolicyErrorException" +// * PolicyErrorException // Exception raised when there are problems accessing Application Discovery // Service (Application Discovery Service); most likely due to a misconfigured // policy or the migrationhub-discovery role is missing or not configured correctly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListMigrationTasks @@ -1746,23 +1746,23 @@ func (c *MigrationHub) ListProgressUpdateStreamsRequest(input *ListProgressUpdat // See the AWS API reference guide for AWS Migration Hub's // API operation ListProgressUpdateStreams for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/ListProgressUpdateStreams @@ -1895,42 +1895,42 @@ func (c *MigrationHub) NotifyApplicationStateRequest(input *NotifyApplicationSta // See the AWS API reference guide for AWS Migration Hub's // API operation NotifyApplicationState for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodePolicyErrorException "PolicyErrorException" +// * PolicyErrorException // Exception raised when there are problems accessing Application Discovery // Service (Application Discovery Service); most likely due to a misconfigured // policy or the migrationhub-discovery role is missing or not configured correctly. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/NotifyApplicationState @@ -2018,37 +2018,37 @@ func (c *MigrationHub) NotifyMigrationTaskStateRequest(input *NotifyMigrationTas // See the AWS API reference guide for AWS Migration Hub's // API operation NotifyMigrationTaskState for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/NotifyMigrationTaskState @@ -2143,37 +2143,37 @@ func (c *MigrationHub) PutResourceAttributesRequest(input *PutResourceAttributes // See the AWS API reference guide for AWS Migration Hub's // API operation PutResourceAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when there is an internal, configuration, or dependency // error encountered. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate a successfully authorized action when the DryRun // flag is set to "true". // -// * ErrCodeUnauthorizedOperation "UnauthorizedOperation" +// * UnauthorizedOperation // Exception raised to indicate a request was not authorized when the DryRun // flag is set to "true". // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception raised when the request references a resource (Application Discovery // Service configuration, update stream, migration task, etc.) that does not // exist in Application Discovery Service (Application Discovery Service) or // in Migration Hub's repository. // -// * ErrCodeHomeRegionNotSetException "HomeRegionNotSetException" +// * HomeRegionNotSetException // The home region is not set. Set the home region to continue. // // See also, https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/PutResourceAttributes @@ -2198,6 +2198,62 @@ func (c *MigrationHub) PutResourceAttributesWithContext(ctx aws.Context, input * return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // The state of an application discovered through Migration Hub import, the // AWS Agentless Discovery Connector, or the AWS Application Discovery Agent. type ApplicationState struct { @@ -3042,6 +3098,119 @@ func (s *DiscoveredResource) SetDescription(v string) *DiscoveredResource { return s } +// Exception raised to indicate a successfully authorized action when the DryRun +// flag is set to "true". +type DryRunOperation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DryRunOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DryRunOperation) GoString() string { + return s.String() +} + +func newErrorDryRunOperation(v protocol.ResponseMetadata) error { + return &DryRunOperation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DryRunOperation) Code() string { + return "DryRunOperation" +} + +// Message returns the exception's message. +func (s DryRunOperation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DryRunOperation) OrigErr() error { + return nil +} + +func (s DryRunOperation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DryRunOperation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DryRunOperation) RequestID() string { + return s.respMetadata.RequestID +} + +// The home region is not set. Set the home region to continue. +type HomeRegionNotSetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s HomeRegionNotSetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HomeRegionNotSetException) GoString() string { + return s.String() +} + +func newErrorHomeRegionNotSetException(v protocol.ResponseMetadata) error { + return &HomeRegionNotSetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HomeRegionNotSetException) Code() string { + return "HomeRegionNotSetException" +} + +// Message returns the exception's message. +func (s HomeRegionNotSetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HomeRegionNotSetException) OrigErr() error { + return nil +} + +func (s HomeRegionNotSetException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HomeRegionNotSetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HomeRegionNotSetException) RequestID() string { + return s.respMetadata.RequestID +} + type ImportMigrationTaskInput struct { _ struct{} `type:"structure"` @@ -3125,6 +3294,120 @@ func (s ImportMigrationTaskOutput) GoString() string { return s.String() } +// Exception raised when an internal, configuration, or dependency error is +// encountered. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception raised when the provided input violates a policy constraint or +// is entered in the wrong format or data type. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + type ListApplicationStatesInput struct { _ struct{} `type:"structure"` @@ -3978,6 +4261,64 @@ func (s NotifyMigrationTaskStateOutput) GoString() string { return s.String() } +// Exception raised when there are problems accessing Application Discovery +// Service (Application Discovery Service); most likely due to a misconfigured +// policy or the migrationhub-discovery role is missing or not configured correctly. +type PolicyErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PolicyErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyErrorException) GoString() string { + return s.String() +} + +func newErrorPolicyErrorException(v protocol.ResponseMetadata) error { + return &PolicyErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyErrorException) Code() string { + return "PolicyErrorException" +} + +// Message returns the exception's message. +func (s PolicyErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyErrorException) OrigErr() error { + return nil +} + +func (s PolicyErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Summary of the AWS resource used for access control that is implicitly linked // to your AWS account. type ProgressUpdateStreamSummary struct { @@ -4210,6 +4551,122 @@ func (s *ResourceAttribute) SetValue(v string) *ResourceAttribute { return s } +// Exception raised when the request references a resource (Application Discovery +// Service configuration, update stream, migration task, etc.) that does not +// exist in Application Discovery Service (Application Discovery Service) or +// in Migration Hub's repository. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception raised when there is an internal, configuration, or dependency +// error encountered. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Task object encapsulating task information. type Task struct { _ struct{} `type:"structure"` @@ -4269,6 +4726,63 @@ func (s *Task) SetStatusDetail(v string) *Task { return s } +// Exception raised to indicate a request was not authorized when the DryRun +// flag is set to "true". +type UnauthorizedOperation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedOperation) GoString() string { + return s.String() +} + +func newErrorUnauthorizedOperation(v protocol.ResponseMetadata) error { + return &UnauthorizedOperation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedOperation) Code() string { + return "UnauthorizedOperation" +} + +// Message returns the exception's message. +func (s UnauthorizedOperation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedOperation) OrigErr() error { + return nil +} + +func (s UnauthorizedOperation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedOperation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedOperation) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ApplicationStatusNotStarted is a ApplicationStatus enum value ApplicationStatusNotStarted = "NOT_STARTED" diff --git a/service/migrationhub/errors.go b/service/migrationhub/errors.go index dbc0a69d7df..7e223fa8173 100644 --- a/service/migrationhub/errors.go +++ b/service/migrationhub/errors.go @@ -2,6 +2,10 @@ package migrationhub +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -68,3 +72,15 @@ const ( // flag is set to "true". ErrCodeUnauthorizedOperation = "UnauthorizedOperation" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "DryRunOperation": newErrorDryRunOperation, + "HomeRegionNotSetException": newErrorHomeRegionNotSetException, + "InternalServerError": newErrorInternalServerError, + "InvalidInputException": newErrorInvalidInputException, + "PolicyErrorException": newErrorPolicyErrorException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "UnauthorizedOperation": newErrorUnauthorizedOperation, +} diff --git a/service/migrationhub/service.go b/service/migrationhub/service.go index b927368d71a..14232848267 100644 --- a/service/migrationhub/service.go +++ b/service/migrationhub/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/migrationhubconfig/api.go b/service/migrationhubconfig/api.go index 83d474e94fc..70cf76c74fc 100644 --- a/service/migrationhubconfig/api.go +++ b/service/migrationhubconfig/api.go @@ -3,11 +3,13 @@ package migrationhubconfig import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCreateHomeRegionControl = "CreateHomeRegionControl" @@ -63,23 +65,23 @@ func (c *MigrationHubConfig) CreateHomeRegionControlRequest(input *CreateHomeReg // See the AWS API reference guide for AWS Migration Hub Config's // API operation CreateHomeRegionControl for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when a request fails due to temporary unavailability of // the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeDryRunOperation "DryRunOperation" +// * DryRunOperation // Exception raised to indicate that authorization of an action was successful, // when the DryRun flag is set to true. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // @@ -165,19 +167,19 @@ func (c *MigrationHubConfig) DescribeHomeRegionControlsRequest(input *DescribeHo // See the AWS API reference guide for AWS Migration Hub Config's // API operation DescribeHomeRegionControls for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when a request fails due to temporary unavailability of // the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // @@ -312,19 +314,19 @@ func (c *MigrationHubConfig) GetHomeRegionRequest(input *GetHomeRegionInput) (re // See the AWS API reference guide for AWS Migration Hub Config's // API operation GetHomeRegion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // Exception raised when an internal, configuration, or dependency error is // encountered. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // Exception raised when a request fails due to temporary unavailability of // the service. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // Exception raised when the provided input violates a policy constraint or // is entered in the wrong format or data type. // @@ -350,6 +352,62 @@ func (c *MigrationHubConfig) GetHomeRegionWithContext(ctx aws.Context, input *Ge return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateHomeRegionControlInput struct { _ struct{} `type:"structure"` @@ -566,6 +624,63 @@ func (s *DescribeHomeRegionControlsOutput) SetNextToken(v string) *DescribeHomeR return s } +// Exception raised to indicate that authorization of an action was successful, +// when the DryRun flag is set to true. +type DryRunOperation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DryRunOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DryRunOperation) GoString() string { + return s.String() +} + +func newErrorDryRunOperation(v protocol.ResponseMetadata) error { + return &DryRunOperation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DryRunOperation) Code() string { + return "DryRunOperation" +} + +// Message returns the exception's message. +func (s DryRunOperation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DryRunOperation) OrigErr() error { + return nil +} + +func (s DryRunOperation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DryRunOperation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DryRunOperation) RequestID() string { + return s.respMetadata.RequestID +} + type GetHomeRegionInput struct { _ struct{} `type:"structure"` } @@ -661,6 +776,177 @@ func (s *HomeRegionControl) SetTarget(v *Target) *HomeRegionControl { return s } +// Exception raised when an internal, configuration, or dependency error is +// encountered. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception raised when the provided input violates a policy constraint or +// is entered in the wrong format or data type. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception raised when a request fails due to temporary unavailability of +// the service. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // The target parameter specifies the identifier to which the home region is // applied, which is always an ACCOUNT. It applies the home region to the current // ACCOUNT. diff --git a/service/migrationhubconfig/errors.go b/service/migrationhubconfig/errors.go index 887fcd8a180..2e892de1678 100644 --- a/service/migrationhubconfig/errors.go +++ b/service/migrationhubconfig/errors.go @@ -2,6 +2,10 @@ package migrationhubconfig +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -38,3 +42,11 @@ const ( // the service. ErrCodeServiceUnavailableException = "ServiceUnavailableException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "DryRunOperation": newErrorDryRunOperation, + "InternalServerError": newErrorInternalServerError, + "InvalidInputException": newErrorInvalidInputException, + "ServiceUnavailableException": newErrorServiceUnavailableException, +} diff --git a/service/migrationhubconfig/service.go b/service/migrationhubconfig/service.go index 809e5358174..47e4dd474dc 100644 --- a/service/migrationhubconfig/service.go +++ b/service/migrationhubconfig/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mobile/api.go b/service/mobile/api.go index 70530e88c6c..188de498e3a 100644 --- a/service/mobile/api.go +++ b/service/mobile/api.go @@ -3,11 +3,13 @@ package mobile import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCreateProject = "CreateProject" @@ -63,30 +65,30 @@ func (c *Mobile) CreateProjectRequest(input *CreateProjectInput) (req *request.R // See the AWS API reference guide for AWS Mobile's // API operation CreateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // No entity can be found with the specified identifier. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many AWS Mobile Hub projects in the account or the account // has exceeded the maximum number of resources in some AWS service. You should // create another sub-account using AWS Organizations or remove some resources @@ -167,23 +169,23 @@ func (c *Mobile) DeleteProjectRequest(input *DeleteProjectInput) (req *request.R // See the AWS API reference guide for AWS Mobile's // API operation DeleteProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // No entity can be found with the specified identifier. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DeleteProject @@ -261,27 +263,27 @@ func (c *Mobile) DescribeBundleRequest(input *DescribeBundleInput) (req *request // See the AWS API reference guide for AWS Mobile's // API operation DescribeBundle for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // No entity can be found with the specified identifier. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeBundle @@ -359,27 +361,27 @@ func (c *Mobile) DescribeProjectRequest(input *DescribeProjectInput) (req *reque // See the AWS API reference guide for AWS Mobile's // API operation DescribeProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // No entity can be found with the specified identifier. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/DescribeProject @@ -458,27 +460,27 @@ func (c *Mobile) ExportBundleRequest(input *ExportBundleInput) (req *request.Req // See the AWS API reference guide for AWS Mobile's // API operation ExportBundle for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // No entity can be found with the specified identifier. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportBundle @@ -558,27 +560,27 @@ func (c *Mobile) ExportProjectRequest(input *ExportProjectInput) (req *request.R // See the AWS API reference guide for AWS Mobile's // API operation ExportProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // No entity can be found with the specified identifier. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mobile-2017-07-01/ExportProject @@ -662,23 +664,23 @@ func (c *Mobile) ListBundlesRequest(input *ListBundlesInput) (req *request.Reque // See the AWS API reference guide for AWS Mobile's // API operation ListBundles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // @@ -815,23 +817,23 @@ func (c *Mobile) ListProjectsRequest(input *ListProjectsInput) (req *request.Req // See the AWS API reference guide for AWS Mobile's // API operation ListProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // @@ -962,33 +964,33 @@ func (c *Mobile) UpdateProjectRequest(input *UpdateProjectInput) (req *request.R // See the AWS API reference guide for AWS Mobile's // API operation UpdateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailureException "InternalFailureException" +// Returned Error Types: +// * InternalFailureException // The service has encountered an unexpected error condition which prevents // it from servicing the request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is temporarily unavailable. The request should be retried after // some time delay. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Credentials of the caller are insufficient to authorize the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been received for this AWS account in too short a // time. The request should be retried after some time delay. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request cannot be processed because some parameter is not valid or the // project state prevents the operation from being performed. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // No entity can be found with the specified identifier. // -// * ErrCodeAccountActionRequiredException "AccountActionRequiredException" +// * AccountActionRequiredException // Account Action is required in order to continue the request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many AWS Mobile Hub projects in the account or the account // has exceeded the maximum number of resources in some AWS service. You should // create another sub-account using AWS Organizations or remove some resources @@ -1016,6 +1018,121 @@ func (c *Mobile) UpdateProjectWithContext(ctx aws.Context, input *UpdateProjectI return out, req.Send() } +// Account Action is required in order to continue the request. +type AccountActionRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccountActionRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountActionRequiredException) GoString() string { + return s.String() +} + +func newErrorAccountActionRequiredException(v protocol.ResponseMetadata) error { + return &AccountActionRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountActionRequiredException) Code() string { + return "AccountActionRequiredException" +} + +// Message returns the exception's message. +func (s AccountActionRequiredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountActionRequiredException) OrigErr() error { + return nil +} + +func (s AccountActionRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountActionRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountActionRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request cannot be processed because some parameter is not valid or the +// project state prevents the operation from being performed. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // The details of the bundle. type BundleDetails struct { _ struct{} `type:"structure"` @@ -1558,6 +1675,127 @@ func (s *ExportProjectOutput) SetSnapshotId(v string) *ExportProjectOutput { return s } +// The service has encountered an unexpected error condition which prevents +// it from servicing the request. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// There are too many AWS Mobile Hub projects in the account or the account +// has exceeded the maximum number of resources in some AWS service. You should +// create another sub-account using AWS Organizations or remove some resources +// and retry your request. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` + + // The Exception Error Message. + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Request structure to request all available bundles. type ListBundlesInput struct { _ struct{} `type:"structure"` @@ -1697,6 +1935,63 @@ func (s *ListProjectsOutput) SetProjects(v []*ProjectSummary) *ListProjectsOutpu return s } +// No entity can be found with the specified identifier. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Detailed information about an AWS Mobile Hub project. type ProjectDetails struct { _ struct{} `type:"structure"` @@ -1878,6 +2173,185 @@ func (s *Resource) SetType(v string) *Resource { return s } +// The service is temporarily unavailable. The request should be retried after +// some time delay. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` + + // The Exception Error Message. + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + +// Too many requests have been received for this AWS account in too short a +// time. The request should be retried after some time delay. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` + + // The Exception Error Message. + RetryAfterSeconds *string `location:"header" locationName:"Retry-After" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Credentials of the caller are insufficient to authorize the request. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Exception Error Message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // Request structure used for requests to update project configuration. type UpdateProjectInput struct { _ struct{} `type:"structure" payload:"Contents"` diff --git a/service/mobile/errors.go b/service/mobile/errors.go index 32aaa405e9e..2f2a2b1d98a 100644 --- a/service/mobile/errors.go +++ b/service/mobile/errors.go @@ -2,6 +2,10 @@ package mobile +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccountActionRequiredException for service response error code @@ -59,3 +63,14 @@ const ( // Credentials of the caller are insufficient to authorize the request. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccountActionRequiredException": newErrorAccountActionRequiredException, + "BadRequestException": newErrorBadRequestException, + "InternalFailureException": newErrorInternalFailureException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/mobile/service.go b/service/mobile/service.go index e526b69ce8f..008766128fc 100644 --- a/service/mobile/service.go +++ b/service/mobile/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mobileanalytics/api.go b/service/mobileanalytics/api.go index 649886e664a..e9ffbaf922d 100644 --- a/service/mobileanalytics/api.go +++ b/service/mobileanalytics/api.go @@ -66,8 +66,8 @@ func (c *MobileAnalytics) PutEventsRequest(input *PutEventsInput) (req *request. // See the AWS API reference guide for Amazon Mobile Analytics's // API operation PutEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // An exception object returned when a request fails. // func (c *MobileAnalytics) PutEvents(input *PutEventsInput) (*PutEventsOutput, error) { @@ -91,6 +91,63 @@ func (c *MobileAnalytics) PutEventsWithContext(ctx aws.Context, input *PutEvents return out, req.Send() } +// An exception object returned when a request fails. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A text description associated with the BadRequestException object. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // A JSON object representing a batch of unique event occurrences in your app. type Event struct { _ struct{} `type:"structure"` diff --git a/service/mobileanalytics/errors.go b/service/mobileanalytics/errors.go index f41fd45787c..5d02081a9ed 100644 --- a/service/mobileanalytics/errors.go +++ b/service/mobileanalytics/errors.go @@ -2,6 +2,10 @@ package mobileanalytics +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -10,3 +14,7 @@ const ( // An exception object returned when a request fails. ErrCodeBadRequestException = "BadRequestException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, +} diff --git a/service/mobileanalytics/service.go b/service/mobileanalytics/service.go index 74f7951d0c6..ccfa4c73c26 100644 --- a/service/mobileanalytics/service.go +++ b/service/mobileanalytics/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mq/api.go b/service/mq/api.go index 5b37485a49b..9aabceea076 100644 --- a/service/mq/api.go +++ b/service/mq/api.go @@ -3,6 +3,7 @@ package mq import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,20 +66,20 @@ func (c *MQ) CreateBrokerRequest(input *CreateBrokerRequest) (req *request.Reque // See the AWS API reference guide for AmazonMQ's // API operation CreateBroker for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker @@ -157,17 +158,17 @@ func (c *MQ) CreateConfigurationRequest(input *CreateConfigurationRequest) (req // See the AWS API reference guide for AmazonMQ's // API operation CreateConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration @@ -246,17 +247,17 @@ func (c *MQ) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, ou // See the AWS API reference guide for AmazonMQ's // API operation CreateTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateTags @@ -335,20 +336,20 @@ func (c *MQ) CreateUserRequest(input *CreateUserRequest) (req *request.Request, // See the AWS API reference guide for AmazonMQ's // API operation CreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser @@ -426,17 +427,17 @@ func (c *MQ) DeleteBrokerRequest(input *DeleteBrokerInput) (req *request.Request // See the AWS API reference guide for AmazonMQ's // API operation DeleteBroker for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker @@ -515,17 +516,17 @@ func (c *MQ) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, ou // See the AWS API reference guide for AmazonMQ's // API operation DeleteTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteTags @@ -604,17 +605,17 @@ func (c *MQ) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, ou // See the AWS API reference guide for AmazonMQ's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser @@ -692,17 +693,17 @@ func (c *MQ) DescribeBrokerRequest(input *DescribeBrokerInput) (req *request.Req // See the AWS API reference guide for AmazonMQ's // API operation DescribeBroker for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker @@ -780,14 +781,14 @@ func (c *MQ) DescribeBrokerEngineTypesRequest(input *DescribeBrokerEngineTypesIn // See the AWS API reference guide for AmazonMQ's // API operation DescribeBrokerEngineTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerEngineTypes @@ -865,14 +866,14 @@ func (c *MQ) DescribeBrokerInstanceOptionsRequest(input *DescribeBrokerInstanceO // See the AWS API reference guide for AmazonMQ's // API operation DescribeBrokerInstanceOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerInstanceOptions @@ -950,17 +951,17 @@ func (c *MQ) DescribeConfigurationRequest(input *DescribeConfigurationInput) (re // See the AWS API reference guide for AmazonMQ's // API operation DescribeConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration @@ -1038,17 +1039,17 @@ func (c *MQ) DescribeConfigurationRevisionRequest(input *DescribeConfigurationRe // See the AWS API reference guide for AmazonMQ's // API operation DescribeConfigurationRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision @@ -1126,17 +1127,17 @@ func (c *MQ) DescribeUserRequest(input *DescribeUserInput) (req *request.Request // See the AWS API reference guide for AmazonMQ's // API operation DescribeUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser @@ -1214,14 +1215,14 @@ func (c *MQ) ListBrokersRequest(input *ListBrokersInput) (req *request.Request, // See the AWS API reference guide for AmazonMQ's // API operation ListBrokers for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers @@ -1299,17 +1300,17 @@ func (c *MQ) ListConfigurationRevisionsRequest(input *ListConfigurationRevisions // See the AWS API reference guide for AmazonMQ's // API operation ListConfigurationRevisions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions @@ -1387,14 +1388,14 @@ func (c *MQ) ListConfigurationsRequest(input *ListConfigurationsInput) (req *req // See the AWS API reference guide for AmazonMQ's // API operation ListConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations @@ -1472,17 +1473,17 @@ func (c *MQ) ListTagsRequest(input *ListTagsInput) (req *request.Request, output // See the AWS API reference guide for AmazonMQ's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListTags @@ -1560,17 +1561,17 @@ func (c *MQ) ListUsersRequest(input *ListUsersInput) (req *request.Request, outp // See the AWS API reference guide for AmazonMQ's // API operation ListUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers @@ -1649,17 +1650,17 @@ func (c *MQ) RebootBrokerRequest(input *RebootBrokerInput) (req *request.Request // See the AWS API reference guide for AmazonMQ's // API operation RebootBroker for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker @@ -1737,20 +1738,20 @@ func (c *MQ) UpdateBrokerRequest(input *UpdateBrokerRequest) (req *request.Reque // See the AWS API reference guide for AmazonMQ's // API operation UpdateBroker for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker @@ -1828,20 +1829,20 @@ func (c *MQ) UpdateConfigurationRequest(input *UpdateConfigurationRequest) (req // See the AWS API reference guide for AmazonMQ's // API operation UpdateConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration @@ -1920,20 +1921,20 @@ func (c *MQ) UpdateUserRequest(input *UpdateUserRequest) (req *request.Request, // See the AWS API reference guide for AmazonMQ's // API operation UpdateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // Returns information about an error. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Returns information about an error. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Returns information about an error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Returns information about an error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Returns information about an error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser @@ -1982,6 +1983,64 @@ func (s *AvailabilityZone) SetName(v string) *AvailabilityZone { return s } +// Returns information about an error. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorAttribute *string `locationName:"errorAttribute" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Types of broker engines. type BrokerEngineType struct { _ struct{} `type:"structure"` @@ -2424,6 +2483,64 @@ func (s *Configurations) SetPending(v *ConfigurationId) *Configurations { return s } +// Returns information about an error. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorAttribute *string `locationName:"errorAttribute" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateBrokerRequest struct { _ struct{} `type:"structure"` @@ -3936,6 +4053,122 @@ func (s *EngineVersion) SetName(v string) *EngineVersion { return s } +// Returns information about an error. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorAttribute *string `locationName:"errorAttribute" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returns information about an error. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorAttribute *string `locationName:"errorAttribute" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListBrokersInput struct { _ struct{} `type:"structure"` @@ -4456,6 +4689,64 @@ func (s *LogsSummary) SetPending(v *PendingLogs) *LogsSummary { return s } +// Returns information about an error. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorAttribute *string `locationName:"errorAttribute" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The list of information about logs to be enabled for the specified broker. type PendingLogs struct { _ struct{} `type:"structure"` @@ -4586,6 +4877,64 @@ func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning { return s } +// Returns information about an error. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + ErrorAttribute *string `locationName:"errorAttribute" type:"string"` + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateBrokerRequest struct { _ struct{} `type:"structure"` diff --git a/service/mq/errors.go b/service/mq/errors.go index 064fc8e5b71..24d6e0fefbf 100644 --- a/service/mq/errors.go +++ b/service/mq/errors.go @@ -2,6 +2,10 @@ package mq +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -40,3 +44,12 @@ const ( // Returns information about an error. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/mq/service.go b/service/mq/service.go index ec91fb800c5..d6823d36055 100644 --- a/service/mq/service.go +++ b/service/mq/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/mturk/api.go b/service/mturk/api.go index e64848d666a..7b82d031741 100644 --- a/service/mturk/api.go +++ b/service/mturk/api.go @@ -74,12 +74,12 @@ func (c *MTurk) AcceptQualificationRequestRequest(input *AcceptQualificationRequ // See the AWS API reference guide for Amazon Mechanical Turk's // API operation AcceptQualificationRequest for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AcceptQualificationRequest @@ -176,12 +176,12 @@ func (c *MTurk) ApproveAssignmentRequest(input *ApproveAssignmentInput) (req *re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ApproveAssignment for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ApproveAssignment @@ -272,12 +272,12 @@ func (c *MTurk) AssociateQualificationWithWorkerRequest(input *AssociateQualific // See the AWS API reference guide for Amazon Mechanical Turk's // API operation AssociateQualificationWithWorker for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/AssociateQualificationWithWorker @@ -370,12 +370,12 @@ func (c *MTurk) CreateAdditionalAssignmentsForHITRequest(input *CreateAdditional // See the AWS API reference guide for Amazon Mechanical Turk's // API operation CreateAdditionalAssignmentsForHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateAdditionalAssignmentsForHIT @@ -474,12 +474,12 @@ func (c *MTurk) CreateHITRequest(input *CreateHITInput) (req *request.Request, o // See the AWS API reference guide for Amazon Mechanical Turk's // API operation CreateHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHIT @@ -560,12 +560,12 @@ func (c *MTurk) CreateHITTypeRequest(input *CreateHITTypeInput) (req *request.Re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation CreateHITType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITType @@ -655,12 +655,12 @@ func (c *MTurk) CreateHITWithHITTypeRequest(input *CreateHITWithHITTypeInput) (r // See the AWS API reference guide for Amazon Mechanical Turk's // API operation CreateHITWithHITType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateHITWithHITType @@ -739,12 +739,12 @@ func (c *MTurk) CreateQualificationTypeRequest(input *CreateQualificationTypeInp // See the AWS API reference guide for Amazon Mechanical Turk's // API operation CreateQualificationType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateQualificationType @@ -825,12 +825,12 @@ func (c *MTurk) CreateWorkerBlockRequest(input *CreateWorkerBlockInput) (req *re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation CreateWorkerBlock for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/CreateWorkerBlock @@ -927,12 +927,12 @@ func (c *MTurk) DeleteHITRequest(input *DeleteHITInput) (req *request.Request, o // See the AWS API reference guide for Amazon Mechanical Turk's // API operation DeleteHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteHIT @@ -1023,12 +1023,12 @@ func (c *MTurk) DeleteQualificationTypeRequest(input *DeleteQualificationTypeInp // See the AWS API reference guide for Amazon Mechanical Turk's // API operation DeleteQualificationType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteQualificationType @@ -1112,12 +1112,12 @@ func (c *MTurk) DeleteWorkerBlockRequest(input *DeleteWorkerBlockInput) (req *re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation DeleteWorkerBlock for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DeleteWorkerBlock @@ -1200,12 +1200,12 @@ func (c *MTurk) DisassociateQualificationFromWorkerRequest(input *DisassociateQu // See the AWS API reference guide for Amazon Mechanical Turk's // API operation DisassociateQualificationFromWorker for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/DisassociateQualificationFromWorker @@ -1284,12 +1284,12 @@ func (c *MTurk) GetAccountBalanceRequest(input *GetAccountBalanceInput) (req *re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation GetAccountBalance for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalance @@ -1367,12 +1367,12 @@ func (c *MTurk) GetAssignmentRequest(input *GetAssignmentInput) (req *request.Re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation GetAssignment for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAssignment @@ -1460,12 +1460,12 @@ func (c *MTurk) GetFileUploadURLRequest(input *GetFileUploadURLInput) (req *requ // See the AWS API reference guide for Amazon Mechanical Turk's // API operation GetFileUploadURL for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetFileUploadURL @@ -1543,12 +1543,12 @@ func (c *MTurk) GetHITRequest(input *GetHITInput) (req *request.Request, output // See the AWS API reference guide for Amazon Mechanical Turk's // API operation GetHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetHIT @@ -1634,12 +1634,12 @@ func (c *MTurk) GetQualificationScoreRequest(input *GetQualificationScoreInput) // See the AWS API reference guide for Amazon Mechanical Turk's // API operation GetQualificationScore for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationScore @@ -1718,12 +1718,12 @@ func (c *MTurk) GetQualificationTypeRequest(input *GetQualificationTypeInput) (r // See the AWS API reference guide for Amazon Mechanical Turk's // API operation GetQualificationType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetQualificationType @@ -1827,12 +1827,12 @@ func (c *MTurk) ListAssignmentsForHITRequest(input *ListAssignmentsForHITInput) // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListAssignmentsForHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListAssignmentsForHIT @@ -1969,12 +1969,12 @@ func (c *MTurk) ListBonusPaymentsRequest(input *ListBonusPaymentsInput) (req *re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListBonusPayments for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListBonusPayments @@ -2112,12 +2112,12 @@ func (c *MTurk) ListHITsRequest(input *ListHITsInput) (req *request.Request, out // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListHITs for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITs @@ -2256,12 +2256,12 @@ func (c *MTurk) ListHITsForQualificationTypeRequest(input *ListHITsForQualificat // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListHITsForQualificationType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListHITsForQualificationType @@ -2400,12 +2400,12 @@ func (c *MTurk) ListQualificationRequestsRequest(input *ListQualificationRequest // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListQualificationRequests for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationRequests @@ -2542,12 +2542,12 @@ func (c *MTurk) ListQualificationTypesRequest(input *ListQualificationTypesInput // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListQualificationTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListQualificationTypes @@ -2687,12 +2687,12 @@ func (c *MTurk) ListReviewPolicyResultsForHITRequest(input *ListReviewPolicyResu // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListReviewPolicyResultsForHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewPolicyResultsForHIT @@ -2830,12 +2830,12 @@ func (c *MTurk) ListReviewableHITsRequest(input *ListReviewableHITsInput) (req * // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListReviewableHITs for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListReviewableHITs @@ -2972,12 +2972,12 @@ func (c *MTurk) ListWorkerBlocksRequest(input *ListWorkerBlocksInput) (req *requ // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListWorkerBlocks for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkerBlocks @@ -3114,12 +3114,12 @@ func (c *MTurk) ListWorkersWithQualificationTypeRequest(input *ListWorkersWithQu // See the AWS API reference guide for Amazon Mechanical Turk's // API operation ListWorkersWithQualificationType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/ListWorkersWithQualificationType @@ -3253,12 +3253,12 @@ func (c *MTurk) NotifyWorkersRequest(input *NotifyWorkersInput) (req *request.Re // See the AWS API reference guide for Amazon Mechanical Turk's // API operation NotifyWorkers for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/NotifyWorkers @@ -3345,12 +3345,12 @@ func (c *MTurk) RejectAssignmentRequest(input *RejectAssignmentInput) (req *requ // See the AWS API reference guide for Amazon Mechanical Turk's // API operation RejectAssignment for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectAssignment @@ -3432,12 +3432,12 @@ func (c *MTurk) RejectQualificationRequestRequest(input *RejectQualificationRequ // See the AWS API reference guide for Amazon Mechanical Turk's // API operation RejectQualificationRequest for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/RejectQualificationRequest @@ -3524,12 +3524,12 @@ func (c *MTurk) SendBonusRequest(input *SendBonusInput) (req *request.Request, o // See the AWS API reference guide for Amazon Mechanical Turk's // API operation SendBonus for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendBonus @@ -3613,12 +3613,12 @@ func (c *MTurk) SendTestEventNotificationRequest(input *SendTestEventNotificatio // See the AWS API reference guide for Amazon Mechanical Turk's // API operation SendTestEventNotification for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/SendTestEventNotification @@ -3699,12 +3699,12 @@ func (c *MTurk) UpdateExpirationForHITRequest(input *UpdateExpirationForHITInput // See the AWS API reference guide for Amazon Mechanical Turk's // API operation UpdateExpirationForHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateExpirationForHIT @@ -3785,12 +3785,12 @@ func (c *MTurk) UpdateHITReviewStatusRequest(input *UpdateHITReviewStatusInput) // See the AWS API reference guide for Amazon Mechanical Turk's // API operation UpdateHITReviewStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITReviewStatus @@ -3872,12 +3872,12 @@ func (c *MTurk) UpdateHITTypeOfHITRequest(input *UpdateHITTypeOfHITInput) (req * // See the AWS API reference guide for Amazon Mechanical Turk's // API operation UpdateHITTypeOfHIT for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateHITTypeOfHIT @@ -3965,12 +3965,12 @@ func (c *MTurk) UpdateNotificationSettingsRequest(input *UpdateNotificationSetti // See the AWS API reference guide for Amazon Mechanical Turk's // API operation UpdateNotificationSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateNotificationSettings @@ -4078,12 +4078,12 @@ func (c *MTurk) UpdateQualificationTypeRequest(input *UpdateQualificationTypeInp // See the AWS API reference guide for Amazon Mechanical Turk's // API operation UpdateQualificationType for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceFault "ServiceFault" +// Returned Error Types: +// * ServiceFault // Amazon Mechanical Turk is temporarily unable to process your request. Try // your call again. // -// * ErrCodeRequestError "RequestError" +// * RequestError // Your request is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/UpdateQualificationType @@ -8634,6 +8634,64 @@ func (s RejectQualificationRequestOutput) GoString() string { return s.String() } +// Your request is invalid. +type RequestError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + TurkErrorCode *string `type:"string"` +} + +// String returns the string representation +func (s RequestError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestError) GoString() string { + return s.String() +} + +func newErrorRequestError(v protocol.ResponseMetadata) error { + return &RequestError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestError) Code() string { + return "RequestError" +} + +// Message returns the exception's message. +func (s RequestError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestError) OrigErr() error { + return nil +} + +func (s RequestError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestError) RequestID() string { + return s.respMetadata.RequestID +} + // Both the AssignmentReviewReport and the HITReviewReport elements contains // the ReviewActionDetail data structure. This structure is returned multiple // times for each action specified in the Review Policy. @@ -9081,6 +9139,65 @@ func (s SendTestEventNotificationOutput) GoString() string { return s.String() } +// Amazon Mechanical Turk is temporarily unable to process your request. Try +// your call again. +type ServiceFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + TurkErrorCode *string `type:"string"` +} + +// String returns the string representation +func (s ServiceFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceFault) GoString() string { + return s.String() +} + +func newErrorServiceFault(v protocol.ResponseMetadata) error { + return &ServiceFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceFault) Code() string { + return "ServiceFault" +} + +// Message returns the exception's message. +func (s ServiceFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceFault) OrigErr() error { + return nil +} + +func (s ServiceFault) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceFault) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateExpirationForHITInput struct { _ struct{} `type:"structure"` diff --git a/service/mturk/errors.go b/service/mturk/errors.go index 4c81b41a605..1382c6218de 100644 --- a/service/mturk/errors.go +++ b/service/mturk/errors.go @@ -2,6 +2,10 @@ package mturk +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeRequestError for service response error code @@ -17,3 +21,8 @@ const ( // your call again. ErrCodeServiceFault = "ServiceFault" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "RequestError": newErrorRequestError, + "ServiceFault": newErrorServiceFault, +} diff --git a/service/mturk/service.go b/service/mturk/service.go index 55e6ffe2cc8..9335ced8b59 100644 --- a/service/mturk/service.go +++ b/service/mturk/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/networkmanager/api.go b/service/networkmanager/api.go index 144a15da8ab..6896f6b55de 100644 --- a/service/networkmanager/api.go +++ b/service/networkmanager/api.go @@ -3,6 +3,7 @@ package networkmanager import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -76,27 +77,27 @@ func (c *NetworkManager) AssociateCustomerGatewayRequest(input *AssociateCustome // See the AWS API reference guide for AWS Network Manager's // API operation AssociateCustomerGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/AssociateCustomerGateway @@ -176,27 +177,27 @@ func (c *NetworkManager) AssociateLinkRequest(input *AssociateLinkInput) (req *r // See the AWS API reference guide for AWS Network Manager's // API operation AssociateLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/AssociateLink @@ -276,27 +277,27 @@ func (c *NetworkManager) CreateDeviceRequest(input *CreateDeviceInput) (req *req // See the AWS API reference guide for AWS Network Manager's // API operation CreateDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/CreateDevice @@ -374,24 +375,24 @@ func (c *NetworkManager) CreateGlobalNetworkRequest(input *CreateGlobalNetworkIn // See the AWS API reference guide for AWS Network Manager's // API operation CreateGlobalNetwork for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/CreateGlobalNetwork @@ -469,27 +470,27 @@ func (c *NetworkManager) CreateLinkRequest(input *CreateLinkInput) (req *request // See the AWS API reference guide for AWS Network Manager's // API operation CreateLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/CreateLink @@ -567,27 +568,27 @@ func (c *NetworkManager) CreateSiteRequest(input *CreateSiteInput) (req *request // See the AWS API reference guide for AWS Network Manager's // API operation CreateSite for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/CreateSite @@ -666,24 +667,24 @@ func (c *NetworkManager) DeleteDeviceRequest(input *DeleteDeviceInput) (req *req // See the AWS API reference guide for AWS Network Manager's // API operation DeleteDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DeleteDevice @@ -762,24 +763,24 @@ func (c *NetworkManager) DeleteGlobalNetworkRequest(input *DeleteGlobalNetworkIn // See the AWS API reference guide for AWS Network Manager's // API operation DeleteGlobalNetwork for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DeleteGlobalNetwork @@ -858,24 +859,24 @@ func (c *NetworkManager) DeleteLinkRequest(input *DeleteLinkInput) (req *request // See the AWS API reference guide for AWS Network Manager's // API operation DeleteLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DeleteLink @@ -954,24 +955,24 @@ func (c *NetworkManager) DeleteSiteRequest(input *DeleteSiteInput) (req *request // See the AWS API reference guide for AWS Network Manager's // API operation DeleteSite for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DeleteSite @@ -1051,24 +1052,24 @@ func (c *NetworkManager) DeregisterTransitGatewayRequest(input *DeregisterTransi // See the AWS API reference guide for AWS Network Manager's // API operation DeregisterTransitGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DeregisterTransitGateway @@ -1155,20 +1156,20 @@ func (c *NetworkManager) DescribeGlobalNetworksRequest(input *DescribeGlobalNetw // See the AWS API reference guide for AWS Network Manager's // API operation DescribeGlobalNetworks for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DescribeGlobalNetworks @@ -1298,24 +1299,24 @@ func (c *NetworkManager) DisassociateCustomerGatewayRequest(input *DisassociateC // See the AWS API reference guide for AWS Network Manager's // API operation DisassociateCustomerGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DisassociateCustomerGateway @@ -1394,24 +1395,24 @@ func (c *NetworkManager) DisassociateLinkRequest(input *DisassociateLinkInput) ( // See the AWS API reference guide for AWS Network Manager's // API operation DisassociateLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/DisassociateLink @@ -1496,24 +1497,24 @@ func (c *NetworkManager) GetCustomerGatewayAssociationsRequest(input *GetCustome // See the AWS API reference guide for AWS Network Manager's // API operation GetCustomerGatewayAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetCustomerGatewayAssociations @@ -1649,20 +1650,20 @@ func (c *NetworkManager) GetDevicesRequest(input *GetDevicesInput) (req *request // See the AWS API reference guide for AWS Network Manager's // API operation GetDevices for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetDevices @@ -1799,20 +1800,20 @@ func (c *NetworkManager) GetLinkAssociationsRequest(input *GetLinkAssociationsIn // See the AWS API reference guide for AWS Network Manager's // API operation GetLinkAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetLinkAssociations @@ -1951,20 +1952,20 @@ func (c *NetworkManager) GetLinksRequest(input *GetLinksInput) (req *request.Req // See the AWS API reference guide for AWS Network Manager's // API operation GetLinks for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetLinks @@ -2100,20 +2101,20 @@ func (c *NetworkManager) GetSitesRequest(input *GetSitesInput) (req *request.Req // See the AWS API reference guide for AWS Network Manager's // API operation GetSites for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetSites @@ -2250,20 +2251,20 @@ func (c *NetworkManager) GetTransitGatewayRegistrationsRequest(input *GetTransit // See the AWS API reference guide for AWS Network Manager's // API operation GetTransitGatewayRegistrations for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/GetTransitGatewayRegistrations @@ -2393,20 +2394,20 @@ func (c *NetworkManager) ListTagsForResourceRequest(input *ListTagsForResourceIn // See the AWS API reference guide for AWS Network Manager's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/ListTagsForResource @@ -2487,24 +2488,24 @@ func (c *NetworkManager) RegisterTransitGatewayRequest(input *RegisterTransitGat // See the AWS API reference guide for AWS Network Manager's // API operation RegisterTransitGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/RegisterTransitGateway @@ -2583,27 +2584,27 @@ func (c *NetworkManager) TagResourceRequest(input *TagResourceInput) (req *reque // See the AWS API reference guide for AWS Network Manager's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/TagResource @@ -2682,24 +2683,24 @@ func (c *NetworkManager) UntagResourceRequest(input *UntagResourceInput) (req *r // See the AWS API reference guide for AWS Network Manager's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UntagResource @@ -2778,24 +2779,24 @@ func (c *NetworkManager) UpdateDeviceRequest(input *UpdateDeviceInput) (req *req // See the AWS API reference guide for AWS Network Manager's // API operation UpdateDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateDevice @@ -2874,24 +2875,24 @@ func (c *NetworkManager) UpdateGlobalNetworkRequest(input *UpdateGlobalNetworkIn // See the AWS API reference guide for AWS Network Manager's // API operation UpdateGlobalNetwork for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateGlobalNetwork @@ -2970,27 +2971,27 @@ func (c *NetworkManager) UpdateLinkRequest(input *UpdateLinkInput) (req *request // See the AWS API reference guide for AWS Network Manager's // API operation UpdateLink for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service limit was exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateLink @@ -3069,24 +3070,24 @@ func (c *NetworkManager) UpdateSiteRequest(input *UpdateSiteInput) (req *request // See the AWS API reference guide for AWS Network Manager's // API operation UpdateSite for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // The input fails to satisfy the constraints. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource could not be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // There was a conflict processing the request. Updating or deleting the resource // can cause an inconsistent state. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // The request has failed due to an internal error. // // See also, https://docs.aws.amazon.com/goto/WebAPI/networkmanager-2019-07-05/UpdateSite @@ -3111,6 +3112,62 @@ func (c *NetworkManager) UpdateSiteWithContext(ctx aws.Context, input *UpdateSit return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AssociateCustomerGatewayInput struct { _ struct{} `type:"structure"` @@ -3338,6 +3395,73 @@ func (s *Bandwidth) SetUploadSpeed(v int64) *Bandwidth { return s } +// There was a conflict processing the request. Updating or deleting the resource +// can cause an inconsistent state. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // The resource type. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateDeviceInput struct { _ struct{} `type:"structure"` @@ -5353,6 +5477,65 @@ func (s *GlobalNetwork) SetTags(v []*Tag) *GlobalNetwork { return s } +// The request has failed due to an internal error. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // Indicates when to retry the request. + RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a link. type Link struct { _ struct{} `type:"structure"` @@ -5703,6 +5886,145 @@ func (s *RegisterTransitGatewayOutput) SetTransitGatewayRegistration(v *TransitG return s } +// The specified resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The ID of the resource. + // + // ResourceId is a required field + ResourceId *string `type:"string" required:"true"` + + // The resource type. + // + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// A service limit was exceeded. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The limit code. + // + // LimitCode is a required field + LimitCode *string `type:"string" required:"true"` + + // The error message. + Message_ *string `locationName:"Message" type:"string"` + + // The ID of the resource. + ResourceId *string `type:"string"` + + // The resource type. + ResourceType *string `type:"string"` + + // The service code. + // + // ServiceCode is a required field + ServiceCode *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a site. type Site struct { _ struct{} `type:"structure"` @@ -5896,6 +6218,65 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The request was denied due to request throttling. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // Indicates when to retry the request. + RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the registration of a transit gateway to a global network. type TransitGatewayRegistration struct { _ struct{} `type:"structure"` @@ -6497,6 +6878,68 @@ func (s *UpdateSiteOutput) SetSite(v *Site) *UpdateSiteOutput { return s } +// The input fails to satisfy the constraints. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The fields that caused the error, if applicable. + Fields []*ValidationExceptionField `type:"list"` + + Message_ *string `locationName:"Message" type:"string"` + + // The reason for the error. + Reason *string `type:"string" enum:"ValidationExceptionReason"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a validation exception for a field. type ValidationExceptionField struct { _ struct{} `type:"structure"` diff --git a/service/networkmanager/errors.go b/service/networkmanager/errors.go index 89dce172159..9e9c2bf05e6 100644 --- a/service/networkmanager/errors.go +++ b/service/networkmanager/errors.go @@ -2,6 +2,10 @@ package networkmanager +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -47,3 +51,13 @@ const ( // The input fails to satisfy the constraints. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConflictException": newErrorConflictException, + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/networkmanager/service.go b/service/networkmanager/service.go index be43e8f7321..56ce4f413be 100644 --- a/service/networkmanager/service.go +++ b/service/networkmanager/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/opsworks/api.go b/service/opsworks/api.go index b16906833d2..0acf64add1d 100644 --- a/service/opsworks/api.go +++ b/service/opsworks/api.go @@ -78,11 +78,11 @@ func (c *OpsWorks) AssignInstanceRequest(input *AssignInstanceInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation AssignInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignInstance @@ -170,11 +170,11 @@ func (c *OpsWorks) AssignVolumeRequest(input *AssignVolumeInput) (req *request.R // See the AWS API reference guide for AWS OpsWorks's // API operation AssignVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignVolume @@ -260,11 +260,11 @@ func (c *OpsWorks) AssociateElasticIpRequest(input *AssociateElasticIpInput) (re // See the AWS API reference guide for AWS OpsWorks's // API operation AssociateElasticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssociateElasticIp @@ -355,11 +355,11 @@ func (c *OpsWorks) AttachElasticLoadBalancerRequest(input *AttachElasticLoadBala // See the AWS API reference guide for AWS OpsWorks's // API operation AttachElasticLoadBalancer for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AttachElasticLoadBalancer @@ -443,11 +443,11 @@ func (c *OpsWorks) CloneStackRequest(input *CloneStackInput) (req *request.Reque // See the AWS API reference guide for AWS OpsWorks's // API operation CloneStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CloneStack @@ -531,11 +531,11 @@ func (c *OpsWorks) CreateAppRequest(input *CreateAppInput) (req *request.Request // See the AWS API reference guide for AWS OpsWorks's // API operation CreateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateApp @@ -620,11 +620,11 @@ func (c *OpsWorks) CreateDeploymentRequest(input *CreateDeploymentInput) (req *r // See the AWS API reference guide for AWS OpsWorks's // API operation CreateDeployment for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateDeployment @@ -708,11 +708,11 @@ func (c *OpsWorks) CreateInstanceRequest(input *CreateInstanceInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation CreateInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateInstance @@ -802,11 +802,11 @@ func (c *OpsWorks) CreateLayerRequest(input *CreateLayerInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation CreateLayer for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateLayer @@ -888,8 +888,8 @@ func (c *OpsWorks) CreateStackRequest(input *CreateStackInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation CreateStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateStack @@ -971,8 +971,8 @@ func (c *OpsWorks) CreateUserProfileRequest(input *CreateUserProfileInput) (req // See the AWS API reference guide for AWS OpsWorks's // API operation CreateUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateUserProfile @@ -1056,11 +1056,11 @@ func (c *OpsWorks) DeleteAppRequest(input *DeleteAppInput) (req *request.Request // See the AWS API reference guide for AWS OpsWorks's // API operation DeleteApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteApp @@ -1147,11 +1147,11 @@ func (c *OpsWorks) DeleteInstanceRequest(input *DeleteInstanceInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation DeleteInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteInstance @@ -1237,11 +1237,11 @@ func (c *OpsWorks) DeleteLayerRequest(input *DeleteLayerInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation DeleteLayer for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteLayer @@ -1327,11 +1327,11 @@ func (c *OpsWorks) DeleteStackRequest(input *DeleteStackInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation DeleteStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteStack @@ -1414,11 +1414,11 @@ func (c *OpsWorks) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req // See the AWS API reference guide for AWS OpsWorks's // API operation DeleteUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteUserProfile @@ -1503,11 +1503,11 @@ func (c *OpsWorks) DeregisterEcsClusterRequest(input *DeregisterEcsClusterInput) // See the AWS API reference guide for AWS OpsWorks's // API operation DeregisterEcsCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterEcsCluster @@ -1592,11 +1592,11 @@ func (c *OpsWorks) DeregisterElasticIpRequest(input *DeregisterElasticIpInput) ( // See the AWS API reference guide for AWS OpsWorks's // API operation DeregisterElasticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterElasticIp @@ -1682,11 +1682,11 @@ func (c *OpsWorks) DeregisterInstanceRequest(input *DeregisterInstanceInput) (re // See the AWS API reference guide for AWS OpsWorks's // API operation DeregisterInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterInstance @@ -1770,11 +1770,11 @@ func (c *OpsWorks) DeregisterRdsDbInstanceRequest(input *DeregisterRdsDbInstance // See the AWS API reference guide for AWS OpsWorks's // API operation DeregisterRdsDbInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterRdsDbInstance @@ -1859,11 +1859,11 @@ func (c *OpsWorks) DeregisterVolumeRequest(input *DeregisterVolumeInput) (req *r // See the AWS API reference guide for AWS OpsWorks's // API operation DeregisterVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeregisterVolume @@ -1943,11 +1943,11 @@ func (c *OpsWorks) DescribeAgentVersionsRequest(input *DescribeAgentVersionsInpu // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeAgentVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeAgentVersions @@ -2032,11 +2032,11 @@ func (c *OpsWorks) DescribeAppsRequest(input *DescribeAppsInput) (req *request.R // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeApps for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeApps @@ -2121,11 +2121,11 @@ func (c *OpsWorks) DescribeCommandsRequest(input *DescribeCommandsInput) (req *r // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeCommands for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeCommands @@ -2210,11 +2210,11 @@ func (c *OpsWorks) DescribeDeploymentsRequest(input *DescribeDeploymentsInput) ( // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeDeployments for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeDeployments @@ -2308,11 +2308,11 @@ func (c *OpsWorks) DescribeEcsClustersRequest(input *DescribeEcsClustersInput) ( // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeEcsClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeEcsClusters @@ -2449,11 +2449,11 @@ func (c *OpsWorks) DescribeElasticIpsRequest(input *DescribeElasticIpsInput) (re // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeElasticIps for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticIps @@ -2538,11 +2538,11 @@ func (c *OpsWorks) DescribeElasticLoadBalancersRequest(input *DescribeElasticLoa // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeElasticLoadBalancers for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeElasticLoadBalancers @@ -2627,11 +2627,11 @@ func (c *OpsWorks) DescribeInstancesRequest(input *DescribeInstancesInput) (req // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeInstances @@ -2716,11 +2716,11 @@ func (c *OpsWorks) DescribeLayersRequest(input *DescribeLayersInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeLayers for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLayers @@ -2805,11 +2805,11 @@ func (c *OpsWorks) DescribeLoadBasedAutoScalingRequest(input *DescribeLoadBasedA // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeLoadBasedAutoScaling for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeLoadBasedAutoScaling @@ -3044,11 +3044,11 @@ func (c *OpsWorks) DescribePermissionsRequest(input *DescribePermissionsInput) ( // See the AWS API reference guide for AWS OpsWorks's // API operation DescribePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribePermissions @@ -3133,11 +3133,11 @@ func (c *OpsWorks) DescribeRaidArraysRequest(input *DescribeRaidArraysInput) (re // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeRaidArrays for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRaidArrays @@ -3222,11 +3222,11 @@ func (c *OpsWorks) DescribeRdsDbInstancesRequest(input *DescribeRdsDbInstancesIn // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeRdsDbInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeRdsDbInstances @@ -3311,11 +3311,11 @@ func (c *OpsWorks) DescribeServiceErrorsRequest(input *DescribeServiceErrorsInpu // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeServiceErrors for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeServiceErrors @@ -3398,11 +3398,11 @@ func (c *OpsWorks) DescribeStackProvisioningParametersRequest(input *DescribeSta // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeStackProvisioningParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackProvisioningParameters @@ -3486,11 +3486,11 @@ func (c *OpsWorks) DescribeStackSummaryRequest(input *DescribeStackSummaryInput) // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeStackSummary for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStackSummary @@ -3573,11 +3573,11 @@ func (c *OpsWorks) DescribeStacksRequest(input *DescribeStacksInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeStacks for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeStacks @@ -3662,11 +3662,11 @@ func (c *OpsWorks) DescribeTimeBasedAutoScalingRequest(input *DescribeTimeBasedA // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeTimeBasedAutoScaling for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeTimeBasedAutoScaling @@ -3748,11 +3748,11 @@ func (c *OpsWorks) DescribeUserProfilesRequest(input *DescribeUserProfilesInput) // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeUserProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeUserProfiles @@ -3837,11 +3837,11 @@ func (c *OpsWorks) DescribeVolumesRequest(input *DescribeVolumesInput) (req *req // See the AWS API reference guide for AWS OpsWorks's // API operation DescribeVolumes for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DescribeVolumes @@ -3925,8 +3925,8 @@ func (c *OpsWorks) DetachElasticLoadBalancerRequest(input *DetachElasticLoadBala // See the AWS API reference guide for AWS OpsWorks's // API operation DetachElasticLoadBalancer for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DetachElasticLoadBalancer @@ -4012,11 +4012,11 @@ func (c *OpsWorks) DisassociateElasticIpRequest(input *DisassociateElasticIpInpu // See the AWS API reference guide for AWS OpsWorks's // API operation DisassociateElasticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DisassociateElasticIp @@ -4100,11 +4100,11 @@ func (c *OpsWorks) GetHostnameSuggestionRequest(input *GetHostnameSuggestionInpu // See the AWS API reference guide for AWS OpsWorks's // API operation GetHostnameSuggestion for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GetHostnameSuggestion @@ -4185,11 +4185,11 @@ func (c *OpsWorks) GrantAccessRequest(input *GrantAccessInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation GrantAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GrantAccess @@ -4267,11 +4267,11 @@ func (c *OpsWorks) ListTagsRequest(input *ListTagsInput) (req *request.Request, // See the AWS API reference guide for AWS OpsWorks's // API operation ListTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/ListTags @@ -4356,11 +4356,11 @@ func (c *OpsWorks) RebootInstanceRequest(input *RebootInstanceInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation RebootInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RebootInstance @@ -4445,11 +4445,11 @@ func (c *OpsWorks) RegisterEcsClusterRequest(input *RegisterEcsClusterInput) (re // See the AWS API reference guide for AWS OpsWorks's // API operation RegisterEcsCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterEcsCluster @@ -4535,11 +4535,11 @@ func (c *OpsWorks) RegisterElasticIpRequest(input *RegisterElasticIpInput) (req // See the AWS API reference guide for AWS OpsWorks's // API operation RegisterElasticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterElasticIp @@ -4636,11 +4636,11 @@ func (c *OpsWorks) RegisterInstanceRequest(input *RegisterInstanceInput) (req *r // See the AWS API reference guide for AWS OpsWorks's // API operation RegisterInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterInstance @@ -4724,11 +4724,11 @@ func (c *OpsWorks) RegisterRdsDbInstanceRequest(input *RegisterRdsDbInstanceInpu // See the AWS API reference guide for AWS OpsWorks's // API operation RegisterRdsDbInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterRdsDbInstance @@ -4814,11 +4814,11 @@ func (c *OpsWorks) RegisterVolumeRequest(input *RegisterVolumeInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation RegisterVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/RegisterVolume @@ -4909,11 +4909,11 @@ func (c *OpsWorks) SetLoadBasedAutoScalingRequest(input *SetLoadBasedAutoScaling // See the AWS API reference guide for AWS OpsWorks's // API operation SetLoadBasedAutoScaling for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetLoadBasedAutoScaling @@ -4998,11 +4998,11 @@ func (c *OpsWorks) SetPermissionRequest(input *SetPermissionInput) (req *request // See the AWS API reference guide for AWS OpsWorks's // API operation SetPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetPermission @@ -5088,11 +5088,11 @@ func (c *OpsWorks) SetTimeBasedAutoScalingRequest(input *SetTimeBasedAutoScaling // See the AWS API reference guide for AWS OpsWorks's // API operation SetTimeBasedAutoScaling for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/SetTimeBasedAutoScaling @@ -5177,11 +5177,11 @@ func (c *OpsWorks) StartInstanceRequest(input *StartInstanceInput) (req *request // See the AWS API reference guide for AWS OpsWorks's // API operation StartInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartInstance @@ -5265,11 +5265,11 @@ func (c *OpsWorks) StartStackRequest(input *StartStackInput) (req *request.Reque // See the AWS API reference guide for AWS OpsWorks's // API operation StartStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StartStack @@ -5356,11 +5356,11 @@ func (c *OpsWorks) StopInstanceRequest(input *StopInstanceInput) (req *request.R // See the AWS API reference guide for AWS OpsWorks's // API operation StopInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopInstance @@ -5444,11 +5444,11 @@ func (c *OpsWorks) StopStackRequest(input *StopStackInput) (req *request.Request // See the AWS API reference guide for AWS OpsWorks's // API operation StopStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/StopStack @@ -5529,11 +5529,11 @@ func (c *OpsWorks) TagResourceRequest(input *TagResourceInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/TagResource @@ -5620,11 +5620,11 @@ func (c *OpsWorks) UnassignInstanceRequest(input *UnassignInstanceInput) (req *r // See the AWS API reference guide for AWS OpsWorks's // API operation UnassignInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignInstance @@ -5709,11 +5709,11 @@ func (c *OpsWorks) UnassignVolumeRequest(input *UnassignVolumeInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation UnassignVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UnassignVolume @@ -5792,11 +5792,11 @@ func (c *OpsWorks) UntagResourceRequest(input *UntagResourceInput) (req *request // See the AWS API reference guide for AWS OpsWorks's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UntagResource @@ -5880,11 +5880,11 @@ func (c *OpsWorks) UpdateAppRequest(input *UpdateAppInput) (req *request.Request // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateApp @@ -5969,11 +5969,11 @@ func (c *OpsWorks) UpdateElasticIpRequest(input *UpdateElasticIpInput) (req *req // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateElasticIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateElasticIp @@ -6057,11 +6057,11 @@ func (c *OpsWorks) UpdateInstanceRequest(input *UpdateInstanceInput) (req *reque // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateInstance @@ -6145,11 +6145,11 @@ func (c *OpsWorks) UpdateLayerRequest(input *UpdateLayerInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateLayer for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateLayer @@ -6232,8 +6232,8 @@ func (c *OpsWorks) UpdateMyUserProfileRequest(input *UpdateMyUserProfileInput) ( // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateMyUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateMyUserProfile @@ -6317,11 +6317,11 @@ func (c *OpsWorks) UpdateRdsDbInstanceRequest(input *UpdateRdsDbInstanceInput) ( // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateRdsDbInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateRdsDbInstance @@ -6405,11 +6405,11 @@ func (c *OpsWorks) UpdateStackRequest(input *UpdateStackInput) (req *request.Req // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateStack for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateStack @@ -6492,11 +6492,11 @@ func (c *OpsWorks) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateUserProfile @@ -6581,11 +6581,11 @@ func (c *OpsWorks) UpdateVolumeRequest(input *UpdateVolumeInput) (req *request.R // See the AWS API reference guide for AWS OpsWorks's // API operation UpdateVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // Indicates that a request was not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Indicates that a resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/UpdateVolume @@ -14322,6 +14322,63 @@ func (s *ReportedOs) SetVersion(v string) *ReportedOs { return s } +// Indicates that a resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a user's SSH information. type SelfUserProfile struct { _ struct{} `type:"structure"` @@ -17113,6 +17170,63 @@ func (s *UserProfile) SetSshUsername(v string) *UserProfile { return s } +// Indicates that a request was not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an instance's Amazon EBS volume. type Volume struct { _ struct{} `type:"structure"` diff --git a/service/opsworks/errors.go b/service/opsworks/errors.go index fc849646ccb..63a7e6a5c76 100644 --- a/service/opsworks/errors.go +++ b/service/opsworks/errors.go @@ -2,6 +2,10 @@ package opsworks +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeResourceNotFoundException for service response error code @@ -16,3 +20,8 @@ const ( // Indicates that a request was not valid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/opsworks/service.go b/service/opsworks/service.go index f188c12fa7b..f319e652009 100644 --- a/service/opsworks/service.go +++ b/service/opsworks/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/opsworkscm/api.go b/service/opsworkscm/api.go index c195e4eea29..a6c4bc35bb2 100644 --- a/service/opsworkscm/api.go +++ b/service/opsworkscm/api.go @@ -86,15 +86,15 @@ func (c *OpsWorksCM) AssociateNodeRequest(input *AssociateNodeInput) (req *reque // See the AWS API reference guide for AWS OpsWorks CM's // API operation AssociateNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/AssociateNode @@ -185,18 +185,18 @@ func (c *OpsWorksCM) CreateBackupRequest(input *CreateBackupInput) (req *request // See the AWS API reference guide for AWS OpsWorks CM's // API operation CreateBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit of servers or backups has been reached. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateBackup @@ -304,17 +304,17 @@ func (c *OpsWorksCM) CreateServerRequest(input *CreateServerInput) (req *request // See the AWS API reference guide for AWS OpsWorks CM's // API operation CreateServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The limit of servers or backups has been reached. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The requested resource cannot be created because it already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/CreateServer @@ -398,15 +398,15 @@ func (c *OpsWorksCM) DeleteBackupRequest(input *DeleteBackupInput) (req *request // See the AWS API reference guide for AWS OpsWorks CM's // API operation DeleteBackup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteBackup @@ -495,15 +495,15 @@ func (c *OpsWorksCM) DeleteServerRequest(input *DeleteServerInput) (req *request // See the AWS API reference guide for AWS OpsWorks CM's // API operation DeleteServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DeleteServer @@ -663,14 +663,14 @@ func (c *OpsWorksCM) DescribeBackupsRequest(input *DescribeBackupsInput) (req *r // See the AWS API reference guide for AWS OpsWorks CM's // API operation DescribeBackups for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more of the provided request parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // This occurs when the provided nextToken is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeBackups @@ -754,14 +754,14 @@ func (c *OpsWorksCM) DescribeEventsRequest(input *DescribeEventsInput) (req *req // See the AWS API reference guide for AWS OpsWorks CM's // API operation DescribeEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more of the provided request parameters are not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // This occurs when the provided nextToken is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeEvents @@ -843,11 +843,11 @@ func (c *OpsWorksCM) DescribeNodeAssociationStatusRequest(input *DescribeNodeAss // See the AWS API reference guide for AWS OpsWorks CM's // API operation DescribeNodeAssociationStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeNodeAssociationStatus @@ -932,14 +932,14 @@ func (c *OpsWorksCM) DescribeServersRequest(input *DescribeServersInput) (req *r // See the AWS API reference guide for AWS OpsWorks CM's // API operation DescribeServers for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more of the provided request parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // This occurs when the provided nextToken is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DescribeServers @@ -1025,15 +1025,15 @@ func (c *OpsWorksCM) DisassociateNodeRequest(input *DisassociateNodeInput) (req // See the AWS API reference guide for AWS OpsWorks CM's // API operation DisassociateNode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/DisassociateNode @@ -1120,14 +1120,14 @@ func (c *OpsWorksCM) ExportServerEngineAttributeRequest(input *ExportServerEngin // See the AWS API reference guide for AWS OpsWorks CM's // API operation ExportServerEngineAttribute for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One or more of the provided request parameters are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // @@ -1207,11 +1207,11 @@ func (c *OpsWorksCM) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS OpsWorks CM's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/ListTagsForResource @@ -1306,15 +1306,15 @@ func (c *OpsWorksCM) RestoreServerRequest(input *RestoreServerInput) (req *reque // See the AWS API reference guide for AWS OpsWorks CM's // API operation RestoreServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/RestoreServer @@ -1400,15 +1400,15 @@ func (c *OpsWorksCM) StartMaintenanceRequest(input *StartMaintenanceInput) (req // See the AWS API reference guide for AWS OpsWorks CM's // API operation StartMaintenance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/StartMaintenance @@ -1488,14 +1488,14 @@ func (c *OpsWorksCM) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for AWS OpsWorks CM's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // @@ -1575,14 +1575,14 @@ func (c *OpsWorksCM) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for AWS OpsWorks CM's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // @@ -1663,15 +1663,15 @@ func (c *OpsWorksCM) UpdateServerRequest(input *UpdateServerInput) (req *request // See the AWS API reference guide for AWS OpsWorks CM's // API operation UpdateServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServer @@ -1759,15 +1759,15 @@ func (c *OpsWorksCM) UpdateServerEngineAttributesRequest(input *UpdateServerEngi // See the AWS API reference guide for AWS OpsWorks CM's // API operation UpdateServerEngineAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidStateException "InvalidStateException" +// Returned Error Types: +// * InvalidStateException // The resource is in a state that does not allow you to perform a specified // action. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource does not exist, or access was denied. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One or more of the provided request parameters are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/opsworkscm-2016-11-01/UpdateServerEngineAttributes @@ -3493,6 +3493,181 @@ func (s *ExportServerEngineAttributeOutput) SetServerName(v string) *ExportServe return s } +// This occurs when the provided nextToken is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error or informational message that can contain more detail about a nextToken + // failure. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource is in a state that does not allow you to perform a specified +// action. +type InvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error or informational message that provides more detail if a resource is + // in a state that is not valid for performing a specified action. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateException) GoString() string { + return s.String() +} + +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateException) Code() string { + return "InvalidStateException" +} + +// Message returns the exception's message. +func (s InvalidStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateException) OrigErr() error { + return nil +} + +func (s InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The limit of servers or backups has been reached. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error or informational message that the maximum allowed number of servers + // or backups has been exceeded. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -3598,6 +3773,122 @@ func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput return s } +// The requested resource cannot be created because it already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error or informational message in response to a CreateServer request that + // a resource cannot be created because it already exists. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource does not exist, or access was denied. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error or informational message that can contain more detail about problems + // locating or accessing a resource. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type RestoreServerInput struct { _ struct{} `type:"structure"` @@ -4506,6 +4797,64 @@ func (s *UpdateServerOutput) SetServer(v *Server) *UpdateServerOutput { return s } +// One or more of the provided request parameters are not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Error or informational message that can contain more detail about a validation + // failure. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // BackupStatusInProgress is a BackupStatus enum value BackupStatusInProgress = "IN_PROGRESS" diff --git a/service/opsworkscm/errors.go b/service/opsworkscm/errors.go index cd289823c21..272a6ba6b47 100644 --- a/service/opsworkscm/errors.go +++ b/service/opsworkscm/errors.go @@ -2,6 +2,10 @@ package opsworkscm +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidNextTokenException for service response error code @@ -41,3 +45,12 @@ const ( // One or more of the provided request parameters are not valid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidStateException": newErrorInvalidStateException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ValidationException": newErrorValidationException, +} diff --git a/service/opsworkscm/service.go b/service/opsworkscm/service.go index 5980010de68..4d099e13987 100644 --- a/service/opsworkscm/service.go +++ b/service/opsworkscm/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/organizations/api.go b/service/organizations/api.go index 4c7f58df0d6..457efb3c8fb 100644 --- a/service/organizations/api.go +++ b/service/organizations/api.go @@ -90,19 +90,19 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // See the AWS API reference guide for AWS Organizations's // API operation AcceptHandshake for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeHandshakeConstraintViolationException "HandshakeConstraintViolationException" +// * HandshakeConstraintViolationException // The requested operation would violate the constraint identified in the reason // code. // @@ -142,19 +142,19 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // account that doesn't have a payment instrument, such as a credit card, // associated with it. // -// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// * HandshakeNotFoundException // We can't find a handshake with the HandshakeId that you specified. // -// * ErrCodeInvalidHandshakeTransitionException "InvalidHandshakeTransitionException" +// * InvalidHandshakeTransitionException // You can't perform the operation on the handshake in its current state. For // example, you can't cancel a handshake that was already accepted or accept // a handshake that was already declined. // -// * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" +// * HandshakeAlreadyInStateException // The specified handshake is already in the requested state. For example, you // can't accept a handshake that was already accepted. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -220,15 +220,15 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -236,7 +236,7 @@ func (c *Organizations) AcceptHandshakeRequest(input *AcceptHandshakeInput) (req // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException" +// * AccessDeniedForDependencyException // The operation that you attempted requires you to have the iam:CreateServiceLinkedRole // for organizations.amazonaws.com permission so that AWS Organizations can // create the required service-linked role. You don't have that permission. @@ -329,23 +329,23 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation AttachPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -442,10 +442,10 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeDuplicatePolicyAttachmentException "DuplicatePolicyAttachmentException" +// * DuplicatePolicyAttachmentException // The selected policy is already attached to the specified target. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -511,24 +511,24 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // We can't find a policy with the PolicyId that you specified. // -// * ErrCodePolicyTypeNotEnabledException "PolicyTypeNotEnabledException" +// * PolicyTypeNotEnabledException // The specified policy type isn't currently enabled in this root. You can't // attach policies of the specified type to entities in a root until you enable // that type in the root. For more information, see Enabling All Features in // Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) // in the AWS Organizations User Guide. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // We can't find a root, OU, or account with the TargetId that you specified. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -536,10 +536,10 @@ func (c *Organizations) AttachPolicyRequest(input *AttachPolicyInput) (req *requ // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // -// * ErrCodePolicyChangesInProgressException "PolicyChangesInProgressException" +// * PolicyChangesInProgressException // Changes to the effective policy are in progress, and its contents can't be // returned. Try the operation again later. // @@ -626,31 +626,31 @@ func (c *Organizations) CancelHandshakeRequest(input *CancelHandshakeInput) (req // See the AWS API reference guide for AWS Organizations's // API operation CancelHandshake for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// * HandshakeNotFoundException // We can't find a handshake with the HandshakeId that you specified. // -// * ErrCodeInvalidHandshakeTransitionException "InvalidHandshakeTransitionException" +// * InvalidHandshakeTransitionException // You can't perform the operation on the handshake in its current state. For // example, you can't cancel a handshake that was already accepted or accept // a handshake that was already declined. // -// * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" +// * HandshakeAlreadyInStateException // The specified handshake is already in the requested state. For example, you // can't accept a handshake that was already accepted. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -716,11 +716,11 @@ func (c *Organizations) CancelHandshakeRequest(input *CancelHandshakeInput) (req // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -866,23 +866,23 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // See the AWS API reference guide for AWS Organizations's // API operation CreateAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -979,7 +979,7 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -1045,17 +1045,17 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" +// * FinalizingOrganizationException // AWS Organizations couldn't perform the operation because your organization // hasn't finished initializing. This can take up to an hour. Try again later. // If after one hour you continue to receive this error, contact AWS Support // (https://console.aws.amazon.com/support/home#/). // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -1063,7 +1063,7 @@ func (c *Organizations) CreateAccountRequest(input *CreateAccountInput) (req *re // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateAccount @@ -1239,23 +1239,23 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun // See the AWS API reference guide for AWS Organizations's // API operation CreateGovCloudAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -1352,7 +1352,7 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -1418,17 +1418,17 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" +// * FinalizingOrganizationException // AWS Organizations couldn't perform the operation because your organization // hasn't finished initializing. This can take up to an hour. Try again later. // If after one hour you continue to receive this error, contact AWS Support // (https://console.aws.amazon.com/support/home#/). // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -1436,7 +1436,7 @@ func (c *Organizations) CreateGovCloudAccountRequest(input *CreateGovCloudAccoun // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreateGovCloudAccount @@ -1526,23 +1526,23 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // See the AWS API reference guide for AWS Organizations's // API operation CreateOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAlreadyInOrganizationException "AlreadyInOrganizationException" +// * AlreadyInOrganizationException // This account is already a member of an organization. An account can belong // to only one organization at a time. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -1639,7 +1639,7 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -1705,11 +1705,11 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -1717,7 +1717,7 @@ func (c *Organizations) CreateOrganizationRequest(input *CreateOrganizationInput // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException" +// * AccessDeniedForDependencyException // The operation that you attempted requires you to have the iam:CreateServiceLinkedRole // for organizations.amazonaws.com permission so that AWS Organizations can // create the required service-linked role. You don't have that permission. @@ -1806,23 +1806,23 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // See the AWS API reference guide for AWS Organizations's // API operation CreateOrganizationalUnit for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -1919,10 +1919,10 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeDuplicateOrganizationalUnitException "DuplicateOrganizationalUnitException" +// * DuplicateOrganizationalUnitException // An OU with the same name already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -1988,14 +1988,14 @@ func (c *Organizations) CreateOrganizationalUnitRequest(input *CreateOrganizatio // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeParentNotFoundException "ParentNotFoundException" +// * ParentNotFoundException // We can't find a root or OU with the ParentId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -2084,23 +2084,23 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation CreatePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -2197,10 +2197,10 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeDuplicatePolicyException "DuplicatePolicyException" +// * DuplicatePolicyException // A policy with the same name already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -2266,24 +2266,24 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// * MalformedPolicyDocumentException // The provided policy document doesn't meet the requirements of the specified // policy type. For example, the syntax might be incorrect. For details about // service control policy syntax, see Service Control Policy Syntax (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) // in the AWS Organizations User Guide. // -// * ErrCodePolicyTypeNotAvailableForOrganizationException "PolicyTypeNotAvailableForOrganizationException" +// * PolicyTypeNotAvailableForOrganizationException // You can't use the specified policy type with the feature set currently enabled // for this organization. For example, you can enable SCPs only after you enable // all features in the organization. For more information, see Enabling and // Disabling a Policy Type on a Root (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root) // in the AWS Organizations User Guide. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -2291,7 +2291,7 @@ func (c *Organizations) CreatePolicyRequest(input *CreatePolicyInput) (req *requ // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/CreatePolicy @@ -2378,31 +2378,31 @@ func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (r // See the AWS API reference guide for AWS Organizations's // API operation DeclineHandshake for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// * HandshakeNotFoundException // We can't find a handshake with the HandshakeId that you specified. // -// * ErrCodeInvalidHandshakeTransitionException "InvalidHandshakeTransitionException" +// * InvalidHandshakeTransitionException // You can't perform the operation on the handshake in its current state. For // example, you can't cancel a handshake that was already accepted or accept // a handshake that was already declined. // -// * ErrCodeHandshakeAlreadyInStateException "HandshakeAlreadyInStateException" +// * HandshakeAlreadyInStateException // The specified handshake is already in the requested state. For example, you // can't accept a handshake that was already accepted. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -2468,11 +2468,11 @@ func (c *Organizations) DeclineHandshakeRequest(input *DeclineHandshakeInput) (r // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -2557,23 +2557,23 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput // See the AWS API reference guide for AWS Organizations's // API operation DeleteOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -2639,15 +2639,15 @@ func (c *Organizations) DeleteOrganizationRequest(input *DeleteOrganizationInput // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeOrganizationNotEmptyException "OrganizationNotEmptyException" +// * OrganizationNotEmptyException // The organization isn't empty. To delete an organization, you must first remove // all accounts except the master account, delete all OUs, and delete all policies. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -2734,23 +2734,23 @@ func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizatio // See the AWS API reference guide for AWS Organizations's // API operation DeleteOrganizationalUnit for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -2816,18 +2816,18 @@ func (c *Organizations) DeleteOrganizationalUnitRequest(input *DeleteOrganizatio // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeOrganizationalUnitNotEmptyException "OrganizationalUnitNotEmptyException" +// * OrganizationalUnitNotEmptyException // The specified OU is not empty. Move all accounts to another root or to other // OUs, remove all child OUs, and try the operation again. // -// * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" +// * OrganizationalUnitNotFoundException // We can't find an OU with the OrganizationalUnitId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -2915,23 +2915,23 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation DeletePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -2997,18 +2997,18 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodePolicyInUseException "PolicyInUseException" +// * PolicyInUseException // The policy is attached to one or more entities. You must detach it from all // roots, OUs, and accounts before performing this operation. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // We can't find a policy with the PolicyId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -3016,7 +3016,7 @@ func (c *Organizations) DeletePolicyRequest(input *DeletePolicyInput) (req *requ // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeletePolicy @@ -3096,24 +3096,24 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req // See the AWS API reference guide for AWS Organizations's // API operation DescribeAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// * AccountNotFoundException // We can't find an AWS account with the AccountId that you specified. Or the // account whose credentials you used to make this request isn't a member of // an organization. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -3179,11 +3179,11 @@ func (c *Organizations) DescribeAccountRequest(input *DescribeAccountInput) (req // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -3268,23 +3268,23 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate // See the AWS API reference guide for AWS Organizations's // API operation DescribeCreateAccountStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeCreateAccountStatusNotFoundException "CreateAccountStatusNotFoundException" +// * CreateAccountStatusNotFoundException // We can't find a create account request with the CreateAccountRequestId that // you specified. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -3350,11 +3350,11 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -3362,7 +3362,7 @@ func (c *Organizations) DescribeCreateAccountStatusRequest(input *DescribeCreate // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeCreateAccountStatus @@ -3450,19 +3450,19 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP // See the AWS API reference guide for AWS Organizations's // API operation DescribeEffectivePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -3559,11 +3559,11 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -3571,16 +3571,16 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // We can't find a root, OU, or account with the TargetId that you specified. // -// * ErrCodeEffectivePolicyNotFoundException "EffectivePolicyNotFoundException" +// * EffectivePolicyNotFoundException // If you ran this action on the master account, this policy type is not enabled. // If you ran the action on a member account, the account doesn't have an effective // policy of this type. Contact the administrator of your organization about // attaching a policy of this type to the account. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -3646,7 +3646,7 @@ func (c *Organizations) DescribeEffectivePolicyRequest(input *DescribeEffectiveP // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribeEffectivePolicy @@ -3732,22 +3732,22 @@ func (c *Organizations) DescribeHandshakeRequest(input *DescribeHandshakeInput) // See the AWS API reference guide for AWS Organizations's // API operation DescribeHandshake for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeHandshakeNotFoundException "HandshakeNotFoundException" +// * HandshakeNotFoundException // We can't find a handshake with the HandshakeId that you specified. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -3813,11 +3813,11 @@ func (c *Organizations) DescribeHandshakeRequest(input *DescribeHandshakeInput) // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -3907,27 +3907,27 @@ func (c *Organizations) DescribeOrganizationRequest(input *DescribeOrganizationI // See the AWS API reference guide for AWS Organizations's // API operation DescribeOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -4012,19 +4012,19 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz // See the AWS API reference guide for AWS Organizations's // API operation DescribeOrganizationalUnit for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -4090,14 +4090,14 @@ func (c *Organizations) DescribeOrganizationalUnitRequest(input *DescribeOrganiz // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" +// * OrganizationalUnitNotFoundException // We can't find an OU with the OrganizationalUnitId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -4182,19 +4182,19 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req * // See the AWS API reference guide for AWS Organizations's // API operation DescribePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -4260,14 +4260,14 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req * // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // We can't find a policy with the PolicyId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -4275,7 +4275,7 @@ func (c *Organizations) DescribePolicyRequest(input *DescribePolicyInput) (req * // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DescribePolicy @@ -4369,23 +4369,23 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation DetachPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -4482,7 +4482,7 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -4548,20 +4548,20 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodePolicyNotAttachedException "PolicyNotAttachedException" +// * PolicyNotAttachedException // The policy isn't attached to the specified target in the specified root. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // We can't find a policy with the PolicyId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // We can't find a root, OU, or account with the TargetId that you specified. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -4569,10 +4569,10 @@ func (c *Organizations) DetachPolicyRequest(input *DetachPolicyInput) (req *requ // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // -// * ErrCodePolicyChangesInProgressException "PolicyChangesInProgressException" +// * PolicyChangesInProgressException // Changes to the effective policy are in progress, and its contents can't be // returned. Try the operation again later. // @@ -4678,23 +4678,23 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // See the AWS API reference guide for AWS Organizations's // API operation DisableAWSServiceAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -4791,7 +4791,7 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -4857,11 +4857,11 @@ func (c *Organizations) DisableAWSServiceAccessRequest(input *DisableAWSServiceA // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -4961,23 +4961,23 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // See the AWS API reference guide for AWS Organizations's // API operation DisablePolicyType for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -5074,7 +5074,7 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -5140,21 +5140,21 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodePolicyTypeNotEnabledException "PolicyTypeNotEnabledException" +// * PolicyTypeNotEnabledException // The specified policy type isn't currently enabled in this root. You can't // attach policies of the specified type to entities in a root until you enable // that type in the root. For more information, see Enabling All Features in // Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) // in the AWS Organizations User Guide. // -// * ErrCodeRootNotFoundException "RootNotFoundException" +// * RootNotFoundException // We can't find a root with the RootId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -5162,10 +5162,10 @@ func (c *Organizations) DisablePolicyTypeRequest(input *DisablePolicyTypeInput) // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // -// * ErrCodePolicyChangesInProgressException "PolicyChangesInProgressException" +// * PolicyChangesInProgressException // Changes to the effective policy are in progress, and its contents can't be // returned. Try the operation again later. // @@ -5264,23 +5264,23 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // See the AWS API reference guide for AWS Organizations's // API operation EnableAWSServiceAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -5377,7 +5377,7 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -5443,11 +5443,11 @@ func (c *Organizations) EnableAWSServiceAccessRequest(input *EnableAWSServiceAcc // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -5559,23 +5559,23 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // See the AWS API reference guide for AWS Organizations's // API operation EnableAllFeatures for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeHandshakeConstraintViolationException "HandshakeConstraintViolationException" +// * HandshakeConstraintViolationException // The requested operation would violate the constraint identified in the reason // code. // @@ -5615,7 +5615,7 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // account that doesn't have a payment instrument, such as a credit card, // associated with it. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -5681,11 +5681,11 @@ func (c *Organizations) EnableAllFeaturesRequest(input *EnableAllFeaturesInput) // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -5781,23 +5781,23 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // See the AWS API reference guide for AWS Organizations's // API operation EnablePolicyType for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -5894,7 +5894,7 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -5960,17 +5960,17 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodePolicyTypeAlreadyEnabledException "PolicyTypeAlreadyEnabledException" +// * PolicyTypeAlreadyEnabledException // The specified policy type is already enabled in the specified root. // -// * ErrCodeRootNotFoundException "RootNotFoundException" +// * RootNotFoundException // We can't find a root with the RootId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -5978,17 +5978,17 @@ func (c *Organizations) EnablePolicyTypeRequest(input *EnablePolicyTypeInput) (r // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodePolicyTypeNotAvailableForOrganizationException "PolicyTypeNotAvailableForOrganizationException" +// * PolicyTypeNotAvailableForOrganizationException // You can't use the specified policy type with the feature set currently enabled // for this organization. For example, you can enable SCPs only after you enable // all features in the organization. For more information, see Enabling and // Disabling a Policy Type on a Root (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // -// * ErrCodePolicyChangesInProgressException "PolicyChangesInProgressException" +// * PolicyChangesInProgressException // Changes to the effective policy are in progress, and its contents can't be // returned. Try the operation again later. // @@ -6084,29 +6084,29 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // See the AWS API reference guide for AWS Organizations's // API operation InviteAccountToOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeAccountOwnerNotVerifiedException "AccountOwnerNotVerifiedException" +// * AccountOwnerNotVerifiedException // You can't invite an existing account to your organization until you verify // that you own the email address associated with the master account. For more // information, see Email Address Verification (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification) // in the AWS Organizations User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeHandshakeConstraintViolationException "HandshakeConstraintViolationException" +// * HandshakeConstraintViolationException // The requested operation would violate the constraint identified in the reason // code. // @@ -6146,14 +6146,14 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // account that doesn't have a payment instrument, such as a credit card, // associated with it. // -// * ErrCodeDuplicateHandshakeException "DuplicateHandshakeException" +// * DuplicateHandshakeException // A handshake with the same action and target already exists. For example, // if you invited an account to join your organization, the invited account // might already have a pending invitation from this organization. If you intend // to resend an invitation to an account, ensure that existing handshakes that // might be considered duplicates are canceled or declined. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -6219,17 +6219,17 @@ func (c *Organizations) InviteAccountToOrganizationRequest(input *InviteAccountT // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeFinalizingOrganizationException "FinalizingOrganizationException" +// * FinalizingOrganizationException // AWS Organizations couldn't perform the operation because your organization // hasn't finished initializing. This can take up to an hour. Try again later. // If after one hour you continue to receive this error, contact AWS Support // (https://console.aws.amazon.com/support/home#/). // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -6342,28 +6342,28 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // See the AWS API reference guide for AWS Organizations's // API operation LeaveOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// * AccountNotFoundException // We can't find an AWS account with the AccountId that you specified. Or the // account whose credentials you used to make this request isn't a member of // an organization. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -6460,7 +6460,7 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -6526,16 +6526,16 @@ func (c *Organizations) LeaveOrganizationRequest(input *LeaveOrganizationInput) // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeMasterCannotLeaveOrganizationException "MasterCannotLeaveOrganizationException" +// * MasterCannotLeaveOrganizationException // You can't remove a master account from an organization. If you want the master // account to become a member account in another organization, you must first // delete the current organization of the master account. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -6634,19 +6634,19 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // See the AWS API reference guide for AWS Organizations's // API operation ListAWSServiceAccessForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -6743,7 +6743,7 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -6809,11 +6809,11 @@ func (c *Organizations) ListAWSServiceAccessForOrganizationRequest(input *ListAW // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -6963,19 +6963,19 @@ func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation ListAccounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -7041,11 +7041,11 @@ func (c *Organizations) ListAccountsRequest(input *ListAccountsInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -7197,19 +7197,19 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen // See the AWS API reference guide for AWS Organizations's // API operation ListAccountsForParent for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -7275,14 +7275,14 @@ func (c *Organizations) ListAccountsForParentRequest(input *ListAccountsForParen // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeParentNotFoundException "ParentNotFoundException" +// * ParentNotFoundException // We can't find a root or OU with the ParentId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -7432,19 +7432,19 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation ListChildren for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -7510,14 +7510,14 @@ func (c *Organizations) ListChildrenRequest(input *ListChildrenInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeParentNotFoundException "ParentNotFoundException" +// * ParentNotFoundException // We can't find a root or OU with the ParentId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -7666,19 +7666,19 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS // See the AWS API reference guide for AWS Organizations's // API operation ListCreateAccountStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -7744,11 +7744,11 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -7756,7 +7756,7 @@ func (c *Organizations) ListCreateAccountStatusRequest(input *ListCreateAccountS // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListCreateAccountStatus @@ -7904,19 +7904,19 @@ func (c *Organizations) ListHandshakesForAccountRequest(input *ListHandshakesFor // See the AWS API reference guide for AWS Organizations's // API operation ListHandshakesForAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -7982,11 +7982,11 @@ func (c *Organizations) ListHandshakesForAccountRequest(input *ListHandshakesFor // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -8141,23 +8141,23 @@ func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshak // See the AWS API reference guide for AWS Organizations's // API operation ListHandshakesForOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -8223,11 +8223,11 @@ func (c *Organizations) ListHandshakesForOrganizationRequest(input *ListHandshak // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -8375,19 +8375,19 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan // See the AWS API reference guide for AWS Organizations's // API operation ListOrganizationalUnitsForParent for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -8453,14 +8453,14 @@ func (c *Organizations) ListOrganizationalUnitsForParentRequest(input *ListOrgan // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeParentNotFoundException "ParentNotFoundException" +// * ParentNotFoundException // We can't find a root or OU with the ParentId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -8612,23 +8612,23 @@ func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *reques // See the AWS API reference guide for AWS Organizations's // API operation ListParents for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeChildNotFoundException "ChildNotFoundException" +// * ChildNotFoundException // We can't find an organizational unit (OU) or AWS account with the ChildId // that you specified. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -8694,11 +8694,11 @@ func (c *Organizations) ListParentsRequest(input *ListParentsInput) (req *reques // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -8846,19 +8846,19 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation ListPolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -8924,11 +8924,11 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -8936,7 +8936,7 @@ func (c *Organizations) ListPoliciesRequest(input *ListPoliciesInput) (req *requ // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPolicies @@ -9081,19 +9081,19 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge // See the AWS API reference guide for AWS Organizations's // API operation ListPoliciesForTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -9159,14 +9159,14 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // We can't find a root, OU, or account with the TargetId that you specified. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -9174,7 +9174,7 @@ func (c *Organizations) ListPoliciesForTargetRequest(input *ListPoliciesForTarge // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListPoliciesForTarget @@ -9323,19 +9323,19 @@ func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Re // See the AWS API reference guide for AWS Organizations's // API operation ListRoots for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -9401,11 +9401,11 @@ func (c *Organizations) ListRootsRequest(input *ListRootsInput) (req *request.Re // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -9550,22 +9550,22 @@ func (c *Organizations) ListTagsForResourceRequest(input *ListTagsForResourceInp // See the AWS API reference guide for AWS Organizations's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // We can't find a root, OU, or account with the TargetId that you specified. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -9631,11 +9631,11 @@ func (c *Organizations) ListTagsForResourceRequest(input *ListTagsForResourceInp // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -9784,19 +9784,19 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI // See the AWS API reference guide for AWS Organizations's // API operation ListTargetsForPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -9862,14 +9862,14 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // We can't find a policy with the PolicyId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -9877,7 +9877,7 @@ func (c *Organizations) ListTargetsForPolicyRequest(input *ListTargetsForPolicyI // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // // See also, https://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/ListTargetsForPolicy @@ -10011,15 +10011,15 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques // See the AWS API reference guide for AWS Organizations's // API operation MoveAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -10085,22 +10085,22 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeSourceParentNotFoundException "SourceParentNotFoundException" +// * SourceParentNotFoundException // We can't find a source root or OU with the ParentId that you specified. // -// * ErrCodeDestinationParentNotFoundException "DestinationParentNotFoundException" +// * DestinationParentNotFoundException // We can't find the destination container (a root or OU) with the ParentId // that you specified. // -// * ErrCodeDuplicateAccountException "DuplicateAccountException" +// * DuplicateAccountException // That account is already present in the specified destination. // -// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// * AccountNotFoundException // We can't find an AWS account with the AccountId that you specified. Or the // account whose credentials you used to make this request isn't a member of // an organization. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -10108,15 +10108,15 @@ func (c *Organizations) MoveAccountRequest(input *MoveAccountInput) (req *reques // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // @@ -10220,28 +10220,28 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // See the AWS API reference guide for AWS Organizations's // API operation RemoveAccountFromOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAccountNotFoundException "AccountNotFoundException" +// * AccountNotFoundException // We can't find an AWS account with the AccountId that you specified. Or the // account whose credentials you used to make this request isn't a member of // an organization. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -10338,7 +10338,7 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -10404,16 +10404,16 @@ func (c *Organizations) RemoveAccountFromOrganizationRequest(input *RemoveAccoun // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeMasterCannotLeaveOrganizationException "MasterCannotLeaveOrganizationException" +// * MasterCannotLeaveOrganizationException // You can't remove a master account from an organization. If you want the master // account to become a member account in another organization, you must first // delete the current organization of the master account. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -10501,26 +10501,26 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques // See the AWS API reference guide for AWS Organizations's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // We can't find a root, OU, or account with the TargetId that you specified. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -10617,7 +10617,7 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -10683,11 +10683,11 @@ func (c *Organizations) TagResourceRequest(input *TagResourceInput) (req *reques // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -10775,26 +10775,26 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re // See the AWS API reference guide for AWS Organizations's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeTargetNotFoundException "TargetNotFoundException" +// * TargetNotFoundException // We can't find a root, OU, or account with the TargetId that you specified. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -10891,7 +10891,7 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -10957,11 +10957,11 @@ func (c *Organizations) UntagResourceRequest(input *UntagResourceInput) (req *re // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -11048,26 +11048,26 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio // See the AWS API reference guide for AWS Organizations's // API operation UpdateOrganizationalUnit for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeDuplicateOrganizationalUnitException "DuplicateOrganizationalUnitException" +// * DuplicateOrganizationalUnitException // An OU with the same name already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -11133,14 +11133,14 @@ func (c *Organizations) UpdateOrganizationalUnitRequest(input *UpdateOrganizatio // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeOrganizationalUnitNotFoundException "OrganizationalUnitNotFoundException" +// * OrganizationalUnitNotFoundException // We can't find an OU with the OrganizationalUnitId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -11227,23 +11227,23 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // See the AWS API reference guide for AWS Organizations's // API operation UpdatePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have permissions to perform the requested operation. The user or // role that is making the request must have at least one IAM permissions policy // attached that grants the required permissions. For more information, see // Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) // in the IAM User Guide. // -// * ErrCodeAWSOrganizationsNotInUseException "AWSOrganizationsNotInUseException" +// * AWSOrganizationsNotInUseException // Your account isn't a member of an organization. To make this request, you // must use the credentials of an account that belongs to an organization. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // Performing this operation violates a minimum or maximum value limit. Examples // include attempting to remove the last service control policy (SCP) from an // OU or root, or attaching too many policies to an account, OU, or root. This @@ -11340,10 +11340,10 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of // policies that you can have in an organization. // -// * ErrCodeDuplicatePolicyException "DuplicatePolicyException" +// * DuplicatePolicyException // A policy with the same name already exists. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The requested operation failed because you provided invalid values for one // or more of the request parameters. This exception includes a reason that // contains additional information about the violated limit: @@ -11409,20 +11409,20 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only // between entities in the same root. // -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// * MalformedPolicyDocumentException // The provided policy document doesn't meet the requirements of the specified // policy type. For example, the syntax might be incorrect. For details about // service control policy syntax, see Service Control Policy Syntax (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) // in the AWS Organizations User Guide. // -// * ErrCodePolicyNotFoundException "PolicyNotFoundException" +// * PolicyNotFoundException // We can't find a policy with the PolicyId that you specified. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // AWS Organizations can't complete your request because of an internal service // error. Try again later. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have sent too many requests in too short a period of time. The limit // helps protect against denial-of-service attacks. Try again later. // @@ -11430,10 +11430,10 @@ func (c *Organizations) UpdatePolicyRequest(input *UpdatePolicyInput) (req *requ // Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) // in the AWS Organizations User Guide. // -// * ErrCodeUnsupportedAPIEndpointException "UnsupportedAPIEndpointException" +// * UnsupportedAPIEndpointException // This action isn't available in the current Region. // -// * ErrCodePolicyChangesInProgressException "PolicyChangesInProgressException" +// * PolicyChangesInProgressException // Changes to the effective policy are in progress, and its contents can't be // returned. Try the operation again later. // @@ -11459,6 +11459,63 @@ func (c *Organizations) UpdatePolicyWithContext(ctx aws.Context, input *UpdatePo return out, req.Send() } +// Your account isn't a member of an organization. To make this request, you +// must use the credentials of an account that belongs to an organization. +type AWSOrganizationsNotInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AWSOrganizationsNotInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AWSOrganizationsNotInUseException) GoString() string { + return s.String() +} + +func newErrorAWSOrganizationsNotInUseException(v protocol.ResponseMetadata) error { + return &AWSOrganizationsNotInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AWSOrganizationsNotInUseException) Code() string { + return "AWSOrganizationsNotInUseException" +} + +// Message returns the exception's message. +func (s AWSOrganizationsNotInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AWSOrganizationsNotInUseException) OrigErr() error { + return nil +} + +func (s AWSOrganizationsNotInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AWSOrganizationsNotInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AWSOrganizationsNotInUseException) RequestID() string { + return s.respMetadata.RequestID +} + type AcceptHandshakeInput struct { _ struct{} `type:"structure"` @@ -11523,6 +11580,126 @@ func (s *AcceptHandshakeOutput) SetHandshake(v *Handshake) *AcceptHandshakeOutpu return s } +// You don't have permissions to perform the requested operation. The user or +// role that is making the request must have at least one IAM permissions policy +// attached that grants the required permissions. For more information, see +// Access Management (https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html) +// in the IAM User Guide. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation that you attempted requires you to have the iam:CreateServiceLinkedRole +// for organizations.amazonaws.com permission so that AWS Organizations can +// create the required service-linked role. You don't have that permission. +type AccessDeniedForDependencyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Reason *string `type:"string" enum:"AccessDeniedForDependencyExceptionReason"` +} + +// String returns the string representation +func (s AccessDeniedForDependencyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedForDependencyException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedForDependencyException(v protocol.ResponseMetadata) error { + return &AccessDeniedForDependencyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedForDependencyException) Code() string { + return "AccessDeniedForDependencyException" +} + +// Message returns the exception's message. +func (s AccessDeniedForDependencyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedForDependencyException) OrigErr() error { + return nil +} + +func (s AccessDeniedForDependencyException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedForDependencyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedForDependencyException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about an AWS account that is a member of an organization. type Account struct { _ struct{} `type:"structure"` @@ -11615,6 +11792,180 @@ func (s *Account) SetStatus(v string) *Account { return s } +// We can't find an AWS account with the AccountId that you specified. Or the +// account whose credentials you used to make this request isn't a member of +// an organization. +type AccountNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccountNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountNotFoundException) GoString() string { + return s.String() +} + +func newErrorAccountNotFoundException(v protocol.ResponseMetadata) error { + return &AccountNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountNotFoundException) Code() string { + return "AccountNotFoundException" +} + +// Message returns the exception's message. +func (s AccountNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountNotFoundException) OrigErr() error { + return nil +} + +func (s AccountNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// You can't invite an existing account to your organization until you verify +// that you own the email address associated with the master account. For more +// information, see Email Address Verification (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_create.html#about-email-verification) +// in the AWS Organizations User Guide. +type AccountOwnerNotVerifiedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccountOwnerNotVerifiedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountOwnerNotVerifiedException) GoString() string { + return s.String() +} + +func newErrorAccountOwnerNotVerifiedException(v protocol.ResponseMetadata) error { + return &AccountOwnerNotVerifiedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountOwnerNotVerifiedException) Code() string { + return "AccountOwnerNotVerifiedException" +} + +// Message returns the exception's message. +func (s AccountOwnerNotVerifiedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountOwnerNotVerifiedException) OrigErr() error { + return nil +} + +func (s AccountOwnerNotVerifiedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountOwnerNotVerifiedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountOwnerNotVerifiedException) RequestID() string { + return s.respMetadata.RequestID +} + +// This account is already a member of an organization. An account can belong +// to only one organization at a time. +type AlreadyInOrganizationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AlreadyInOrganizationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyInOrganizationException) GoString() string { + return s.String() +} + +func newErrorAlreadyInOrganizationException(v protocol.ResponseMetadata) error { + return &AlreadyInOrganizationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyInOrganizationException) Code() string { + return "AlreadyInOrganizationException" +} + +// Message returns the exception's message. +func (s AlreadyInOrganizationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyInOrganizationException) OrigErr() error { + return nil +} + +func (s AlreadyInOrganizationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyInOrganizationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyInOrganizationException) RequestID() string { + return s.respMetadata.RequestID +} + type AttachPolicyInput struct { _ struct{} `type:"structure"` @@ -11808,110 +12159,376 @@ func (s *Child) SetType(v string) *Child { return s } -type CreateAccountInput struct { - _ struct{} `type:"structure"` - - // The friendly name of the member account. - // - // AccountName is a required field - AccountName *string `min:"1" type:"string" required:"true" sensitive:"true"` - - // The email address of the owner to assign to the new member account. This - // email address must not already be associated with another AWS account. You - // must use a valid email address to complete account creation. You can't access - // the root user of the account or remove an account that was created with an - // invalid email address. - // - // Email is a required field - Email *string `min:"6" type:"string" required:"true" sensitive:"true"` - - // If set to ALLOW, the new account enables IAM users to access account billing - // information if they have the required permissions. If set to DENY, only the - // root user of the new account can access account billing information. For - // more information, see Activating Access to the Billing and Cost Management - // Console (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.html#ControllingAccessWebsite-Activate) - // in the AWS Billing and Cost Management User Guide. - // - // If you don't specify this parameter, the value defaults to ALLOW. This value - // allows IAM users and roles with the required permissions to access billing - // information for the new account. - IamUserAccessToBilling *string `type:"string" enum:"IAMUserAccessToBilling"` +// We can't find an organizational unit (OU) or AWS account with the ChildId +// that you specified. +type ChildNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // (Optional) - // - // The name of an IAM role that AWS Organizations automatically preconfigures - // in the new member account. This role trusts the master account, allowing - // users in the master account to assume the role, as permitted by the master - // account administrator. The role has administrator permissions in the new - // member account. - // - // If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole. - // - // For more information about how to use this role to access the member account, - // see Accessing and Administering the Member Accounts in Your Organization - // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html#orgs_manage_accounts_create-cross-account-role) - // in the AWS Organizations User Guide. Also see steps 2 and 3 in Tutorial: - // Delegate Access Across AWS Accounts Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html) - // in the IAM User Guide. - // - // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate - // this parameter. The pattern can include uppercase letters, lowercase letters, - // digits with no spaces, and any of the following characters: =,.@- - RoleName *string `type:"string"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s CreateAccountInput) String() string { +func (s ChildNotFoundException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s CreateAccountInput) GoString() string { +func (s ChildNotFoundException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *CreateAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "CreateAccountInput"} - if s.AccountName == nil { - invalidParams.Add(request.NewErrParamRequired("AccountName")) - } - if s.AccountName != nil && len(*s.AccountName) < 1 { - invalidParams.Add(request.NewErrParamMinLen("AccountName", 1)) - } - if s.Email == nil { - invalidParams.Add(request.NewErrParamRequired("Email")) - } - if s.Email != nil && len(*s.Email) < 6 { - invalidParams.Add(request.NewErrParamMinLen("Email", 6)) +func newErrorChildNotFoundException(v protocol.ResponseMetadata) error { + return &ChildNotFoundException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s ChildNotFoundException) Code() string { + return "ChildNotFoundException" +} + +// Message returns the exception's message. +func (s ChildNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ChildNotFoundException) OrigErr() error { return nil } -// SetAccountName sets the AccountName field's value. -func (s *CreateAccountInput) SetAccountName(v string) *CreateAccountInput { - s.AccountName = &v - return s +func (s ChildNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetEmail sets the Email field's value. -func (s *CreateAccountInput) SetEmail(v string) *CreateAccountInput { - s.Email = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s ChildNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetIamUserAccessToBilling sets the IamUserAccessToBilling field's value. -func (s *CreateAccountInput) SetIamUserAccessToBilling(v string) *CreateAccountInput { - s.IamUserAccessToBilling = &v - return s +// RequestID returns the service's response RequestID for request. +func (s ChildNotFoundException) RequestID() string { + return s.respMetadata.RequestID } -// SetRoleName sets the RoleName field's value. -func (s *CreateAccountInput) SetRoleName(v string) *CreateAccountInput { +// The target of the operation is currently being modified by a different request. +// Try again later. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Performing this operation violates a minimum or maximum value limit. Examples +// include attempting to remove the last service control policy (SCP) from an +// OU or root, or attaching too many policies to an account, OU, or root. This +// exception includes a reason that contains additional information about the +// violated limit. +// +// Some of the reasons in the following list might not be applicable to this +// specific API or operation: +// +// * ACCOUNT_CANNOT_LEAVE_WITHOUT_EULA: You attempted to remove an account +// from the organization that doesn't yet have enough information to exist +// as a standalone account. This account requires you to first agree to the +// AWS Customer Agreement. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * ACCOUNT_CANNOT_LEAVE_WITHOUT_PHONE_VERIFICATION: You attempted to remove +// an account from the organization that doesn't yet have enough information +// to exist as a standalone account. This account requires you to first complete +// phone verification. Follow the steps at To leave an organization when +// all required account information has not yet been provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * ACCOUNT_CREATION_RATE_LIMIT_EXCEEDED: You attempted to exceed the number +// of accounts that you can create in one day. +// +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. If you need more accounts, +// contact AWS Support (https://console.aws.amazon.com/support/home#/) to +// request an increase in your limit. Or the number of invitations that you +// tried to send would cause you to exceed the limit of accounts in your +// organization. Send fewer invitations or contact AWS Support to request +// an increase in the number of accounts. Deleted and closed accounts still +// count toward your limit. If you get receive this exception when running +// a command immediately after creating the organization, wait one hour and +// try again. If after an hour it continues to fail with this error, contact +// AWS Support (https://console.aws.amazon.com/support/home#/). +// +// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of +// handshakes that you can send in one day. +// +// * MASTER_ACCOUNT_ADDRESS_DOES_NOT_MATCH_MARKETPLACE: To create an account +// in this organization, you first must migrate the organization's master +// account to the marketplace that corresponds to the master account's address. +// For example, accounts with India addresses must be associated with the +// AISPL marketplace. All accounts in an organization must be associated +// with the same marketplace. +// +// * MASTER_ACCOUNT_MISSING_CONTACT_INFO: To complete this operation, you +// must first provide contact a valid address and phone number for the master +// account. Then try the operation again. +// +// * MASTER_ACCOUNT_NOT_GOVCLOUD_ENABLED: To complete this operation, the +// master account must have an associated account in the AWS GovCloud (US-West) +// Region. For more information, see AWS Organizations (http://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-organizations.html) +// in the AWS GovCloud User Guide. +// +// * MASTER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To create an organization +// with this master account, you first must associate a valid payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * MAX_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to exceed the +// number of policies of a certain type that can be attached to an entity +// at one time. +// +// * MAX_TAG_LIMIT_EXCEEDED: You have exceeded the number of tags allowed +// on this resource. +// +// * MEMBER_ACCOUNT_PAYMENT_INSTRUMENT_REQUIRED: To complete this operation +// with this member account, you first must associate a valid payment instrument, +// such as a credit card, with the account. Follow the steps at To leave +// an organization when all required account information has not yet been +// provided (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_remove.html#leave-without-all-info) +// in the AWS Organizations User Guide. +// +// * MIN_POLICY_TYPE_ATTACHMENT_LIMIT_EXCEEDED: You attempted to detach a +// policy from an entity, which would cause the entity to have fewer than +// the minimum number of policies of the required type. +// +// * OU_DEPTH_LIMIT_EXCEEDED: You attempted to create an OU tree that is +// too many levels deep. +// +// * ORGANIZATION_NOT_IN_ALL_FEATURES_MODE: You attempted to perform an operation +// that requires the organization to be configured to support all features. +// An organization that supports only consolidated billing features can't +// perform this operation. +// +// * OU_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the number of OUs +// that you can have in an organization. +// +// * POLICY_NUMBER_LIMIT_EXCEEDED. You attempted to exceed the number of +// policies that you can have in an organization. +type ConstraintViolationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Reason *string `type:"string" enum:"ConstraintViolationExceptionReason"` +} + +// String returns the string representation +func (s ConstraintViolationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConstraintViolationException) GoString() string { + return s.String() +} + +func newErrorConstraintViolationException(v protocol.ResponseMetadata) error { + return &ConstraintViolationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConstraintViolationException) Code() string { + return "ConstraintViolationException" +} + +// Message returns the exception's message. +func (s ConstraintViolationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConstraintViolationException) OrigErr() error { + return nil +} + +func (s ConstraintViolationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConstraintViolationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConstraintViolationException) RequestID() string { + return s.respMetadata.RequestID +} + +type CreateAccountInput struct { + _ struct{} `type:"structure"` + + // The friendly name of the member account. + // + // AccountName is a required field + AccountName *string `min:"1" type:"string" required:"true" sensitive:"true"` + + // The email address of the owner to assign to the new member account. This + // email address must not already be associated with another AWS account. You + // must use a valid email address to complete account creation. You can't access + // the root user of the account or remove an account that was created with an + // invalid email address. + // + // Email is a required field + Email *string `min:"6" type:"string" required:"true" sensitive:"true"` + + // If set to ALLOW, the new account enables IAM users to access account billing + // information if they have the required permissions. If set to DENY, only the + // root user of the new account can access account billing information. For + // more information, see Activating Access to the Billing and Cost Management + // Console (https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/grantaccess.html#ControllingAccessWebsite-Activate) + // in the AWS Billing and Cost Management User Guide. + // + // If you don't specify this parameter, the value defaults to ALLOW. This value + // allows IAM users and roles with the required permissions to access billing + // information for the new account. + IamUserAccessToBilling *string `type:"string" enum:"IAMUserAccessToBilling"` + + // (Optional) + // + // The name of an IAM role that AWS Organizations automatically preconfigures + // in the new member account. This role trusts the master account, allowing + // users in the master account to assume the role, as permitted by the master + // account administrator. The role has administrator permissions in the new + // member account. + // + // If you don't specify this parameter, the role name defaults to OrganizationAccountAccessRole. + // + // For more information about how to use this role to access the member account, + // see Accessing and Administering the Member Accounts in Your Organization + // (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts_access.html#orgs_manage_accounts_create-cross-account-role) + // in the AWS Organizations User Guide. Also see steps 2 and 3 in Tutorial: + // Delegate Access Across AWS Accounts Using IAM Roles (https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-with-roles.html) + // in the IAM User Guide. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter. The pattern can include uppercase letters, lowercase letters, + // digits with no spaces, and any of the following characters: =,.@- + RoleName *string `type:"string"` +} + +// String returns the string representation +func (s CreateAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *CreateAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "CreateAccountInput"} + if s.AccountName == nil { + invalidParams.Add(request.NewErrParamRequired("AccountName")) + } + if s.AccountName != nil && len(*s.AccountName) < 1 { + invalidParams.Add(request.NewErrParamMinLen("AccountName", 1)) + } + if s.Email == nil { + invalidParams.Add(request.NewErrParamRequired("Email")) + } + if s.Email != nil && len(*s.Email) < 6 { + invalidParams.Add(request.NewErrParamMinLen("Email", 6)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetAccountName sets the AccountName field's value. +func (s *CreateAccountInput) SetAccountName(v string) *CreateAccountInput { + s.AccountName = &v + return s +} + +// SetEmail sets the Email field's value. +func (s *CreateAccountInput) SetEmail(v string) *CreateAccountInput { + s.Email = &v + return s +} + +// SetIamUserAccessToBilling sets the IamUserAccessToBilling field's value. +func (s *CreateAccountInput) SetIamUserAccessToBilling(v string) *CreateAccountInput { + s.IamUserAccessToBilling = &v + return s +} + +// SetRoleName sets the RoleName field's value. +func (s *CreateAccountInput) SetRoleName(v string) *CreateAccountInput { s.RoleName = &v return s } @@ -12063,6 +12680,63 @@ func (s *CreateAccountStatus) SetState(v string) *CreateAccountStatus { return s } +// We can't find a create account request with the CreateAccountRequestId that +// you specified. +type CreateAccountStatusNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CreateAccountStatusNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CreateAccountStatusNotFoundException) GoString() string { + return s.String() +} + +func newErrorCreateAccountStatusNotFoundException(v protocol.ResponseMetadata) error { + return &CreateAccountStatusNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CreateAccountStatusNotFoundException) Code() string { + return "CreateAccountStatusNotFoundException" +} + +// Message returns the exception's message. +func (s CreateAccountStatusNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CreateAccountStatusNotFoundException) OrigErr() error { + return nil +} + +func (s CreateAccountStatusNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CreateAccountStatusNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CreateAccountStatusNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateGovCloudAccountInput struct { _ struct{} `type:"structure"` @@ -13113,6 +13787,63 @@ func (s *DescribePolicyOutput) SetPolicy(v *Policy) *DescribePolicyOutput { return s } +// We can't find the destination container (a root or OU) with the ParentId +// that you specified. +type DestinationParentNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DestinationParentNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DestinationParentNotFoundException) GoString() string { + return s.String() +} + +func newErrorDestinationParentNotFoundException(v protocol.ResponseMetadata) error { + return &DestinationParentNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DestinationParentNotFoundException) Code() string { + return "DestinationParentNotFoundException" +} + +// Message returns the exception's message. +func (s DestinationParentNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DestinationParentNotFoundException) OrigErr() error { + return nil +} + +func (s DestinationParentNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DestinationParentNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DestinationParentNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type DetachPolicyInput struct { _ struct{} `type:"structure"` @@ -13334,38 +14065,322 @@ func (s *DisablePolicyTypeOutput) SetRoot(v *Root) *DisablePolicyTypeOutput { return s } -// Contains rules to be applied to the affected accounts. The effective policy -// is the aggregation of any policies the account inherits, plus any policy -// directly attached to the account. -type EffectivePolicy struct { - _ struct{} `type:"structure"` - - // The time of the last update to this policy. - LastUpdatedTimestamp *time.Time `type:"timestamp"` - - // The text content of the policy. - PolicyContent *string `min:"1" type:"string"` - - // The policy type. - PolicyType *string `type:"string" enum:"EffectivePolicyType"` +// That account is already present in the specified destination. +type DuplicateAccountException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The account ID of the policy target. - TargetId *string `type:"string"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s EffectivePolicy) String() string { +func (s DuplicateAccountException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s EffectivePolicy) GoString() string { +func (s DuplicateAccountException) GoString() string { return s.String() } -// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. -func (s *EffectivePolicy) SetLastUpdatedTimestamp(v time.Time) *EffectivePolicy { - s.LastUpdatedTimestamp = &v +func newErrorDuplicateAccountException(v protocol.ResponseMetadata) error { + return &DuplicateAccountException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateAccountException) Code() string { + return "DuplicateAccountException" +} + +// Message returns the exception's message. +func (s DuplicateAccountException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateAccountException) OrigErr() error { + return nil +} + +func (s DuplicateAccountException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateAccountException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateAccountException) RequestID() string { + return s.respMetadata.RequestID +} + +// A handshake with the same action and target already exists. For example, +// if you invited an account to join your organization, the invited account +// might already have a pending invitation from this organization. If you intend +// to resend an invitation to an account, ensure that existing handshakes that +// might be considered duplicates are canceled or declined. +type DuplicateHandshakeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateHandshakeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateHandshakeException) GoString() string { + return s.String() +} + +func newErrorDuplicateHandshakeException(v protocol.ResponseMetadata) error { + return &DuplicateHandshakeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateHandshakeException) Code() string { + return "DuplicateHandshakeException" +} + +// Message returns the exception's message. +func (s DuplicateHandshakeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateHandshakeException) OrigErr() error { + return nil +} + +func (s DuplicateHandshakeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateHandshakeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateHandshakeException) RequestID() string { + return s.respMetadata.RequestID +} + +// An OU with the same name already exists. +type DuplicateOrganizationalUnitException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateOrganizationalUnitException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateOrganizationalUnitException) GoString() string { + return s.String() +} + +func newErrorDuplicateOrganizationalUnitException(v protocol.ResponseMetadata) error { + return &DuplicateOrganizationalUnitException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateOrganizationalUnitException) Code() string { + return "DuplicateOrganizationalUnitException" +} + +// Message returns the exception's message. +func (s DuplicateOrganizationalUnitException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateOrganizationalUnitException) OrigErr() error { + return nil +} + +func (s DuplicateOrganizationalUnitException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateOrganizationalUnitException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateOrganizationalUnitException) RequestID() string { + return s.respMetadata.RequestID +} + +// The selected policy is already attached to the specified target. +type DuplicatePolicyAttachmentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicatePolicyAttachmentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicatePolicyAttachmentException) GoString() string { + return s.String() +} + +func newErrorDuplicatePolicyAttachmentException(v protocol.ResponseMetadata) error { + return &DuplicatePolicyAttachmentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicatePolicyAttachmentException) Code() string { + return "DuplicatePolicyAttachmentException" +} + +// Message returns the exception's message. +func (s DuplicatePolicyAttachmentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicatePolicyAttachmentException) OrigErr() error { + return nil +} + +func (s DuplicatePolicyAttachmentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicatePolicyAttachmentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicatePolicyAttachmentException) RequestID() string { + return s.respMetadata.RequestID +} + +// A policy with the same name already exists. +type DuplicatePolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicatePolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicatePolicyException) GoString() string { + return s.String() +} + +func newErrorDuplicatePolicyException(v protocol.ResponseMetadata) error { + return &DuplicatePolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicatePolicyException) Code() string { + return "DuplicatePolicyException" +} + +// Message returns the exception's message. +func (s DuplicatePolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicatePolicyException) OrigErr() error { + return nil +} + +func (s DuplicatePolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicatePolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicatePolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// Contains rules to be applied to the affected accounts. The effective policy +// is the aggregation of any policies the account inherits, plus any policy +// directly attached to the account. +type EffectivePolicy struct { + _ struct{} `type:"structure"` + + // The time of the last update to this policy. + LastUpdatedTimestamp *time.Time `type:"timestamp"` + + // The text content of the policy. + PolicyContent *string `min:"1" type:"string"` + + // The policy type. + PolicyType *string `type:"string" enum:"EffectivePolicyType"` + + // The account ID of the policy target. + TargetId *string `type:"string"` +} + +// String returns the string representation +func (s EffectivePolicy) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EffectivePolicy) GoString() string { + return s.String() +} + +// SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. +func (s *EffectivePolicy) SetLastUpdatedTimestamp(v time.Time) *EffectivePolicy { + s.LastUpdatedTimestamp = &v return s } @@ -13387,6 +14402,65 @@ func (s *EffectivePolicy) SetTargetId(v string) *EffectivePolicy { return s } +// If you ran this action on the master account, this policy type is not enabled. +// If you ran the action on a member account, the account doesn't have an effective +// policy of this type. Contact the administrator of your organization about +// attaching a policy of this type to the account. +type EffectivePolicyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EffectivePolicyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EffectivePolicyNotFoundException) GoString() string { + return s.String() +} + +func newErrorEffectivePolicyNotFoundException(v protocol.ResponseMetadata) error { + return &EffectivePolicyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EffectivePolicyNotFoundException) Code() string { + return "EffectivePolicyNotFoundException" +} + +// Message returns the exception's message. +func (s EffectivePolicyNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EffectivePolicyNotFoundException) OrigErr() error { + return nil +} + +func (s EffectivePolicyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EffectivePolicyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EffectivePolicyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type EnableAWSServiceAccessInput struct { _ struct{} `type:"structure"` @@ -13597,6 +14671,65 @@ func (s *EnabledServicePrincipal) SetServicePrincipal(v string) *EnabledServiceP return s } +// AWS Organizations couldn't perform the operation because your organization +// hasn't finished initializing. This can take up to an hour. Try again later. +// If after one hour you continue to receive this error, contact AWS Support +// (https://console.aws.amazon.com/support/home#/). +type FinalizingOrganizationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FinalizingOrganizationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FinalizingOrganizationException) GoString() string { + return s.String() +} + +func newErrorFinalizingOrganizationException(v protocol.ResponseMetadata) error { + return &FinalizingOrganizationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FinalizingOrganizationException) Code() string { + return "FinalizingOrganizationException" +} + +// Message returns the exception's message. +func (s FinalizingOrganizationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FinalizingOrganizationException) OrigErr() error { + return nil +} + +func (s FinalizingOrganizationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FinalizingOrganizationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FinalizingOrganizationException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information that must be exchanged to securely establish a relationship // between two accounts (an originator and a recipient). For example, assume // that a master account (the originator) invites another account (the recipient) @@ -13739,58 +14872,266 @@ func (s *Handshake) SetState(v string) *Handshake { return s } -// Specifies the criteria that are used to select the handshakes for the operation. -type HandshakeFilter struct { - _ struct{} `type:"structure"` - - // Specifies the type of handshake action. - // - // If you specify ActionType, you cannot also specify ParentHandshakeId. - ActionType *string `type:"string" enum:"ActionType"` +// The specified handshake is already in the requested state. For example, you +// can't accept a handshake that was already accepted. +type HandshakeAlreadyInStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // Specifies the parent handshake. Only used for handshake types that are a - // child of another type. - // - // If you specify ParentHandshakeId, you cannot also specify ActionType. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string - // requires "h-" followed by from 8 to 32 lower-case letters or digits. - ParentHandshakeId *string `type:"string"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s HandshakeFilter) String() string { +func (s HandshakeAlreadyInStateException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s HandshakeFilter) GoString() string { +func (s HandshakeAlreadyInStateException) GoString() string { return s.String() } -// SetActionType sets the ActionType field's value. -func (s *HandshakeFilter) SetActionType(v string) *HandshakeFilter { - s.ActionType = &v - return s +func newErrorHandshakeAlreadyInStateException(v protocol.ResponseMetadata) error { + return &HandshakeAlreadyInStateException{ + respMetadata: v, + } } -// SetParentHandshakeId sets the ParentHandshakeId field's value. -func (s *HandshakeFilter) SetParentHandshakeId(v string) *HandshakeFilter { - s.ParentHandshakeId = &v - return s +// Code returns the exception type name. +func (s HandshakeAlreadyInStateException) Code() string { + return "HandshakeAlreadyInStateException" } -// Identifies a participant in a handshake. -type HandshakeParty struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s HandshakeAlreadyInStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The unique identifier (ID) for the party. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string - // requires "h-" followed by from 8 to 32 lower-case letters or digits. - // - // Id is a required field - Id *string `min:"1" type:"string" required:"true" sensitive:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HandshakeAlreadyInStateException) OrigErr() error { + return nil +} + +func (s HandshakeAlreadyInStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HandshakeAlreadyInStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HandshakeAlreadyInStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation would violate the constraint identified in the reason +// code. +// +// Some of the reasons in the following list might not be applicable to this +// specific API or operation: +// +// * ACCOUNT_NUMBER_LIMIT_EXCEEDED: You attempted to exceed the limit on +// the number of accounts in an organization. Note that deleted and closed +// accounts still count toward your limit. If you get this exception immediately +// after creating the organization, wait one hour and try again. If after +// an hour it continues to fail with this error, contact AWS Support (https://console.aws.amazon.com/support/home#/). +// +// * ALREADY_IN_AN_ORGANIZATION: The handshake request is invalid because +// the invited account is already a member of an organization. +// +// * HANDSHAKE_RATE_LIMIT_EXCEEDED: You attempted to exceed the number of +// handshakes that you can send in one day. +// +// * INVITE_DISABLED_DURING_ENABLE_ALL_FEATURES: You can't issue new invitations +// to join an organization while it's in the process of enabling all features. +// You can resume inviting accounts after you finalize the process when all +// accounts have agreed to the change. +// +// * ORGANIZATION_ALREADY_HAS_ALL_FEATURES: The handshake request is invalid +// because the organization has already enabled all features. +// +// * ORGANIZATION_FROM_DIFFERENT_SELLER_OF_RECORD: The request failed because +// the account is from a different marketplace than the accounts in the organization. +// For example, accounts with India addresses must be associated with the +// AISPL marketplace. All accounts in an organization must be from the same +// marketplace. +// +// * ORGANIZATION_MEMBERSHIP_CHANGE_RATE_LIMIT_EXCEEDED: You attempted to +// change the membership of an account too quickly after its previous change. +// +// * PAYMENT_INSTRUMENT_REQUIRED: You can't complete the operation with an +// account that doesn't have a payment instrument, such as a credit card, +// associated with it. +type HandshakeConstraintViolationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Reason *string `type:"string" enum:"HandshakeConstraintViolationExceptionReason"` +} + +// String returns the string representation +func (s HandshakeConstraintViolationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HandshakeConstraintViolationException) GoString() string { + return s.String() +} + +func newErrorHandshakeConstraintViolationException(v protocol.ResponseMetadata) error { + return &HandshakeConstraintViolationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HandshakeConstraintViolationException) Code() string { + return "HandshakeConstraintViolationException" +} + +// Message returns the exception's message. +func (s HandshakeConstraintViolationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HandshakeConstraintViolationException) OrigErr() error { + return nil +} + +func (s HandshakeConstraintViolationException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HandshakeConstraintViolationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HandshakeConstraintViolationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Specifies the criteria that are used to select the handshakes for the operation. +type HandshakeFilter struct { + _ struct{} `type:"structure"` + + // Specifies the type of handshake action. + // + // If you specify ActionType, you cannot also specify ParentHandshakeId. + ActionType *string `type:"string" enum:"ActionType"` + + // Specifies the parent handshake. Only used for handshake types that are a + // child of another type. + // + // If you specify ParentHandshakeId, you cannot also specify ActionType. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + ParentHandshakeId *string `type:"string"` +} + +// String returns the string representation +func (s HandshakeFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HandshakeFilter) GoString() string { + return s.String() +} + +// SetActionType sets the ActionType field's value. +func (s *HandshakeFilter) SetActionType(v string) *HandshakeFilter { + s.ActionType = &v + return s +} + +// SetParentHandshakeId sets the ParentHandshakeId field's value. +func (s *HandshakeFilter) SetParentHandshakeId(v string) *HandshakeFilter { + s.ParentHandshakeId = &v + return s +} + +// We can't find a handshake with the HandshakeId that you specified. +type HandshakeNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s HandshakeNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HandshakeNotFoundException) GoString() string { + return s.String() +} + +func newErrorHandshakeNotFoundException(v protocol.ResponseMetadata) error { + return &HandshakeNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HandshakeNotFoundException) Code() string { + return "HandshakeNotFoundException" +} + +// Message returns the exception's message. +func (s HandshakeNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HandshakeNotFoundException) OrigErr() error { + return nil +} + +func (s HandshakeNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HandshakeNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HandshakeNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// Identifies a participant in a handshake. +type HandshakeParty struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) for the party. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for handshake ID string + // requires "h-" followed by from 8 to 32 lower-case letters or digits. + // + // Id is a required field + Id *string `min:"1" type:"string" required:"true" sensitive:"true"` // The type of party. // @@ -13899,6 +15240,185 @@ func (s *HandshakeResource) SetValue(v string) *HandshakeResource { return s } +// You can't perform the operation on the handshake in its current state. For +// example, you can't cancel a handshake that was already accepted or accept +// a handshake that was already declined. +type InvalidHandshakeTransitionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidHandshakeTransitionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidHandshakeTransitionException) GoString() string { + return s.String() +} + +func newErrorInvalidHandshakeTransitionException(v protocol.ResponseMetadata) error { + return &InvalidHandshakeTransitionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidHandshakeTransitionException) Code() string { + return "InvalidHandshakeTransitionException" +} + +// Message returns the exception's message. +func (s InvalidHandshakeTransitionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidHandshakeTransitionException) OrigErr() error { + return nil +} + +func (s InvalidHandshakeTransitionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidHandshakeTransitionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidHandshakeTransitionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation failed because you provided invalid values for one +// or more of the request parameters. This exception includes a reason that +// contains additional information about the violated limit: +// +// Some of the reasons in the following list might not be applicable to this +// specific API or operation: +// +// * IMMUTABLE_POLICY: You specified a policy that is managed by AWS and +// can't be modified. +// +// * INPUT_REQUIRED: You must include a value for all required parameters. +// +// * INVALID_ENUM: You specified an invalid value. +// +// * INVALID_ENUM_POLICY_TYPE: You specified an invalid policy type. +// +// * INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid +// characters. +// +// * INVALID_LIST_MEMBER: You provided a list to a parameter that contains +// at least one invalid value. +// +// * INVALID_PAGINATION_TOKEN: Get the value for the NextToken parameter +// from the response to a previous call of the operation. +// +// * INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account, +// organization, or email) as a party. +// +// * INVALID_PATTERN: You provided a value that doesn't match the required +// pattern. +// +// * INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't +// match the required pattern. +// +// * INVALID_ROLE_NAME: You provided a role name that isn't valid. A role +// name can't begin with the reserved prefix AWSServiceRoleFor. +// +// * INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource +// Name (ARN) for the organization. +// +// * INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID. +// +// * INVALID_SYSTEM_TAGS_PARAMETER: You specified a tag key that is a system +// tag. You can’t add, edit, or delete system tag keys because they're +// reserved for AWS use. System tags don’t count against your tags per +// resource limit. +// +// * MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter +// for the operation. +// +// * MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer +// than allowed. +// +// * MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger +// value than allowed. +// +// * MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter +// than allowed. +// +// * MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller +// value than allowed. +// +// * MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only +// between entities in the same root. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Reason *string `type:"string" enum:"InvalidInputExceptionReason"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + type InviteAccountToOrganizationInput struct { _ struct{} `type:"structure"` @@ -15526,67 +17046,184 @@ func (s *ListTargetsForPolicyOutput) SetTargets(v []*PolicyTargetSummary) *ListT return s } -type MoveAccountInput struct { - _ struct{} `type:"structure"` - - // The unique identifier (ID) of the account that you want to move. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string - // requires exactly 12 digits. - // - // AccountId is a required field - AccountId *string `type:"string" required:"true"` - - // The unique identifier (ID) of the root or organizational unit that you want - // to move the account to. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string - // requires one of the following: - // - // * Root - A string that begins with "r-" followed by from 4 to 32 lowercase - // letters or digits. - // - // * Organizational unit (OU) - A string that begins with "ou-" followed - // by from 4 to 32 lowercase letters or digits (the ID of the root that the - // OU is in). This string is followed by a second "-" dash and from 8 to - // 32 additional lowercase letters or digits. - // - // DestinationParentId is a required field - DestinationParentId *string `type:"string" required:"true"` +// The provided policy document doesn't meet the requirements of the specified +// policy type. For example, the syntax might be incorrect. For details about +// service control policy syntax, see Service Control Policy Syntax (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_scp-syntax.html) +// in the AWS Organizations User Guide. +type MalformedPolicyDocumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The unique identifier (ID) of the root or organizational unit that you want - // to move the account from. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string - // requires one of the following: - // - // * Root - A string that begins with "r-" followed by from 4 to 32 lowercase - // letters or digits. - // - // * Organizational unit (OU) - A string that begins with "ou-" followed - // by from 4 to 32 lowercase letters or digits (the ID of the root that the - // OU is in). This string is followed by a second "-" dash and from 8 to - // 32 additional lowercase letters or digits. - // - // SourceParentId is a required field - SourceParentId *string `type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s MoveAccountInput) String() string { +func (s MalformedPolicyDocumentException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MoveAccountInput) GoString() string { +func (s MalformedPolicyDocumentException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *MoveAccountInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "MoveAccountInput"} - if s.AccountId == nil { - invalidParams.Add(request.NewErrParamRequired("AccountId")) +func newErrorMalformedPolicyDocumentException(v protocol.ResponseMetadata) error { + return &MalformedPolicyDocumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MalformedPolicyDocumentException) Code() string { + return "MalformedPolicyDocumentException" +} + +// Message returns the exception's message. +func (s MalformedPolicyDocumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedPolicyDocumentException) OrigErr() error { + return nil +} + +func (s MalformedPolicyDocumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MalformedPolicyDocumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MalformedPolicyDocumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// You can't remove a master account from an organization. If you want the master +// account to become a member account in another organization, you must first +// delete the current organization of the master account. +type MasterCannotLeaveOrganizationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MasterCannotLeaveOrganizationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MasterCannotLeaveOrganizationException) GoString() string { + return s.String() +} + +func newErrorMasterCannotLeaveOrganizationException(v protocol.ResponseMetadata) error { + return &MasterCannotLeaveOrganizationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MasterCannotLeaveOrganizationException) Code() string { + return "MasterCannotLeaveOrganizationException" +} + +// Message returns the exception's message. +func (s MasterCannotLeaveOrganizationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MasterCannotLeaveOrganizationException) OrigErr() error { + return nil +} + +func (s MasterCannotLeaveOrganizationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MasterCannotLeaveOrganizationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MasterCannotLeaveOrganizationException) RequestID() string { + return s.respMetadata.RequestID +} + +type MoveAccountInput struct { + _ struct{} `type:"structure"` + + // The unique identifier (ID) of the account that you want to move. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for an account ID string + // requires exactly 12 digits. + // + // AccountId is a required field + AccountId *string `type:"string" required:"true"` + + // The unique identifier (ID) of the root or organizational unit that you want + // to move the account to. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root - A string that begins with "r-" followed by from 4 to 32 lowercase + // letters or digits. + // + // * Organizational unit (OU) - A string that begins with "ou-" followed + // by from 4 to 32 lowercase letters or digits (the ID of the root that the + // OU is in). This string is followed by a second "-" dash and from 8 to + // 32 additional lowercase letters or digits. + // + // DestinationParentId is a required field + DestinationParentId *string `type:"string" required:"true"` + + // The unique identifier (ID) of the root or organizational unit that you want + // to move the account from. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID string + // requires one of the following: + // + // * Root - A string that begins with "r-" followed by from 4 to 32 lowercase + // letters or digits. + // + // * Organizational unit (OU) - A string that begins with "ou-" followed + // by from 4 to 32 lowercase letters or digits (the ID of the root that the + // OU is in). This string is followed by a second "-" dash and from 8 to + // 32 additional lowercase letters or digits. + // + // SourceParentId is a required field + SourceParentId *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s MoveAccountInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MoveAccountInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *MoveAccountInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "MoveAccountInput"} + if s.AccountId == nil { + invalidParams.Add(request.NewErrParamRequired("AccountId")) } if s.DestinationParentId == nil { invalidParams.Add(request.NewErrParamRequired("DestinationParentId")) @@ -15742,6 +17379,63 @@ func (s *Organization) SetMasterAccountId(v string) *Organization { return s } +// The organization isn't empty. To delete an organization, you must first remove +// all accounts except the master account, delete all OUs, and delete all policies. +type OrganizationNotEmptyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OrganizationNotEmptyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationNotEmptyException) GoString() string { + return s.String() +} + +func newErrorOrganizationNotEmptyException(v protocol.ResponseMetadata) error { + return &OrganizationNotEmptyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationNotEmptyException) Code() string { + return "OrganizationNotEmptyException" +} + +// Message returns the exception's message. +func (s OrganizationNotEmptyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationNotEmptyException) OrigErr() error { + return nil +} + +func (s OrganizationNotEmptyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationNotEmptyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationNotEmptyException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about an organizational unit (OU). An OU is a container // of AWS accounts within a root of an organization. Policies that are attached // to an OU apply to all accounts contained in that OU and in any child OUs. @@ -15799,6 +17493,119 @@ func (s *OrganizationalUnit) SetName(v string) *OrganizationalUnit { return s } +// The specified OU is not empty. Move all accounts to another root or to other +// OUs, remove all child OUs, and try the operation again. +type OrganizationalUnitNotEmptyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OrganizationalUnitNotEmptyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationalUnitNotEmptyException) GoString() string { + return s.String() +} + +func newErrorOrganizationalUnitNotEmptyException(v protocol.ResponseMetadata) error { + return &OrganizationalUnitNotEmptyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationalUnitNotEmptyException) Code() string { + return "OrganizationalUnitNotEmptyException" +} + +// Message returns the exception's message. +func (s OrganizationalUnitNotEmptyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationalUnitNotEmptyException) OrigErr() error { + return nil +} + +func (s OrganizationalUnitNotEmptyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationalUnitNotEmptyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationalUnitNotEmptyException) RequestID() string { + return s.respMetadata.RequestID +} + +// We can't find an OU with the OrganizationalUnitId that you specified. +type OrganizationalUnitNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OrganizationalUnitNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationalUnitNotFoundException) GoString() string { + return s.String() +} + +func newErrorOrganizationalUnitNotFoundException(v protocol.ResponseMetadata) error { + return &OrganizationalUnitNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationalUnitNotFoundException) Code() string { + return "OrganizationalUnitNotFoundException" +} + +// Message returns the exception's message. +func (s OrganizationalUnitNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationalUnitNotFoundException) OrigErr() error { + return nil +} + +func (s OrganizationalUnitNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationalUnitNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationalUnitNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about either a root or an organizational unit (OU) that // can contain OUs or accounts in an organization. type Parent struct { @@ -15844,6 +17651,62 @@ func (s *Parent) SetType(v string) *Parent { return s } +// We can't find a root or OU with the ParentId that you specified. +type ParentNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ParentNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParentNotFoundException) GoString() string { + return s.String() +} + +func newErrorParentNotFoundException(v protocol.ResponseMetadata) error { + return &ParentNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParentNotFoundException) Code() string { + return "ParentNotFoundException" +} + +// Message returns the exception's message. +func (s ParentNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParentNotFoundException) OrigErr() error { + return nil +} + +func (s ParentNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParentNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParentNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains rules to be applied to the affected accounts. Policies can be attached // directly to accounts, or to roots and OUs to affect all accounts in those // hierarchies. @@ -15879,6 +17742,232 @@ func (s *Policy) SetPolicySummary(v *PolicySummary) *Policy { return s } +// Changes to the effective policy are in progress, and its contents can't be +// returned. Try the operation again later. +type PolicyChangesInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PolicyChangesInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyChangesInProgressException) GoString() string { + return s.String() +} + +func newErrorPolicyChangesInProgressException(v protocol.ResponseMetadata) error { + return &PolicyChangesInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyChangesInProgressException) Code() string { + return "PolicyChangesInProgressException" +} + +// Message returns the exception's message. +func (s PolicyChangesInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyChangesInProgressException) OrigErr() error { + return nil +} + +func (s PolicyChangesInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyChangesInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyChangesInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + +// The policy is attached to one or more entities. You must detach it from all +// roots, OUs, and accounts before performing this operation. +type PolicyInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PolicyInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyInUseException) GoString() string { + return s.String() +} + +func newErrorPolicyInUseException(v protocol.ResponseMetadata) error { + return &PolicyInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyInUseException) Code() string { + return "PolicyInUseException" +} + +// Message returns the exception's message. +func (s PolicyInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyInUseException) OrigErr() error { + return nil +} + +func (s PolicyInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The policy isn't attached to the specified target in the specified root. +type PolicyNotAttachedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PolicyNotAttachedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyNotAttachedException) GoString() string { + return s.String() +} + +func newErrorPolicyNotAttachedException(v protocol.ResponseMetadata) error { + return &PolicyNotAttachedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyNotAttachedException) Code() string { + return "PolicyNotAttachedException" +} + +// Message returns the exception's message. +func (s PolicyNotAttachedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyNotAttachedException) OrigErr() error { + return nil +} + +func (s PolicyNotAttachedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyNotAttachedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyNotAttachedException) RequestID() string { + return s.respMetadata.RequestID +} + +// We can't find a policy with the PolicyId that you specified. +type PolicyNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PolicyNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyNotFoundException) GoString() string { + return s.String() +} + +func newErrorPolicyNotFoundException(v protocol.ResponseMetadata) error { + return &PolicyNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyNotFoundException) Code() string { + return "PolicyNotFoundException" +} + +// Message returns the exception's message. +func (s PolicyNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyNotFoundException) OrigErr() error { + return nil +} + +func (s PolicyNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains information about a policy, but does not include the content. To // see the content of a policy, see DescribePolicy. type PolicySummary struct { @@ -15938,101 +18027,277 @@ func (s *PolicySummary) SetAwsManaged(v bool) *PolicySummary { return s } -// SetDescription sets the Description field's value. -func (s *PolicySummary) SetDescription(v string) *PolicySummary { - s.Description = &v - return s +// SetDescription sets the Description field's value. +func (s *PolicySummary) SetDescription(v string) *PolicySummary { + s.Description = &v + return s +} + +// SetId sets the Id field's value. +func (s *PolicySummary) SetId(v string) *PolicySummary { + s.Id = &v + return s +} + +// SetName sets the Name field's value. +func (s *PolicySummary) SetName(v string) *PolicySummary { + s.Name = &v + return s +} + +// SetType sets the Type field's value. +func (s *PolicySummary) SetType(v string) *PolicySummary { + s.Type = &v + return s +} + +// Contains information about a root, OU, or account that a policy is attached +// to. +type PolicyTargetSummary struct { + _ struct{} `type:"structure"` + + // The Amazon Resource Name (ARN) of the policy target. + // + // For more information about ARNs in Organizations, see ARN Formats Supported + // by Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) + // in the AWS Organizations User Guide. + Arn *string `type:"string"` + + // The friendly name of the policy target. + // + // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate + // this parameter is a string of any of the characters in the ASCII character + // range. + Name *string `min:"1" type:"string"` + + // The unique identifier (ID) of the policy target. + // + // The regex pattern (http://wikipedia.org/wiki/regex) for a target ID string + // requires one of the following: + // + // * Root: A string that begins with "r-" followed by from 4 to 32 lower-case + // letters or digits. + // + // * Account: A string that consists of exactly 12 digits. + // + // * Organizational unit (OU): A string that begins with "ou-" followed by + // from 4 to 32 lower-case letters or digits (the ID of the root that the + // OU is in). This string is followed by a second "-" dash and from 8 to + // 32 additional lower-case letters or digits. + TargetId *string `type:"string"` + + // The type of the policy target. + Type *string `type:"string" enum:"TargetType"` +} + +// String returns the string representation +func (s PolicyTargetSummary) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyTargetSummary) GoString() string { + return s.String() +} + +// SetArn sets the Arn field's value. +func (s *PolicyTargetSummary) SetArn(v string) *PolicyTargetSummary { + s.Arn = &v + return s +} + +// SetName sets the Name field's value. +func (s *PolicyTargetSummary) SetName(v string) *PolicyTargetSummary { + s.Name = &v + return s +} + +// SetTargetId sets the TargetId field's value. +func (s *PolicyTargetSummary) SetTargetId(v string) *PolicyTargetSummary { + s.TargetId = &v + return s +} + +// SetType sets the Type field's value. +func (s *PolicyTargetSummary) SetType(v string) *PolicyTargetSummary { + s.Type = &v + return s +} + +// The specified policy type is already enabled in the specified root. +type PolicyTypeAlreadyEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PolicyTypeAlreadyEnabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyTypeAlreadyEnabledException) GoString() string { + return s.String() +} + +func newErrorPolicyTypeAlreadyEnabledException(v protocol.ResponseMetadata) error { + return &PolicyTypeAlreadyEnabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PolicyTypeAlreadyEnabledException) Code() string { + return "PolicyTypeAlreadyEnabledException" +} + +// Message returns the exception's message. +func (s PolicyTypeAlreadyEnabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyTypeAlreadyEnabledException) OrigErr() error { + return nil +} + +func (s PolicyTypeAlreadyEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyTypeAlreadyEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyTypeAlreadyEnabledException) RequestID() string { + return s.respMetadata.RequestID +} + +// You can't use the specified policy type with the feature set currently enabled +// for this organization. For example, you can enable SCPs only after you enable +// all features in the organization. For more information, see Enabling and +// Disabling a Policy Type on a Root (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies.html#enable_policies_on_root) +// in the AWS Organizations User Guide. +type PolicyTypeNotAvailableForOrganizationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PolicyTypeNotAvailableForOrganizationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PolicyTypeNotAvailableForOrganizationException) GoString() string { + return s.String() +} + +func newErrorPolicyTypeNotAvailableForOrganizationException(v protocol.ResponseMetadata) error { + return &PolicyTypeNotAvailableForOrganizationException{ + respMetadata: v, + } } -// SetId sets the Id field's value. -func (s *PolicySummary) SetId(v string) *PolicySummary { - s.Id = &v - return s +// Code returns the exception type name. +func (s PolicyTypeNotAvailableForOrganizationException) Code() string { + return "PolicyTypeNotAvailableForOrganizationException" } -// SetName sets the Name field's value. -func (s *PolicySummary) SetName(v string) *PolicySummary { - s.Name = &v - return s +// Message returns the exception's message. +func (s PolicyTypeNotAvailableForOrganizationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetType sets the Type field's value. -func (s *PolicySummary) SetType(v string) *PolicySummary { - s.Type = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyTypeNotAvailableForOrganizationException) OrigErr() error { + return nil } -// Contains information about a root, OU, or account that a policy is attached -// to. -type PolicyTargetSummary struct { - _ struct{} `type:"structure"` +func (s PolicyTypeNotAvailableForOrganizationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The Amazon Resource Name (ARN) of the policy target. - // - // For more information about ARNs in Organizations, see ARN Formats Supported - // by Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_permissions.html#orgs-permissions-arns) - // in the AWS Organizations User Guide. - Arn *string `type:"string"` +// Status code returns the HTTP status code for the request's response error. +func (s PolicyTypeNotAvailableForOrganizationException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The friendly name of the policy target. - // - // The regex pattern (http://wikipedia.org/wiki/regex) that is used to validate - // this parameter is a string of any of the characters in the ASCII character - // range. - Name *string `min:"1" type:"string"` +// RequestID returns the service's response RequestID for request. +func (s PolicyTypeNotAvailableForOrganizationException) RequestID() string { + return s.respMetadata.RequestID +} - // The unique identifier (ID) of the policy target. - // - // The regex pattern (http://wikipedia.org/wiki/regex) for a target ID string - // requires one of the following: - // - // * Root: A string that begins with "r-" followed by from 4 to 32 lower-case - // letters or digits. - // - // * Account: A string that consists of exactly 12 digits. - // - // * Organizational unit (OU): A string that begins with "ou-" followed by - // from 4 to 32 lower-case letters or digits (the ID of the root that the - // OU is in). This string is followed by a second "-" dash and from 8 to - // 32 additional lower-case letters or digits. - TargetId *string `type:"string"` +// The specified policy type isn't currently enabled in this root. You can't +// attach policies of the specified type to entities in a root until you enable +// that type in the root. For more information, see Enabling All Features in +// Your Organization (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html) +// in the AWS Organizations User Guide. +type PolicyTypeNotEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The type of the policy target. - Type *string `type:"string" enum:"TargetType"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s PolicyTargetSummary) String() string { +func (s PolicyTypeNotEnabledException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PolicyTargetSummary) GoString() string { +func (s PolicyTypeNotEnabledException) GoString() string { return s.String() } -// SetArn sets the Arn field's value. -func (s *PolicyTargetSummary) SetArn(v string) *PolicyTargetSummary { - s.Arn = &v - return s +func newErrorPolicyTypeNotEnabledException(v protocol.ResponseMetadata) error { + return &PolicyTypeNotEnabledException{ + respMetadata: v, + } } -// SetName sets the Name field's value. -func (s *PolicyTargetSummary) SetName(v string) *PolicyTargetSummary { - s.Name = &v - return s +// Code returns the exception type name. +func (s PolicyTypeNotEnabledException) Code() string { + return "PolicyTypeNotEnabledException" } -// SetTargetId sets the TargetId field's value. -func (s *PolicyTargetSummary) SetTargetId(v string) *PolicyTargetSummary { - s.TargetId = &v - return s +// Message returns the exception's message. +func (s PolicyTypeNotEnabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetType sets the Type field's value. -func (s *PolicyTargetSummary) SetType(v string) *PolicyTargetSummary { - s.Type = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PolicyTypeNotEnabledException) OrigErr() error { + return nil +} + +func (s PolicyTypeNotEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PolicyTypeNotEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PolicyTypeNotEnabledException) RequestID() string { + return s.respMetadata.RequestID } // Contains information about a policy type and its status in the associated @@ -16200,6 +18465,175 @@ func (s *Root) SetPolicyTypes(v []*PolicyTypeSummary) *Root { return s } +// We can't find a root with the RootId that you specified. +type RootNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s RootNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RootNotFoundException) GoString() string { + return s.String() +} + +func newErrorRootNotFoundException(v protocol.ResponseMetadata) error { + return &RootNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RootNotFoundException) Code() string { + return "RootNotFoundException" +} + +// Message returns the exception's message. +func (s RootNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RootNotFoundException) OrigErr() error { + return nil +} + +func (s RootNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RootNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RootNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Organizations can't complete your request because of an internal service +// error. Try again later. +type ServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceException) GoString() string { + return s.String() +} + +func newErrorServiceException(v protocol.ResponseMetadata) error { + return &ServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceException) Code() string { + return "ServiceException" +} + +// Message returns the exception's message. +func (s ServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceException) OrigErr() error { + return nil +} + +func (s ServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// We can't find a source root or OU with the ParentId that you specified. +type SourceParentNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SourceParentNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SourceParentNotFoundException) GoString() string { + return s.String() +} + +func newErrorSourceParentNotFoundException(v protocol.ResponseMetadata) error { + return &SourceParentNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SourceParentNotFoundException) Code() string { + return "SourceParentNotFoundException" +} + +// Message returns the exception's message. +func (s SourceParentNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SourceParentNotFoundException) OrigErr() error { + return nil +} + +func (s SourceParentNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SourceParentNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SourceParentNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A custom key-value pair associated with a resource such as an account within // your organization. type Tag struct { @@ -16337,6 +18771,181 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// We can't find a root, OU, or account with the TargetId that you specified. +type TargetNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TargetNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetNotFoundException) GoString() string { + return s.String() +} + +func newErrorTargetNotFoundException(v protocol.ResponseMetadata) error { + return &TargetNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TargetNotFoundException) Code() string { + return "TargetNotFoundException" +} + +// Message returns the exception's message. +func (s TargetNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TargetNotFoundException) OrigErr() error { + return nil +} + +func (s TargetNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TargetNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TargetNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have sent too many requests in too short a period of time. The limit +// helps protect against denial-of-service attacks. Try again later. +// +// For information on limits that affect AWS Organizations, see Limits of AWS +// Organizations (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html) +// in the AWS Organizations User Guide. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// This action isn't available in the current Region. +type UnsupportedAPIEndpointException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedAPIEndpointException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedAPIEndpointException) GoString() string { + return s.String() +} + +func newErrorUnsupportedAPIEndpointException(v protocol.ResponseMetadata) error { + return &UnsupportedAPIEndpointException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedAPIEndpointException) Code() string { + return "UnsupportedAPIEndpointException" +} + +// Message returns the exception's message. +func (s UnsupportedAPIEndpointException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedAPIEndpointException) OrigErr() error { + return nil +} + +func (s UnsupportedAPIEndpointException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedAPIEndpointException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedAPIEndpointException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/organizations/errors.go b/service/organizations/errors.go index 7620fa0752a..44866d6308b 100644 --- a/service/organizations/errors.go +++ b/service/organizations/errors.go @@ -2,6 +2,10 @@ package organizations +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAWSOrganizationsNotInUseException for service response error code @@ -503,3 +507,48 @@ const ( // This action isn't available in the current Region. ErrCodeUnsupportedAPIEndpointException = "UnsupportedAPIEndpointException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AWSOrganizationsNotInUseException": newErrorAWSOrganizationsNotInUseException, + "AccessDeniedException": newErrorAccessDeniedException, + "AccessDeniedForDependencyException": newErrorAccessDeniedForDependencyException, + "AccountNotFoundException": newErrorAccountNotFoundException, + "AccountOwnerNotVerifiedException": newErrorAccountOwnerNotVerifiedException, + "AlreadyInOrganizationException": newErrorAlreadyInOrganizationException, + "ChildNotFoundException": newErrorChildNotFoundException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "ConstraintViolationException": newErrorConstraintViolationException, + "CreateAccountStatusNotFoundException": newErrorCreateAccountStatusNotFoundException, + "DestinationParentNotFoundException": newErrorDestinationParentNotFoundException, + "DuplicateAccountException": newErrorDuplicateAccountException, + "DuplicateHandshakeException": newErrorDuplicateHandshakeException, + "DuplicateOrganizationalUnitException": newErrorDuplicateOrganizationalUnitException, + "DuplicatePolicyAttachmentException": newErrorDuplicatePolicyAttachmentException, + "DuplicatePolicyException": newErrorDuplicatePolicyException, + "EffectivePolicyNotFoundException": newErrorEffectivePolicyNotFoundException, + "FinalizingOrganizationException": newErrorFinalizingOrganizationException, + "HandshakeAlreadyInStateException": newErrorHandshakeAlreadyInStateException, + "HandshakeConstraintViolationException": newErrorHandshakeConstraintViolationException, + "HandshakeNotFoundException": newErrorHandshakeNotFoundException, + "InvalidHandshakeTransitionException": newErrorInvalidHandshakeTransitionException, + "InvalidInputException": newErrorInvalidInputException, + "MalformedPolicyDocumentException": newErrorMalformedPolicyDocumentException, + "MasterCannotLeaveOrganizationException": newErrorMasterCannotLeaveOrganizationException, + "OrganizationNotEmptyException": newErrorOrganizationNotEmptyException, + "OrganizationalUnitNotEmptyException": newErrorOrganizationalUnitNotEmptyException, + "OrganizationalUnitNotFoundException": newErrorOrganizationalUnitNotFoundException, + "ParentNotFoundException": newErrorParentNotFoundException, + "PolicyChangesInProgressException": newErrorPolicyChangesInProgressException, + "PolicyInUseException": newErrorPolicyInUseException, + "PolicyNotAttachedException": newErrorPolicyNotAttachedException, + "PolicyNotFoundException": newErrorPolicyNotFoundException, + "PolicyTypeAlreadyEnabledException": newErrorPolicyTypeAlreadyEnabledException, + "PolicyTypeNotAvailableForOrganizationException": newErrorPolicyTypeNotAvailableForOrganizationException, + "PolicyTypeNotEnabledException": newErrorPolicyTypeNotEnabledException, + "RootNotFoundException": newErrorRootNotFoundException, + "ServiceException": newErrorServiceException, + "SourceParentNotFoundException": newErrorSourceParentNotFoundException, + "TargetNotFoundException": newErrorTargetNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnsupportedAPIEndpointException": newErrorUnsupportedAPIEndpointException, +} diff --git a/service/organizations/service.go b/service/organizations/service.go index 59b28f724a9..7a87e3ba30f 100644 --- a/service/organizations/service.go +++ b/service/organizations/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/outposts/api.go b/service/outposts/api.go index e892b291f20..7019ca83fe6 100644 --- a/service/outposts/api.go +++ b/service/outposts/api.go @@ -3,9 +3,12 @@ package outposts import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCreateOutpost = "CreateOutpost" @@ -61,20 +64,20 @@ func (c *Outposts) CreateOutpostRequest(input *CreateOutpostInput) (req *request // See the AWS API reference guide for AWS Outposts's // API operation CreateOutpost for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // A parameter is not valid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified request is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have permission to perform this operation. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal error has occurred. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // You have exceeded a service quota. // // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOutpost @@ -152,17 +155,17 @@ func (c *Outposts) GetOutpostRequest(input *GetOutpostInput) (req *request.Reque // See the AWS API reference guide for AWS Outposts's // API operation GetOutpost for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // A parameter is not valid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified request is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have permission to perform this operation. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal error has occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost @@ -240,17 +243,17 @@ func (c *Outposts) GetOutpostInstanceTypesRequest(input *GetOutpostInstanceTypes // See the AWS API reference guide for AWS Outposts's // API operation GetOutpostInstanceTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // A parameter is not valid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The specified request is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have permission to perform this operation. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal error has occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes @@ -334,14 +337,14 @@ func (c *Outposts) ListOutpostsRequest(input *ListOutpostsInput) (req *request.R // See the AWS API reference guide for AWS Outposts's // API operation ListOutposts for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // A parameter is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have permission to perform this operation. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal error has occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts @@ -477,14 +480,14 @@ func (c *Outposts) ListSitesRequest(input *ListSitesInput) (req *request.Request // See the AWS API reference guide for AWS Outposts's // API operation ListSites for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // A parameter is not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have permission to perform this operation. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal error has occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites @@ -561,6 +564,62 @@ func (c *Outposts) ListSitesPagesWithContext(ctx aws.Context, input *ListSitesIn return p.Err() } +// You do not have permission to perform this operation. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateOutpostInput struct { _ struct{} `type:"structure"` @@ -876,6 +935,62 @@ func (s *InstanceTypeItem) SetInstanceType(v string) *InstanceTypeItem { return s } +// An internal error has occurred. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListOutpostsInput struct { _ struct{} `type:"structure"` @@ -1036,6 +1151,62 @@ func (s *ListSitesOutput) SetSites(v []*Site) *ListSitesOutput { return s } +// The specified request is not valid. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about an Outpost. type Outpost struct { _ struct{} `type:"structure"` @@ -1132,6 +1303,62 @@ func (s *Outpost) SetSiteId(v string) *Outpost { return s } +// You have exceeded a service quota. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a site. type Site struct { _ struct{} `type:"structure"` @@ -1182,3 +1409,59 @@ func (s *Site) SetSiteId(v string) *Site { s.SiteId = &v return s } + +// A parameter is not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/outposts/errors.go b/service/outposts/errors.go index d079a243ed7..7960080b390 100644 --- a/service/outposts/errors.go +++ b/service/outposts/errors.go @@ -2,6 +2,10 @@ package outposts +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -34,3 +38,11 @@ const ( // A parameter is not valid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "InternalServerException": newErrorInternalServerException, + "NotFoundException": newErrorNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ValidationException": newErrorValidationException, +} diff --git a/service/outposts/service.go b/service/outposts/service.go index ce4152900ad..e9f396cf394 100644 --- a/service/outposts/service.go +++ b/service/outposts/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/personalize/api.go b/service/personalize/api.go index 06ea030a9df..9a01bcc84d4 100644 --- a/service/personalize/api.go +++ b/service/personalize/api.go @@ -68,20 +68,20 @@ func (c *Personalize) CreateBatchInferenceJobRequest(input *CreateBatchInference // See the AWS API reference guide for Amazon Personalize's // API operation CreateBatchInferenceJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateBatchInferenceJob @@ -198,20 +198,20 @@ func (c *Personalize) CreateCampaignRequest(input *CreateCampaignInput) (req *re // See the AWS API reference guide for Amazon Personalize's // API operation CreateCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateCampaign @@ -320,20 +320,20 @@ func (c *Personalize) CreateDatasetRequest(input *CreateDatasetInput) (req *requ // See the AWS API reference guide for Amazon Personalize's // API operation CreateDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateDataset @@ -455,14 +455,14 @@ func (c *Personalize) CreateDatasetGroupRequest(input *CreateDatasetGroupInput) // See the AWS API reference guide for Amazon Personalize's // API operation CreateDatasetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateDatasetGroup @@ -566,20 +566,20 @@ func (c *Personalize) CreateDatasetImportJobRequest(input *CreateDatasetImportJo // See the AWS API reference guide for Amazon Personalize's // API operation CreateDatasetImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateDatasetImportJob @@ -689,20 +689,20 @@ func (c *Personalize) CreateEventTrackerRequest(input *CreateEventTrackerInput) // See the AWS API reference guide for Amazon Personalize's // API operation CreateEventTracker for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateEventTracker @@ -793,14 +793,14 @@ func (c *Personalize) CreateSchemaRequest(input *CreateSchemaInput) (req *reques // See the AWS API reference guide for Amazon Personalize's // API operation CreateSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateSchema @@ -920,20 +920,20 @@ func (c *Personalize) CreateSolutionRequest(input *CreateSolutionInput) (req *re // See the AWS API reference guide for Amazon Personalize's // API operation CreateSolution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The limit on the number of requests per second has been exceeded. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateSolution @@ -1039,14 +1039,14 @@ func (c *Personalize) CreateSolutionVersionRequest(input *CreateSolutionVersionI // See the AWS API reference guide for Amazon Personalize's // API operation CreateSolutionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/CreateSolutionVersion @@ -1128,14 +1128,14 @@ func (c *Personalize) DeleteCampaignRequest(input *DeleteCampaignInput) (req *re // See the AWS API reference guide for Amazon Personalize's // API operation DeleteCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteCampaign @@ -1216,14 +1216,14 @@ func (c *Personalize) DeleteDatasetRequest(input *DeleteDatasetInput) (req *requ // See the AWS API reference guide for Amazon Personalize's // API operation DeleteDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteDataset @@ -1309,14 +1309,14 @@ func (c *Personalize) DeleteDatasetGroupRequest(input *DeleteDatasetGroupInput) // See the AWS API reference guide for Amazon Personalize's // API operation DeleteDatasetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteDatasetGroup @@ -1397,14 +1397,14 @@ func (c *Personalize) DeleteEventTrackerRequest(input *DeleteEventTrackerInput) // See the AWS API reference guide for Amazon Personalize's // API operation DeleteEventTracker for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteEventTracker @@ -1484,14 +1484,14 @@ func (c *Personalize) DeleteSchemaRequest(input *DeleteSchemaInput) (req *reques // See the AWS API reference guide for Amazon Personalize's // API operation DeleteSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteSchema @@ -1575,14 +1575,14 @@ func (c *Personalize) DeleteSolutionRequest(input *DeleteSolutionInput) (req *re // See the AWS API reference guide for Amazon Personalize's // API operation DeleteSolution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DeleteSolution @@ -1660,11 +1660,11 @@ func (c *Personalize) DescribeAlgorithmRequest(input *DescribeAlgorithmInput) (r // See the AWS API reference guide for Amazon Personalize's // API operation DescribeAlgorithm for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeAlgorithm @@ -1744,11 +1744,11 @@ func (c *Personalize) DescribeBatchInferenceJobRequest(input *DescribeBatchInfer // See the AWS API reference guide for Amazon Personalize's // API operation DescribeBatchInferenceJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeBatchInferenceJob @@ -1837,11 +1837,11 @@ func (c *Personalize) DescribeCampaignRequest(input *DescribeCampaignInput) (req // See the AWS API reference guide for Amazon Personalize's // API operation DescribeCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeCampaign @@ -1919,11 +1919,11 @@ func (c *Personalize) DescribeDatasetRequest(input *DescribeDatasetInput) (req * // See the AWS API reference guide for Amazon Personalize's // API operation DescribeDataset for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeDataset @@ -2002,11 +2002,11 @@ func (c *Personalize) DescribeDatasetGroupRequest(input *DescribeDatasetGroupInp // See the AWS API reference guide for Amazon Personalize's // API operation DescribeDatasetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeDatasetGroup @@ -2085,11 +2085,11 @@ func (c *Personalize) DescribeDatasetImportJobRequest(input *DescribeDatasetImpo // See the AWS API reference guide for Amazon Personalize's // API operation DescribeDatasetImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeDatasetImportJob @@ -2168,11 +2168,11 @@ func (c *Personalize) DescribeEventTrackerRequest(input *DescribeEventTrackerInp // See the AWS API reference guide for Amazon Personalize's // API operation DescribeEventTracker for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeEventTracker @@ -2250,11 +2250,11 @@ func (c *Personalize) DescribeFeatureTransformationRequest(input *DescribeFeatur // See the AWS API reference guide for Amazon Personalize's // API operation DescribeFeatureTransformation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeFeatureTransformation @@ -2348,11 +2348,11 @@ func (c *Personalize) DescribeRecipeRequest(input *DescribeRecipeInput) (req *re // See the AWS API reference guide for Amazon Personalize's // API operation DescribeRecipe for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeRecipe @@ -2430,11 +2430,11 @@ func (c *Personalize) DescribeSchemaRequest(input *DescribeSchemaInput) (req *re // See the AWS API reference guide for Amazon Personalize's // API operation DescribeSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeSchema @@ -2512,11 +2512,11 @@ func (c *Personalize) DescribeSolutionRequest(input *DescribeSolutionInput) (req // See the AWS API reference guide for Amazon Personalize's // API operation DescribeSolution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeSolution @@ -2595,11 +2595,11 @@ func (c *Personalize) DescribeSolutionVersionRequest(input *DescribeSolutionVers // See the AWS API reference guide for Amazon Personalize's // API operation DescribeSolutionVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/DescribeSolutionVersion @@ -2677,14 +2677,14 @@ func (c *Personalize) GetSolutionMetricsRequest(input *GetSolutionMetricsInput) // See the AWS API reference guide for Amazon Personalize's // API operation GetSolutionMetrics for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/GetSolutionMetrics @@ -2769,11 +2769,11 @@ func (c *Personalize) ListBatchInferenceJobsRequest(input *ListBatchInferenceJob // See the AWS API reference guide for Amazon Personalize's // API operation ListBatchInferenceJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListBatchInferenceJobs @@ -2912,11 +2912,11 @@ func (c *Personalize) ListCampaignsRequest(input *ListCampaignsInput) (req *requ // See the AWS API reference guide for Amazon Personalize's // API operation ListCampaigns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListCampaigns @@ -3054,8 +3054,8 @@ func (c *Personalize) ListDatasetGroupsRequest(input *ListDatasetGroupsInput) (r // See the AWS API reference guide for Amazon Personalize's // API operation ListDatasetGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListDatasetGroups @@ -3196,11 +3196,11 @@ func (c *Personalize) ListDatasetImportJobsRequest(input *ListDatasetImportJobsI // See the AWS API reference guide for Amazon Personalize's // API operation ListDatasetImportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListDatasetImportJobs @@ -3338,11 +3338,11 @@ func (c *Personalize) ListDatasetsRequest(input *ListDatasetsInput) (req *reques // See the AWS API reference guide for Amazon Personalize's // API operation ListDatasets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListDatasets @@ -3480,11 +3480,11 @@ func (c *Personalize) ListEventTrackersRequest(input *ListEventTrackersInput) (r // See the AWS API reference guide for Amazon Personalize's // API operation ListEventTrackers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListEventTrackers @@ -3621,8 +3621,8 @@ func (c *Personalize) ListRecipesRequest(input *ListRecipesInput) (req *request. // See the AWS API reference guide for Amazon Personalize's // API operation ListRecipes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListRecipes @@ -3760,8 +3760,8 @@ func (c *Personalize) ListSchemasRequest(input *ListSchemasInput) (req *request. // See the AWS API reference guide for Amazon Personalize's // API operation ListSchemas for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListSchemas @@ -3900,14 +3900,14 @@ func (c *Personalize) ListSolutionVersionsRequest(input *ListSolutionVersionsInp // See the AWS API reference guide for Amazon Personalize's // API operation ListSolutionVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListSolutionVersions @@ -4046,11 +4046,11 @@ func (c *Personalize) ListSolutionsRequest(input *ListSolutionsInput) (req *requ // See the AWS API reference guide for Amazon Personalize's // API operation ListSolutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListSolutions @@ -4189,14 +4189,14 @@ func (c *Personalize) UpdateCampaignRequest(input *UpdateCampaignInput) (req *re // See the AWS API reference guide for Amazon Personalize's // API operation UpdateCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Could not find the specified resource. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/UpdateCampaign @@ -8505,6 +8505,174 @@ func (s *IntegerHyperParameterRange) SetName(v string) *IntegerHyperParameterRan return s } +// Provide a valid value for the field or parameter. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + +// The token is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The limit on the number of requests per second has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListBatchInferenceJobsInput struct { _ struct{} `type:"structure"` @@ -9529,6 +9697,174 @@ func (s *RecipeSummary) SetStatus(v string) *RecipeSummary { return s } +// The specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource is in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// Could not find the specified resource. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The configuration details of an Amazon S3 input or output bucket. type S3DataConfig struct { _ struct{} `type:"structure"` diff --git a/service/personalize/errors.go b/service/personalize/errors.go index 9511bd051a9..c764bbb02d9 100644 --- a/service/personalize/errors.go +++ b/service/personalize/errors.go @@ -2,6 +2,10 @@ package personalize +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidInputException for service response error code @@ -40,3 +44,12 @@ const ( // Could not find the specified resource. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidInputException": newErrorInvalidInputException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/personalize/service.go b/service/personalize/service.go index 4830255e632..e7febdb085b 100644 --- a/service/personalize/service.go +++ b/service/personalize/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/personalizeevents/api.go b/service/personalizeevents/api.go index 633fdefdfe1..4026e63732a 100644 --- a/service/personalizeevents/api.go +++ b/service/personalizeevents/api.go @@ -67,8 +67,8 @@ func (c *PersonalizeEvents) PutEventsRequest(input *PutEventsInput) (req *reques // See the AWS API reference guide for Amazon Personalize Events's // API operation PutEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutEvents @@ -196,6 +196,62 @@ func (s *Event) SetSentAt(v time.Time) *Event { return s } +// Provide a valid value for the field or parameter. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + type PutEventsInput struct { _ struct{} `type:"structure"` diff --git a/service/personalizeevents/errors.go b/service/personalizeevents/errors.go index 12d9cd307ff..b4a39580e9c 100644 --- a/service/personalizeevents/errors.go +++ b/service/personalizeevents/errors.go @@ -2,6 +2,10 @@ package personalizeevents +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidInputException for service response error code @@ -10,3 +14,7 @@ const ( // Provide a valid value for the field or parameter. ErrCodeInvalidInputException = "InvalidInputException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidInputException": newErrorInvalidInputException, +} diff --git a/service/personalizeevents/service.go b/service/personalizeevents/service.go index 7d9cef3a0c9..54bffc6a99f 100644 --- a/service/personalizeevents/service.go +++ b/service/personalizeevents/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/personalizeruntime/api.go b/service/personalizeruntime/api.go index 58817e305f9..d11f4de325a 100644 --- a/service/personalizeruntime/api.go +++ b/service/personalizeruntime/api.go @@ -3,9 +3,12 @@ package personalizeruntime import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetPersonalizedRanking = "GetPersonalizedRanking" @@ -65,11 +68,11 @@ func (c *PersonalizeRuntime) GetPersonalizedRankingRequest(input *GetPersonalize // See the AWS API reference guide for Amazon Personalize Runtime's // API operation GetPersonalizedRanking for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking @@ -155,11 +158,11 @@ func (c *PersonalizeRuntime) GetRecommendationsRequest(input *GetRecommendations // See the AWS API reference guide for Amazon Personalize Runtime's // API operation GetRecommendations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInputException "InvalidInputException" +// Returned Error Types: +// * InvalidInputException // Provide a valid value for the field or parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations @@ -394,6 +397,62 @@ func (s *GetRecommendationsOutput) SetItemList(v []*PredictedItem) *GetRecommend return s } +// Provide a valid value for the field or parameter. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that identifies an item. // // The and APIs return a list of PredictedItems. @@ -419,3 +478,59 @@ func (s *PredictedItem) SetItemId(v string) *PredictedItem { s.ItemId = &v return s } + +// The specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/personalizeruntime/errors.go b/service/personalizeruntime/errors.go index 2e8033b4649..fe05382b5c7 100644 --- a/service/personalizeruntime/errors.go +++ b/service/personalizeruntime/errors.go @@ -2,6 +2,10 @@ package personalizeruntime +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidInputException for service response error code @@ -16,3 +20,8 @@ const ( // The specified resource does not exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidInputException": newErrorInvalidInputException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/personalizeruntime/service.go b/service/personalizeruntime/service.go index 82c5ea03b19..b6f9ae1e3e0 100644 --- a/service/personalizeruntime/service.go +++ b/service/personalizeruntime/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/pi/api.go b/service/pi/api.go index 65bdba21f05..c33996144fa 100644 --- a/service/pi/api.go +++ b/service/pi/api.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opDescribeDimensionKeys = "DescribeDimensionKeys" @@ -64,14 +65,14 @@ func (c *PI) DescribeDimensionKeysRequest(input *DescribeDimensionKeysInput) (re // See the AWS API reference guide for AWS Performance Insights's // API operation DescribeDimensionKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // One of the arguments provided is invalid for this request. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // The request failed due to an unknown error. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The user is not authorized to perform this request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/DescribeDimensionKeys @@ -151,14 +152,14 @@ func (c *PI) GetResourceMetricsRequest(input *GetResourceMetricsInput) (req *req // See the AWS API reference guide for AWS Performance Insights's // API operation GetResourceMetrics for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// Returned Error Types: +// * InvalidArgumentException // One of the arguments provided is invalid for this request. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // The request failed due to an unknown error. // -// * ErrCodeNotAuthorizedException "NotAuthorizedException" +// * NotAuthorizedException // The user is not authorized to perform this request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetrics @@ -893,6 +894,118 @@ func (s *GetResourceMetricsOutput) SetNextToken(v string) *GetResourceMetricsOut return s } +// The request failed due to an unknown error. +type InternalServiceError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceError) GoString() string { + return s.String() +} + +func newErrorInternalServiceError(v protocol.ResponseMetadata) error { + return &InternalServiceError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceError) Code() string { + return "InternalServiceError" +} + +// Message returns the exception's message. +func (s InternalServiceError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceError) OrigErr() error { + return nil +} + +func (s InternalServiceError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceError) RequestID() string { + return s.respMetadata.RequestID +} + +// One of the arguments provided is invalid for this request. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + // A time-ordered series of data points, correpsonding to a dimension of a Performance // Insights metric. type MetricKeyDataPoints struct { @@ -1011,6 +1124,62 @@ func (s *MetricQuery) SetMetric(v string) *MetricQuery { return s } +// The user is not authorized to perform this request. +type NotAuthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotAuthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotAuthorizedException) GoString() string { + return s.String() +} + +func newErrorNotAuthorizedException(v protocol.ResponseMetadata) error { + return &NotAuthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotAuthorizedException) Code() string { + return "NotAuthorizedException" +} + +// Message returns the exception's message. +func (s NotAuthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotAuthorizedException) OrigErr() error { + return nil +} + +func (s NotAuthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotAuthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotAuthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + // If PartitionBy was specified in a DescribeDimensionKeys request, the dimensions // are returned in an array. Each element in the array specifies one dimension. type ResponsePartitionKey struct { diff --git a/service/pi/errors.go b/service/pi/errors.go index 869b1ed9862..53b8b7b8565 100644 --- a/service/pi/errors.go +++ b/service/pi/errors.go @@ -2,6 +2,10 @@ package pi +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServiceError for service response error code @@ -22,3 +26,9 @@ const ( // The user is not authorized to perform this request. ErrCodeNotAuthorizedException = "NotAuthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServiceError": newErrorInternalServiceError, + "InvalidArgumentException": newErrorInvalidArgumentException, + "NotAuthorizedException": newErrorNotAuthorizedException, +} diff --git a/service/pi/service.go b/service/pi/service.go index 12ec6fa9354..54978470687 100644 --- a/service/pi/service.go +++ b/service/pi/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/pinpoint/api.go b/service/pinpoint/api.go index 9bfa0400aeb..c38951a9de6 100644 --- a/service/pinpoint/api.go +++ b/service/pinpoint/api.go @@ -66,23 +66,23 @@ func (c *Pinpoint) CreateAppRequest(input *CreateAppInput) (req *request.Request // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateApp @@ -161,23 +161,23 @@ func (c *Pinpoint) CreateCampaignRequest(input *CreateCampaignInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateCampaign @@ -255,20 +255,20 @@ func (c *Pinpoint) CreateEmailTemplateRequest(input *CreateEmailTemplateInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateEmailTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Returned Error Types: +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateEmailTemplate @@ -346,23 +346,23 @@ func (c *Pinpoint) CreateExportJobRequest(input *CreateExportJobInput) (req *req // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateExportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateExportJob @@ -440,23 +440,23 @@ func (c *Pinpoint) CreateImportJobRequest(input *CreateImportJobInput) (req *req // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateImportJob @@ -534,23 +534,23 @@ func (c *Pinpoint) CreateJourneyRequest(input *CreateJourneyInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateJourney for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateJourney @@ -629,20 +629,20 @@ func (c *Pinpoint) CreatePushTemplateRequest(input *CreatePushTemplateInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation CreatePushTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Returned Error Types: +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreatePushTemplate @@ -721,23 +721,23 @@ func (c *Pinpoint) CreateSegmentRequest(input *CreateSegmentInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateSegment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateSegment @@ -815,20 +815,20 @@ func (c *Pinpoint) CreateSmsTemplateRequest(input *CreateSmsTemplateInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateSmsTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Returned Error Types: +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateSmsTemplate @@ -906,20 +906,20 @@ func (c *Pinpoint) CreateVoiceTemplateRequest(input *CreateVoiceTemplateInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation CreateVoiceTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Returned Error Types: +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateVoiceTemplate @@ -998,23 +998,23 @@ func (c *Pinpoint) DeleteAdmChannelRequest(input *DeleteAdmChannelInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteAdmChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAdmChannel @@ -1093,23 +1093,23 @@ func (c *Pinpoint) DeleteApnsChannelRequest(input *DeleteApnsChannelInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteApnsChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsChannel @@ -1188,23 +1188,23 @@ func (c *Pinpoint) DeleteApnsSandboxChannelRequest(input *DeleteApnsSandboxChann // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteApnsSandboxChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsSandboxChannel @@ -1283,23 +1283,23 @@ func (c *Pinpoint) DeleteApnsVoipChannelRequest(input *DeleteApnsVoipChannelInpu // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteApnsVoipChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipChannel @@ -1378,23 +1378,23 @@ func (c *Pinpoint) DeleteApnsVoipSandboxChannelRequest(input *DeleteApnsVoipSand // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteApnsVoipSandboxChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipSandboxChannel @@ -1472,23 +1472,23 @@ func (c *Pinpoint) DeleteAppRequest(input *DeleteAppInput) (req *request.Request // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApp @@ -1567,23 +1567,23 @@ func (c *Pinpoint) DeleteBaiduChannelRequest(input *DeleteBaiduChannelInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteBaiduChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteBaiduChannel @@ -1661,23 +1661,23 @@ func (c *Pinpoint) DeleteCampaignRequest(input *DeleteCampaignInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteCampaign @@ -1756,23 +1756,23 @@ func (c *Pinpoint) DeleteEmailChannelRequest(input *DeleteEmailChannelInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteEmailChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEmailChannel @@ -1851,23 +1851,23 @@ func (c *Pinpoint) DeleteEmailTemplateRequest(input *DeleteEmailTemplateInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteEmailTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEmailTemplate @@ -1945,23 +1945,23 @@ func (c *Pinpoint) DeleteEndpointRequest(input *DeleteEndpointInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEndpoint @@ -2039,23 +2039,23 @@ func (c *Pinpoint) DeleteEventStreamRequest(input *DeleteEventStreamInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteEventStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEventStream @@ -2134,23 +2134,23 @@ func (c *Pinpoint) DeleteGcmChannelRequest(input *DeleteGcmChannelInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteGcmChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteGcmChannel @@ -2228,23 +2228,23 @@ func (c *Pinpoint) DeleteJourneyRequest(input *DeleteJourneyInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteJourney for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteJourney @@ -2323,23 +2323,23 @@ func (c *Pinpoint) DeletePushTemplateRequest(input *DeletePushTemplateInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation DeletePushTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeletePushTemplate @@ -2417,23 +2417,23 @@ func (c *Pinpoint) DeleteSegmentRequest(input *DeleteSegmentInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteSegment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSegment @@ -2512,23 +2512,23 @@ func (c *Pinpoint) DeleteSmsChannelRequest(input *DeleteSmsChannelInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteSmsChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSmsChannel @@ -2606,23 +2606,23 @@ func (c *Pinpoint) DeleteSmsTemplateRequest(input *DeleteSmsTemplateInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteSmsTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSmsTemplate @@ -2700,23 +2700,23 @@ func (c *Pinpoint) DeleteUserEndpointsRequest(input *DeleteUserEndpointsInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteUserEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteUserEndpoints @@ -2795,23 +2795,23 @@ func (c *Pinpoint) DeleteVoiceChannelRequest(input *DeleteVoiceChannelInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteVoiceChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteVoiceChannel @@ -2890,23 +2890,23 @@ func (c *Pinpoint) DeleteVoiceTemplateRequest(input *DeleteVoiceTemplateInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation DeleteVoiceTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteVoiceTemplate @@ -2985,23 +2985,23 @@ func (c *Pinpoint) GetAdmChannelRequest(input *GetAdmChannelInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation GetAdmChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAdmChannel @@ -3080,23 +3080,23 @@ func (c *Pinpoint) GetApnsChannelRequest(input *GetApnsChannelInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApnsChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsChannel @@ -3175,23 +3175,23 @@ func (c *Pinpoint) GetApnsSandboxChannelRequest(input *GetApnsSandboxChannelInpu // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApnsSandboxChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsSandboxChannel @@ -3270,23 +3270,23 @@ func (c *Pinpoint) GetApnsVoipChannelRequest(input *GetApnsVoipChannelInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApnsVoipChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipChannel @@ -3365,23 +3365,23 @@ func (c *Pinpoint) GetApnsVoipSandboxChannelRequest(input *GetApnsVoipSandboxCha // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApnsVoipSandboxChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipSandboxChannel @@ -3459,23 +3459,23 @@ func (c *Pinpoint) GetAppRequest(input *GetAppInput) (req *request.Request, outp // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApp @@ -3554,23 +3554,23 @@ func (c *Pinpoint) GetApplicationDateRangeKpiRequest(input *GetApplicationDateRa // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApplicationDateRangeKpi for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApplicationDateRangeKpi @@ -3648,23 +3648,23 @@ func (c *Pinpoint) GetApplicationSettingsRequest(input *GetApplicationSettingsIn // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApplicationSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApplicationSettings @@ -3743,23 +3743,23 @@ func (c *Pinpoint) GetAppsRequest(input *GetAppsInput) (req *request.Request, ou // See the AWS API reference guide for Amazon Pinpoint's // API operation GetApps for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApps @@ -3838,23 +3838,23 @@ func (c *Pinpoint) GetBaiduChannelRequest(input *GetBaiduChannelInput) (req *req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetBaiduChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetBaiduChannel @@ -3933,23 +3933,23 @@ func (c *Pinpoint) GetCampaignRequest(input *GetCampaignInput) (req *request.Req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaign @@ -4027,23 +4027,23 @@ func (c *Pinpoint) GetCampaignActivitiesRequest(input *GetCampaignActivitiesInpu // See the AWS API reference guide for Amazon Pinpoint's // API operation GetCampaignActivities for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignActivities @@ -4122,23 +4122,23 @@ func (c *Pinpoint) GetCampaignDateRangeKpiRequest(input *GetCampaignDateRangeKpi // See the AWS API reference guide for Amazon Pinpoint's // API operation GetCampaignDateRangeKpi for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignDateRangeKpi @@ -4217,23 +4217,23 @@ func (c *Pinpoint) GetCampaignVersionRequest(input *GetCampaignVersionInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation GetCampaignVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersion @@ -4312,23 +4312,23 @@ func (c *Pinpoint) GetCampaignVersionsRequest(input *GetCampaignVersionsInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation GetCampaignVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersions @@ -4407,23 +4407,23 @@ func (c *Pinpoint) GetCampaignsRequest(input *GetCampaignsInput) (req *request.R // See the AWS API reference guide for Amazon Pinpoint's // API operation GetCampaigns for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaigns @@ -4502,23 +4502,23 @@ func (c *Pinpoint) GetChannelsRequest(input *GetChannelsInput) (req *request.Req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetChannels for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetChannels @@ -4597,23 +4597,23 @@ func (c *Pinpoint) GetEmailChannelRequest(input *GetEmailChannelInput) (req *req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetEmailChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEmailChannel @@ -4692,23 +4692,23 @@ func (c *Pinpoint) GetEmailTemplateRequest(input *GetEmailTemplateInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation GetEmailTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEmailTemplate @@ -4787,23 +4787,23 @@ func (c *Pinpoint) GetEndpointRequest(input *GetEndpointInput) (req *request.Req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEndpoint @@ -4881,23 +4881,23 @@ func (c *Pinpoint) GetEventStreamRequest(input *GetEventStreamInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation GetEventStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEventStream @@ -4976,23 +4976,23 @@ func (c *Pinpoint) GetExportJobRequest(input *GetExportJobInput) (req *request.R // See the AWS API reference guide for Amazon Pinpoint's // API operation GetExportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetExportJob @@ -5071,23 +5071,23 @@ func (c *Pinpoint) GetExportJobsRequest(input *GetExportJobsInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation GetExportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetExportJobs @@ -5166,23 +5166,23 @@ func (c *Pinpoint) GetGcmChannelRequest(input *GetGcmChannelInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation GetGcmChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetGcmChannel @@ -5261,23 +5261,23 @@ func (c *Pinpoint) GetImportJobRequest(input *GetImportJobInput) (req *request.R // See the AWS API reference guide for Amazon Pinpoint's // API operation GetImportJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJob @@ -5356,23 +5356,23 @@ func (c *Pinpoint) GetImportJobsRequest(input *GetImportJobsInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation GetImportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJobs @@ -5451,23 +5451,23 @@ func (c *Pinpoint) GetJourneyRequest(input *GetJourneyInput) (req *request.Reque // See the AWS API reference guide for Amazon Pinpoint's // API operation GetJourney for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetJourney @@ -5546,23 +5546,23 @@ func (c *Pinpoint) GetJourneyDateRangeKpiRequest(input *GetJourneyDateRangeKpiIn // See the AWS API reference guide for Amazon Pinpoint's // API operation GetJourneyDateRangeKpi for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetJourneyDateRangeKpi @@ -5641,23 +5641,23 @@ func (c *Pinpoint) GetJourneyExecutionActivityMetricsRequest(input *GetJourneyEx // See the AWS API reference guide for Amazon Pinpoint's // API operation GetJourneyExecutionActivityMetrics for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetJourneyExecutionActivityMetrics @@ -5736,23 +5736,23 @@ func (c *Pinpoint) GetJourneyExecutionMetricsRequest(input *GetJourneyExecutionM // See the AWS API reference guide for Amazon Pinpoint's // API operation GetJourneyExecutionMetrics for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetJourneyExecutionMetrics @@ -5831,23 +5831,23 @@ func (c *Pinpoint) GetPushTemplateRequest(input *GetPushTemplateInput) (req *req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetPushTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetPushTemplate @@ -5926,23 +5926,23 @@ func (c *Pinpoint) GetSegmentRequest(input *GetSegmentInput) (req *request.Reque // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSegment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegment @@ -6021,23 +6021,23 @@ func (c *Pinpoint) GetSegmentExportJobsRequest(input *GetSegmentExportJobsInput) // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSegmentExportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentExportJobs @@ -6116,23 +6116,23 @@ func (c *Pinpoint) GetSegmentImportJobsRequest(input *GetSegmentImportJobsInput) // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSegmentImportJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentImportJobs @@ -6211,23 +6211,23 @@ func (c *Pinpoint) GetSegmentVersionRequest(input *GetSegmentVersionInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSegmentVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersion @@ -6306,23 +6306,23 @@ func (c *Pinpoint) GetSegmentVersionsRequest(input *GetSegmentVersionsInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSegmentVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersions @@ -6401,23 +6401,23 @@ func (c *Pinpoint) GetSegmentsRequest(input *GetSegmentsInput) (req *request.Req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSegments for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegments @@ -6496,23 +6496,23 @@ func (c *Pinpoint) GetSmsChannelRequest(input *GetSmsChannelInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSmsChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSmsChannel @@ -6591,23 +6591,23 @@ func (c *Pinpoint) GetSmsTemplateRequest(input *GetSmsTemplateInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation GetSmsTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSmsTemplate @@ -6686,23 +6686,23 @@ func (c *Pinpoint) GetUserEndpointsRequest(input *GetUserEndpointsInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation GetUserEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetUserEndpoints @@ -6781,23 +6781,23 @@ func (c *Pinpoint) GetVoiceChannelRequest(input *GetVoiceChannelInput) (req *req // See the AWS API reference guide for Amazon Pinpoint's // API operation GetVoiceChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetVoiceChannel @@ -6876,23 +6876,23 @@ func (c *Pinpoint) GetVoiceTemplateRequest(input *GetVoiceTemplateInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation GetVoiceTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetVoiceTemplate @@ -6971,23 +6971,23 @@ func (c *Pinpoint) ListJourneysRequest(input *ListJourneysInput) (req *request.R // See the AWS API reference guide for Amazon Pinpoint's // API operation ListJourneys for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ListJourneys @@ -7140,23 +7140,23 @@ func (c *Pinpoint) ListTemplateVersionsRequest(input *ListTemplateVersionsInput) // See the AWS API reference guide for Amazon Pinpoint's // API operation ListTemplateVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ListTemplateVersions @@ -7235,20 +7235,20 @@ func (c *Pinpoint) ListTemplatesRequest(input *ListTemplatesInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation ListTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// Returned Error Types: +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ListTemplates @@ -7326,23 +7326,23 @@ func (c *Pinpoint) PhoneNumberValidateRequest(input *PhoneNumberValidateInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation PhoneNumberValidate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PhoneNumberValidate @@ -7421,23 +7421,23 @@ func (c *Pinpoint) PutEventStreamRequest(input *PutEventStreamInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation PutEventStream for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PutEventStream @@ -7516,23 +7516,23 @@ func (c *Pinpoint) PutEventsRequest(input *PutEventsInput) (req *request.Request // See the AWS API reference guide for Amazon Pinpoint's // API operation PutEvents for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PutEvents @@ -7611,23 +7611,23 @@ func (c *Pinpoint) RemoveAttributesRequest(input *RemoveAttributesInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation RemoveAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/RemoveAttributes @@ -7705,23 +7705,23 @@ func (c *Pinpoint) SendMessagesRequest(input *SendMessagesInput) (req *request.R // See the AWS API reference guide for Amazon Pinpoint's // API operation SendMessages for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendMessages @@ -7799,23 +7799,23 @@ func (c *Pinpoint) SendUsersMessagesRequest(input *SendUsersMessagesInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation SendUsersMessages for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessages @@ -8046,23 +8046,23 @@ func (c *Pinpoint) UpdateAdmChannelRequest(input *UpdateAdmChannelInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateAdmChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateAdmChannel @@ -8141,23 +8141,23 @@ func (c *Pinpoint) UpdateApnsChannelRequest(input *UpdateApnsChannelInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateApnsChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsChannel @@ -8236,23 +8236,23 @@ func (c *Pinpoint) UpdateApnsSandboxChannelRequest(input *UpdateApnsSandboxChann // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateApnsSandboxChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsSandboxChannel @@ -8331,23 +8331,23 @@ func (c *Pinpoint) UpdateApnsVoipChannelRequest(input *UpdateApnsVoipChannelInpu // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateApnsVoipChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipChannel @@ -8426,23 +8426,23 @@ func (c *Pinpoint) UpdateApnsVoipSandboxChannelRequest(input *UpdateApnsVoipSand // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateApnsVoipSandboxChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipSandboxChannel @@ -8520,23 +8520,23 @@ func (c *Pinpoint) UpdateApplicationSettingsRequest(input *UpdateApplicationSett // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateApplicationSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApplicationSettings @@ -8615,23 +8615,23 @@ func (c *Pinpoint) UpdateBaiduChannelRequest(input *UpdateBaiduChannelInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateBaiduChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateBaiduChannel @@ -8709,23 +8709,23 @@ func (c *Pinpoint) UpdateCampaignRequest(input *UpdateCampaignInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateCampaign @@ -8804,23 +8804,23 @@ func (c *Pinpoint) UpdateEmailChannelRequest(input *UpdateEmailChannelInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateEmailChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEmailChannel @@ -8899,23 +8899,23 @@ func (c *Pinpoint) UpdateEmailTemplateRequest(input *UpdateEmailTemplateInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateEmailTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEmailTemplate @@ -8996,23 +8996,23 @@ func (c *Pinpoint) UpdateEndpointRequest(input *UpdateEndpointInput) (req *reque // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpoint @@ -9093,23 +9093,23 @@ func (c *Pinpoint) UpdateEndpointsBatchRequest(input *UpdateEndpointsBatchInput) // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateEndpointsBatch for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpointsBatch @@ -9188,23 +9188,23 @@ func (c *Pinpoint) UpdateGcmChannelRequest(input *UpdateGcmChannelInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateGcmChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateGcmChannel @@ -9282,23 +9282,23 @@ func (c *Pinpoint) UpdateJourneyRequest(input *UpdateJourneyInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateJourney for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateJourney @@ -9376,23 +9376,23 @@ func (c *Pinpoint) UpdateJourneyStateRequest(input *UpdateJourneyStateInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateJourneyState for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateJourneyState @@ -9471,23 +9471,23 @@ func (c *Pinpoint) UpdatePushTemplateRequest(input *UpdatePushTemplateInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdatePushTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdatePushTemplate @@ -9566,23 +9566,23 @@ func (c *Pinpoint) UpdateSegmentRequest(input *UpdateSegmentInput) (req *request // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateSegment for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSegment @@ -9661,23 +9661,23 @@ func (c *Pinpoint) UpdateSmsChannelRequest(input *UpdateSmsChannelInput) (req *r // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateSmsChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSmsChannel @@ -9756,23 +9756,23 @@ func (c *Pinpoint) UpdateSmsTemplateRequest(input *UpdateSmsTemplateInput) (req // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateSmsTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSmsTemplate @@ -9850,23 +9850,23 @@ func (c *Pinpoint) UpdateTemplateActiveVersionRequest(input *UpdateTemplateActiv // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateTemplateActiveVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateTemplateActiveVersion @@ -9945,23 +9945,23 @@ func (c *Pinpoint) UpdateVoiceChannelRequest(input *UpdateVoiceChannelInput) (re // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateVoiceChannel for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateVoiceChannel @@ -10040,23 +10040,23 @@ func (c *Pinpoint) UpdateVoiceTemplateRequest(input *UpdateVoiceTemplateInput) ( // See the AWS API reference guide for Amazon Pinpoint's // API operation UpdateVoiceTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Provides information about an API request or response. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // Provides information about an API request or response. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // Provides information about an API request or response. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // Provides information about an API request or response. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // Provides information about an API request or response. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Provides information about an API request or response. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateVoiceTemplate @@ -12605,6 +12605,64 @@ func (s *AttributesResource) SetAttributes(v []*string) *AttributesResource { return s } +// Provides information about an API request or response. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + RequestID_ *string `locationName:"RequestID" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the status and settings of the Baidu (Baidu Cloud Push) channel // for an application. type BaiduChannelRequest struct { @@ -19061,6 +19119,64 @@ func (s *ExportJobsResponse) SetNextToken(v string) *ExportJobsResponse { return s } +// Provides information about an API request or response. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + RequestID_ *string `locationName:"RequestID" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the status and settings of the GCM channel for an application. // This channel enables Amazon Pinpoint to send push notifications through the // Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service. @@ -23458,6 +23574,64 @@ func (s *ImportJobsResponse) SetNextToken(v string) *ImportJobsResponse { return s } +// Provides information about an API request or response. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + RequestID_ *string `locationName:"RequestID" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information about the results of a request to create or update an // endpoint that's associated with an event. type ItemResponse struct { @@ -24987,6 +25161,64 @@ func (s *MessageResult) SetUpdatedToken(v string) *MessageResult { return s } +// Provides information about an API request or response. +type MethodNotAllowedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + RequestID_ *string `locationName:"RequestID" type:"string"` +} + +// String returns the string representation +func (s MethodNotAllowedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MethodNotAllowedException) GoString() string { + return s.String() +} + +func newErrorMethodNotAllowedException(v protocol.ResponseMetadata) error { + return &MethodNotAllowedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MethodNotAllowedException) Code() string { + return "MethodNotAllowedException" +} + +// Message returns the exception's message. +func (s MethodNotAllowedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MethodNotAllowedException) OrigErr() error { + return nil +} + +func (s MethodNotAllowedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MethodNotAllowedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MethodNotAllowedException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies metric-based criteria for including or excluding endpoints from // a segment. These criteria derive from custom metrics that you define for // endpoints. @@ -25159,6 +25391,64 @@ func (s *MultiConditionalSplitActivity) SetEvaluationWaitTime(v *WaitTime) *Mult return s } +// Provides information about an API request or response. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + RequestID_ *string `locationName:"RequestID" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies a phone number to validate and retrieve information about. type NumberValidateRequest struct { _ struct{} `type:"structure"` @@ -28939,6 +29229,64 @@ func (s *TemplatesResponse) SetNextToken(v string) *TemplatesResponse { return s } +// Provides information about an API request or response. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + RequestID_ *string `locationName:"RequestID" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the settings for a campaign treatment. A treatment is a variation // of a campaign that's used for A/B testing of a campaign. type TreatmentResource struct { diff --git a/service/pinpoint/errors.go b/service/pinpoint/errors.go index e70fd0b8bf9..5840e4aff15 100644 --- a/service/pinpoint/errors.go +++ b/service/pinpoint/errors.go @@ -2,6 +2,10 @@ package pinpoint +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -40,3 +44,12 @@ const ( // Provides information about an API request or response. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "MethodNotAllowedException": newErrorMethodNotAllowedException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/pinpoint/service.go b/service/pinpoint/service.go index 3108d960d90..31529ff9c7e 100644 --- a/service/pinpoint/service.go +++ b/service/pinpoint/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/pinpointemail/api.go b/service/pinpointemail/api.go index cca623b43a0..d67295f9be2 100644 --- a/service/pinpointemail/api.go +++ b/service/pinpointemail/api.go @@ -71,23 +71,23 @@ func (c *PinpointEmail) CreateConfigurationSetRequest(input *CreateConfiguration // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation CreateConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateConfigurationSet @@ -173,20 +173,20 @@ func (c *PinpointEmail) CreateConfigurationSetEventDestinationRequest(input *Cre // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation CreateConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateConfigurationSetEventDestination @@ -269,20 +269,20 @@ func (c *PinpointEmail) CreateDedicatedIpPoolRequest(input *CreateDedicatedIpPoo // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation CreateDedicatedIpPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateDedicatedIpPool @@ -367,34 +367,34 @@ func (c *PinpointEmail) CreateDeliverabilityTestReportRequest(input *CreateDeliv // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation CreateDeliverabilityTestReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccountSuspendedException "AccountSuspendedException" +// Returned Error Types: +// * AccountSuspendedException // The message can't be sent because the account's ability to send email has // been permanently restricted. // -// * ErrCodeSendingPausedException "SendingPausedException" +// * SendingPausedException // The message can't be sent because the account's ability to send email is // currently paused. // -// * ErrCodeMessageRejected "MessageRejected" +// * MessageRejected // The message can't be sent because it contains invalid content. // -// * ErrCodeMailFromDomainNotVerifiedException "MailFromDomainNotVerifiedException" +// * MailFromDomainNotVerifiedException // The message can't be sent because the sending domain isn't verified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateDeliverabilityTestReport @@ -487,17 +487,17 @@ func (c *PinpointEmail) CreateEmailIdentityRequest(input *CreateEmailIdentityInp // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation CreateEmailIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/CreateEmailIdentity @@ -582,17 +582,17 @@ func (c *PinpointEmail) DeleteConfigurationSetRequest(input *DeleteConfiguration // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation DeleteConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteConfigurationSet @@ -678,14 +678,14 @@ func (c *PinpointEmail) DeleteConfigurationSetEventDestinationRequest(input *Del // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation DeleteConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteConfigurationSetEventDestination @@ -764,17 +764,17 @@ func (c *PinpointEmail) DeleteDedicatedIpPoolRequest(input *DeleteDedicatedIpPoo // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation DeleteDedicatedIpPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteDedicatedIpPool @@ -854,17 +854,17 @@ func (c *PinpointEmail) DeleteEmailIdentityRequest(input *DeleteEmailIdentityInp // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation DeleteEmailIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/DeleteEmailIdentity @@ -943,11 +943,11 @@ func (c *PinpointEmail) GetAccountRequest(input *GetAccountInput) (req *request. // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetAccount @@ -1026,14 +1026,14 @@ func (c *PinpointEmail) GetBlacklistReportsRequest(input *GetBlacklistReportsInp // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetBlacklistReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetBlacklistReports @@ -1119,14 +1119,14 @@ func (c *PinpointEmail) GetConfigurationSetRequest(input *GetConfigurationSetInp // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetConfigurationSet @@ -1212,14 +1212,14 @@ func (c *PinpointEmail) GetConfigurationSetEventDestinationsRequest(input *GetCo // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetConfigurationSetEventDestinations for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetConfigurationSetEventDestinations @@ -1299,14 +1299,14 @@ func (c *PinpointEmail) GetDedicatedIpRequest(input *GetDedicatedIpInput) (req * // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetDedicatedIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDedicatedIp @@ -1391,14 +1391,14 @@ func (c *PinpointEmail) GetDedicatedIpsRequest(input *GetDedicatedIpsInput) (req // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetDedicatedIps for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDedicatedIps @@ -1537,14 +1537,14 @@ func (c *PinpointEmail) GetDeliverabilityDashboardOptionsRequest(input *GetDeliv // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetDeliverabilityDashboardOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDeliverabilityDashboardOptions @@ -1622,14 +1622,14 @@ func (c *PinpointEmail) GetDeliverabilityTestReportRequest(input *GetDeliverabil // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetDeliverabilityTestReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDeliverabilityTestReport @@ -1710,14 +1710,14 @@ func (c *PinpointEmail) GetDomainDeliverabilityCampaignRequest(input *GetDomainD // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetDomainDeliverabilityCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDomainDeliverabilityCampaign @@ -1796,14 +1796,14 @@ func (c *PinpointEmail) GetDomainStatisticsReportRequest(input *GetDomainStatist // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetDomainStatisticsReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetDomainStatisticsReport @@ -1883,14 +1883,14 @@ func (c *PinpointEmail) GetEmailIdentityRequest(input *GetEmailIdentityInput) (r // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation GetEmailIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/GetEmailIdentity @@ -1981,11 +1981,11 @@ func (c *PinpointEmail) ListConfigurationSetsRequest(input *ListConfigurationSet // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation ListConfigurationSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListConfigurationSets @@ -2122,11 +2122,11 @@ func (c *PinpointEmail) ListDedicatedIpPoolsRequest(input *ListDedicatedIpPoolsI // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation ListDedicatedIpPools for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListDedicatedIpPools @@ -2265,14 +2265,14 @@ func (c *PinpointEmail) ListDeliverabilityTestReportsRequest(input *ListDelivera // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation ListDeliverabilityTestReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListDeliverabilityTestReports @@ -2411,14 +2411,14 @@ func (c *PinpointEmail) ListDomainDeliverabilityCampaignsRequest(input *ListDoma // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation ListDomainDeliverabilityCampaigns for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListDomainDeliverabilityCampaigns @@ -2557,11 +2557,11 @@ func (c *PinpointEmail) ListEmailIdentitiesRequest(input *ListEmailIdentitiesInp // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation ListEmailIdentities for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListEmailIdentities @@ -2696,14 +2696,14 @@ func (c *PinpointEmail) ListTagsForResourceRequest(input *ListTagsForResourceInp // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/ListTagsForResource @@ -2782,11 +2782,11 @@ func (c *PinpointEmail) PutAccountDedicatedIpWarmupAttributesRequest(input *PutA // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutAccountDedicatedIpWarmupAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutAccountDedicatedIpWarmupAttributes @@ -2865,11 +2865,11 @@ func (c *PinpointEmail) PutAccountSendingAttributesRequest(input *PutAccountSend // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutAccountSendingAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutAccountSendingAttributes @@ -2950,14 +2950,14 @@ func (c *PinpointEmail) PutConfigurationSetDeliveryOptionsRequest(input *PutConf // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutConfigurationSetDeliveryOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetDeliveryOptions @@ -3037,14 +3037,14 @@ func (c *PinpointEmail) PutConfigurationSetReputationOptionsRequest(input *PutCo // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutConfigurationSetReputationOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetReputationOptions @@ -3124,14 +3124,14 @@ func (c *PinpointEmail) PutConfigurationSetSendingOptionsRequest(input *PutConfi // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutConfigurationSetSendingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetSendingOptions @@ -3211,14 +3211,14 @@ func (c *PinpointEmail) PutConfigurationSetTrackingOptionsRequest(input *PutConf // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutConfigurationSetTrackingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutConfigurationSetTrackingOptions @@ -3303,14 +3303,14 @@ func (c *PinpointEmail) PutDedicatedIpInPoolRequest(input *PutDedicatedIpInPoolI // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutDedicatedIpInPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDedicatedIpInPool @@ -3387,14 +3387,14 @@ func (c *PinpointEmail) PutDedicatedIpWarmupAttributesRequest(input *PutDedicate // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutDedicatedIpWarmupAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDedicatedIpWarmupAttributes @@ -3482,20 +3482,20 @@ func (c *PinpointEmail) PutDeliverabilityDashboardOptionRequest(input *PutDelive // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutDeliverabilityDashboardOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutDeliverabilityDashboardOption @@ -3574,14 +3574,14 @@ func (c *PinpointEmail) PutEmailIdentityDkimAttributesRequest(input *PutEmailIde // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutEmailIdentityDkimAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityDkimAttributes @@ -3674,14 +3674,14 @@ func (c *PinpointEmail) PutEmailIdentityFeedbackAttributesRequest(input *PutEmai // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutEmailIdentityFeedbackAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityFeedbackAttributes @@ -3761,14 +3761,14 @@ func (c *PinpointEmail) PutEmailIdentityMailFromAttributesRequest(input *PutEmai // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation PutEmailIdentityMailFromAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/PutEmailIdentityMailFromAttributes @@ -3856,31 +3856,31 @@ func (c *PinpointEmail) SendEmailRequest(input *SendEmailInput) (req *request.Re // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation SendEmail for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeAccountSuspendedException "AccountSuspendedException" +// * AccountSuspendedException // The message can't be sent because the account's ability to send email has // been permanently restricted. // -// * ErrCodeSendingPausedException "SendingPausedException" +// * SendingPausedException // The message can't be sent because the account's ability to send email is // currently paused. // -// * ErrCodeMessageRejected "MessageRejected" +// * MessageRejected // The message can't be sent because it contains invalid content. // -// * ErrCodeMailFromDomainNotVerifiedException "MailFromDomainNotVerifiedException" +// * MailFromDomainNotVerifiedException // The message can't be sent because the sending domain isn't verified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/SendEmail @@ -3968,17 +3968,17 @@ func (c *PinpointEmail) TagResourceRequest(input *TagResourceInput) (req *reques // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/TagResource @@ -4057,17 +4057,17 @@ func (c *PinpointEmail) UntagResourceRequest(input *UntagResourceInput) (req *re // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/UntagResource @@ -4153,14 +4153,14 @@ func (c *PinpointEmail) UpdateConfigurationSetEventDestinationRequest(input *Upd // See the AWS API reference guide for Amazon Pinpoint Email Service's // API operation UpdateConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-email-2018-07-26/UpdateConfigurationSetEventDestination @@ -4185,6 +4185,160 @@ func (c *PinpointEmail) UpdateConfigurationSetEventDestinationWithContext(ctx aw return out, req.Send() } +// The message can't be sent because the account's ability to send email has +// been permanently restricted. +type AccountSuspendedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccountSuspendedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountSuspendedException) GoString() string { + return s.String() +} + +func newErrorAccountSuspendedException(v protocol.ResponseMetadata) error { + return &AccountSuspendedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountSuspendedException) Code() string { + return "AccountSuspendedException" +} + +// Message returns the exception's message. +func (s AccountSuspendedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountSuspendedException) OrigErr() error { + return nil +} + +func (s AccountSuspendedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountSuspendedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountSuspendedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource specified in your request already exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input you provided is invalid. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that contains information about a blacklisting event that impacts // one of the dedicated IP addresses that is associated with your account. type BlacklistEntry struct { @@ -4424,6 +4578,57 @@ func (s *CloudWatchDimensionConfiguration) SetDimensionValueSource(v string) *Cl return s } +// The resource is being modified by another operation or thread. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that represents the content of the email, and optionally a character // set specification. type Content struct { @@ -7394,6 +7599,57 @@ func (s *KinesisFirehoseDestination) SetIamRoleArn(v string) *KinesisFirehoseDes return s } +// There are too many instances of the specified resource type. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // A request to obtain a list of configuration sets for your Amazon Pinpoint // account in the current AWS Region. type ListConfigurationSetsInput struct { @@ -7974,6 +8230,57 @@ func (s *MailFromAttributes) SetMailFromDomainStatus(v string) *MailFromAttribut return s } +// The message can't be sent because the sending domain isn't verified. +type MailFromDomainNotVerifiedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MailFromDomainNotVerifiedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MailFromDomainNotVerifiedException) GoString() string { + return s.String() +} + +func newErrorMailFromDomainNotVerifiedException(v protocol.ResponseMetadata) error { + return &MailFromDomainNotVerifiedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MailFromDomainNotVerifiedException) Code() string { + return "MailFromDomainNotVerifiedException" +} + +// Message returns the exception's message. +func (s MailFromDomainNotVerifiedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MailFromDomainNotVerifiedException) OrigErr() error { + return nil +} + +func (s MailFromDomainNotVerifiedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MailFromDomainNotVerifiedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MailFromDomainNotVerifiedException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the email message that you're sending. The Message object consists // of a subject line and a message body. type Message struct { @@ -8041,6 +8348,57 @@ func (s *Message) SetSubject(v *Content) *Message { return s } +// The message can't be sent because it contains invalid content. +type MessageRejected struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MessageRejected) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MessageRejected) GoString() string { + return s.String() +} + +func newErrorMessageRejected(v protocol.ResponseMetadata) error { + return &MessageRejected{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MessageRejected) Code() string { + return "MessageRejected" +} + +// Message returns the exception's message. +func (s MessageRejected) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MessageRejected) OrigErr() error { + return nil +} + +func (s MessageRejected) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MessageRejected) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MessageRejected) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the name and value of a tag that you apply to an email. You can // use message tags when you publish email sending events. type MessageTag struct { @@ -8107,6 +8465,57 @@ func (s *MessageTag) SetValue(v string) *MessageTag { return s } +// The resource you attempted to access doesn't exist. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that contains information about email that was sent from the selected // domain. type OverallVolume struct { @@ -9412,6 +9821,58 @@ func (s *SendingOptions) SetSendingEnabled(v bool) *SendingOptions { return s } +// The message can't be sent because the account's ability to send email is +// currently paused. +type SendingPausedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SendingPausedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendingPausedException) GoString() string { + return s.String() +} + +func newErrorSendingPausedException(v protocol.ResponseMetadata) error { + return &SendingPausedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SendingPausedException) Code() string { + return "SendingPausedException" +} + +// Message returns the exception's message. +func (s SendingPausedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SendingPausedException) OrigErr() error { + return nil +} + +func (s SendingPausedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SendingPausedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SendingPausedException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines an Amazon SNS destination for email events. You can // use Amazon SNS to send notification when certain email events occur. type SnsDestination struct { @@ -9654,6 +10115,57 @@ func (s *Template) SetTemplateData(v string) *Template { return s } +// Too many requests have been made to the operation. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines the tracking options for a configuration set. When // you use Amazon Pinpoint to send an email, it contains an invisible image // that's used to track when recipients open your email. If your email contains diff --git a/service/pinpointemail/errors.go b/service/pinpointemail/errors.go index 9968416b6b1..ce91d433c3f 100644 --- a/service/pinpointemail/errors.go +++ b/service/pinpointemail/errors.go @@ -2,6 +2,10 @@ package pinpointemail +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccountSuspendedException for service response error code @@ -66,3 +70,16 @@ const ( // Too many requests have been made to the operation. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccountSuspendedException": newErrorAccountSuspendedException, + "AlreadyExistsException": newErrorAlreadyExistsException, + "BadRequestException": newErrorBadRequestException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "LimitExceededException": newErrorLimitExceededException, + "MailFromDomainNotVerifiedException": newErrorMailFromDomainNotVerifiedException, + "MessageRejected": newErrorMessageRejected, + "NotFoundException": newErrorNotFoundException, + "SendingPausedException": newErrorSendingPausedException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/pinpointemail/service.go b/service/pinpointemail/service.go index fa88676cd43..4b48b5aee35 100644 --- a/service/pinpointemail/service.go +++ b/service/pinpointemail/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/pinpointsmsvoice/api.go b/service/pinpointsmsvoice/api.go index 0dcce5bae68..6ffa4322932 100644 --- a/service/pinpointsmsvoice/api.go +++ b/service/pinpointsmsvoice/api.go @@ -3,6 +3,8 @@ package pinpointsmsvoice import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -65,22 +67,22 @@ func (c *PinpointSMSVoice) CreateConfigurationSetRequest(input *CreateConfigurat // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation CreateConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The resource specified in your request already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet @@ -159,25 +161,25 @@ func (c *PinpointSMSVoice) CreateConfigurationSetEventDestinationRequest(input * // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation CreateConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The resource specified in your request already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination @@ -256,18 +258,18 @@ func (c *PinpointSMSVoice) DeleteConfigurationSetRequest(input *DeleteConfigurat // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation DeleteConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // @@ -347,18 +349,18 @@ func (c *PinpointSMSVoice) DeleteConfigurationSetEventDestinationRequest(input * // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation DeleteConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // @@ -439,18 +441,18 @@ func (c *PinpointSMSVoice) GetConfigurationSetEventDestinationsRequest(input *Ge // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation GetConfigurationSetEventDestinations for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // @@ -530,15 +532,15 @@ func (c *PinpointSMSVoice) ListConfigurationSetsRequest(input *ListConfiguration // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation ListConfigurationSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // @@ -617,15 +619,15 @@ func (c *PinpointSMSVoice) SendVoiceMessageRequest(input *SendVoiceMessageInput) // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation SendVoiceMessage for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // @@ -708,18 +710,18 @@ func (c *PinpointSMSVoice) UpdateConfigurationSetEventDestinationRequest(input * // See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's // API operation UpdateConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You've issued too many requests to the resource. Wait a few minutes, and // then try again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // The API encountered an unexpected error and couldn't complete the request. // You might be able to successfully issue the request again in the future. // @@ -745,6 +747,118 @@ func (c *PinpointSMSVoice) UpdateConfigurationSetEventDestinationWithContext(ctx return out, req.Send() } +// The resource specified in your request already exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input you provided is invalid. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines a message that contains text formatted using Amazon // Pinpoint Voice Instructions markup. type CallInstructionsMessageType struct { @@ -1248,6 +1362,63 @@ func (s *GetConfigurationSetEventDestinationsOutput) SetEventDestinations(v []*E return s } +// The API encountered an unexpected error and couldn't complete the request. +// You might be able to successfully issue the request again in the future. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s InternalServiceErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s InternalServiceErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that contains information about an event destination that sends // data to Amazon Kinesis Data Firehose. type KinesisFirehoseDestination struct { @@ -1284,6 +1455,62 @@ func (s *KinesisFirehoseDestination) SetIamRoleArn(v string) *KinesisFirehoseDes return s } +// There are too many instances of the specified resource type. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListConfigurationSetsInput struct { _ struct{} `type:"structure"` @@ -1350,6 +1577,62 @@ func (s *ListConfigurationSetsOutput) SetNextToken(v string) *ListConfigurationS return s } +// The resource you attempted to access doesn't exist. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines a message that contains unformatted text. type PlainTextMessageType struct { _ struct{} `type:"structure"` @@ -1554,6 +1837,63 @@ func (s *SnsDestination) SetTopicArn(v string) *SnsDestination { return s } +// You've issued too many requests to the resource. Wait a few minutes, and +// then try again. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines a request to update an existing event destination. type UpdateConfigurationSetEventDestinationInput struct { _ struct{} `type:"structure"` diff --git a/service/pinpointsmsvoice/errors.go b/service/pinpointsmsvoice/errors.go index 94c823d2aad..4868749224f 100644 --- a/service/pinpointsmsvoice/errors.go +++ b/service/pinpointsmsvoice/errors.go @@ -2,6 +2,10 @@ package pinpointsmsvoice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlreadyExistsException for service response error code @@ -42,3 +46,12 @@ const ( // then try again. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlreadyExistsException": newErrorAlreadyExistsException, + "BadRequestException": newErrorBadRequestException, + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/pinpointsmsvoice/service.go b/service/pinpointsmsvoice/service.go index 2416ba61667..9d0d758abaf 100644 --- a/service/pinpointsmsvoice/service.go +++ b/service/pinpointsmsvoice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/polly/api.go b/service/polly/api.go index 211d1b26cde..2203d0e488e 100644 --- a/service/polly/api.go +++ b/service/polly/api.go @@ -3,6 +3,7 @@ package polly import ( + "fmt" "io" "time" @@ -71,8 +72,8 @@ func (c *Polly) DeleteLexiconRequest(input *DeleteLexiconInput) (req *request.Re // See the AWS API reference guide for Amazon Polly's // API operation DeleteLexicon for usage and error information. // -// Returned Error Codes: -// * ErrCodeLexiconNotFoundException "LexiconNotFoundException" +// Returned Error Types: +// * LexiconNotFoundException // Amazon Polly can't find the specified lexicon. This could be caused by a // lexicon that is missing, its name is misspelled or specifying a lexicon that // is in a different region. @@ -80,7 +81,7 @@ func (c *Polly) DeleteLexiconRequest(input *DeleteLexiconInput) (req *request.Re // Verify that the lexicon exists, is in the region (see ListLexicons) and that // you spelled its name is spelled correctly. Then try again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DeleteLexicon @@ -174,12 +175,12 @@ func (c *Polly) DescribeVoicesRequest(input *DescribeVoicesInput) (req *request. // See the AWS API reference guide for Amazon Polly's // API operation DescribeVoices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The NextToken is invalid. Verify that it's spelled correctly, and then try // again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/DescribeVoices @@ -258,8 +259,8 @@ func (c *Polly) GetLexiconRequest(input *GetLexiconInput) (req *request.Request, // See the AWS API reference guide for Amazon Polly's // API operation GetLexicon for usage and error information. // -// Returned Error Codes: -// * ErrCodeLexiconNotFoundException "LexiconNotFoundException" +// Returned Error Types: +// * LexiconNotFoundException // Amazon Polly can't find the specified lexicon. This could be caused by a // lexicon that is missing, its name is misspelled or specifying a lexicon that // is in a different region. @@ -267,7 +268,7 @@ func (c *Polly) GetLexiconRequest(input *GetLexiconInput) (req *request.Request, // Verify that the lexicon exists, is in the region (see ListLexicons) and that // you spelled its name is spelled correctly. Then try again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetLexicon @@ -348,15 +349,15 @@ func (c *Polly) GetSpeechSynthesisTaskRequest(input *GetSpeechSynthesisTaskInput // See the AWS API reference guide for Amazon Polly's // API operation GetSpeechSynthesisTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidTaskIdException "InvalidTaskIdException" +// Returned Error Types: +// * InvalidTaskIdException // The provided Task ID is not valid. Please provide a valid Task ID and try // again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // -// * ErrCodeSynthesisTaskNotFoundException "SynthesisTaskNotFoundException" +// * SynthesisTaskNotFoundException // The Speech Synthesis task with requested Task ID cannot be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/GetSpeechSynthesisTask @@ -435,12 +436,12 @@ func (c *Polly) ListLexiconsRequest(input *ListLexiconsInput) (req *request.Requ // See the AWS API reference guide for Amazon Polly's // API operation ListLexicons for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The NextToken is invalid. Verify that it's spelled correctly, and then try // again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListLexicons @@ -526,12 +527,12 @@ func (c *Polly) ListSpeechSynthesisTasksRequest(input *ListSpeechSynthesisTasksI // See the AWS API reference guide for Amazon Polly's // API operation ListSpeechSynthesisTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The NextToken is invalid. Verify that it's spelled correctly, and then try // again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/ListSpeechSynthesisTasks @@ -667,29 +668,29 @@ func (c *Polly) PutLexiconRequest(input *PutLexiconInput) (req *request.Request, // See the AWS API reference guide for Amazon Polly's // API operation PutLexicon for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidLexiconException "InvalidLexiconException" +// Returned Error Types: +// * InvalidLexiconException // Amazon Polly can't find the specified lexicon. Verify that the lexicon's // name is spelled correctly, and then try again. // -// * ErrCodeUnsupportedPlsAlphabetException "UnsupportedPlsAlphabetException" +// * UnsupportedPlsAlphabetException // The alphabet specified by the lexicon is not a supported alphabet. Valid // values are x-sampa and ipa. // -// * ErrCodeUnsupportedPlsLanguageException "UnsupportedPlsLanguageException" +// * UnsupportedPlsLanguageException // The language specified in the lexicon is unsupported. For a list of supported // languages, see Lexicon Attributes (https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html). // -// * ErrCodeLexiconSizeExceededException "LexiconSizeExceededException" +// * LexiconSizeExceededException // The maximum size of the specified lexicon would be exceeded by this operation. // -// * ErrCodeMaxLexemeLengthExceededException "MaxLexemeLengthExceededException" +// * MaxLexemeLengthExceededException // The maximum size of the lexeme would be exceeded by this operation. // -// * ErrCodeMaxLexiconsNumberExceededException "MaxLexiconsNumberExceededException" +// * MaxLexiconsNumberExceededException // The maximum number of lexicons would be exceeded by this operation. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // // See also, https://docs.aws.amazon.com/goto/WebAPI/polly-2016-06-10/PutLexicon @@ -773,39 +774,39 @@ func (c *Polly) StartSpeechSynthesisTaskRequest(input *StartSpeechSynthesisTaskI // See the AWS API reference guide for Amazon Polly's // API operation StartSpeechSynthesisTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeTextLengthExceededException "TextLengthExceededException" +// Returned Error Types: +// * TextLengthExceededException // The value of the "Text" parameter is longer than the accepted limits. For // the SynthesizeSpeech API, the limit for input text is a maximum of 6000 characters // total, of which no more than 3000 can be billed characters. For the StartSpeechSynthesisTask // API, the maximum is 200,000 characters, of which no more than 100,000 can // be billed characters. SSML tags are not counted as billed characters. // -// * ErrCodeInvalidS3BucketException "InvalidS3BucketException" +// * InvalidS3BucketException // The provided Amazon S3 bucket name is invalid. Please check your input with // S3 bucket naming requirements and try again. // -// * ErrCodeInvalidS3KeyException "InvalidS3KeyException" +// * InvalidS3KeyException // The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object // key name. // -// * ErrCodeInvalidSampleRateException "InvalidSampleRateException" +// * InvalidSampleRateException // The specified sample rate is not valid. // -// * ErrCodeInvalidSnsTopicArnException "InvalidSnsTopicArnException" +// * InvalidSnsTopicArnException // The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN // and try again. // -// * ErrCodeInvalidSsmlException "InvalidSsmlException" +// * InvalidSsmlException // The SSML you provided is invalid. Verify the SSML syntax, spelling of tags // and values, and then try again. // -// * ErrCodeEngineNotSupportedException "EngineNotSupportedException" +// * EngineNotSupportedException // This engine is not compatible with the voice that you have designated. Choose // a new voice that is compatible with the engine or change the engine and restart // the operation. // -// * ErrCodeLexiconNotFoundException "LexiconNotFoundException" +// * LexiconNotFoundException // Amazon Polly can't find the specified lexicon. This could be caused by a // lexicon that is missing, its name is misspelled or specifying a lexicon that // is in a different region. @@ -813,17 +814,17 @@ func (c *Polly) StartSpeechSynthesisTaskRequest(input *StartSpeechSynthesisTaskI // Verify that the lexicon exists, is in the region (see ListLexicons) and that // you spelled its name is spelled correctly. Then try again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // -// * ErrCodeMarksNotSupportedForFormatException "MarksNotSupportedForFormatException" +// * MarksNotSupportedForFormatException // Speech marks are not supported for the OutputFormat selected. Speech marks // are only available for content in json format. // -// * ErrCodeSsmlMarksNotSupportedForTextTypeException "SsmlMarksNotSupportedForTextTypeException" +// * SsmlMarksNotSupportedForTextTypeException // SSML speech marks are not supported for plain text-type input. // -// * ErrCodeLanguageNotSupportedException "LanguageNotSupportedException" +// * LanguageNotSupportedException // The language specified is not currently supported by Amazon Polly in this // capacity. // @@ -906,22 +907,22 @@ func (c *Polly) SynthesizeSpeechRequest(input *SynthesizeSpeechInput) (req *requ // See the AWS API reference guide for Amazon Polly's // API operation SynthesizeSpeech for usage and error information. // -// Returned Error Codes: -// * ErrCodeTextLengthExceededException "TextLengthExceededException" +// Returned Error Types: +// * TextLengthExceededException // The value of the "Text" parameter is longer than the accepted limits. For // the SynthesizeSpeech API, the limit for input text is a maximum of 6000 characters // total, of which no more than 3000 can be billed characters. For the StartSpeechSynthesisTask // API, the maximum is 200,000 characters, of which no more than 100,000 can // be billed characters. SSML tags are not counted as billed characters. // -// * ErrCodeInvalidSampleRateException "InvalidSampleRateException" +// * InvalidSampleRateException // The specified sample rate is not valid. // -// * ErrCodeInvalidSsmlException "InvalidSsmlException" +// * InvalidSsmlException // The SSML you provided is invalid. Verify the SSML syntax, spelling of tags // and values, and then try again. // -// * ErrCodeLexiconNotFoundException "LexiconNotFoundException" +// * LexiconNotFoundException // Amazon Polly can't find the specified lexicon. This could be caused by a // lexicon that is missing, its name is misspelled or specifying a lexicon that // is in a different region. @@ -929,21 +930,21 @@ func (c *Polly) SynthesizeSpeechRequest(input *SynthesizeSpeechInput) (req *requ // Verify that the lexicon exists, is in the region (see ListLexicons) and that // you spelled its name is spelled correctly. Then try again. // -// * ErrCodeServiceFailureException "ServiceFailureException" +// * ServiceFailureException // An unknown condition has caused a service failure. // -// * ErrCodeMarksNotSupportedForFormatException "MarksNotSupportedForFormatException" +// * MarksNotSupportedForFormatException // Speech marks are not supported for the OutputFormat selected. Speech marks // are only available for content in json format. // -// * ErrCodeSsmlMarksNotSupportedForTextTypeException "SsmlMarksNotSupportedForTextTypeException" +// * SsmlMarksNotSupportedForTextTypeException // SSML speech marks are not supported for plain text-type input. // -// * ErrCodeLanguageNotSupportedException "LanguageNotSupportedException" +// * LanguageNotSupportedException // The language specified is not currently supported by Amazon Polly in this // capacity. // -// * ErrCodeEngineNotSupportedException "EngineNotSupportedException" +// * EngineNotSupportedException // This engine is not compatible with the voice that you have designated. Choose // a new voice that is compatible with the engine or change the engine and restart // the operation. @@ -1116,6 +1117,64 @@ func (s *DescribeVoicesOutput) SetVoices(v []*Voice) *DescribeVoicesOutput { return s } +// This engine is not compatible with the voice that you have designated. Choose +// a new voice that is compatible with the engine or change the engine and restart +// the operation. +type EngineNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s EngineNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EngineNotSupportedException) GoString() string { + return s.String() +} + +func newErrorEngineNotSupportedException(v protocol.ResponseMetadata) error { + return &EngineNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EngineNotSupportedException) Code() string { + return "EngineNotSupportedException" +} + +// Message returns the exception's message. +func (s EngineNotSupportedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EngineNotSupportedException) OrigErr() error { + return nil +} + +func (s EngineNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EngineNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EngineNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + type GetLexiconInput struct { _ struct{} `type:"structure"` @@ -1256,6 +1315,518 @@ func (s *GetSpeechSynthesisTaskOutput) SetSynthesisTask(v *SynthesisTask) *GetSp return s } +// Amazon Polly can't find the specified lexicon. Verify that the lexicon's +// name is spelled correctly, and then try again. +type InvalidLexiconException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidLexiconException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLexiconException) GoString() string { + return s.String() +} + +func newErrorInvalidLexiconException(v protocol.ResponseMetadata) error { + return &InvalidLexiconException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLexiconException) Code() string { + return "InvalidLexiconException" +} + +// Message returns the exception's message. +func (s InvalidLexiconException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLexiconException) OrigErr() error { + return nil +} + +func (s InvalidLexiconException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLexiconException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLexiconException) RequestID() string { + return s.respMetadata.RequestID +} + +// The NextToken is invalid. Verify that it's spelled correctly, and then try +// again. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided Amazon S3 bucket name is invalid. Please check your input with +// S3 bucket naming requirements and try again. +type InvalidS3BucketException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidS3BucketException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidS3BucketException) GoString() string { + return s.String() +} + +func newErrorInvalidS3BucketException(v protocol.ResponseMetadata) error { + return &InvalidS3BucketException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidS3BucketException) Code() string { + return "InvalidS3BucketException" +} + +// Message returns the exception's message. +func (s InvalidS3BucketException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidS3BucketException) OrigErr() error { + return nil +} + +func (s InvalidS3BucketException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidS3BucketException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidS3BucketException) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided Amazon S3 key prefix is invalid. Please provide a valid S3 object +// key name. +type InvalidS3KeyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidS3KeyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidS3KeyException) GoString() string { + return s.String() +} + +func newErrorInvalidS3KeyException(v protocol.ResponseMetadata) error { + return &InvalidS3KeyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidS3KeyException) Code() string { + return "InvalidS3KeyException" +} + +// Message returns the exception's message. +func (s InvalidS3KeyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidS3KeyException) OrigErr() error { + return nil +} + +func (s InvalidS3KeyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidS3KeyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidS3KeyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified sample rate is not valid. +type InvalidSampleRateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidSampleRateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSampleRateException) GoString() string { + return s.String() +} + +func newErrorInvalidSampleRateException(v protocol.ResponseMetadata) error { + return &InvalidSampleRateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSampleRateException) Code() string { + return "InvalidSampleRateException" +} + +// Message returns the exception's message. +func (s InvalidSampleRateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSampleRateException) OrigErr() error { + return nil +} + +func (s InvalidSampleRateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSampleRateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSampleRateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided SNS topic ARN is invalid. Please provide a valid SNS topic ARN +// and try again. +type InvalidSnsTopicArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidSnsTopicArnException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSnsTopicArnException) GoString() string { + return s.String() +} + +func newErrorInvalidSnsTopicArnException(v protocol.ResponseMetadata) error { + return &InvalidSnsTopicArnException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSnsTopicArnException) Code() string { + return "InvalidSnsTopicArnException" +} + +// Message returns the exception's message. +func (s InvalidSnsTopicArnException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSnsTopicArnException) OrigErr() error { + return nil +} + +func (s InvalidSnsTopicArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSnsTopicArnException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSnsTopicArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// The SSML you provided is invalid. Verify the SSML syntax, spelling of tags +// and values, and then try again. +type InvalidSsmlException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidSsmlException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSsmlException) GoString() string { + return s.String() +} + +func newErrorInvalidSsmlException(v protocol.ResponseMetadata) error { + return &InvalidSsmlException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSsmlException) Code() string { + return "InvalidSsmlException" +} + +// Message returns the exception's message. +func (s InvalidSsmlException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSsmlException) OrigErr() error { + return nil +} + +func (s InvalidSsmlException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSsmlException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSsmlException) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided Task ID is not valid. Please provide a valid Task ID and try +// again. +type InvalidTaskIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidTaskIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTaskIdException) GoString() string { + return s.String() +} + +func newErrorInvalidTaskIdException(v protocol.ResponseMetadata) error { + return &InvalidTaskIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTaskIdException) Code() string { + return "InvalidTaskIdException" +} + +// Message returns the exception's message. +func (s InvalidTaskIdException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTaskIdException) OrigErr() error { + return nil +} + +func (s InvalidTaskIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTaskIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTaskIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The language specified is not currently supported by Amazon Polly in this +// capacity. +type LanguageNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LanguageNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LanguageNotSupportedException) GoString() string { + return s.String() +} + +func newErrorLanguageNotSupportedException(v protocol.ResponseMetadata) error { + return &LanguageNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LanguageNotSupportedException) Code() string { + return "LanguageNotSupportedException" +} + +// Message returns the exception's message. +func (s LanguageNotSupportedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LanguageNotSupportedException) OrigErr() error { + return nil +} + +func (s LanguageNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LanguageNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LanguageNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides lexicon name and lexicon content in string format. For more information, // see Pronunciation Lexicon Specification (PLS) Version 1.0 (https://www.w3.org/TR/pronunciation-lexicon/). type Lexicon struct { @@ -1390,10 +1961,127 @@ func (s *LexiconDescription) SetAttributes(v *LexiconAttributes) *LexiconDescrip return s } -// SetName sets the Name field's value. -func (s *LexiconDescription) SetName(v string) *LexiconDescription { - s.Name = &v - return s +// SetName sets the Name field's value. +func (s *LexiconDescription) SetName(v string) *LexiconDescription { + s.Name = &v + return s +} + +// Amazon Polly can't find the specified lexicon. This could be caused by a +// lexicon that is missing, its name is misspelled or specifying a lexicon that +// is in a different region. +// +// Verify that the lexicon exists, is in the region (see ListLexicons) and that +// you spelled its name is spelled correctly. Then try again. +type LexiconNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LexiconNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LexiconNotFoundException) GoString() string { + return s.String() +} + +func newErrorLexiconNotFoundException(v protocol.ResponseMetadata) error { + return &LexiconNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LexiconNotFoundException) Code() string { + return "LexiconNotFoundException" +} + +// Message returns the exception's message. +func (s LexiconNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LexiconNotFoundException) OrigErr() error { + return nil +} + +func (s LexiconNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LexiconNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LexiconNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum size of the specified lexicon would be exceeded by this operation. +type LexiconSizeExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LexiconSizeExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LexiconSizeExceededException) GoString() string { + return s.String() +} + +func newErrorLexiconSizeExceededException(v protocol.ResponseMetadata) error { + return &LexiconSizeExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LexiconSizeExceededException) Code() string { + return "LexiconSizeExceededException" +} + +// Message returns the exception's message. +func (s LexiconSizeExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LexiconSizeExceededException) OrigErr() error { + return nil +} + +func (s LexiconSizeExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LexiconSizeExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LexiconSizeExceededException) RequestID() string { + return s.respMetadata.RequestID } type ListLexiconsInput struct { @@ -1543,6 +2231,175 @@ func (s *ListSpeechSynthesisTasksOutput) SetSynthesisTasks(v []*SynthesisTask) * return s } +// Speech marks are not supported for the OutputFormat selected. Speech marks +// are only available for content in json format. +type MarksNotSupportedForFormatException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MarksNotSupportedForFormatException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MarksNotSupportedForFormatException) GoString() string { + return s.String() +} + +func newErrorMarksNotSupportedForFormatException(v protocol.ResponseMetadata) error { + return &MarksNotSupportedForFormatException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MarksNotSupportedForFormatException) Code() string { + return "MarksNotSupportedForFormatException" +} + +// Message returns the exception's message. +func (s MarksNotSupportedForFormatException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MarksNotSupportedForFormatException) OrigErr() error { + return nil +} + +func (s MarksNotSupportedForFormatException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MarksNotSupportedForFormatException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MarksNotSupportedForFormatException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum size of the lexeme would be exceeded by this operation. +type MaxLexemeLengthExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MaxLexemeLengthExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxLexemeLengthExceededException) GoString() string { + return s.String() +} + +func newErrorMaxLexemeLengthExceededException(v protocol.ResponseMetadata) error { + return &MaxLexemeLengthExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxLexemeLengthExceededException) Code() string { + return "MaxLexemeLengthExceededException" +} + +// Message returns the exception's message. +func (s MaxLexemeLengthExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxLexemeLengthExceededException) OrigErr() error { + return nil +} + +func (s MaxLexemeLengthExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxLexemeLengthExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxLexemeLengthExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of lexicons would be exceeded by this operation. +type MaxLexiconsNumberExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MaxLexiconsNumberExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxLexiconsNumberExceededException) GoString() string { + return s.String() +} + +func newErrorMaxLexiconsNumberExceededException(v protocol.ResponseMetadata) error { + return &MaxLexiconsNumberExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxLexiconsNumberExceededException) Code() string { + return "MaxLexiconsNumberExceededException" +} + +// Message returns the exception's message. +func (s MaxLexiconsNumberExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxLexiconsNumberExceededException) OrigErr() error { + return nil +} + +func (s MaxLexiconsNumberExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxLexiconsNumberExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxLexiconsNumberExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type PutLexiconInput struct { _ struct{} `type:"structure"` @@ -1614,6 +2471,118 @@ func (s PutLexiconOutput) GoString() string { return s.String() } +// An unknown condition has caused a service failure. +type ServiceFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceFailureException) GoString() string { + return s.String() +} + +func newErrorServiceFailureException(v protocol.ResponseMetadata) error { + return &ServiceFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceFailureException) Code() string { + return "ServiceFailureException" +} + +// Message returns the exception's message. +func (s ServiceFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceFailureException) OrigErr() error { + return nil +} + +func (s ServiceFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// SSML speech marks are not supported for plain text-type input. +type SsmlMarksNotSupportedForTextTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SsmlMarksNotSupportedForTextTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SsmlMarksNotSupportedForTextTypeException) GoString() string { + return s.String() +} + +func newErrorSsmlMarksNotSupportedForTextTypeException(v protocol.ResponseMetadata) error { + return &SsmlMarksNotSupportedForTextTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SsmlMarksNotSupportedForTextTypeException) Code() string { + return "SsmlMarksNotSupportedForTextTypeException" +} + +// Message returns the exception's message. +func (s SsmlMarksNotSupportedForTextTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SsmlMarksNotSupportedForTextTypeException) OrigErr() error { + return nil +} + +func (s SsmlMarksNotSupportedForTextTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SsmlMarksNotSupportedForTextTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SsmlMarksNotSupportedForTextTypeException) RequestID() string { + return s.respMetadata.RequestID +} + type StartSpeechSynthesisTaskInput struct { _ struct{} `type:"structure"` @@ -1984,6 +2953,62 @@ func (s *SynthesisTask) SetVoiceId(v string) *SynthesisTask { return s } +// The Speech Synthesis task with requested Task ID cannot be found. +type SynthesisTaskNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SynthesisTaskNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SynthesisTaskNotFoundException) GoString() string { + return s.String() +} + +func newErrorSynthesisTaskNotFoundException(v protocol.ResponseMetadata) error { + return &SynthesisTaskNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SynthesisTaskNotFoundException) Code() string { + return "SynthesisTaskNotFoundException" +} + +// Message returns the exception's message. +func (s SynthesisTaskNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SynthesisTaskNotFoundException) OrigErr() error { + return nil +} + +func (s SynthesisTaskNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SynthesisTaskNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SynthesisTaskNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type SynthesizeSpeechInput struct { _ struct{} `type:"structure"` @@ -2185,6 +3210,180 @@ func (s *SynthesizeSpeechOutput) SetRequestCharacters(v int64) *SynthesizeSpeech return s } +// The value of the "Text" parameter is longer than the accepted limits. For +// the SynthesizeSpeech API, the limit for input text is a maximum of 6000 characters +// total, of which no more than 3000 can be billed characters. For the StartSpeechSynthesisTask +// API, the maximum is 200,000 characters, of which no more than 100,000 can +// be billed characters. SSML tags are not counted as billed characters. +type TextLengthExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TextLengthExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TextLengthExceededException) GoString() string { + return s.String() +} + +func newErrorTextLengthExceededException(v protocol.ResponseMetadata) error { + return &TextLengthExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TextLengthExceededException) Code() string { + return "TextLengthExceededException" +} + +// Message returns the exception's message. +func (s TextLengthExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TextLengthExceededException) OrigErr() error { + return nil +} + +func (s TextLengthExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TextLengthExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TextLengthExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The alphabet specified by the lexicon is not a supported alphabet. Valid +// values are x-sampa and ipa. +type UnsupportedPlsAlphabetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedPlsAlphabetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedPlsAlphabetException) GoString() string { + return s.String() +} + +func newErrorUnsupportedPlsAlphabetException(v protocol.ResponseMetadata) error { + return &UnsupportedPlsAlphabetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedPlsAlphabetException) Code() string { + return "UnsupportedPlsAlphabetException" +} + +// Message returns the exception's message. +func (s UnsupportedPlsAlphabetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedPlsAlphabetException) OrigErr() error { + return nil +} + +func (s UnsupportedPlsAlphabetException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedPlsAlphabetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedPlsAlphabetException) RequestID() string { + return s.respMetadata.RequestID +} + +// The language specified in the lexicon is unsupported. For a list of supported +// languages, see Lexicon Attributes (https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html). +type UnsupportedPlsLanguageException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedPlsLanguageException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedPlsLanguageException) GoString() string { + return s.String() +} + +func newErrorUnsupportedPlsLanguageException(v protocol.ResponseMetadata) error { + return &UnsupportedPlsLanguageException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedPlsLanguageException) Code() string { + return "UnsupportedPlsLanguageException" +} + +// Message returns the exception's message. +func (s UnsupportedPlsLanguageException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedPlsLanguageException) OrigErr() error { + return nil +} + +func (s UnsupportedPlsLanguageException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedPlsLanguageException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedPlsLanguageException) RequestID() string { + return s.respMetadata.RequestID +} + // Description of the voice. type Voice struct { _ struct{} `type:"structure"` diff --git a/service/polly/errors.go b/service/polly/errors.go index 281bd02b176..dd52095472a 100644 --- a/service/polly/errors.go +++ b/service/polly/errors.go @@ -2,6 +2,10 @@ package polly +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeEngineNotSupportedException for service response error code @@ -152,3 +156,27 @@ const ( // languages, see Lexicon Attributes (https://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html). ErrCodeUnsupportedPlsLanguageException = "UnsupportedPlsLanguageException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "EngineNotSupportedException": newErrorEngineNotSupportedException, + "InvalidLexiconException": newErrorInvalidLexiconException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidS3BucketException": newErrorInvalidS3BucketException, + "InvalidS3KeyException": newErrorInvalidS3KeyException, + "InvalidSampleRateException": newErrorInvalidSampleRateException, + "InvalidSnsTopicArnException": newErrorInvalidSnsTopicArnException, + "InvalidSsmlException": newErrorInvalidSsmlException, + "InvalidTaskIdException": newErrorInvalidTaskIdException, + "LanguageNotSupportedException": newErrorLanguageNotSupportedException, + "LexiconNotFoundException": newErrorLexiconNotFoundException, + "LexiconSizeExceededException": newErrorLexiconSizeExceededException, + "MarksNotSupportedForFormatException": newErrorMarksNotSupportedForFormatException, + "MaxLexemeLengthExceededException": newErrorMaxLexemeLengthExceededException, + "MaxLexiconsNumberExceededException": newErrorMaxLexiconsNumberExceededException, + "ServiceFailureException": newErrorServiceFailureException, + "SsmlMarksNotSupportedForTextTypeException": newErrorSsmlMarksNotSupportedForTextTypeException, + "SynthesisTaskNotFoundException": newErrorSynthesisTaskNotFoundException, + "TextLengthExceededException": newErrorTextLengthExceededException, + "UnsupportedPlsAlphabetException": newErrorUnsupportedPlsAlphabetException, + "UnsupportedPlsLanguageException": newErrorUnsupportedPlsLanguageException, +} diff --git a/service/polly/service.go b/service/polly/service.go index a6407d5a71b..10de2d57c66 100644 --- a/service/polly/service.go +++ b/service/polly/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/pricing/api.go b/service/pricing/api.go index e85726fe6f9..eddb51929b1 100644 --- a/service/pricing/api.go +++ b/service/pricing/api.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opDescribeServices = "DescribeServices" @@ -74,21 +75,21 @@ func (c *Pricing) DescribeServicesRequest(input *DescribeServicesInput) (req *re // See the AWS API reference guide for AWS Price List Service's // API operation DescribeServices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters had an invalid value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource can't be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token expired. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/DescribeServices @@ -227,21 +228,21 @@ func (c *Pricing) GetAttributeValuesRequest(input *GetAttributeValuesInput) (req // See the AWS API reference guide for AWS Price List Service's // API operation GetAttributeValues for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters had an invalid value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource can't be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token expired. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/GetAttributeValues @@ -377,21 +378,21 @@ func (c *Pricing) GetProductsRequest(input *GetProductsInput) (req *request.Requ // See the AWS API reference guide for AWS Price List Service's // API operation GetProducts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // An error on the server occurred during the processing of your request. Try // again later. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters had an invalid value. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The requested resource can't be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The pagination token is invalid. Try again without a pagination token. // -// * ErrCodeExpiredNextTokenException "ExpiredNextTokenException" +// * ExpiredNextTokenException // The pagination token expired. Try again without a pagination token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/pricing-2017-10-15/GetProducts @@ -602,6 +603,62 @@ func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutp return s } +// The pagination token expired. Try again without a pagination token. +type ExpiredNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ExpiredNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredNextTokenException) GoString() string { + return s.String() +} + +func newErrorExpiredNextTokenException(v protocol.ResponseMetadata) error { + return &ExpiredNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredNextTokenException) Code() string { + return "ExpiredNextTokenException" +} + +// Message returns the exception's message. +func (s ExpiredNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredNextTokenException) OrigErr() error { + return nil +} + +func (s ExpiredNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + // The constraints that you want all returned products to match. type Filter struct { _ struct{} `type:"structure"` @@ -921,6 +978,231 @@ func (s *GetProductsOutput) SetPriceList(v []aws.JSONValue) *GetProductsOutput { return s } +// An error on the server occurred during the processing of your request. Try +// again later. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} + +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} + +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The pagination token is invalid. Try again without a pagination token. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more parameters had an invalid value. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource can't be found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The metadata for a service, such as the service code and available attribute // names. type Service struct { diff --git a/service/pricing/errors.go b/service/pricing/errors.go index 10e4c44fe92..c628c9a2b06 100644 --- a/service/pricing/errors.go +++ b/service/pricing/errors.go @@ -2,6 +2,10 @@ package pricing +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeExpiredNextTokenException for service response error code @@ -35,3 +39,11 @@ const ( // The requested resource can't be found. ErrCodeNotFoundException = "NotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ExpiredNextTokenException": newErrorExpiredNextTokenException, + "InternalErrorException": newErrorInternalErrorException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "NotFoundException": newErrorNotFoundException, +} diff --git a/service/pricing/service.go b/service/pricing/service.go index c5cf3c011e2..c657fb60619 100644 --- a/service/pricing/service.go +++ b/service/pricing/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/qldb/api.go b/service/qldb/api.go index a332e1d761c..0fcb1f12705 100644 --- a/service/qldb/api.go +++ b/service/qldb/api.go @@ -3,6 +3,7 @@ package qldb import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,17 +66,17 @@ func (c *QLDB) CreateLedgerRequest(input *CreateLedgerInput) (req *request.Reque // See the AWS API reference guide for Amazon QLDB's // API operation CreateLedger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have reached the limit on the maximum number of resources allowed. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource can't be modified at this time. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/CreateLedger @@ -160,17 +161,17 @@ func (c *QLDB) DeleteLedgerRequest(input *DeleteLedgerInput) (req *request.Reque // See the AWS API reference guide for Amazon QLDB's // API operation DeleteLedger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The specified resource can't be modified at this time. // -// * ErrCodeResourcePreconditionNotMetException "ResourcePreconditionNotMetException" +// * ResourcePreconditionNotMetException // The operation failed because a condition wasn't satisfied in advance. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/DeleteLedger @@ -254,8 +255,8 @@ func (c *QLDB) DescribeJournalS3ExportRequest(input *DescribeJournalS3ExportInpu // See the AWS API reference guide for Amazon QLDB's // API operation DescribeJournalS3Export for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/DescribeJournalS3Export @@ -333,11 +334,11 @@ func (c *QLDB) DescribeLedgerRequest(input *DescribeLedgerInput) (req *request.R // See the AWS API reference guide for Amazon QLDB's // API operation DescribeLedger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/DescribeLedger @@ -424,11 +425,11 @@ func (c *QLDB) ExportJournalToS3Request(input *ExportJournalToS3Input) (req *req // See the AWS API reference guide for Amazon QLDB's // API operation ExportJournalToS3 for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourcePreconditionNotMetException "ResourcePreconditionNotMetException" +// * ResourcePreconditionNotMetException // The operation failed because a condition wasn't satisfied in advance. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ExportJournalToS3 @@ -514,14 +515,14 @@ func (c *QLDB) GetBlockRequest(input *GetBlockInput) (req *request.Request, outp // See the AWS API reference guide for Amazon QLDB's // API operation GetBlock for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourcePreconditionNotMetException "ResourcePreconditionNotMetException" +// * ResourcePreconditionNotMetException // The operation failed because a condition wasn't satisfied in advance. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/GetBlock @@ -600,14 +601,14 @@ func (c *QLDB) GetDigestRequest(input *GetDigestInput) (req *request.Request, ou // See the AWS API reference guide for Amazon QLDB's // API operation GetDigest for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourcePreconditionNotMetException "ResourcePreconditionNotMetException" +// * ResourcePreconditionNotMetException // The operation failed because a condition wasn't satisfied in advance. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/GetDigest @@ -687,14 +688,14 @@ func (c *QLDB) GetRevisionRequest(input *GetRevisionInput) (req *request.Request // See the AWS API reference guide for Amazon QLDB's // API operation GetRevision for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourcePreconditionNotMetException "ResourcePreconditionNotMetException" +// * ResourcePreconditionNotMetException // The operation failed because a condition wasn't satisfied in advance. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/GetRevision @@ -1180,11 +1181,11 @@ func (c *QLDB) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req // See the AWS API reference guide for Amazon QLDB's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/ListTagsForResource @@ -1266,11 +1267,11 @@ func (c *QLDB) TagResourceRequest(input *TagResourceInput) (req *request.Request // See the AWS API reference guide for Amazon QLDB's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/TagResource @@ -1350,11 +1351,11 @@ func (c *QLDB) UntagResourceRequest(input *UntagResourceInput) (req *request.Req // See the AWS API reference guide for Amazon QLDB's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/UntagResource @@ -1432,11 +1433,11 @@ func (c *QLDB) UpdateLedgerRequest(input *UpdateLedgerInput) (req *request.Reque // See the AWS API reference guide for Amazon QLDB's // API operation UpdateLedger for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in the request aren't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-2019-01-02/UpdateLedger @@ -2345,6 +2346,65 @@ func (s *GetRevisionOutput) SetRevision(v *ValueHolder) *GetRevisionOutput { return s } +// One or more parameters in the request aren't valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the invalid parameter. + ParameterName *string `type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + // The information about a journal export job, including the ledger name, export // ID, when it was created, current status, and its start and end time export // parameters. @@ -2505,6 +2565,65 @@ func (s *LedgerSummary) SetState(v string) *LedgerSummary { return s } +// You have reached the limit on the maximum number of resources allowed. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The type of resource. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListJournalS3ExportsForLedgerInput struct { _ struct{} `type:"structure"` @@ -2858,6 +2977,254 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +// The specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the resource. + ResourceName *string `type:"string"` + + // The type of resource. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource can't be modified at this time. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the resource. + ResourceName *string `type:"string"` + + // The type of resource. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the resource. + ResourceName *string `type:"string"` + + // The type of resource. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because a condition wasn't satisfied in advance. +type ResourcePreconditionNotMetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The name of the resource. + ResourceName *string `type:"string"` + + // The type of resource. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourcePreconditionNotMetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourcePreconditionNotMetException) GoString() string { + return s.String() +} + +func newErrorResourcePreconditionNotMetException(v protocol.ResponseMetadata) error { + return &ResourcePreconditionNotMetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourcePreconditionNotMetException) Code() string { + return "ResourcePreconditionNotMetException" +} + +// Message returns the exception's message. +func (s ResourcePreconditionNotMetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourcePreconditionNotMetException) OrigErr() error { + return nil +} + +func (s ResourcePreconditionNotMetException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourcePreconditionNotMetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourcePreconditionNotMetException) RequestID() string { + return s.respMetadata.RequestID +} + // The encryption settings that are used by a journal export job to write data // in an Amazon Simple Storage Service (Amazon S3) bucket. type S3EncryptionConfiguration struct { diff --git a/service/qldb/errors.go b/service/qldb/errors.go index f6d45d03d47..b7cec5a11d7 100644 --- a/service/qldb/errors.go +++ b/service/qldb/errors.go @@ -2,6 +2,10 @@ package qldb +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidParameterException for service response error code @@ -40,3 +44,12 @@ const ( // The operation failed because a condition wasn't satisfied in advance. ErrCodeResourcePreconditionNotMetException = "ResourcePreconditionNotMetException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidParameterException": newErrorInvalidParameterException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourcePreconditionNotMetException": newErrorResourcePreconditionNotMetException, +} diff --git a/service/qldb/service.go b/service/qldb/service.go index 2b02962b6df..5860a9e108b 100644 --- a/service/qldb/service.go +++ b/service/qldb/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/qldbsession/api.go b/service/qldbsession/api.go index e39adfd111e..74b28599218 100644 --- a/service/qldbsession/api.go +++ b/service/qldbsession/api.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opSendCommand = "SendCommand" @@ -63,22 +64,22 @@ func (c *QLDBSession) SendCommandRequest(input *SendCommandInput) (req *request. // See the AWS API reference guide for Amazon QLDB Session's // API operation SendCommand for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Returned if the request is malformed or contains an error such as an invalid // parameter value or a missing required parameter. // -// * ErrCodeInvalidSessionException "InvalidSessionException" +// * InvalidSessionException // Returned if the session doesn't exist anymore because it timed-out or expired. // -// * ErrCodeOccConflictException "OccConflictException" +// * OccConflictException // Returned when a transaction cannot be written to the journal due to a failure // in the verification phase of Optimistic Concurrency Control. // -// * ErrCodeRateExceededException "RateExceededException" +// * RateExceededException // Returned when the rate of requests exceeds the allowed throughput. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Returned if a resource limit such as number of active sessions is exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/SendCommand @@ -133,6 +134,65 @@ func (s AbortTransactionResult) GoString() string { return s.String() } +// Returned if the request is malformed or contains an error such as an invalid +// parameter value or a missing required parameter. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the details of the transaction to commit. type CommitTransactionRequest struct { _ struct{} `type:"structure"` @@ -444,6 +504,177 @@ func (s *FetchPageResult) SetPage(v *Page) *FetchPageResult { return s } +// Returned if the session doesn't exist anymore because it timed-out or expired. +type InvalidSessionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidSessionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidSessionException) GoString() string { + return s.String() +} + +func newErrorInvalidSessionException(v protocol.ResponseMetadata) error { + return &InvalidSessionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidSessionException) Code() string { + return "InvalidSessionException" +} + +// Message returns the exception's message. +func (s InvalidSessionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSessionException) OrigErr() error { + return nil +} + +func (s InvalidSessionException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSessionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidSessionException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if a resource limit such as number of active sessions is exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned when a transaction cannot be written to the journal due to a failure +// in the verification phase of Optimistic Concurrency Control. +type OccConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OccConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OccConflictException) GoString() string { + return s.String() +} + +func newErrorOccConflictException(v protocol.ResponseMetadata) error { + return &OccConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OccConflictException) Code() string { + return "OccConflictException" +} + +// Message returns the exception's message. +func (s OccConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OccConflictException) OrigErr() error { + return nil +} + +func (s OccConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OccConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OccConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details of the fetched page. type Page struct { _ struct{} `type:"structure"` @@ -477,6 +708,62 @@ func (s *Page) SetValues(v []*ValueHolder) *Page { return s } +// Returned when the rate of requests exceeds the allowed throughput. +type RateExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s RateExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RateExceededException) GoString() string { + return s.String() +} + +func newErrorRateExceededException(v protocol.ResponseMetadata) error { + return &RateExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RateExceededException) Code() string { + return "RateExceededException" +} + +// Message returns the exception's message. +func (s RateExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RateExceededException) OrigErr() error { + return nil +} + +func (s RateExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RateExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RateExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type SendCommandInput struct { _ struct{} `type:"structure"` diff --git a/service/qldbsession/errors.go b/service/qldbsession/errors.go index 5a6bc08ae3c..af48ba48df4 100644 --- a/service/qldbsession/errors.go +++ b/service/qldbsession/errors.go @@ -2,6 +2,10 @@ package qldbsession +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -36,3 +40,11 @@ const ( // Returned when the rate of requests exceeds the allowed throughput. ErrCodeRateExceededException = "RateExceededException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "InvalidSessionException": newErrorInvalidSessionException, + "LimitExceededException": newErrorLimitExceededException, + "OccConflictException": newErrorOccConflictException, + "RateExceededException": newErrorRateExceededException, +} diff --git a/service/qldbsession/service.go b/service/qldbsession/service.go index 26a5a07c188..6c5b3bb683e 100644 --- a/service/qldbsession/service.go +++ b/service/qldbsession/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/quicksight/api.go b/service/quicksight/api.go index f8986f9941c..9d0dffc3e34 100644 --- a/service/quicksight/api.go +++ b/service/quicksight/api.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCancelIngestion = "CancelIngestion" @@ -64,27 +65,27 @@ func (c *QuickSight) CancelIngestionRequest(input *CancelIngestionInput) (req *r // See the AWS API reference guide for Amazon QuickSight's // API operation CancelIngestion for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CancelIngestion @@ -170,29 +171,29 @@ func (c *QuickSight) CreateDashboardRequest(input *CreateDashboardInput) (req *r // See the AWS API reference guide for Amazon QuickSight's // API operation CreateDashboard for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDashboard @@ -270,39 +271,39 @@ func (c *QuickSight) CreateDataSetRequest(input *CreateDataSetInput) (req *reque // See the AWS API reference guide for Amazon QuickSight's // API operation CreateDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDataSet @@ -380,33 +381,33 @@ func (c *QuickSight) CreateDataSourceRequest(input *CreateDataSourceInput) (req // See the AWS API reference guide for Amazon QuickSight's // API operation CreateDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateDataSource @@ -488,36 +489,36 @@ func (c *QuickSight) CreateGroupRequest(input *CreateGroupInput) (req *request.R // See the AWS API reference guide for Amazon QuickSight's // API operation CreateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroup @@ -595,30 +596,30 @@ func (c *QuickSight) CreateGroupMembershipRequest(input *CreateGroupMembershipIn // See the AWS API reference guide for Amazon QuickSight's // API operation CreateGroupMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateGroupMembership @@ -698,31 +699,31 @@ func (c *QuickSight) CreateIAMPolicyAssignmentRequest(input *CreateIAMPolicyAssi // See the AWS API reference guide for Amazon QuickSight's // API operation CreateIAMPolicyAssignment for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConcurrentUpdatingException "ConcurrentUpdatingException" +// * ConcurrentUpdatingException // A resource is already in a state that indicates an action is happening that // must complete before a new update can be applied. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateIAMPolicyAssignment @@ -806,30 +807,30 @@ func (c *QuickSight) CreateIngestionRequest(input *CreateIngestionInput) (req *r // See the AWS API reference guide for Amazon QuickSight's // API operation CreateIngestion for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateIngestion @@ -915,36 +916,36 @@ func (c *QuickSight) CreateTemplateRequest(input *CreateTemplateInput) (req *req // See the AWS API reference guide for Amazon QuickSight's // API operation CreateTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateTemplate @@ -1022,29 +1023,29 @@ func (c *QuickSight) CreateTemplateAliasRequest(input *CreateTemplateAliasInput) // See the AWS API reference guide for Amazon QuickSight's // API operation CreateTemplateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/CreateTemplateAlias @@ -1122,26 +1123,26 @@ func (c *QuickSight) DeleteDashboardRequest(input *DeleteDashboardInput) (req *r // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteDashboard for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDashboard @@ -1219,24 +1220,24 @@ func (c *QuickSight) DeleteDataSetRequest(input *DeleteDataSetInput) (req *reque // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDataSet @@ -1315,24 +1316,24 @@ func (c *QuickSight) DeleteDataSourceRequest(input *DeleteDataSourceInput) (req // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteDataSource @@ -1410,30 +1411,30 @@ func (c *QuickSight) DeleteGroupRequest(input *DeleteGroupInput) (req *request.R // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroup @@ -1512,30 +1513,30 @@ func (c *QuickSight) DeleteGroupMembershipRequest(input *DeleteGroupMembershipIn // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteGroupMembership for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteGroupMembership @@ -1613,31 +1614,31 @@ func (c *QuickSight) DeleteIAMPolicyAssignmentRequest(input *DeleteIAMPolicyAssi // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteIAMPolicyAssignment for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConcurrentUpdatingException "ConcurrentUpdatingException" +// * ConcurrentUpdatingException // A resource is already in a state that indicates an action is happening that // must complete before a new update can be applied. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteIAMPolicyAssignment @@ -1715,29 +1716,29 @@ func (c *QuickSight) DeleteTemplateRequest(input *DeleteTemplateInput) (req *req // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteTemplate @@ -1817,20 +1818,20 @@ func (c *QuickSight) DeleteTemplateAliasRequest(input *DeleteTemplateAliasInput) // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteTemplateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteTemplateAlias @@ -1910,27 +1911,27 @@ func (c *QuickSight) DeleteUserRequest(input *DeleteUserInput) (req *request.Req // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUser @@ -2008,27 +2009,27 @@ func (c *QuickSight) DeleteUserByPrincipalIdRequest(input *DeleteUserByPrincipal // See the AWS API reference guide for Amazon QuickSight's // API operation DeleteUserByPrincipalId for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteUserByPrincipalId @@ -2106,30 +2107,30 @@ func (c *QuickSight) DescribeDashboardRequest(input *DescribeDashboardInput) (re // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeDashboard for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDashboard @@ -2207,23 +2208,23 @@ func (c *QuickSight) DescribeDashboardPermissionsRequest(input *DescribeDashboar // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeDashboardPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDashboardPermissions @@ -2301,24 +2302,24 @@ func (c *QuickSight) DescribeDataSetRequest(input *DescribeDataSetInput) (req *r // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSet @@ -2398,24 +2399,24 @@ func (c *QuickSight) DescribeDataSetPermissionsRequest(input *DescribeDataSetPer // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeDataSetPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSetPermissions @@ -2493,24 +2494,24 @@ func (c *QuickSight) DescribeDataSourceRequest(input *DescribeDataSourceInput) ( // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSource @@ -2588,24 +2589,24 @@ func (c *QuickSight) DescribeDataSourcePermissionsRequest(input *DescribeDataSou // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeDataSourcePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeDataSourcePermissions @@ -2684,30 +2685,30 @@ func (c *QuickSight) DescribeGroupRequest(input *DescribeGroupInput) (req *reque // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeGroup @@ -2786,27 +2787,27 @@ func (c *QuickSight) DescribeIAMPolicyAssignmentRequest(input *DescribeIAMPolicy // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeIAMPolicyAssignment for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeIAMPolicyAssignment @@ -2884,27 +2885,27 @@ func (c *QuickSight) DescribeIngestionRequest(input *DescribeIngestionInput) (re // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeIngestion for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeIngestion @@ -2982,36 +2983,36 @@ func (c *QuickSight) DescribeTemplateRequest(input *DescribeTemplateInput) (req // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplate @@ -3089,20 +3090,20 @@ func (c *QuickSight) DescribeTemplateAliasRequest(input *DescribeTemplateAliasIn // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeTemplateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplateAlias @@ -3180,26 +3181,26 @@ func (c *QuickSight) DescribeTemplatePermissionsRequest(input *DescribeTemplateP // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeTemplatePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeTemplatePermissions @@ -3277,27 +3278,27 @@ func (c *QuickSight) DescribeUserRequest(input *DescribeUserInput) (req *request // See the AWS API reference guide for Amazon QuickSight's // API operation DescribeUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DescribeUser @@ -3383,50 +3384,50 @@ func (c *QuickSight) GetDashboardEmbedUrlRequest(input *GetDashboardEmbedUrlInpu // See the AWS API reference guide for Amazon QuickSight's // API operation GetDashboardEmbedUrl for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeDomainNotWhitelistedException "DomainNotWhitelistedException" +// * DomainNotWhitelistedException // The domain specified isn't on the allow list. All domains for embedded dashboards // must be added to the approved list by an Amazon QuickSight admin. // -// * ErrCodeUserNotFoundException "QuickSightUserNotFoundException" +// * UserNotFoundException // The user with the provided name isn't found. This error can happen in any // operation that requires finding a user based on a provided user name, such // as DeleteUser, DescribeUser, and so on. // -// * ErrCodeIdentityTypeNotSupportedException "IdentityTypeNotSupportedException" +// * IdentityTypeNotSupportedException // The identity type specified isn't supported. Supported identity types include // IAM and QUICKSIGHT. // -// * ErrCodeSessionLifetimeInMinutesInvalidException "SessionLifetimeInMinutesInvalidException" +// * SessionLifetimeInMinutesInvalidException // The number of minutes specified for the lifetime of a session isn't valid. // The session lifetime must be 15-600 minutes. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/GetDashboardEmbedUrl @@ -3510,26 +3511,26 @@ func (c *QuickSight) ListDashboardVersionsRequest(input *ListDashboardVersionsIn // See the AWS API reference guide for Amazon QuickSight's // API operation ListDashboardVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDashboardVersions @@ -3665,20 +3666,20 @@ func (c *QuickSight) ListDashboardsRequest(input *ListDashboardsInput) (req *req // See the AWS API reference guide for Amazon QuickSight's // API operation ListDashboards for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDashboards @@ -3817,24 +3818,24 @@ func (c *QuickSight) ListDataSetsRequest(input *ListDataSetsInput) (req *request // See the AWS API reference guide for Amazon QuickSight's // API operation ListDataSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDataSets @@ -3970,24 +3971,24 @@ func (c *QuickSight) ListDataSourcesRequest(input *ListDataSourcesInput) (req *r // See the AWS API reference guide for Amazon QuickSight's // API operation ListDataSources for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListDataSources @@ -4117,33 +4118,33 @@ func (c *QuickSight) ListGroupMembershipsRequest(input *ListGroupMembershipsInpu // See the AWS API reference guide for Amazon QuickSight's // API operation ListGroupMemberships for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroupMemberships @@ -4221,33 +4222,33 @@ func (c *QuickSight) ListGroupsRequest(input *ListGroupsInput) (req *request.Req // See the AWS API reference guide for Amazon QuickSight's // API operation ListGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListGroups @@ -4325,27 +4326,27 @@ func (c *QuickSight) ListIAMPolicyAssignmentsRequest(input *ListIAMPolicyAssignm // See the AWS API reference guide for Amazon QuickSight's // API operation ListIAMPolicyAssignments for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIAMPolicyAssignments @@ -4425,31 +4426,31 @@ func (c *QuickSight) ListIAMPolicyAssignmentsForUserRequest(input *ListIAMPolicy // See the AWS API reference guide for Amazon QuickSight's // API operation ListIAMPolicyAssignmentsForUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConcurrentUpdatingException "ConcurrentUpdatingException" +// * ConcurrentUpdatingException // A resource is already in a state that indicates an action is happening that // must complete before a new update can be applied. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIAMPolicyAssignmentsForUser @@ -4533,30 +4534,30 @@ func (c *QuickSight) ListIngestionsRequest(input *ListIngestionsInput) (req *req // See the AWS API reference guide for Amazon QuickSight's // API operation ListIngestions for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListIngestions @@ -4686,24 +4687,24 @@ func (c *QuickSight) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for Amazon QuickSight's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTagsForResource @@ -4787,20 +4788,20 @@ func (c *QuickSight) ListTemplateAliasesRequest(input *ListTemplateAliasesInput) // See the AWS API reference guide for Amazon QuickSight's // API operation ListTemplateAliases for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplateAliases @@ -4937,26 +4938,26 @@ func (c *QuickSight) ListTemplateVersionsRequest(input *ListTemplateVersionsInpu // See the AWS API reference guide for Amazon QuickSight's // API operation ListTemplateVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplateVersions @@ -5092,26 +5093,26 @@ func (c *QuickSight) ListTemplatesRequest(input *ListTemplatesInput) (req *reque // See the AWS API reference guide for Amazon QuickSight's // API operation ListTemplates for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListTemplates @@ -5242,27 +5243,27 @@ func (c *QuickSight) ListUserGroupsRequest(input *ListUserGroupsInput) (req *req // See the AWS API reference guide for Amazon QuickSight's // API operation ListUserGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUserGroups @@ -5340,30 +5341,30 @@ func (c *QuickSight) ListUsersRequest(input *ListUsersInput) (req *request.Reque // See the AWS API reference guide for Amazon QuickSight's // API operation ListUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken value isn't valid. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListUsers @@ -5443,36 +5444,36 @@ func (c *QuickSight) RegisterUserRequest(input *RegisterUserInput) (req *request // See the AWS API reference guide for Amazon QuickSight's // API operation RegisterUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/RegisterUser @@ -5572,27 +5573,27 @@ func (c *QuickSight) TagResourceRequest(input *TagResourceInput) (req *request.R // See the AWS API reference guide for Amazon QuickSight's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/TagResource @@ -5670,24 +5671,24 @@ func (c *QuickSight) UntagResourceRequest(input *UntagResourceInput) (req *reque // See the AWS API reference guide for Amazon QuickSight's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UntagResource @@ -5765,29 +5766,29 @@ func (c *QuickSight) UpdateDashboardRequest(input *UpdateDashboardInput) (req *r // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateDashboard for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboard @@ -5865,26 +5866,26 @@ func (c *QuickSight) UpdateDashboardPermissionsRequest(input *UpdateDashboardPer // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateDashboardPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboardPermissions @@ -5962,26 +5963,26 @@ func (c *QuickSight) UpdateDashboardPublishedVersionRequest(input *UpdateDashboa // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateDashboardPublishedVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDashboardPublishedVersion @@ -6059,36 +6060,36 @@ func (c *QuickSight) UpdateDataSetRequest(input *UpdateDataSetInput) (req *reque // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateDataSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSet @@ -6168,27 +6169,27 @@ func (c *QuickSight) UpdateDataSetPermissionsRequest(input *UpdateDataSetPermiss // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateDataSetPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSetPermissions @@ -6266,27 +6267,27 @@ func (c *QuickSight) UpdateDataSourceRequest(input *UpdateDataSourceInput) (req // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateDataSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSource @@ -6364,27 +6365,27 @@ func (c *QuickSight) UpdateDataSourcePermissionsRequest(input *UpdateDataSourceP // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateDataSourcePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateDataSourcePermissions @@ -6462,30 +6463,30 @@ func (c *QuickSight) UpdateGroupRequest(input *UpdateGroupInput) (req *request.R // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // One or more preconditions aren't met. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateGroup @@ -6564,31 +6565,31 @@ func (c *QuickSight) UpdateIAMPolicyAssignmentRequest(input *UpdateIAMPolicyAssi // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateIAMPolicyAssignment for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConcurrentUpdatingException "ConcurrentUpdatingException" +// * ConcurrentUpdatingException // A resource is already in a state that indicates an action is happening that // must complete before a new update can be applied. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateIAMPolicyAssignment @@ -6667,32 +6668,32 @@ func (c *QuickSight) UpdateTemplateRequest(input *UpdateTemplateInput) (req *req // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource specified already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // A limit is exceeded. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplate @@ -6770,23 +6771,23 @@ func (c *QuickSight) UpdateTemplateAliasRequest(input *UpdateTemplateAliasInput) // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateTemplateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplateAlias @@ -6864,26 +6865,26 @@ func (c *QuickSight) UpdateTemplatePermissionsRequest(input *UpdateTemplatePermi // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateTemplatePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeThrottlingException "ThrottlingException" +// Returned Error Types: +// * ThrottlingException // Access is throttled. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // Updating or deleting a resource can cause an inconsistent state. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeUnsupportedUserEditionException "UnsupportedUserEditionException" +// * UnsupportedUserEditionException // This error indicates that you are calling an operation on an Amazon QuickSight // subscription where the edition doesn't include support for that operation. // Amazon QuickSight currently has Standard Edition and Enterprise Edition. // Not every operation and capability is available in every edition. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateTemplatePermissions @@ -6961,27 +6962,27 @@ func (c *QuickSight) UpdateUserRequest(input *UpdateUserInput) (req *request.Req // See the AWS API reference guide for Amazon QuickSight's // API operation UpdateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You don't have access to this item. The provided credentials couldn't be // validated. You might not be authorized to carry out the request. Make sure // that your account is authorized to use the Amazon QuickSight service, that // your policies have the correct permissions, and that you are using the correct // access keys. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // One or more parameters has a value that isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // One or more resources can't be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Access is throttled. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // An internal failure occurred. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // This resource is currently unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/UpdateUser @@ -7006,6 +7007,69 @@ func (c *QuickSight) UpdateUserWithContext(ctx aws.Context, input *UpdateUserInp return out, req.Send() } +// You don't have access to this item. The provided credentials couldn't be +// validated. You might not be authorized to carry out the request. Make sure +// that your account is authorized to use the Amazon QuickSight service, that +// your policies have the correct permissions, and that you are using the correct +// access keys. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // The active AWS Identity and Access Management (IAM) policy assignment. type ActiveIAMPolicyAssignment struct { _ struct{} `type:"structure"` @@ -7771,6 +7835,124 @@ func (s *ColumnTag) SetColumnGeographicRole(v string) *ColumnTag { return s } +// A resource is already in a state that indicates an action is happening that +// must complete before a new update can be applied. +type ConcurrentUpdatingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s ConcurrentUpdatingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentUpdatingException) GoString() string { + return s.String() +} + +func newErrorConcurrentUpdatingException(v protocol.ResponseMetadata) error { + return &ConcurrentUpdatingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentUpdatingException) Code() string { + return "ConcurrentUpdatingException" +} + +// Message returns the exception's message. +func (s ConcurrentUpdatingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentUpdatingException) OrigErr() error { + return nil +} + +func (s ConcurrentUpdatingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentUpdatingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentUpdatingException) RequestID() string { + return s.respMetadata.RequestID +} + +// Updating or deleting a resource can cause an inconsistent state. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // A transform operation that creates calculated columns. Columns created in // one such operation form a lexical closure. type CreateColumnsOperation struct { @@ -13808,6 +13990,66 @@ func (s *DescribeUserOutput) SetUser(v *User) *DescribeUserOutput { return s } +// The domain specified isn't on the allow list. All domains for embedded dashboards +// must be added to the approved list by an Amazon QuickSight admin. +type DomainNotWhitelistedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s DomainNotWhitelistedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainNotWhitelistedException) GoString() string { + return s.String() +} + +func newErrorDomainNotWhitelistedException(v protocol.ResponseMetadata) error { + return &DomainNotWhitelistedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DomainNotWhitelistedException) Code() string { + return "DomainNotWhitelistedException" +} + +// Message returns the exception's message. +func (s DomainNotWhitelistedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DomainNotWhitelistedException) OrigErr() error { + return nil +} + +func (s DomainNotWhitelistedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DomainNotWhitelistedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DomainNotWhitelistedException) RequestID() string { + return s.respMetadata.RequestID +} + // Error information for the SPICE ingestion of a dataset. type ErrorInfo struct { _ struct{} `type:"structure"` @@ -14337,6 +14579,66 @@ func (s *IAMPolicyAssignmentSummary) SetAssignmentStatus(v string) *IAMPolicyAss return s } +// The identity type specified isn't supported. Supported identity types include +// IAM and QUICKSIGHT. +type IdentityTypeNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s IdentityTypeNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdentityTypeNotSupportedException) GoString() string { + return s.String() +} + +func newErrorIdentityTypeNotSupportedException(v protocol.ResponseMetadata) error { + return &IdentityTypeNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdentityTypeNotSupportedException) Code() string { + return "IdentityTypeNotSupportedException" +} + +// Message returns the exception's message. +func (s IdentityTypeNotSupportedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdentityTypeNotSupportedException) OrigErr() error { + return nil +} + +func (s IdentityTypeNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdentityTypeNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdentityTypeNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about the SPICE ingestion for a dataset. type Ingestion struct { _ struct{} `type:"structure"` @@ -14566,6 +14868,183 @@ func (s *IntegerParameter) SetValues(v []*int64) *IntegerParameter { return s } +// An internal failure occurred. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + +// The NextToken value isn't valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more parameters has a value that isn't valid. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + // Jira parameters. type JiraParameters struct { _ struct{} `type:"structure"` @@ -14698,24 +15177,86 @@ func (s *JoinInstruction) SetType(v string) *JoinInstruction { return s } -type ListDashboardVersionsInput struct { - _ struct{} `type:"structure"` +// A limit is exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The ID of the AWS account that contains the dashboard that you're listing - // versions for. - // - // AwsAccountId is a required field - AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` - // The ID for the dashboard. - // - // DashboardId is a required field - DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` + // The AWS request ID for this request. + RequestId *string `type:"string"` - // The maximum number of results to be returned per request. - MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + // Limit exceeded. + ResourceType *string `type:"string" enum:"ExceptionResourceType"` +} - // The token for the next set of results, or null if there are no more results. +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +type ListDashboardVersionsInput struct { + _ struct{} `type:"structure"` + + // The ID of the AWS account that contains the dashboard that you're listing + // versions for. + // + // AwsAccountId is a required field + AwsAccountId *string `location:"uri" locationName:"AwsAccountId" min:"12" type:"string" required:"true"` + + // The ID for the dashboard. + // + // DashboardId is a required field + DashboardId *string `location:"uri" locationName:"DashboardId" min:"1" type:"string" required:"true"` + + // The maximum number of results to be returned per request. + MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` + + // The token for the next set of results, or null if there are no more results. NextToken *string `location:"querystring" locationName:"next-token" type:"string"` } @@ -17215,6 +17756,65 @@ func (s *PostgreSqlParameters) SetPort(v int64) *PostgreSqlParameters { return s } +// One or more preconditions aren't met. +type PreconditionNotMetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s PreconditionNotMetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PreconditionNotMetException) GoString() string { + return s.String() +} + +func newErrorPreconditionNotMetException(v protocol.ResponseMetadata) error { + return &PreconditionNotMetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PreconditionNotMetException) Code() string { + return "PreconditionNotMetException" +} + +// Message returns the exception's message. +func (s PreconditionNotMetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PreconditionNotMetException) OrigErr() error { + return nil +} + +func (s PreconditionNotMetException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PreconditionNotMetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PreconditionNotMetException) RequestID() string { + return s.respMetadata.RequestID +} + // Presto parameters. type PrestoParameters struct { _ struct{} `type:"structure"` @@ -17867,6 +18467,130 @@ func (s *RenameColumnOperation) SetNewColumnName(v string) *RenameColumnOperatio return s } +// The resource specified already exists. +type ResourceExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` + + // The AWS request ID for this request. + ResourceType *string `type:"string" enum:"ExceptionResourceType"` +} + +// String returns the string representation +func (s ResourceExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceExistsException) GoString() string { + return s.String() +} + +func newErrorResourceExistsException(v protocol.ResponseMetadata) error { + return &ResourceExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceExistsException) Code() string { + return "ResourceExistsException" +} + +// Message returns the exception's message. +func (s ResourceExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceExistsException) OrigErr() error { + return nil +} + +func (s ResourceExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more resources can't be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` + + // The AWS request ID for this request. + ResourceType *string `type:"string" enum:"ExceptionResourceType"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Permission for the resource. type ResourcePermission struct { _ struct{} `type:"structure"` @@ -17929,6 +18653,68 @@ func (s *ResourcePermission) SetPrincipal(v string) *ResourcePermission { return s } +// This resource is currently unavailable. +type ResourceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` + + // The resource type for this request. + ResourceType *string `type:"string" enum:"ExceptionResourceType"` +} + +// String returns the string representation +func (s ResourceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceUnavailableException) GoString() string { + return s.String() +} + +func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { + return &ResourceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceUnavailableException) Code() string { + return "ResourceUnavailableException" +} + +// Message returns the exception's message. +func (s ResourceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceUnavailableException) OrigErr() error { + return nil +} + +func (s ResourceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about rows for a data set SPICE ingestion. type RowInfo struct { _ struct{} `type:"structure"` @@ -18182,6 +18968,66 @@ func (s *ServiceNowParameters) SetSiteBaseUrl(v string) *ServiceNowParameters { return s } +// The number of minutes specified for the lifetime of a session isn't valid. +// The session lifetime must be 15-600 minutes. +type SessionLifetimeInMinutesInvalidException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s SessionLifetimeInMinutesInvalidException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SessionLifetimeInMinutesInvalidException) GoString() string { + return s.String() +} + +func newErrorSessionLifetimeInMinutesInvalidException(v protocol.ResponseMetadata) error { + return &SessionLifetimeInMinutesInvalidException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SessionLifetimeInMinutesInvalidException) Code() string { + return "SessionLifetimeInMinutesInvalidException" +} + +// Message returns the exception's message. +func (s SessionLifetimeInMinutesInvalidException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SessionLifetimeInMinutesInvalidException) OrigErr() error { + return nil +} + +func (s SessionLifetimeInMinutesInvalidException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SessionLifetimeInMinutesInvalidException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SessionLifetimeInMinutesInvalidException) RequestID() string { + return s.respMetadata.RequestID +} + // Sheet controls option. type SheetControlsOption struct { _ struct{} `type:"structure"` @@ -19311,6 +20157,65 @@ func (s *TeradataParameters) SetPort(v int64) *TeradataParameters { return s } +// Access is throttled. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // A data transformation on a logical table. This is a variant type structure. // For this structure to be valid, only one of the attributes can be non-null. type TransformOperation struct { @@ -19482,6 +20387,68 @@ func (s *TwitterParameters) SetQuery(v string) *TwitterParameters { return s } +// This error indicates that you are calling an operation on an Amazon QuickSight +// subscription where the edition doesn't include support for that operation. +// Amazon QuickSight currently has Standard Edition and Enterprise Edition. +// Not every operation and capability is available in every edition. +type UnsupportedUserEditionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s UnsupportedUserEditionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedUserEditionException) GoString() string { + return s.String() +} + +func newErrorUnsupportedUserEditionException(v protocol.ResponseMetadata) error { + return &UnsupportedUserEditionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedUserEditionException) Code() string { + return "UnsupportedUserEditionException" +} + +// Message returns the exception's message. +func (s UnsupportedUserEditionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedUserEditionException) OrigErr() error { + return nil +} + +func (s UnsupportedUserEditionException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedUserEditionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedUserEditionException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -21941,6 +22908,67 @@ func (s *User) SetUserName(v string) *User { return s } +// The user with the provided name isn't found. This error can happen in any +// operation that requires finding a user based on a provided user name, such +// as DeleteUser, DescribeUser, and so on. +type UserNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The AWS request ID for this request. + RequestId *string `type:"string"` +} + +// String returns the string representation +func (s UserNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UserNotFoundException) GoString() string { + return s.String() +} + +func newErrorUserNotFoundException(v protocol.ResponseMetadata) error { + return &UserNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UserNotFoundException) Code() string { + return "QuickSightUserNotFoundException" +} + +// Message returns the exception's message. +func (s UserNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UserNotFoundException) OrigErr() error { + return nil +} + +func (s UserNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UserNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UserNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // VPC connection properties. type VpcConnectionProperties struct { _ struct{} `type:"structure"` diff --git a/service/quicksight/errors.go b/service/quicksight/errors.go index 480261d84cb..2f6b3e713ab 100644 --- a/service/quicksight/errors.go +++ b/service/quicksight/errors.go @@ -2,6 +2,10 @@ package quicksight +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -119,3 +123,23 @@ const ( // as DeleteUser, DescribeUser, and so on. ErrCodeUserNotFoundException = "QuickSightUserNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "ConcurrentUpdatingException": newErrorConcurrentUpdatingException, + "ConflictException": newErrorConflictException, + "DomainNotWhitelistedException": newErrorDomainNotWhitelistedException, + "IdentityTypeNotSupportedException": newErrorIdentityTypeNotSupportedException, + "InternalFailureException": newErrorInternalFailureException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "LimitExceededException": newErrorLimitExceededException, + "PreconditionNotMetException": newErrorPreconditionNotMetException, + "ResourceExistsException": newErrorResourceExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceUnavailableException": newErrorResourceUnavailableException, + "SessionLifetimeInMinutesInvalidException": newErrorSessionLifetimeInMinutesInvalidException, + "ThrottlingException": newErrorThrottlingException, + "UnsupportedUserEditionException": newErrorUnsupportedUserEditionException, + "QuickSightUserNotFoundException": newErrorUserNotFoundException, +} diff --git a/service/quicksight/service.go b/service/quicksight/service.go index 85302814544..9b0a6902ed0 100644 --- a/service/quicksight/service.go +++ b/service/quicksight/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ram/api.go b/service/ram/api.go index b7f93f0f49f..af4ed72da80 100644 --- a/service/ram/api.go +++ b/service/ram/api.go @@ -3,6 +3,7 @@ package ram import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,35 +66,35 @@ func (c *RAM) AcceptResourceShareInvitationRequest(input *AcceptResourceShareInv // See the AWS API reference guide for AWS Resource Access Manager's // API operation AcceptResourceShareInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" +// * ResourceShareInvitationArnNotFoundException // The Amazon Resource Name (ARN) for an invitation was not found. // -// * ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" +// * ResourceShareInvitationAlreadyAcceptedException // The invitation was already accepted. // -// * ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" +// * ResourceShareInvitationAlreadyRejectedException // The invitation was already rejected. // -// * ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" +// * ResourceShareInvitationExpiredException // The invitation is expired. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A client token input parameter was reused with an operation, but at least // one of the other input parameters is different from the previous call to // the operation. @@ -174,43 +175,43 @@ func (c *RAM) AssociateResourceShareRequest(input *AssociateResourceShareInput) // See the AWS API reference guide for AWS Resource Access Manager's // API operation AssociateResourceShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// Returned Error Types: +// * IdempotentParameterMismatchException // A client token input parameter was reused with an operation, but at least // one of the other input parameters is different from the previous call to // the operation. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // The requested state transition is not valid. // -// * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" +// * ResourceShareLimitExceededException // The requested resource share exceeds the limit for your account. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // The requested state transition is not valid. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceShare @@ -288,26 +289,26 @@ func (c *RAM) AssociateResourceSharePermissionRequest(input *AssociateResourceSh // See the AWS API reference guide for AWS Resource Access Manager's // API operation AssociateResourceSharePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/AssociateResourceSharePermission @@ -385,40 +386,40 @@ func (c *RAM) CreateResourceShareRequest(input *CreateResourceShareInput) (req * // See the AWS API reference guide for AWS Resource Access Manager's // API operation CreateResourceShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// Returned Error Types: +// * IdempotentParameterMismatchException // A client token input parameter was reused with an operation, but at least // one of the other input parameters is different from the previous call to // the operation. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // The requested state transition is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" +// * ResourceShareLimitExceededException // The requested resource share exceeds the limit for your account. // -// * ErrCodeTagPolicyViolationException "TagPolicyViolationException" +// * TagPolicyViolationException // The specified tag is a reserved word and cannot be used. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/CreateResourceShare @@ -496,34 +497,34 @@ func (c *RAM) DeleteResourceShareRequest(input *DeleteResourceShareInput) (req * // See the AWS API reference guide for AWS Resource Access Manager's // API operation DeleteResourceShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// Returned Error Types: +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A client token input parameter was reused with an operation, but at least // one of the other input parameters is different from the previous call to // the operation. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // The requested state transition is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DeleteResourceShare @@ -602,37 +603,37 @@ func (c *RAM) DisassociateResourceShareRequest(input *DisassociateResourceShareI // See the AWS API reference guide for AWS Resource Access Manager's // API operation DisassociateResourceShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// Returned Error Types: +// * IdempotentParameterMismatchException // A client token input parameter was reused with an operation, but at least // one of the other input parameters is different from the previous call to // the operation. // -// * ErrCodeResourceShareLimitExceededException "ResourceShareLimitExceededException" +// * ResourceShareLimitExceededException // The requested resource share exceeds the limit for your account. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidStateTransitionException "InvalidStateTransitionException" +// * InvalidStateTransitionException // The requested state transition is not valid. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceShare @@ -710,26 +711,26 @@ func (c *RAM) DisassociateResourceSharePermissionRequest(input *DisassociateReso // See the AWS API reference guide for AWS Resource Access Manager's // API operation DisassociateResourceSharePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/DisassociateResourceSharePermission @@ -809,14 +810,14 @@ func (c *RAM) EnableSharingWithAwsOrganizationRequest(input *EnableSharingWithAw // See the AWS API reference guide for AWS Resource Access Manager's // API operation EnableSharingWithAwsOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// Returned Error Types: +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/EnableSharingWithAwsOrganization @@ -894,23 +895,23 @@ func (c *RAM) GetPermissionRequest(input *GetPermissionInput) (req *request.Requ // See the AWS API reference guide for AWS Resource Access Manager's // API operation GetPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetPermission @@ -994,20 +995,20 @@ func (c *RAM) GetResourcePoliciesRequest(input *GetResourcePoliciesInput) (req * // See the AWS API reference guide for AWS Resource Access Manager's // API operation GetResourcePolicies for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourcePolicies @@ -1143,26 +1144,26 @@ func (c *RAM) GetResourceShareAssociationsRequest(input *GetResourceShareAssocia // See the AWS API reference guide for AWS Resource Access Manager's // API operation GetResourceShareAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceException "UnknownResourceException" +// Returned Error Types: +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareAssociations @@ -1298,26 +1299,26 @@ func (c *RAM) GetResourceShareInvitationsRequest(input *GetResourceShareInvitati // See the AWS API reference guide for AWS Resource Access Manager's // API operation GetResourceShareInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" +// Returned Error Types: +// * ResourceShareInvitationArnNotFoundException // The Amazon Resource Name (ARN) for an invitation was not found. // -// * ErrCodeInvalidMaxResultsException "InvalidMaxResultsException" +// * InvalidMaxResultsException // The specified value for MaxResults is not valid. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShareInvitations @@ -1454,23 +1455,23 @@ func (c *RAM) GetResourceSharesRequest(input *GetResourceSharesInput) (req *requ // See the AWS API reference guide for AWS Resource Access Manager's // API operation GetResourceShares for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceException "UnknownResourceException" +// Returned Error Types: +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/GetResourceShares @@ -1607,32 +1608,32 @@ func (c *RAM) ListPendingInvitationResourcesRequest(input *ListPendingInvitation // See the AWS API reference guide for AWS Resource Access Manager's // API operation ListPendingInvitationResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" +// * ResourceShareInvitationArnNotFoundException // The Amazon Resource Name (ARN) for an invitation was not found. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required input parameter is missing. // -// * ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" +// * ResourceShareInvitationAlreadyRejectedException // The invitation was already rejected. // -// * ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" +// * ResourceShareInvitationExpiredException // The invitation is expired. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPendingInvitationResources @@ -1762,20 +1763,20 @@ func (c *RAM) ListPermissionsRequest(input *ListPermissionsInput) (req *request. // See the AWS API reference guide for AWS Resource Access Manager's // API operation ListPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPermissions @@ -1860,23 +1861,23 @@ func (c *RAM) ListPrincipalsRequest(input *ListPrincipalsInput) (req *request.Re // See the AWS API reference guide for AWS Resource Access Manager's // API operation ListPrincipals for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListPrincipals @@ -2006,26 +2007,26 @@ func (c *RAM) ListResourceSharePermissionsRequest(input *ListResourceSharePermis // See the AWS API reference guide for AWS Resource Access Manager's // API operation ListResourceSharePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResourceSharePermissions @@ -2110,26 +2111,26 @@ func (c *RAM) ListResourcesRequest(input *ListResourcesInput) (req *request.Requ // See the AWS API reference guide for AWS Resource Access Manager's // API operation ListResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceTypeException "InvalidResourceTypeException" +// Returned Error Types: +// * InvalidResourceTypeException // The specified resource type is not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified value for NextToken is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/ListResources @@ -2268,23 +2269,23 @@ func (c *RAM) PromoteResourceShareCreatedFromPolicyRequest(input *PromoteResourc // See the AWS API reference guide for AWS Resource Access Manager's // API operation PromoteResourceShareCreatedFromPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required input parameter is missing. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/PromoteResourceShareCreatedFromPolicy @@ -2362,35 +2363,35 @@ func (c *RAM) RejectResourceShareInvitationRequest(input *RejectResourceShareInv // See the AWS API reference guide for AWS Resource Access Manager's // API operation RejectResourceShareInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedArnException "MalformedArnException" +// Returned Error Types: +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeResourceShareInvitationArnNotFoundException "ResourceShareInvitationArnNotFoundException" +// * ResourceShareInvitationArnNotFoundException // The Amazon Resource Name (ARN) for an invitation was not found. // -// * ErrCodeResourceShareInvitationAlreadyAcceptedException "ResourceShareInvitationAlreadyAcceptedException" +// * ResourceShareInvitationAlreadyAcceptedException // The invitation was already accepted. // -// * ErrCodeResourceShareInvitationAlreadyRejectedException "ResourceShareInvitationAlreadyRejectedException" +// * ResourceShareInvitationAlreadyRejectedException // The invitation was already rejected. // -// * ErrCodeResourceShareInvitationExpiredException "ResourceShareInvitationExpiredException" +// * ResourceShareInvitationExpiredException // The invitation is expired. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A client token input parameter was reused with an operation, but at least // one of the other input parameters is different from the previous call to // the operation. @@ -2471,26 +2472,26 @@ func (c *RAM) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for AWS Resource Access Manager's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeTagLimitExceededException "TagLimitExceededException" +// * TagLimitExceededException // The requested tags exceed the limit for your account. // -// * ErrCodeResourceArnNotFoundException "ResourceArnNotFoundException" +// * ResourceArnNotFoundException // An Amazon Resource Name (ARN) was not found. // -// * ErrCodeTagPolicyViolationException "TagPolicyViolationException" +// * TagPolicyViolationException // The specified tag is a reserved word and cannot be used. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/TagResource @@ -2569,14 +2570,14 @@ func (c *RAM) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS Resource Access Manager's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UntagResource @@ -2654,34 +2655,34 @@ func (c *RAM) UpdateResourceShareRequest(input *UpdateResourceShareInput) (req * // See the AWS API reference guide for AWS Resource Access Manager's // API operation UpdateResourceShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// Returned Error Types: +// * IdempotentParameterMismatchException // A client token input parameter was reused with an operation, but at least // one of the other input parameters is different from the previous call to // the operation. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required input parameter is missing. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // A specified resource was not found. // -// * ErrCodeMalformedArnException "MalformedArnException" +// * MalformedArnException // The format of an Amazon Resource Name (ARN) is not valid. // -// * ErrCodeInvalidClientTokenException "InvalidClientTokenException" +// * InvalidClientTokenException // A client token is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter is not valid. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // The requested operation is not permitted. // -// * ErrCodeServerInternalException "ServerInternalException" +// * ServerInternalException // The service could not respond to the request due to an internal problem. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The service is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ram-2018-01-04/UpdateResourceShare @@ -3966,6 +3967,400 @@ func (s *GetResourceSharesOutput) SetResourceShares(v []*ResourceShare) *GetReso return s } +// A client token input parameter was reused with an operation, but at least +// one of the other input parameters is different from the previous call to +// the operation. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// A client token is not valid. +type InvalidClientTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidClientTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidClientTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidClientTokenException(v protocol.ResponseMetadata) error { + return &InvalidClientTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidClientTokenException) Code() string { + return "InvalidClientTokenException" +} + +// Message returns the exception's message. +func (s InvalidClientTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidClientTokenException) OrigErr() error { + return nil +} + +func (s InvalidClientTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidClientTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidClientTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified value for MaxResults is not valid. +type InvalidMaxResultsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidMaxResultsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidMaxResultsException) GoString() string { + return s.String() +} + +func newErrorInvalidMaxResultsException(v protocol.ResponseMetadata) error { + return &InvalidMaxResultsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidMaxResultsException) Code() string { + return "InvalidMaxResultsException" +} + +// Message returns the exception's message. +func (s InvalidMaxResultsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidMaxResultsException) OrigErr() error { + return nil +} + +func (s InvalidMaxResultsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidMaxResultsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidMaxResultsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified value for NextToken is not valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// A parameter is not valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource type is not valid. +type InvalidResourceTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidResourceTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceTypeException) GoString() string { + return s.String() +} + +func newErrorInvalidResourceTypeException(v protocol.ResponseMetadata) error { + return &InvalidResourceTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceTypeException) Code() string { + return "InvalidResourceTypeException" +} + +// Message returns the exception's message. +func (s InvalidResourceTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceTypeException) OrigErr() error { + return nil +} + +func (s InvalidResourceTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceTypeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested state transition is not valid. +type InvalidStateTransitionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidStateTransitionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateTransitionException) GoString() string { + return s.String() +} + +func newErrorInvalidStateTransitionException(v protocol.ResponseMetadata) error { + return &InvalidStateTransitionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateTransitionException) Code() string { + return "InvalidStateTransitionException" +} + +// Message returns the exception's message. +func (s InvalidStateTransitionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateTransitionException) OrigErr() error { + return nil +} + +func (s InvalidStateTransitionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateTransitionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateTransitionException) RequestID() string { + return s.respMetadata.RequestID +} + type ListPendingInvitationResourcesInput struct { _ struct{} `type:"structure"` @@ -4507,91 +4902,259 @@ func (s *ListResourcesOutput) SetResources(v []*Resource) *ListResourcesOutput { return s } -// Describes a principal for use with AWS Resource Access Manager. -type Principal struct { - _ struct{} `type:"structure"` - - // The time when the principal was associated with the resource share. - CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` - - // Indicates whether the principal belongs to the same AWS organization as the - // AWS account that owns the resource share. - External *bool `locationName:"external" type:"boolean"` - - // The ID of the principal. - Id *string `locationName:"id" type:"string"` - - // The time when the association was last updated. - LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` +// The format of an Amazon Resource Name (ARN) is not valid. +type MalformedArnException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The Amazon Resource Name (ARN) of the resource share. - ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s Principal) String() string { +func (s MalformedArnException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s Principal) GoString() string { +func (s MalformedArnException) GoString() string { return s.String() } -// SetCreationTime sets the CreationTime field's value. -func (s *Principal) SetCreationTime(v time.Time) *Principal { - s.CreationTime = &v - return s +func newErrorMalformedArnException(v protocol.ResponseMetadata) error { + return &MalformedArnException{ + respMetadata: v, + } } -// SetExternal sets the External field's value. -func (s *Principal) SetExternal(v bool) *Principal { - s.External = &v - return s +// Code returns the exception type name. +func (s MalformedArnException) Code() string { + return "MalformedArnException" } -// SetId sets the Id field's value. -func (s *Principal) SetId(v string) *Principal { - s.Id = &v - return s +// Message returns the exception's message. +func (s MalformedArnException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetLastUpdatedTime sets the LastUpdatedTime field's value. -func (s *Principal) SetLastUpdatedTime(v time.Time) *Principal { - s.LastUpdatedTime = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedArnException) OrigErr() error { + return nil } -// SetResourceShareArn sets the ResourceShareArn field's value. -func (s *Principal) SetResourceShareArn(v string) *Principal { - s.ResourceShareArn = &v - return s +func (s MalformedArnException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type PromoteResourceShareCreatedFromPolicyInput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s MalformedArnException) StatusCode() int { + return s.respMetadata.StatusCode +} - // The ARN of the resource share to promote. - // - // ResourceShareArn is a required field - ResourceShareArn *string `location:"querystring" locationName:"resourceShareArn" type:"string" required:"true"` +// RequestID returns the service's response RequestID for request. +func (s MalformedArnException) RequestID() string { + return s.respMetadata.RequestID +} + +// A required input parameter is missing. +type MissingRequiredParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s PromoteResourceShareCreatedFromPolicyInput) String() string { +func (s MissingRequiredParameterException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s PromoteResourceShareCreatedFromPolicyInput) GoString() string { +func (s MissingRequiredParameterException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *PromoteResourceShareCreatedFromPolicyInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "PromoteResourceShareCreatedFromPolicyInput"} - if s.ResourceShareArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) +func newErrorMissingRequiredParameterException(v protocol.ResponseMetadata) error { + return &MissingRequiredParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingRequiredParameterException) Code() string { + return "MissingRequiredParameterException" +} + +// Message returns the exception's message. +func (s MissingRequiredParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingRequiredParameterException) OrigErr() error { + return nil +} + +func (s MissingRequiredParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingRequiredParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingRequiredParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation is not permitted. +type OperationNotPermittedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OperationNotPermittedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotPermittedException) GoString() string { + return s.String() +} + +func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error { + return &OperationNotPermittedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotPermittedException) Code() string { + return "OperationNotPermittedException" +} + +// Message returns the exception's message. +func (s OperationNotPermittedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotPermittedException) OrigErr() error { + return nil +} + +func (s OperationNotPermittedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotPermittedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotPermittedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Describes a principal for use with AWS Resource Access Manager. +type Principal struct { + _ struct{} `type:"structure"` + + // The time when the principal was associated with the resource share. + CreationTime *time.Time `locationName:"creationTime" type:"timestamp"` + + // Indicates whether the principal belongs to the same AWS organization as the + // AWS account that owns the resource share. + External *bool `locationName:"external" type:"boolean"` + + // The ID of the principal. + Id *string `locationName:"id" type:"string"` + + // The time when the association was last updated. + LastUpdatedTime *time.Time `locationName:"lastUpdatedTime" type:"timestamp"` + + // The Amazon Resource Name (ARN) of the resource share. + ResourceShareArn *string `locationName:"resourceShareArn" type:"string"` +} + +// String returns the string representation +func (s Principal) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Principal) GoString() string { + return s.String() +} + +// SetCreationTime sets the CreationTime field's value. +func (s *Principal) SetCreationTime(v time.Time) *Principal { + s.CreationTime = &v + return s +} + +// SetExternal sets the External field's value. +func (s *Principal) SetExternal(v bool) *Principal { + s.External = &v + return s +} + +// SetId sets the Id field's value. +func (s *Principal) SetId(v string) *Principal { + s.Id = &v + return s +} + +// SetLastUpdatedTime sets the LastUpdatedTime field's value. +func (s *Principal) SetLastUpdatedTime(v time.Time) *Principal { + s.LastUpdatedTime = &v + return s +} + +// SetResourceShareArn sets the ResourceShareArn field's value. +func (s *Principal) SetResourceShareArn(v string) *Principal { + s.ResourceShareArn = &v + return s +} + +type PromoteResourceShareCreatedFromPolicyInput struct { + _ struct{} `type:"structure"` + + // The ARN of the resource share to promote. + // + // ResourceShareArn is a required field + ResourceShareArn *string `location:"querystring" locationName:"resourceShareArn" type:"string" required:"true"` +} + +// String returns the string representation +func (s PromoteResourceShareCreatedFromPolicyInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PromoteResourceShareCreatedFromPolicyInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *PromoteResourceShareCreatedFromPolicyInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "PromoteResourceShareCreatedFromPolicyInput"} + if s.ResourceShareArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceShareArn")) } if invalidParams.Len() > 0 { @@ -4798,6 +5361,62 @@ func (s *Resource) SetType(v string) *Resource { return s } +// An Amazon Resource Name (ARN) was not found. +type ResourceArnNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceArnNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceArnNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceArnNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceArnNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceArnNotFoundException) Code() string { + return "ResourceArnNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceArnNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceArnNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceArnNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceArnNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceArnNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a resource share. type ResourceShare struct { _ struct{} `type:"structure"` @@ -5105,6 +5724,286 @@ func (s *ResourceShareInvitation) SetStatus(v string) *ResourceShareInvitation { return s } +// The invitation was already accepted. +type ResourceShareInvitationAlreadyAcceptedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceShareInvitationAlreadyAcceptedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShareInvitationAlreadyAcceptedException) GoString() string { + return s.String() +} + +func newErrorResourceShareInvitationAlreadyAcceptedException(v protocol.ResponseMetadata) error { + return &ResourceShareInvitationAlreadyAcceptedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceShareInvitationAlreadyAcceptedException) Code() string { + return "ResourceShareInvitationAlreadyAcceptedException" +} + +// Message returns the exception's message. +func (s ResourceShareInvitationAlreadyAcceptedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceShareInvitationAlreadyAcceptedException) OrigErr() error { + return nil +} + +func (s ResourceShareInvitationAlreadyAcceptedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceShareInvitationAlreadyAcceptedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceShareInvitationAlreadyAcceptedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The invitation was already rejected. +type ResourceShareInvitationAlreadyRejectedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceShareInvitationAlreadyRejectedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShareInvitationAlreadyRejectedException) GoString() string { + return s.String() +} + +func newErrorResourceShareInvitationAlreadyRejectedException(v protocol.ResponseMetadata) error { + return &ResourceShareInvitationAlreadyRejectedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceShareInvitationAlreadyRejectedException) Code() string { + return "ResourceShareInvitationAlreadyRejectedException" +} + +// Message returns the exception's message. +func (s ResourceShareInvitationAlreadyRejectedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceShareInvitationAlreadyRejectedException) OrigErr() error { + return nil +} + +func (s ResourceShareInvitationAlreadyRejectedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceShareInvitationAlreadyRejectedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceShareInvitationAlreadyRejectedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Amazon Resource Name (ARN) for an invitation was not found. +type ResourceShareInvitationArnNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceShareInvitationArnNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShareInvitationArnNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceShareInvitationArnNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceShareInvitationArnNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceShareInvitationArnNotFoundException) Code() string { + return "ResourceShareInvitationArnNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceShareInvitationArnNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceShareInvitationArnNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceShareInvitationArnNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceShareInvitationArnNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceShareInvitationArnNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The invitation is expired. +type ResourceShareInvitationExpiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceShareInvitationExpiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShareInvitationExpiredException) GoString() string { + return s.String() +} + +func newErrorResourceShareInvitationExpiredException(v protocol.ResponseMetadata) error { + return &ResourceShareInvitationExpiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceShareInvitationExpiredException) Code() string { + return "ResourceShareInvitationExpiredException" +} + +// Message returns the exception's message. +func (s ResourceShareInvitationExpiredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceShareInvitationExpiredException) OrigErr() error { + return nil +} + +func (s ResourceShareInvitationExpiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceShareInvitationExpiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceShareInvitationExpiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource share exceeds the limit for your account. +type ResourceShareLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceShareLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceShareLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceShareLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceShareLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceShareLimitExceededException) Code() string { + return "ResourceShareLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceShareLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceShareLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceShareLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceShareLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceShareLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about an AWS RAM permission. type ResourceSharePermissionDetail struct { _ struct{} `type:"structure"` @@ -5283,6 +6182,118 @@ func (s *ResourceSharePermissionSummary) SetVersion(v string) *ResourceSharePerm return s } +// The service could not respond to the request due to an internal problem. +type ServerInternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServerInternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerInternalException) GoString() string { + return s.String() +} + +func newErrorServerInternalException(v protocol.ResponseMetadata) error { + return &ServerInternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerInternalException) Code() string { + return "ServerInternalException" +} + +// Message returns the exception's message. +func (s ServerInternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerInternalException) OrigErr() error { + return nil +} + +func (s ServerInternalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerInternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerInternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is not available. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a tag. type Tag struct { _ struct{} `type:"structure"` @@ -5349,6 +6360,118 @@ func (s *TagFilter) SetTagValues(v []*string) *TagFilter { return s } +// The requested tags exceed the limit for your account. +type TagLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TagLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTagLimitExceededException(v protocol.ResponseMetadata) error { + return &TagLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagLimitExceededException) Code() string { + return "TagLimitExceededException" +} + +// Message returns the exception's message. +func (s TagLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagLimitExceededException) OrigErr() error { + return nil +} + +func (s TagLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified tag is a reserved word and cannot be used. +type TagPolicyViolationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TagPolicyViolationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagPolicyViolationException) GoString() string { + return s.String() +} + +func newErrorTagPolicyViolationException(v protocol.ResponseMetadata) error { + return &TagPolicyViolationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagPolicyViolationException) Code() string { + return "TagPolicyViolationException" +} + +// Message returns the exception's message. +func (s TagPolicyViolationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagPolicyViolationException) OrigErr() error { + return nil +} + +func (s TagPolicyViolationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagPolicyViolationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagPolicyViolationException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -5415,6 +6538,62 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// A specified resource was not found. +type UnknownResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnknownResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnknownResourceException) GoString() string { + return s.String() +} + +func newErrorUnknownResourceException(v protocol.ResponseMetadata) error { + return &UnknownResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnknownResourceException) Code() string { + return "UnknownResourceException" +} + +// Message returns the exception's message. +func (s UnknownResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnknownResourceException) OrigErr() error { + return nil +} + +func (s UnknownResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnknownResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnknownResourceException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/ram/errors.go b/service/ram/errors.go index 147a3a7d0bd..3fb7028fb16 100644 --- a/service/ram/errors.go +++ b/service/ram/errors.go @@ -2,6 +2,10 @@ package ram +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeIdempotentParameterMismatchException for service response error code @@ -132,3 +136,27 @@ const ( // A specified resource was not found. ErrCodeUnknownResourceException = "UnknownResourceException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "InvalidClientTokenException": newErrorInvalidClientTokenException, + "InvalidMaxResultsException": newErrorInvalidMaxResultsException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidResourceTypeException": newErrorInvalidResourceTypeException, + "InvalidStateTransitionException": newErrorInvalidStateTransitionException, + "MalformedArnException": newErrorMalformedArnException, + "MissingRequiredParameterException": newErrorMissingRequiredParameterException, + "OperationNotPermittedException": newErrorOperationNotPermittedException, + "ResourceArnNotFoundException": newErrorResourceArnNotFoundException, + "ResourceShareInvitationAlreadyAcceptedException": newErrorResourceShareInvitationAlreadyAcceptedException, + "ResourceShareInvitationAlreadyRejectedException": newErrorResourceShareInvitationAlreadyRejectedException, + "ResourceShareInvitationArnNotFoundException": newErrorResourceShareInvitationArnNotFoundException, + "ResourceShareInvitationExpiredException": newErrorResourceShareInvitationExpiredException, + "ResourceShareLimitExceededException": newErrorResourceShareLimitExceededException, + "ServerInternalException": newErrorServerInternalException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TagLimitExceededException": newErrorTagLimitExceededException, + "TagPolicyViolationException": newErrorTagPolicyViolationException, + "UnknownResourceException": newErrorUnknownResourceException, +} diff --git a/service/ram/service.go b/service/ram/service.go index ea658bef209..42713b89801 100644 --- a/service/ram/service.go +++ b/service/ram/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/rdsdataservice/api.go b/service/rdsdataservice/api.go index 4ea7b2ebccc..b360badf8f5 100644 --- a/service/rdsdataservice/api.go +++ b/service/rdsdataservice/api.go @@ -3,9 +3,12 @@ package rdsdataservice import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opBatchExecuteStatement = "BatchExecuteStatement" @@ -68,20 +71,20 @@ func (c *RDSDataService) BatchExecuteStatementRequest(input *BatchExecuteStateme // See the AWS API reference guide for AWS RDS DataService's // API operation BatchExecuteStatement for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // There is an error in the call or in a SQL statement. // -// * ErrCodeStatementTimeoutException "StatementTimeoutException" +// * StatementTimeoutException // The execution of the SQL statement timed out. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // There are insufficient privileges to make the call. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // The service specified by the resourceArn parameter is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatement @@ -167,20 +170,20 @@ func (c *RDSDataService) BeginTransactionRequest(input *BeginTransactionInput) ( // See the AWS API reference guide for AWS RDS DataService's // API operation BeginTransaction for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // There is an error in the call or in a SQL statement. // -// * ErrCodeStatementTimeoutException "StatementTimeoutException" +// * StatementTimeoutException // The execution of the SQL statement timed out. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // There are insufficient privileges to make the call. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // The service specified by the resourceArn parameter is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransaction @@ -259,23 +262,23 @@ func (c *RDSDataService) CommitTransactionRequest(input *CommitTransactionInput) // See the AWS API reference guide for AWS RDS DataService's // API operation CommitTransaction for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // There is an error in the call or in a SQL statement. // -// * ErrCodeStatementTimeoutException "StatementTimeoutException" +// * StatementTimeoutException // The execution of the SQL statement timed out. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // There are insufficient privileges to make the call. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // The service specified by the resourceArn parameter is not available. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resourceArn, secretArn, or transactionId value can't be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransaction @@ -361,17 +364,17 @@ func (c *RDSDataService) ExecuteSqlRequest(input *ExecuteSqlInput) (req *request // See the AWS API reference guide for AWS RDS DataService's // API operation ExecuteSql for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // There is an error in the call or in a SQL statement. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // There are insufficient privileges to make the call. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // The service specified by the resourceArn parameter is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql @@ -459,20 +462,20 @@ func (c *RDSDataService) ExecuteStatementRequest(input *ExecuteStatementInput) ( // See the AWS API reference guide for AWS RDS DataService's // API operation ExecuteStatement for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // There is an error in the call or in a SQL statement. // -// * ErrCodeStatementTimeoutException "StatementTimeoutException" +// * StatementTimeoutException // The execution of the SQL statement timed out. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // There are insufficient privileges to make the call. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // The service specified by the resourceArn parameter is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatement @@ -551,23 +554,23 @@ func (c *RDSDataService) RollbackTransactionRequest(input *RollbackTransactionIn // See the AWS API reference guide for AWS RDS DataService's // API operation RollbackTransaction for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // There is an error in the call or in a SQL statement. // -// * ErrCodeStatementTimeoutException "StatementTimeoutException" +// * StatementTimeoutException // The execution of the SQL statement timed out. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // There are insufficient privileges to make the call. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // The service specified by the resourceArn parameter is not available. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resourceArn, secretArn, or transactionId value can't be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction @@ -652,6 +655,63 @@ func (s *ArrayValue) SetStringValues(v []*string) *ArrayValue { return s } +// There is an error in the call or in a SQL statement. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message returned by this BadRequestException error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // The request parameters represent the input of a SQL statement over an array // of data. type BatchExecuteStatementInput struct { @@ -1538,6 +1598,171 @@ func (s *Field) SetStringValue(v string) *Field { return s } +// There are insufficient privileges to make the call. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message returned by this ForbiddenException error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + +// An internal error occurred. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resourceArn, secretArn, or transactionId value can't be found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The error message returned by this NotFoundException error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A record returned by a call. type Record struct { _ struct{} `type:"structure"` @@ -1758,6 +1983,57 @@ func (s *RollbackTransactionOutput) SetTransactionStatus(v string) *RollbackTran return s } +// The service specified by the resourceArn parameter is not available. +type ServiceUnavailableError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ServiceUnavailableError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableError) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableError(v protocol.ResponseMetadata) error { + return &ServiceUnavailableError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableError) Code() string { + return "ServiceUnavailableError" +} + +// Message returns the exception's message. +func (s ServiceUnavailableError) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableError) OrigErr() error { + return nil +} + +func (s ServiceUnavailableError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableError) RequestID() string { + return s.respMetadata.RequestID +} + // A parameter used in a SQL statement. type SqlParameter struct { _ struct{} `type:"structure"` @@ -1849,6 +2125,66 @@ func (s *SqlStatementResult) SetResultFrame(v *ResultFrame) *SqlStatementResult return s } +// The execution of the SQL statement timed out. +type StatementTimeoutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The database connection ID that executed the SQL statement. + DbConnectionId *int64 `locationName:"dbConnectionId" type:"long"` + + // The error message returned by this StatementTimeoutException error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StatementTimeoutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StatementTimeoutException) GoString() string { + return s.String() +} + +func newErrorStatementTimeoutException(v protocol.ResponseMetadata) error { + return &StatementTimeoutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StatementTimeoutException) Code() string { + return "StatementTimeoutException" +} + +// Message returns the exception's message. +func (s StatementTimeoutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StatementTimeoutException) OrigErr() error { + return nil +} + +func (s StatementTimeoutException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StatementTimeoutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StatementTimeoutException) RequestID() string { + return s.respMetadata.RequestID +} + // A structure value returned by a call. type StructValue struct { _ struct{} `type:"structure"` diff --git a/service/rdsdataservice/errors.go b/service/rdsdataservice/errors.go index 24820cef8b9..5e531964136 100644 --- a/service/rdsdataservice/errors.go +++ b/service/rdsdataservice/errors.go @@ -2,6 +2,10 @@ package rdsdataservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -40,3 +44,12 @@ const ( // The execution of the SQL statement timed out. ErrCodeStatementTimeoutException = "StatementTimeoutException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableError": newErrorServiceUnavailableError, + "StatementTimeoutException": newErrorStatementTimeoutException, +} diff --git a/service/rdsdataservice/service.go b/service/rdsdataservice/service.go index 4e3bc6c58f8..a83a5ea12d4 100644 --- a/service/rdsdataservice/service.go +++ b/service/rdsdataservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/rekognition/api.go b/service/rekognition/api.go index 7eb4509d4ee..ae603b6a75b 100644 --- a/service/rekognition/api.go +++ b/service/rekognition/api.go @@ -116,33 +116,33 @@ func (c *Rekognition) CompareFacesRequest(input *CompareFacesInput) (req *reques // See the AWS API reference guide for Amazon Rekognition's // API operation CompareFaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) CompareFaces(input *CompareFacesInput) (*CompareFacesOutput, error) { @@ -231,26 +231,26 @@ func (c *Rekognition) CreateCollectionRequest(input *CreateCollectionInput) (req // See the AWS API reference guide for Amazon Rekognition's // API operation CreateCollection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // A collection with the specified ID already exists. // func (c *Rekognition) CreateCollection(input *CreateCollectionInput) (*CreateCollectionOutput, error) { @@ -330,31 +330,31 @@ func (c *Rekognition) CreateProjectRequest(input *CreateProjectInput) (req *requ // See the AWS API reference guide for Amazon Rekognition's // API operation CreateProject for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -444,34 +444,34 @@ func (c *Rekognition) CreateProjectVersionRequest(input *CreateProjectVersionInp // See the AWS API reference guide for Amazon Rekognition's // API operation CreateProjectVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -562,31 +562,31 @@ func (c *Rekognition) CreateStreamProcessorRequest(input *CreateStreamProcessorI // See the AWS API reference guide for Amazon Rekognition's // API operation CreateStreamProcessor for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -666,26 +666,26 @@ func (c *Rekognition) DeleteCollectionRequest(input *DeleteCollectionInput) (req // See the AWS API reference guide for Amazon Rekognition's // API operation DeleteCollection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // func (c *Rekognition) DeleteCollection(input *DeleteCollectionInput) (*DeleteCollectionOutput, error) { @@ -764,26 +764,26 @@ func (c *Rekognition) DeleteFacesRequest(input *DeleteFacesInput) (req *request. // See the AWS API reference guide for Amazon Rekognition's // API operation DeleteFaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // func (c *Rekognition) DeleteFaces(input *DeleteFacesInput) (*DeleteFacesOutput, error) { @@ -862,27 +862,27 @@ func (c *Rekognition) DeleteStreamProcessorRequest(input *DeleteStreamProcessorI // See the AWS API reference guide for Amazon Rekognition's // API operation DeleteStreamProcessor for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -963,26 +963,26 @@ func (c *Rekognition) DescribeCollectionRequest(input *DescribeCollectionInput) // See the AWS API reference guide for Amazon Rekognition's // API operation DescribeCollection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // func (c *Rekognition) DescribeCollection(input *DescribeCollectionInput) (*DescribeCollectionOutput, error) { @@ -1068,28 +1068,28 @@ func (c *Rekognition) DescribeProjectVersionsRequest(input *DescribeProjectVersi // See the AWS API reference guide for Amazon Rekognition's // API operation DescribeProjectVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -1226,25 +1226,25 @@ func (c *Rekognition) DescribeProjectsRequest(input *DescribeProjectsInput) (req // See the AWS API reference guide for Amazon Rekognition's // API operation DescribeProjects for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// Returned Error Types: +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -1375,25 +1375,25 @@ func (c *Rekognition) DescribeStreamProcessorRequest(input *DescribeStreamProces // See the AWS API reference guide for Amazon Rekognition's // API operation DescribeStreamProcessor for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -1501,47 +1501,47 @@ func (c *Rekognition) DetectCustomLabelsRequest(input *DetectCustomLabelsInput) // See the AWS API reference guide for Amazon Rekognition's // API operation DetectCustomLabels for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeResourceNotReadyException "ResourceNotReadyException" +// * ResourceNotReadyException // The requested resource isn't ready. For example, this exception occurs when // you call DetectCustomLabels with a model version that isn't deployed. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) DetectCustomLabels(input *DetectCustomLabelsInput) (*DetectCustomLabelsOutput, error) { @@ -1637,33 +1637,33 @@ func (c *Rekognition) DetectFacesRequest(input *DetectFacesInput) (req *request. // See the AWS API reference guide for Amazon Rekognition's // API operation DetectFaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Returned Error Types: +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) DetectFaces(input *DetectFacesInput) (*DetectFacesOutput, error) { @@ -1806,33 +1806,33 @@ func (c *Rekognition) DetectLabelsRequest(input *DetectLabelsInput) (req *reques // See the AWS API reference guide for Amazon Rekognition's // API operation DetectLabels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Returned Error Types: +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) DetectLabels(input *DetectLabelsInput) (*DetectLabelsOutput, error) { @@ -1921,36 +1921,36 @@ func (c *Rekognition) DetectModerationLabelsRequest(input *DetectModerationLabel // See the AWS API reference guide for Amazon Rekognition's // API operation DetectModerationLabels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Returned Error Types: +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // -// * ErrCodeHumanLoopQuotaExceededException "HumanLoopQuotaExceededException" +// * HumanLoopQuotaExceededException // The number of in-progress human reviews you have has exceeded the number // allowed. // @@ -2057,33 +2057,33 @@ func (c *Rekognition) DetectTextRequest(input *DetectTextInput) (req *request.Re // See the AWS API reference guide for Amazon Rekognition's // API operation DetectText for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Returned Error Types: +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) DetectText(input *DetectTextInput) (*DetectTextOutput, error) { @@ -2167,26 +2167,26 @@ func (c *Rekognition) GetCelebrityInfoRequest(input *GetCelebrityInfoInput) (req // See the AWS API reference guide for Amazon Rekognition's // API operation GetCelebrityInfo for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // func (c *Rekognition) GetCelebrityInfo(input *GetCelebrityInfoInput) (*GetCelebrityInfoOutput, error) { @@ -2307,28 +2307,28 @@ func (c *Rekognition) GetCelebrityRecognitionRequest(input *GetCelebrityRecognit // See the AWS API reference guide for Amazon Rekognition's // API operation GetCelebrityRecognition for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -2494,28 +2494,28 @@ func (c *Rekognition) GetContentModerationRequest(input *GetContentModerationInp // See the AWS API reference guide for Amazon Rekognition's // API operation GetContentModeration for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -2669,28 +2669,28 @@ func (c *Rekognition) GetFaceDetectionRequest(input *GetFaceDetectionInput) (req // See the AWS API reference guide for Amazon Rekognition's // API operation GetFaceDetection for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -2854,28 +2854,28 @@ func (c *Rekognition) GetFaceSearchRequest(input *GetFaceSearchInput) (req *requ // See the AWS API reference guide for Amazon Rekognition's // API operation GetFaceSearch for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -3038,28 +3038,28 @@ func (c *Rekognition) GetLabelDetectionRequest(input *GetLabelDetectionInput) (r // See the AWS API reference guide for Amazon Rekognition's // API operation GetLabelDetection for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -3225,28 +3225,28 @@ func (c *Rekognition) GetPersonTrackingRequest(input *GetPersonTrackingInput) (r // See the AWS API reference guide for Amazon Rekognition's // API operation GetPersonTracking for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -3468,36 +3468,36 @@ func (c *Rekognition) IndexFacesRequest(input *IndexFacesInput) (req *request.Re // See the AWS API reference guide for Amazon Rekognition's // API operation IndexFaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Returned Error Types: +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) IndexFaces(input *IndexFacesInput) (*IndexFacesOutput, error) { @@ -3586,29 +3586,29 @@ func (c *Rekognition) ListCollectionsRequest(input *ListCollectionsInput) (req * // See the AWS API reference guide for Amazon Rekognition's // API operation ListCollections for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // func (c *Rekognition) ListCollections(input *ListCollectionsInput) (*ListCollectionsOutput, error) { @@ -3747,29 +3747,29 @@ func (c *Rekognition) ListFacesRequest(input *ListFacesInput) (req *request.Requ // See the AWS API reference guide for Amazon Rekognition's // API operation ListFaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // func (c *Rekognition) ListFaces(input *ListFacesInput) (*ListFacesOutput, error) { @@ -3902,25 +3902,25 @@ func (c *Rekognition) ListStreamProcessorsRequest(input *ListStreamProcessorsInp // See the AWS API reference guide for Amazon Rekognition's // API operation ListStreamProcessors for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Pagination token in the request is not valid. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -4077,36 +4077,36 @@ func (c *Rekognition) RecognizeCelebritiesRequest(input *RecognizeCelebritiesInp // See the AWS API reference guide for Amazon Rekognition's // API operation RecognizeCelebrities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Returned Error Types: +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) RecognizeCelebrities(input *RecognizeCelebritiesInput) (*RecognizeCelebritiesOutput, error) { @@ -4199,26 +4199,26 @@ func (c *Rekognition) SearchFacesRequest(input *SearchFacesInput) (req *request. // See the AWS API reference guide for Amazon Rekognition's // API operation SearchFaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // func (c *Rekognition) SearchFaces(input *SearchFacesInput) (*SearchFacesOutput, error) { @@ -4332,36 +4332,36 @@ func (c *Rekognition) SearchFacesByImageRequest(input *SearchFacesByImageInput) // See the AWS API reference guide for Amazon Rekognition's // API operation SearchFacesByImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// Returned Error Types: +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeImageTooLargeException "ImageTooLargeException" +// * ImageTooLargeException // The input image size exceeds the allowed limit. For more information, see // Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeInvalidImageFormatException "InvalidImageFormatException" +// * InvalidImageFormatException // The provided image format is not supported. // func (c *Rekognition) SearchFacesByImage(input *SearchFacesByImageInput) (*SearchFacesByImageOutput, error) { @@ -4450,41 +4450,41 @@ func (c *Rekognition) StartCelebrityRecognitionRequest(input *StartCelebrityReco // See the AWS API reference guide for Amazon Rekognition's // API operation StartCelebrityRecognition for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeVideoTooLargeException "VideoTooLargeException" +// * VideoTooLargeException // The file size or duration of the supplied media is too large. The maximum // file size is 8GB. The maximum duration is 2 hours. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -4574,41 +4574,41 @@ func (c *Rekognition) StartContentModerationRequest(input *StartContentModeratio // See the AWS API reference guide for Amazon Rekognition's // API operation StartContentModeration for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeVideoTooLargeException "VideoTooLargeException" +// * VideoTooLargeException // The file size or duration of the supplied media is too large. The maximum // file size is 8GB. The maximum duration is 2 hours. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -4697,41 +4697,41 @@ func (c *Rekognition) StartFaceDetectionRequest(input *StartFaceDetectionInput) // See the AWS API reference guide for Amazon Rekognition's // API operation StartFaceDetection for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeVideoTooLargeException "VideoTooLargeException" +// * VideoTooLargeException // The file size or duration of the supplied media is too large. The maximum // file size is 8GB. The maximum duration is 2 hours. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -4818,44 +4818,44 @@ func (c *Rekognition) StartFaceSearchRequest(input *StartFaceSearchInput) (req * // See the AWS API reference guide for Amazon Rekognition's // API operation StartFaceSearch for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeVideoTooLargeException "VideoTooLargeException" +// * VideoTooLargeException // The file size or duration of the supplied media is too large. The maximum // file size is 8GB. The maximum duration is 2 hours. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -4949,41 +4949,41 @@ func (c *Rekognition) StartLabelDetectionRequest(input *StartLabelDetectionInput // See the AWS API reference guide for Amazon Rekognition's // API operation StartLabelDetection for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeVideoTooLargeException "VideoTooLargeException" +// * VideoTooLargeException // The file size or duration of the supplied media is too large. The maximum // file size is 8GB. The maximum duration is 2 hours. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -5071,41 +5071,41 @@ func (c *Rekognition) StartPersonTrackingRequest(input *StartPersonTrackingInput // See the AWS API reference guide for Amazon Rekognition's // API operation StartPersonTracking for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Rekognition is unable to access the S3 object specified in the request. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeVideoTooLargeException "VideoTooLargeException" +// * VideoTooLargeException // The file size or duration of the supplied media is too large. The maximum // file size is 8GB. The maximum duration is 2 hours. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // @@ -5191,34 +5191,34 @@ func (c *Rekognition) StartProjectVersionRequest(input *StartProjectVersionInput // See the AWS API reference guide for Amazon Rekognition's // API operation StartProjectVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Rekognition service limit was exceeded. For example, if you start // too many Amazon Rekognition Video jobs concurrently, calls to start operations // (StartLabelDetection, for example) will raise a LimitExceededException exception // (HTTP status code: 400) until the number of concurrently running jobs is // below the Amazon Rekognition service limit. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -5297,27 +5297,27 @@ func (c *Rekognition) StartStreamProcessorRequest(input *StartStreamProcessorInp // See the AWS API reference guide for Amazon Rekognition's // API operation StartStreamProcessor for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -5394,27 +5394,27 @@ func (c *Rekognition) StopProjectVersionRequest(input *StopProjectVersionInput) // See the AWS API reference guide for Amazon Rekognition's // API operation StopProjectVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -5491,27 +5491,27 @@ func (c *Rekognition) StopStreamProcessorRequest(input *StopStreamProcessorInput // See the AWS API reference guide for Amazon Rekognition's // API operation StopStreamProcessor for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You are not authorized to perform the action. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Rekognition experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Rekognition is temporarily unable to process the request. Try your // call again. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Input parameter violated a constraint. Validate your parameter before calling // the API operation again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The collection specified in the request cannot be found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Rekognition. // @@ -5536,6 +5536,57 @@ func (c *Rekognition) StopStreamProcessorWithContext(ctx aws.Context, input *Sto return out, req.Send() } +// You are not authorized to perform the action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Structure containing the estimated age range, in years, for a face. // // Amazon Rekognition estimates an age range for faces detected in the input @@ -9661,6 +9712,117 @@ func (s *HumanLoopDataAttributes) SetContentClassifiers(v []*string) *HumanLoopD return s } +// The number of in-progress human reviews you have has exceeded the number +// allowed. +type HumanLoopQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + QuotaCode *string `type:"string"` + + ResourceType *string `type:"string"` + + ServiceCode *string `type:"string"` +} + +// String returns the string representation +func (s HumanLoopQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HumanLoopQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorHumanLoopQuotaExceededException(v protocol.ResponseMetadata) error { + return &HumanLoopQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HumanLoopQuotaExceededException) Code() string { + return "HumanLoopQuotaExceededException" +} + +// Message returns the exception's message. +func (s HumanLoopQuotaExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HumanLoopQuotaExceededException) OrigErr() error { + return nil +} + +func (s HumanLoopQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HumanLoopQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HumanLoopQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A ClientRequestToken input parameter was reused with an operation, but at +// least one of the other input parameters is different from the previous call +// to the operation. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides the input image either as bytes or an S3 object. // // You pass image bytes to an Amazon Rekognition API operation by using the @@ -9774,6 +9936,58 @@ func (s *ImageQuality) SetSharpness(v float64) *ImageQuality { return s } +// The input image size exceeds the allowed limit. For more information, see +// Limits in Amazon Rekognition in the Amazon Rekognition Developer Guide. +type ImageTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ImageTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ImageTooLargeException) GoString() string { + return s.String() +} + +func newErrorImageTooLargeException(v protocol.ResponseMetadata) error { + return &ImageTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ImageTooLargeException) Code() string { + return "ImageTooLargeException" +} + +// Message returns the exception's message. +func (s ImageTooLargeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ImageTooLargeException) OrigErr() error { + return nil +} + +func (s ImageTooLargeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ImageTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ImageTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + type IndexFacesInput struct { _ struct{} `type:"structure"` @@ -10028,6 +10242,262 @@ func (s *Instance) SetConfidence(v float64) *Instance { return s } +// Amazon Rekognition experienced a service issue. Try your call again. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided image format is not supported. +type InvalidImageFormatException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidImageFormatException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidImageFormatException) GoString() string { + return s.String() +} + +func newErrorInvalidImageFormatException(v protocol.ResponseMetadata) error { + return &InvalidImageFormatException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidImageFormatException) Code() string { + return "InvalidImageFormatException" +} + +// Message returns the exception's message. +func (s InvalidImageFormatException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidImageFormatException) OrigErr() error { + return nil +} + +func (s InvalidImageFormatException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidImageFormatException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidImageFormatException) RequestID() string { + return s.respMetadata.RequestID +} + +// Pagination token in the request is not valid. +type InvalidPaginationTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidPaginationTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPaginationTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error { + return &InvalidPaginationTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPaginationTokenException) Code() string { + return "InvalidPaginationTokenException" +} + +// Message returns the exception's message. +func (s InvalidPaginationTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPaginationTokenException) OrigErr() error { + return nil +} + +func (s InvalidPaginationTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPaginationTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPaginationTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// Input parameter violated a constraint. Validate your parameter before calling +// the API operation again. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// Amazon Rekognition is unable to access the S3 object specified in the request. +type InvalidS3ObjectException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidS3ObjectException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidS3ObjectException) GoString() string { + return s.String() +} + +func newErrorInvalidS3ObjectException(v protocol.ResponseMetadata) error { + return &InvalidS3ObjectException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidS3ObjectException) Code() string { + return "InvalidS3ObjectException" +} + +// Message returns the exception's message. +func (s InvalidS3ObjectException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidS3ObjectException) OrigErr() error { + return nil +} + +func (s InvalidS3ObjectException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidS3ObjectException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidS3ObjectException) RequestID() string { + return s.respMetadata.RequestID +} + // The Kinesis data stream Amazon Rekognition to which the analysis results // of a Amazon Rekognition stream processor are streamed. For more information, // see CreateStreamProcessor in the Amazon Rekognition Developer Guide. @@ -10214,6 +10684,61 @@ func (s *Landmark) SetY(v float64) *Landmark { return s } +// An Amazon Rekognition service limit was exceeded. For example, if you start +// too many Amazon Rekognition Video jobs concurrently, calls to start operations +// (StartLabelDetection, for example) will raise a LimitExceededException exception +// (HTTP status code: 400) until the number of concurrently running jobs is +// below the Amazon Rekognition service limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListCollectionsInput struct { _ struct{} `type:"structure"` @@ -11096,6 +11621,58 @@ func (s *ProjectVersionDescription) SetTrainingEndTimestamp(v time.Time) *Projec return s } +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Rekognition. +type ProvisionedThroughputExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ProvisionedThroughputExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedThroughputExceededException) GoString() string { + return s.String() +} + +func newErrorProvisionedThroughputExceededException(v protocol.ResponseMetadata) error { + return &ProvisionedThroughputExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProvisionedThroughputExceededException) Code() string { + return "ProvisionedThroughputExceededException" +} + +// Message returns the exception's message. +func (s ProvisionedThroughputExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProvisionedThroughputExceededException) OrigErr() error { + return nil +} + +func (s ProvisionedThroughputExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProvisionedThroughputExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProvisionedThroughputExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type RecognizeCelebritiesInput struct { _ struct{} `type:"structure"` @@ -11197,6 +11774,210 @@ func (s *RecognizeCelebritiesOutput) SetUnrecognizedFaces(v []*ComparedFace) *Re return s } +// A collection with the specified ID already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The collection specified in the request cannot be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource isn't ready. For example, this exception occurs when +// you call DetectCustomLabels with a model version that isn't deployed. +type ResourceNotReadyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotReadyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotReadyException) GoString() string { + return s.String() +} + +func newErrorResourceNotReadyException(v protocol.ResponseMetadata) error { + return &ResourceNotReadyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotReadyException) Code() string { + return "ResourceNotReadyException" +} + +// Message returns the exception's message. +func (s ResourceNotReadyException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotReadyException) OrigErr() error { + return nil +} + +func (s ResourceNotReadyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotReadyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotReadyException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides the S3 bucket name and object name. // // The region for the S3 bucket containing the S3 object must match the region @@ -12969,6 +13750,58 @@ func (s *TextDetection) SetType(v string) *TextDetection { return s } +// Amazon Rekognition is temporarily unable to process the request. Try your +// call again. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + // The dataset used for training. type TrainingData struct { _ struct{} `type:"structure"` @@ -13209,6 +14042,58 @@ func (s *VideoMetadata) SetFrameWidth(v int64) *VideoMetadata { return s } +// The file size or duration of the supplied media is too large. The maximum +// file size is 8GB. The maximum duration is 2 hours. +type VideoTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s VideoTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s VideoTooLargeException) GoString() string { + return s.String() +} + +func newErrorVideoTooLargeException(v protocol.ResponseMetadata) error { + return &VideoTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s VideoTooLargeException) Code() string { + return "VideoTooLargeException" +} + +// Message returns the exception's message. +func (s VideoTooLargeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s VideoTooLargeException) OrigErr() error { + return nil +} + +func (s VideoTooLargeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s VideoTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s VideoTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // AttributeDefault is a Attribute enum value AttributeDefault = "DEFAULT" diff --git a/service/rekognition/errors.go b/service/rekognition/errors.go index a08b9844c0c..9301945a563 100644 --- a/service/rekognition/errors.go +++ b/service/rekognition/errors.go @@ -2,6 +2,10 @@ package rekognition +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -117,3 +121,23 @@ const ( // file size is 8GB. The maximum duration is 2 hours. ErrCodeVideoTooLargeException = "VideoTooLargeException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "HumanLoopQuotaExceededException": newErrorHumanLoopQuotaExceededException, + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "ImageTooLargeException": newErrorImageTooLargeException, + "InternalServerError": newErrorInternalServerError, + "InvalidImageFormatException": newErrorInvalidImageFormatException, + "InvalidPaginationTokenException": newErrorInvalidPaginationTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidS3ObjectException": newErrorInvalidS3ObjectException, + "LimitExceededException": newErrorLimitExceededException, + "ProvisionedThroughputExceededException": newErrorProvisionedThroughputExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceNotReadyException": newErrorResourceNotReadyException, + "ThrottlingException": newErrorThrottlingException, + "VideoTooLargeException": newErrorVideoTooLargeException, +} diff --git a/service/rekognition/service.go b/service/rekognition/service.go index 4915e495aaf..920bc072fb6 100644 --- a/service/rekognition/service.go +++ b/service/rekognition/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/resourcegroups/api.go b/service/resourcegroups/api.go index 84d3fee94ac..4fa97b4d5e4 100644 --- a/service/resourcegroups/api.go +++ b/service/resourcegroups/api.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCreateGroup = "CreateGroup" @@ -63,21 +64,21 @@ func (c *ResourceGroups) CreateGroupRequest(input *CreateGroupInput) (req *reque // See the AWS API reference guide for AWS Resource Groups's // API operation CreateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/CreateGroup @@ -156,24 +157,24 @@ func (c *ResourceGroups) DeleteGroupRequest(input *DeleteGroupInput) (req *reque // See the AWS API reference guide for AWS Resource Groups's // API operation DeleteGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/DeleteGroup @@ -251,24 +252,24 @@ func (c *ResourceGroups) GetGroupRequest(input *GetGroupInput) (req *request.Req // See the AWS API reference guide for AWS Resource Groups's // API operation GetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroup @@ -346,24 +347,24 @@ func (c *ResourceGroups) GetGroupQueryRequest(input *GetGroupQueryInput) (req *r // See the AWS API reference guide for AWS Resource Groups's // API operation GetGroupQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetGroupQuery @@ -442,24 +443,24 @@ func (c *ResourceGroups) GetTagsRequest(input *GetTagsInput) (req *request.Reque // See the AWS API reference guide for AWS Resource Groups's // API operation GetTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/GetTags @@ -544,28 +545,28 @@ func (c *ResourceGroups) ListGroupResourcesRequest(input *ListGroupResourcesInpu // See the AWS API reference guide for AWS Resource Groups's // API operation ListGroupResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request has not been applied because it lacks valid authentication credentials // for the target resource. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroupResources @@ -701,21 +702,21 @@ func (c *ResourceGroups) ListGroupsRequest(input *ListGroupsInput) (req *request // See the AWS API reference guide for AWS Resource Groups's // API operation ListGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/ListGroups @@ -853,25 +854,25 @@ func (c *ResourceGroups) SearchResourcesRequest(input *SearchResourcesInput) (re // See the AWS API reference guide for AWS Resource Groups's // API operation SearchResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // The request has not been applied because it lacks valid authentication credentials // for the target resource. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/SearchResources @@ -1002,24 +1003,24 @@ func (c *ResourceGroups) TagRequest(input *TagInput) (req *request.Request, outp // See the AWS API reference guide for AWS Resource Groups's // API operation Tag for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/Tag @@ -1097,24 +1098,24 @@ func (c *ResourceGroups) UntagRequest(input *UntagInput) (req *request.Request, // See the AWS API reference guide for AWS Resource Groups's // API operation Untag for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/Untag @@ -1193,24 +1194,24 @@ func (c *ResourceGroups) UpdateGroupRequest(input *UpdateGroupInput) (req *reque // See the AWS API reference guide for AWS Resource Groups's // API operation UpdateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroup @@ -1288,24 +1289,24 @@ func (c *ResourceGroups) UpdateGroupQueryRequest(input *UpdateGroupQueryInput) ( // See the AWS API reference guide for AWS Resource Groups's // API operation UpdateGroupQuery for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The request does not comply with validation rules that are defined for the // request parameters. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The caller is not authorized to make the request. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // One or more resources specified in the request do not exist. // -// * ErrCodeMethodNotAllowedException "MethodNotAllowedException" +// * MethodNotAllowedException // The request uses an HTTP method which is not allowed for the specified resource. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The caller has exceeded throttling limits. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // An internal error occurred while processing the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resource-groups-2017-11-27/UpdateGroupQuery @@ -1330,6 +1331,63 @@ func (c *ResourceGroups) UpdateGroupQueryWithContext(ctx aws.Context, input *Upd return out, req.Send() } +// The request does not comply with validation rules that are defined for the +// request parameters. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateGroupInput struct { _ struct{} `type:"structure"` @@ -1522,6 +1580,62 @@ func (s *DeleteGroupOutput) SetGroup(v *Group) *DeleteGroupOutput { return s } +// The caller is not authorized to make the request. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetGroupInput struct { _ struct{} `type:"structure"` @@ -1901,6 +2015,62 @@ func (s *GroupQuery) SetResourceQuery(v *ResourceQuery) *GroupQuery { return s } +// An internal error occurred while processing the request. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListGroupResourcesInput struct { _ struct{} `type:"structure"` @@ -2152,6 +2322,118 @@ func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { return s } +// The request uses an HTTP method which is not allowed for the specified resource. +type MethodNotAllowedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s MethodNotAllowedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MethodNotAllowedException) GoString() string { + return s.String() +} + +func newErrorMethodNotAllowedException(v protocol.ResponseMetadata) error { + return &MethodNotAllowedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MethodNotAllowedException) Code() string { + return "MethodNotAllowedException" +} + +// Message returns the exception's message. +func (s MethodNotAllowedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MethodNotAllowedException) OrigErr() error { + return nil +} + +func (s MethodNotAllowedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MethodNotAllowedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MethodNotAllowedException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more resources specified in the request do not exist. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A two-part error structure that can occur in ListGroupResources or SearchResources // operations on CloudFormation stack-based queries. The error occurs if the // CloudFormation stack on which the query is based either does not exist, or @@ -2575,6 +2857,119 @@ func (s *TagOutput) SetTags(v map[string]*string) *TagOutput { return s } +// The caller has exceeded throttling limits. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request has not been applied because it lacks valid authentication credentials +// for the target resource. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagInput struct { _ struct{} `type:"structure"` diff --git a/service/resourcegroups/errors.go b/service/resourcegroups/errors.go index 02234d49436..0d0a2a074ca 100644 --- a/service/resourcegroups/errors.go +++ b/service/resourcegroups/errors.go @@ -2,6 +2,10 @@ package resourcegroups +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -48,3 +52,13 @@ const ( // for the target resource. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "MethodNotAllowedException": newErrorMethodNotAllowedException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/resourcegroups/service.go b/service/resourcegroups/service.go index cfc6d965ee2..ec1a500adf5 100644 --- a/service/resourcegroups/service.go +++ b/service/resourcegroups/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/resourcegroupstaggingapi/api.go b/service/resourcegroupstaggingapi/api.go index 72e5ee6c9fa..d986e843cee 100644 --- a/service/resourcegroupstaggingapi/api.go +++ b/service/resourcegroupstaggingapi/api.go @@ -68,8 +68,8 @@ func (c *ResourceGroupsTaggingAPI) DescribeReportCreationRequest(input *Describe // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation DescribeReportCreation for usage and error information. // -// Returned Error Codes: -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Returned Error Types: +// * ConstraintViolationException // The request was denied because performing this operation violates a constraint. // // Some of the reasons in the following list might not apply to this specific @@ -86,11 +86,11 @@ func (c *ResourceGroupsTaggingAPI) DescribeReportCreationRequest(input *Describe // * You must have a tag policy attached to the organization root, an OU, // or an account. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -106,7 +106,7 @@ func (c *ResourceGroupsTaggingAPI) DescribeReportCreationRequest(input *Describe // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/DescribeReportCreation @@ -197,8 +197,8 @@ func (c *ResourceGroupsTaggingAPI) GetComplianceSummaryRequest(input *GetComplia // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation GetComplianceSummary for usage and error information. // -// Returned Error Codes: -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// Returned Error Types: +// * ConstraintViolationException // The request was denied because performing this operation violates a constraint. // // Some of the reasons in the following list might not apply to this specific @@ -215,11 +215,11 @@ func (c *ResourceGroupsTaggingAPI) GetComplianceSummaryRequest(input *GetComplia // * You must have a tag policy attached to the organization root, an OU, // or an account. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -235,7 +235,7 @@ func (c *ResourceGroupsTaggingAPI) GetComplianceSummaryRequest(input *GetComplia // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/GetComplianceSummary @@ -388,8 +388,8 @@ func (c *ResourceGroupsTaggingAPI) GetResourcesRequest(input *GetResourcesInput) // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation GetResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -405,14 +405,14 @@ func (c *ResourceGroupsTaggingAPI) GetResourcesRequest(input *GetResourcesInput) // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // -// * ErrCodePaginationTokenExpiredException "PaginationTokenExpiredException" +// * PaginationTokenExpiredException // A PaginationToken is valid for a maximum of 15 minutes. Your request was // denied because the specified PaginationToken has expired. // @@ -549,8 +549,8 @@ func (c *ResourceGroupsTaggingAPI) GetTagKeysRequest(input *GetTagKeysInput) (re // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation GetTagKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -566,14 +566,14 @@ func (c *ResourceGroupsTaggingAPI) GetTagKeysRequest(input *GetTagKeysInput) (re // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // -// * ErrCodePaginationTokenExpiredException "PaginationTokenExpiredException" +// * PaginationTokenExpiredException // A PaginationToken is valid for a maximum of 15 minutes. Your request was // denied because the specified PaginationToken has expired. // @@ -711,8 +711,8 @@ func (c *ResourceGroupsTaggingAPI) GetTagValuesRequest(input *GetTagValuesInput) // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation GetTagValues for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -728,14 +728,14 @@ func (c *ResourceGroupsTaggingAPI) GetTagValuesRequest(input *GetTagValuesInput) // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // -// * ErrCodePaginationTokenExpiredException "PaginationTokenExpiredException" +// * PaginationTokenExpiredException // A PaginationToken is valid for a maximum of 15 minutes. Your request was // denied because the specified PaginationToken has expired. // @@ -876,12 +876,12 @@ func (c *ResourceGroupsTaggingAPI) StartReportCreationRequest(input *StartReport // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation StartReportCreation for usage and error information. // -// Returned Error Codes: -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// Returned Error Types: +// * ConcurrentModificationException // The target of the operation is currently being modified by a different request. // Try again later. // -// * ErrCodeConstraintViolationException "ConstraintViolationException" +// * ConstraintViolationException // The request was denied because performing this operation violates a constraint. // // Some of the reasons in the following list might not apply to this specific @@ -898,11 +898,11 @@ func (c *ResourceGroupsTaggingAPI) StartReportCreationRequest(input *StartReport // * You must have a tag policy attached to the organization root, an OU, // or an account. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -918,7 +918,7 @@ func (c *ResourceGroupsTaggingAPI) StartReportCreationRequest(input *StartReport // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // // See also, https://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/StartReportCreation @@ -1010,8 +1010,8 @@ func (c *ResourceGroupsTaggingAPI) TagResourcesRequest(input *TagResourcesInput) // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation TagResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -1027,10 +1027,10 @@ func (c *ResourceGroupsTaggingAPI) TagResourcesRequest(input *TagResourcesInput) // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // @@ -1119,8 +1119,8 @@ func (c *ResourceGroupsTaggingAPI) UntagResourcesRequest(input *UntagResourcesIn // See the AWS API reference guide for AWS Resource Groups Tagging API's // API operation UntagResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // This error indicates one of the following: // // * A parameter is missing. @@ -1136,10 +1136,10 @@ func (c *ResourceGroupsTaggingAPI) UntagResourcesRequest(input *UntagResourcesIn // (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) // in the AWS Organizations User Guide. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request was denied to limit the frequency of submitted requests. // -// * ErrCodeInternalServiceException "InternalServiceException" +// * InternalServiceException // The request processing failed because of an unknown error, exception, or // failure. You can retry the request. // @@ -1209,6 +1209,133 @@ func (s *ComplianceDetails) SetNoncompliantKeys(v []*string) *ComplianceDetails return s } +// The target of the operation is currently being modified by a different request. +// Try again later. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was denied because performing this operation violates a constraint. +// +// Some of the reasons in the following list might not apply to this specific +// operation. +// +// * You must meet the prerequisites for using tag policies. For information, +// see Prerequisites and Permissions for Using Tag Policies (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html) +// in the AWS Organizations User Guide. +// +// * You must enable the tag policies service principal (tagpolicies.tag.amazonaws.com) +// to integrate with AWS Organizations For information, see EnableAWSServiceAccess +// (http://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html). +// +// * You must have a tag policy attached to the organization root, an OU, +// or an account. +type ConstraintViolationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConstraintViolationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConstraintViolationException) GoString() string { + return s.String() +} + +func newErrorConstraintViolationException(v protocol.ResponseMetadata) error { + return &ConstraintViolationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConstraintViolationException) Code() string { + return "ConstraintViolationException" +} + +// Message returns the exception's message. +func (s ConstraintViolationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConstraintViolationException) OrigErr() error { + return nil +} + +func (s ConstraintViolationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConstraintViolationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConstraintViolationException) RequestID() string { + return s.respMetadata.RequestID +} + type DescribeReportCreationInput struct { _ struct{} `type:"structure"` } @@ -1832,6 +1959,189 @@ func (s *GetTagValuesOutput) SetTagValues(v []*string) *GetTagValuesOutput { return s } +// The request processing failed because of an unknown error, exception, or +// failure. You can retry the request. +type InternalServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceException) GoString() string { + return s.String() +} + +func newErrorInternalServiceException(v protocol.ResponseMetadata) error { + return &InternalServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceException) Code() string { + return "InternalServiceException" +} + +// Message returns the exception's message. +func (s InternalServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceException) OrigErr() error { + return nil +} + +func (s InternalServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceException) RequestID() string { + return s.respMetadata.RequestID +} + +// This error indicates one of the following: +// +// * A parameter is missing. +// +// * A malformed string was supplied for the request parameter. +// +// * An out-of-range value was supplied for the request parameter. +// +// * The target ID is invalid, unsupported, or doesn't exist. +// +// * You can't access the Amazon S3 bucket for report storage. For more information, +// see Additional Requirements for Organization-wide Tag Compliance Reports +// (http://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report) +// in the AWS Organizations User Guide. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// A PaginationToken is valid for a maximum of 15 minutes. Your request was +// denied because the specified PaginationToken has expired. +type PaginationTokenExpiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PaginationTokenExpiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PaginationTokenExpiredException) GoString() string { + return s.String() +} + +func newErrorPaginationTokenExpiredException(v protocol.ResponseMetadata) error { + return &PaginationTokenExpiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PaginationTokenExpiredException) Code() string { + return "PaginationTokenExpiredException" +} + +// Message returns the exception's message. +func (s PaginationTokenExpiredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PaginationTokenExpiredException) OrigErr() error { + return nil +} + +func (s PaginationTokenExpiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PaginationTokenExpiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PaginationTokenExpiredException) RequestID() string { + return s.respMetadata.RequestID +} + // A list of resource ARNs and the tags (keys and values) that are associated // with each. type ResourceTagMapping struct { @@ -2185,6 +2495,62 @@ func (s *TagResourcesOutput) SetFailedResourcesMap(v map[string]*FailureInfo) *T return s } +// The request was denied to limit the frequency of submitted requests. +type ThrottledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottledException) GoString() string { + return s.String() +} + +func newErrorThrottledException(v protocol.ResponseMetadata) error { + return &ThrottledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottledException) Code() string { + return "ThrottledException" +} + +// Message returns the exception's message. +func (s ThrottledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottledException) OrigErr() error { + return nil +} + +func (s ThrottledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottledException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourcesInput struct { _ struct{} `type:"structure"` diff --git a/service/resourcegroupstaggingapi/errors.go b/service/resourcegroupstaggingapi/errors.go index d3cb9d68501..0f4fa113639 100644 --- a/service/resourcegroupstaggingapi/errors.go +++ b/service/resourcegroupstaggingapi/errors.go @@ -2,6 +2,10 @@ package resourcegroupstaggingapi +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -70,3 +74,12 @@ const ( // The request was denied to limit the frequency of submitted requests. ErrCodeThrottledException = "ThrottledException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "ConstraintViolationException": newErrorConstraintViolationException, + "InternalServiceException": newErrorInternalServiceException, + "InvalidParameterException": newErrorInvalidParameterException, + "PaginationTokenExpiredException": newErrorPaginationTokenExpiredException, + "ThrottledException": newErrorThrottledException, +} diff --git a/service/resourcegroupstaggingapi/service.go b/service/resourcegroupstaggingapi/service.go index 2fe3ad72f77..997fa35ab09 100644 --- a/service/resourcegroupstaggingapi/service.go +++ b/service/resourcegroupstaggingapi/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/robomaker/api.go b/service/robomaker/api.go index 8b6015d15b3..58adb31be15 100644 --- a/service/robomaker/api.go +++ b/service/robomaker/api.go @@ -66,18 +66,18 @@ func (c *RoboMaker) BatchDescribeSimulationJobRequest(input *BatchDescribeSimula // See the AWS API reference guide for AWS RoboMaker's // API operation BatchDescribeSimulationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -157,18 +157,18 @@ func (c *RoboMaker) CancelDeploymentJobRequest(input *CancelDeploymentJobInput) // See the AWS API reference guide for AWS RoboMaker's // API operation CancelDeploymentJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -248,18 +248,18 @@ func (c *RoboMaker) CancelSimulationJobRequest(input *CancelSimulationJobInput) // See the AWS API reference guide for AWS RoboMaker's // API operation CancelSimulationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -345,29 +345,29 @@ func (c *RoboMaker) CreateDeploymentJobRequest(input *CreateDeploymentJobInput) // See the AWS API reference guide for AWS RoboMaker's // API operation CreateDeploymentJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeConcurrentDeploymentException "ConcurrentDeploymentException" +// * ConcurrentDeploymentException // The failure percentage threshold percentage was met. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The request uses the same client token as a previous, but non-identical request. // Do not reuse a client token with different requests, unless the requests // are identical. @@ -447,19 +447,19 @@ func (c *RoboMaker) CreateFleetRequest(input *CreateFleetInput) (req *request.Re // See the AWS API reference guide for AWS RoboMaker's // API operation CreateFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // @@ -538,23 +538,23 @@ func (c *RoboMaker) CreateRobotRequest(input *CreateRobotInput) (req *request.Re // See the AWS API reference guide for AWS RoboMaker's // API operation CreateRobot for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobot @@ -632,26 +632,26 @@ func (c *RoboMaker) CreateRobotApplicationRequest(input *CreateRobotApplicationI // See the AWS API reference guide for AWS RoboMaker's // API operation CreateRobotApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The request uses the same client token as a previous, but non-identical request. // Do not reuse a client token with different requests, unless the requests // are identical. @@ -731,25 +731,25 @@ func (c *RoboMaker) CreateRobotApplicationVersionRequest(input *CreateRobotAppli // See the AWS API reference guide for AWS RoboMaker's // API operation CreateRobotApplicationVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The request uses the same client token as a previous, but non-identical request. // Do not reuse a client token with different requests, unless the requests // are identical. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateRobotApplicationVersion @@ -827,26 +827,26 @@ func (c *RoboMaker) CreateSimulationApplicationRequest(input *CreateSimulationAp // See the AWS API reference guide for AWS RoboMaker's // API operation CreateSimulationApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The request uses the same client token as a previous, but non-identical request. // Do not reuse a client token with different requests, unless the requests // are identical. @@ -926,25 +926,25 @@ func (c *RoboMaker) CreateSimulationApplicationVersionRequest(input *CreateSimul // See the AWS API reference guide for AWS RoboMaker's // API operation CreateSimulationApplicationVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The request uses the same client token as a previous, but non-identical request. // Do not reuse a client token with different requests, unless the requests // are identical. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationApplicationVersion @@ -1025,31 +1025,31 @@ func (c *RoboMaker) CreateSimulationJobRequest(input *CreateSimulationJobInput) // See the AWS API reference guide for AWS RoboMaker's // API operation CreateSimulationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The request uses the same client token as a previous, but non-identical request. // Do not reuse a client token with different requests, unless the requests // are identical. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The request has failed due to a temporary failure of the server. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/CreateSimulationJob @@ -1128,15 +1128,15 @@ func (c *RoboMaker) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Re // See the AWS API reference guide for AWS RoboMaker's // API operation DeleteFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -1216,15 +1216,15 @@ func (c *RoboMaker) DeleteRobotRequest(input *DeleteRobotInput) (req *request.Re // See the AWS API reference guide for AWS RoboMaker's // API operation DeleteRobot for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -1304,16 +1304,16 @@ func (c *RoboMaker) DeleteRobotApplicationRequest(input *DeleteRobotApplicationI // See the AWS API reference guide for AWS RoboMaker's // API operation DeleteRobotApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteRobotApplication @@ -1392,16 +1392,16 @@ func (c *RoboMaker) DeleteSimulationApplicationRequest(input *DeleteSimulationAp // See the AWS API reference guide for AWS RoboMaker's // API operation DeleteSimulationApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeleteSimulationApplication @@ -1479,19 +1479,19 @@ func (c *RoboMaker) DeregisterRobotRequest(input *DeregisterRobotInput) (req *re // See the AWS API reference guide for AWS RoboMaker's // API operation DeregisterRobot for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeregisterRobot @@ -1569,18 +1569,18 @@ func (c *RoboMaker) DescribeDeploymentJobRequest(input *DescribeDeploymentJobInp // See the AWS API reference guide for AWS RoboMaker's // API operation DescribeDeploymentJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -1659,18 +1659,18 @@ func (c *RoboMaker) DescribeFleetRequest(input *DescribeFleetInput) (req *reques // See the AWS API reference guide for AWS RoboMaker's // API operation DescribeFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -1749,18 +1749,18 @@ func (c *RoboMaker) DescribeRobotRequest(input *DescribeRobotInput) (req *reques // See the AWS API reference guide for AWS RoboMaker's // API operation DescribeRobot for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -1839,19 +1839,19 @@ func (c *RoboMaker) DescribeRobotApplicationRequest(input *DescribeRobotApplicat // See the AWS API reference guide for AWS RoboMaker's // API operation DescribeRobotApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeRobotApplication @@ -1929,19 +1929,19 @@ func (c *RoboMaker) DescribeSimulationApplicationRequest(input *DescribeSimulati // See the AWS API reference guide for AWS RoboMaker's // API operation DescribeSimulationApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DescribeSimulationApplication @@ -2019,18 +2019,18 @@ func (c *RoboMaker) DescribeSimulationJobRequest(input *DescribeSimulationJobInp // See the AWS API reference guide for AWS RoboMaker's // API operation DescribeSimulationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -2116,18 +2116,18 @@ func (c *RoboMaker) ListDeploymentJobsRequest(input *ListDeploymentJobsInput) (r // See the AWS API reference guide for AWS RoboMaker's // API operation ListDeploymentJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -2265,18 +2265,18 @@ func (c *RoboMaker) ListFleetsRequest(input *ListFleetsInput) (req *request.Requ // See the AWS API reference guide for AWS RoboMaker's // API operation ListFleets for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -2414,16 +2414,16 @@ func (c *RoboMaker) ListRobotApplicationsRequest(input *ListRobotApplicationsInp // See the AWS API reference guide for AWS RoboMaker's // API operation ListRobotApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListRobotApplications @@ -2560,18 +2560,18 @@ func (c *RoboMaker) ListRobotsRequest(input *ListRobotsInput) (req *request.Requ // See the AWS API reference guide for AWS RoboMaker's // API operation ListRobots for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -2709,16 +2709,16 @@ func (c *RoboMaker) ListSimulationApplicationsRequest(input *ListSimulationAppli // See the AWS API reference guide for AWS RoboMaker's // API operation ListSimulationApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ListSimulationApplications @@ -2855,15 +2855,15 @@ func (c *RoboMaker) ListSimulationJobsRequest(input *ListSimulationJobsInput) (r // See the AWS API reference guide for AWS RoboMaker's // API operation ListSimulationJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -2994,18 +2994,18 @@ func (c *RoboMaker) ListTagsForResourceRequest(input *ListTagsForResourceInput) // See the AWS API reference guide for AWS RoboMaker's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -3084,23 +3084,23 @@ func (c *RoboMaker) RegisterRobotRequest(input *RegisterRobotInput) (req *reques // See the AWS API reference guide for AWS RoboMaker's // API operation RegisterRobot for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/RegisterRobot @@ -3179,23 +3179,23 @@ func (c *RoboMaker) RestartSimulationJobRequest(input *RestartSimulationJobInput // See the AWS API reference guide for AWS RoboMaker's // API operation RestartSimulationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/RestartSimulationJob @@ -3274,29 +3274,29 @@ func (c *RoboMaker) SyncDeploymentJobRequest(input *SyncDeploymentJobInput) (req // See the AWS API reference guide for AWS RoboMaker's // API operation SyncDeploymentJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeConcurrentDeploymentException "ConcurrentDeploymentException" +// * ConcurrentDeploymentException // The failure percentage threshold percentage was met. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // The request uses the same client token as a previous, but non-identical request. // Do not reuse a client token with different requests, unless the requests // are identical. @@ -3384,18 +3384,18 @@ func (c *RoboMaker) TagResourceRequest(input *TagResourceInput) (req *request.Re // See the AWS API reference guide for AWS RoboMaker's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -3478,18 +3478,18 @@ func (c *RoboMaker) UntagResourceRequest(input *UntagResourceInput) (req *reques // See the AWS API reference guide for AWS RoboMaker's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // @@ -3568,23 +3568,23 @@ func (c *RoboMaker) UpdateRobotApplicationRequest(input *UpdateRobotApplicationI // See the AWS API reference guide for AWS RoboMaker's // API operation UpdateRobotApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/UpdateRobotApplication @@ -3662,23 +3662,23 @@ func (c *RoboMaker) UpdateSimulationApplicationRequest(input *UpdateSimulationAp // See the AWS API reference guide for AWS RoboMaker's // API operation UpdateSimulationApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A parameter specified in a request is not valid, is unsupported, or cannot // be used. The returned message provides an explanation of the error value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource does not exist. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The requested resource exceeds the maximum number allowed, or the number // of concurrent stream requests exceeds the maximum number allowed. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // AWS RoboMaker is temporarily unable to process the request. Try your call // again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // AWS RoboMaker experienced a service issue. Try your call again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/UpdateSimulationApplication @@ -3886,6 +3886,62 @@ func (s CancelSimulationJobOutput) GoString() string { return s.String() } +// The failure percentage threshold percentage was met. +type ConcurrentDeploymentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentDeploymentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentDeploymentException) GoString() string { + return s.String() +} + +func newErrorConcurrentDeploymentException(v protocol.ResponseMetadata) error { + return &ConcurrentDeploymentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentDeploymentException) Code() string { + return "ConcurrentDeploymentException" +} + +// Message returns the exception's message. +func (s ConcurrentDeploymentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentDeploymentException) OrigErr() error { + return nil +} + +func (s ConcurrentDeploymentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentDeploymentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentDeploymentException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateDeploymentJobInput struct { _ struct{} `type:"structure"` @@ -7428,6 +7484,177 @@ func (s *Fleet) SetName(v string) *Fleet { return s } +// The request uses the same client token as a previous, but non-identical request. +// Do not reuse a client token with different requests, unless the requests +// are identical. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS RoboMaker experienced a service issue. Try your call again. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// A parameter specified in a request is not valid, is unsupported, or cannot +// be used. The returned message provides an explanation of the error value. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a launch configuration. type LaunchConfig struct { _ struct{} `type:"structure"` @@ -7510,6 +7737,63 @@ func (s *LaunchConfig) SetPortForwardingConfig(v *PortForwardingConfig) *LaunchC return s } +// The requested resource exceeds the maximum number allowed, or the number +// of concurrent stream requests exceeds the maximum number allowed. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDeploymentJobsInput struct { _ struct{} `type:"structure"` @@ -8750,6 +9034,118 @@ func (s *RenderingEngine) SetVersion(v string) *RenderingEngine { return s } +// The specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type RestartSimulationJobInput struct { _ struct{} `type:"structure"` @@ -9247,6 +9643,62 @@ func (s *S3Object) SetKey(v string) *S3Object { return s } +// The request has failed due to a temporary failure of the server. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a simulation application configuration. type SimulationApplicationConfig struct { _ struct{} `type:"structure"` @@ -10087,6 +10539,63 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// AWS RoboMaker is temporarily unable to process the request. Try your call +// again. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/robomaker/errors.go b/service/robomaker/errors.go index 5c2442d371e..9af855f6cee 100644 --- a/service/robomaker/errors.go +++ b/service/robomaker/errors.go @@ -2,6 +2,10 @@ package robomaker +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentDeploymentException for service response error code @@ -63,3 +67,15 @@ const ( // again. ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentDeploymentException": newErrorConcurrentDeploymentException, + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "InternalServerException": newErrorInternalServerException, + "InvalidParameterException": newErrorInvalidParameterException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/robomaker/service.go b/service/robomaker/service.go index 39d25fed796..9d9020de72c 100644 --- a/service/robomaker/service.go +++ b/service/robomaker/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/route53domains/api.go b/service/route53domains/api.go index fb7375aa9ae..010e71fb243 100644 --- a/service/route53domains/api.go +++ b/service/route53domains/api.go @@ -68,13 +68,13 @@ func (c *Route53Domains) CheckDomainAvailabilityRequest(input *CheckDomainAvaila // See the AWS API reference guide for Amazon Route 53 Domains's // API operation CheckDomainAvailability for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainAvailability @@ -152,13 +152,13 @@ func (c *Route53Domains) CheckDomainTransferabilityRequest(input *CheckDomainTra // See the AWS API reference guide for Amazon Route 53 Domains's // API operation CheckDomainTransferability for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/CheckDomainTransferability @@ -240,17 +240,17 @@ func (c *Route53Domains) DeleteTagsForDomainRequest(input *DeleteTagsForDomainIn // See the AWS API reference guide for Amazon Route 53 Domains's // API operation DeleteTagsForDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DeleteTagsForDomain @@ -330,13 +330,13 @@ func (c *Route53Domains) DisableDomainAutoRenewRequest(input *DisableDomainAutoR // See the AWS API reference guide for Amazon Route 53 Domains's // API operation DisableDomainAutoRenew for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainAutoRenew @@ -420,23 +420,23 @@ func (c *Route53Domains) DisableDomainTransferLockRequest(input *DisableDomainTr // See the AWS API reference guide for Amazon Route 53 Domains's // API operation DisableDomainTransferLock for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/DisableDomainTransferLock @@ -524,16 +524,16 @@ func (c *Route53Domains) EnableDomainAutoRenewRequest(input *EnableDomainAutoRen // See the AWS API reference guide for Amazon Route 53 Domains's // API operation EnableDomainAutoRenew for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainAutoRenew @@ -615,23 +615,23 @@ func (c *Route53Domains) EnableDomainTransferLockRequest(input *EnableDomainTran // See the AWS API reference guide for Amazon Route 53 Domains's // API operation EnableDomainTransferLock for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/EnableDomainTransferLock @@ -714,17 +714,17 @@ func (c *Route53Domains) GetContactReachabilityStatusRequest(input *GetContactRe // See the AWS API reference guide for Amazon Route 53 Domains's // API operation GetContactReachabilityStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetContactReachabilityStatus @@ -804,13 +804,13 @@ func (c *Route53Domains) GetDomainDetailRequest(input *GetDomainDetailInput) (re // See the AWS API reference guide for Amazon Route 53 Domains's // API operation GetDomainDetail for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainDetail @@ -890,13 +890,13 @@ func (c *Route53Domains) GetDomainSuggestionsRequest(input *GetDomainSuggestions // See the AWS API reference guide for Amazon Route 53 Domains's // API operation GetDomainSuggestions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/GetDomainSuggestions @@ -974,8 +974,8 @@ func (c *Route53Domains) GetOperationDetailRequest(input *GetOperationDetailInpu // See the AWS API reference guide for Amazon Route 53 Domains's // API operation GetOperationDetail for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. @@ -1062,8 +1062,8 @@ func (c *Route53Domains) ListDomainsRequest(input *ListDomainsInput) (req *reque // See the AWS API reference guide for Amazon Route 53 Domains's // API operation ListDomains for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. @@ -1201,8 +1201,8 @@ func (c *Route53Domains) ListOperationsRequest(input *ListOperationsInput) (req // See the AWS API reference guide for Amazon Route 53 Domains's // API operation ListOperations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. @@ -1338,17 +1338,17 @@ func (c *Route53Domains) ListTagsForDomainRequest(input *ListTagsForDomainInput) // See the AWS API reference guide for Amazon Route 53 Domains's // API operation ListTagsForDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ListTagsForDomain @@ -1453,25 +1453,25 @@ func (c *Route53Domains) RegisterDomainRequest(input *RegisterDomainInput) (req // See the AWS API reference guide for Amazon Route 53 Domains's // API operation RegisterDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeDomainLimitExceeded "DomainLimitExceeded" +// * DomainLimitExceeded // The number of domains has exceeded the allowed threshold for the account. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // @@ -1557,22 +1557,22 @@ func (c *Route53Domains) RenewDomainRequest(input *RenewDomainInput) (req *reque // See the AWS API reference guide for Amazon Route 53 Domains's // API operation RenewDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // @@ -1653,17 +1653,17 @@ func (c *Route53Domains) ResendContactReachabilityEmailRequest(input *ResendCont // See the AWS API reference guide for Amazon Route 53 Domains's // API operation ResendContactReachabilityEmail for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/ResendContactReachabilityEmail @@ -1742,13 +1742,13 @@ func (c *Route53Domains) RetrieveDomainAuthCodeRequest(input *RetrieveDomainAuth // See the AWS API reference guide for Amazon Route 53 Domains's // API operation RetrieveDomainAuthCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/RetrieveDomainAuthCode @@ -1851,25 +1851,25 @@ func (c *Route53Domains) TransferDomainRequest(input *TransferDomainInput) (req // See the AWS API reference guide for Amazon Route 53 Domains's // API operation TransferDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeDomainLimitExceeded "DomainLimitExceeded" +// * DomainLimitExceeded // The number of domains has exceeded the allowed threshold for the account. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // @@ -1955,23 +1955,23 @@ func (c *Route53Domains) UpdateDomainContactRequest(input *UpdateDomainContactIn // See the AWS API reference guide for Amazon Route 53 Domains's // API operation UpdateDomainContact for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContact @@ -2059,23 +2059,23 @@ func (c *Route53Domains) UpdateDomainContactPrivacyRequest(input *UpdateDomainCo // See the AWS API reference guide for Amazon Route 53 Domains's // API operation UpdateDomainContactPrivacy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainContactPrivacy @@ -2160,23 +2160,23 @@ func (c *Route53Domains) UpdateDomainNameserversRequest(input *UpdateDomainNames // See the AWS API reference guide for Amazon Route 53 Domains's // API operation UpdateDomainNameservers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The request is already in progress for the domain. // -// * ErrCodeTLDRulesViolation "TLDRulesViolation" +// * TLDRulesViolation // The top-level domain does not support this operation. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateDomainNameservers @@ -2258,17 +2258,17 @@ func (c *Route53Domains) UpdateTagsForDomainRequest(input *UpdateTagsForDomainIn // See the AWS API reference guide for Amazon Route 53 Domains's // API operation UpdateTagsForDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. // -// * ErrCodeOperationLimitExceeded "OperationLimitExceeded" +// * OperationLimitExceeded // The number of operations or jobs running exceeded the allowed threshold for // the account. // -// * ErrCodeUnsupportedTLD "UnsupportedTLD" +// * UnsupportedTLD // Amazon Route 53 does not support this top-level domain (TLD). // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53domains-2014-05-15/UpdateTagsForDomain @@ -2347,8 +2347,8 @@ func (c *Route53Domains) ViewBillingRequest(input *ViewBillingInput) (req *reque // See the AWS API reference guide for Amazon Route 53 Domains's // API operation ViewBilling for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // The requested item is not acceptable. For example, for an OperationId it // might refer to the ID of an operation that is already completed. For a domain // name, it might not be a valid domain name or belong to the requester account. @@ -3001,6 +3001,63 @@ func (s *DisableDomainTransferLockOutput) SetOperationId(v string) *DisableDomai return s } +// The number of domains has exceeded the allowed threshold for the account. +type DomainLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The number of domains has exceeded the allowed threshold for the account. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DomainLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainLimitExceeded) GoString() string { + return s.String() +} + +func newErrorDomainLimitExceeded(v protocol.ResponseMetadata) error { + return &DomainLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DomainLimitExceeded) Code() string { + return "DomainLimitExceeded" +} + +// Message returns the exception's message. +func (s DomainLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DomainLimitExceeded) OrigErr() error { + return nil +} + +func (s DomainLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DomainLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DomainLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Information about one suggested domain name. type DomainSuggestion struct { _ struct{} `type:"structure"` @@ -3174,6 +3231,63 @@ func (s *DomainTransferability) SetTransferable(v string) *DomainTransferability return s } +// The request is already in progress for the domain. +type DuplicateRequest struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The request is already in progress for the domain. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DuplicateRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateRequest) GoString() string { + return s.String() +} + +func newErrorDuplicateRequest(v protocol.ResponseMetadata) error { + return &DuplicateRequest{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateRequest) Code() string { + return "DuplicateRequest" +} + +// Message returns the exception's message. +func (s DuplicateRequest) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateRequest) OrigErr() error { + return nil +} + +func (s DuplicateRequest) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateRequest) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateRequest) RequestID() string { + return s.respMetadata.RequestID +} + type EnableDomainAutoRenewInput struct { _ struct{} `type:"structure"` @@ -3936,6 +4050,67 @@ func (s *GetOperationDetailOutput) SetType(v string) *GetOperationDetailOutput { return s } +// The requested item is not acceptable. For example, for an OperationId it +// might refer to the ID of an operation that is already completed. For a domain +// name, it might not be a valid domain name or belong to the requester account. +type InvalidInput struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The requested item is not acceptable. For example, for an OperationId it + // might refer to the ID of an operation that is already completed. For a domain + // name, it might not be a valid domain name or belong to the requester account. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInput) GoString() string { + return s.String() +} + +func newErrorInvalidInput(v protocol.ResponseMetadata) error { + return &InvalidInput{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInput) Code() string { + return "InvalidInput" +} + +// Message returns the exception's message. +func (s InvalidInput) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInput) OrigErr() error { + return nil +} + +func (s InvalidInput) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInput) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInput) RequestID() string { + return s.respMetadata.RequestID +} + // The ListDomains request includes the following elements. type ListDomainsInput struct { _ struct{} `type:"structure"` @@ -4223,6 +4398,65 @@ func (s *Nameserver) SetName(v string) *Nameserver { return s } +// The number of operations or jobs running exceeded the allowed threshold for +// the account. +type OperationLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The number of operations or jobs running exceeded the allowed threshold for + // the account. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OperationLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationLimitExceeded) GoString() string { + return s.String() +} + +func newErrorOperationLimitExceeded(v protocol.ResponseMetadata) error { + return &OperationLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationLimitExceeded) Code() string { + return "OperationLimitExceeded" +} + +// Message returns the exception's message. +func (s OperationLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationLimitExceeded) OrigErr() error { + return nil +} + +func (s OperationLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // OperationSummary includes the following elements. type OperationSummary struct { _ struct{} `type:"structure"` @@ -4731,6 +4965,63 @@ func (s *RetrieveDomainAuthCodeOutput) SetAuthCode(v string) *RetrieveDomainAuth return s } +// The top-level domain does not support this operation. +type TLDRulesViolation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The top-level domain does not support this operation. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TLDRulesViolation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TLDRulesViolation) GoString() string { + return s.String() +} + +func newErrorTLDRulesViolation(v protocol.ResponseMetadata) error { + return &TLDRulesViolation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TLDRulesViolation) Code() string { + return "TLDRulesViolation" +} + +// Message returns the exception's message. +func (s TLDRulesViolation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TLDRulesViolation) OrigErr() error { + return nil +} + +func (s TLDRulesViolation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TLDRulesViolation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TLDRulesViolation) RequestID() string { + return s.respMetadata.RequestID +} + // Each tag includes the following elements. type Tag struct { _ struct{} `type:"structure"` @@ -5016,6 +5307,63 @@ func (s *TransferDomainOutput) SetOperationId(v string) *TransferDomainOutput { return s } +// Amazon Route 53 does not support this top-level domain (TLD). +type UnsupportedTLD struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Amazon Route 53 does not support this top-level domain (TLD). + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedTLD) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedTLD) GoString() string { + return s.String() +} + +func newErrorUnsupportedTLD(v protocol.ResponseMetadata) error { + return &UnsupportedTLD{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedTLD) Code() string { + return "UnsupportedTLD" +} + +// Message returns the exception's message. +func (s UnsupportedTLD) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedTLD) OrigErr() error { + return nil +} + +func (s UnsupportedTLD) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedTLD) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedTLD) RequestID() string { + return s.respMetadata.RequestID +} + // The UpdateDomainContact request includes the following elements. type UpdateDomainContactInput struct { _ struct{} `type:"structure"` diff --git a/service/route53domains/errors.go b/service/route53domains/errors.go index f6fc9ef0b27..ed8c1f50a81 100644 --- a/service/route53domains/errors.go +++ b/service/route53domains/errors.go @@ -2,6 +2,10 @@ package route53domains +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDomainLimitExceeded for service response error code @@ -43,3 +47,12 @@ const ( // Amazon Route 53 does not support this top-level domain (TLD). ErrCodeUnsupportedTLD = "UnsupportedTLD" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DomainLimitExceeded": newErrorDomainLimitExceeded, + "DuplicateRequest": newErrorDuplicateRequest, + "InvalidInput": newErrorInvalidInput, + "OperationLimitExceeded": newErrorOperationLimitExceeded, + "TLDRulesViolation": newErrorTLDRulesViolation, + "UnsupportedTLD": newErrorUnsupportedTLD, +} diff --git a/service/route53domains/service.go b/service/route53domains/service.go index b921d566159..9081130fa97 100644 --- a/service/route53domains/service.go +++ b/service/route53domains/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/route53resolver/api.go b/service/route53resolver/api.go index 3e1dc08be48..721af4756d7 100644 --- a/service/route53resolver/api.go +++ b/service/route53resolver/api.go @@ -69,26 +69,26 @@ func (c *Route53Resolver) AssociateResolverEndpointIpAddressRequest(input *Assoc // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation AssociateResolverEndpointIpAddress for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource that you tried to create already exists. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request caused one or more limits to be exceeded. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/AssociateResolverEndpointIpAddress @@ -170,26 +170,26 @@ func (c *Route53Resolver) AssociateResolverRuleRequest(input *AssociateResolverR // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation AssociateResolverRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource isn't available. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource that you tried to create already exists. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/AssociateResolverRule @@ -274,26 +274,26 @@ func (c *Route53Resolver) CreateResolverEndpointRequest(input *CreateResolverEnd // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation CreateResolverEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource that you tried to create already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request caused one or more limits to be exceeded. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/CreateResolverEndpoint @@ -373,29 +373,29 @@ func (c *Route53Resolver) CreateResolverRuleRequest(input *CreateResolverRuleInp // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation CreateResolverRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request caused one or more limits to be exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource that you tried to create already exists. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource isn't available. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/CreateResolverRule @@ -480,20 +480,20 @@ func (c *Route53Resolver) DeleteResolverEndpointRequest(input *DeleteResolverEnd // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation DeleteResolverEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DeleteResolverEndpoint @@ -573,20 +573,20 @@ func (c *Route53Resolver) DeleteResolverRuleRequest(input *DeleteResolverRuleInp // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation DeleteResolverRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // The resource that you tried to update or delete is currently in use. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DeleteResolverRule @@ -668,23 +668,23 @@ func (c *Route53Resolver) DisassociateResolverEndpointIpAddressRequest(input *Di // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation DisassociateResolverEndpointIpAddress for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The resource that you tried to create already exists. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DisassociateResolverEndpointIpAddress @@ -766,17 +766,17 @@ func (c *Route53Resolver) DisassociateResolverRuleRequest(input *DisassociateRes // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation DisassociateResolverRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/DisassociateResolverRule @@ -856,17 +856,17 @@ func (c *Route53Resolver) GetResolverEndpointRequest(input *GetResolverEndpointI // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation GetResolverEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverEndpoint @@ -946,17 +946,17 @@ func (c *Route53Resolver) GetResolverRuleRequest(input *GetResolverRuleInput) (r // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation GetResolverRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRule @@ -1035,17 +1035,17 @@ func (c *Route53Resolver) GetResolverRuleAssociationRequest(input *GetResolverRu // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation GetResolverRuleAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRuleAssociation @@ -1125,14 +1125,14 @@ func (c *Route53Resolver) GetResolverRulePolicyRequest(input *GetResolverRulePol // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation GetResolverRulePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // The specified resource doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/GetResolverRulePolicy @@ -1216,20 +1216,20 @@ func (c *Route53Resolver) ListResolverEndpointIpAddressesRequest(input *ListReso // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation ListResolverEndpointIpAddresses for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The value that you specified for NextToken in a List request isn't valid. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverEndpointIpAddresses @@ -1366,20 +1366,20 @@ func (c *Route53Resolver) ListResolverEndpointsRequest(input *ListResolverEndpoi // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation ListResolverEndpoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The value that you specified for NextToken in a List request isn't valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverEndpoints @@ -1516,20 +1516,20 @@ func (c *Route53Resolver) ListResolverRuleAssociationsRequest(input *ListResolve // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation ListResolverRuleAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The value that you specified for NextToken in a List request isn't valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverRuleAssociations @@ -1665,20 +1665,20 @@ func (c *Route53Resolver) ListResolverRulesRequest(input *ListResolverRulesInput // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation ListResolverRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The value that you specified for NextToken in a List request isn't valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListResolverRules @@ -1808,23 +1808,23 @@ func (c *Route53Resolver) ListTagsForResourceRequest(input *ListTagsForResourceI // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The value that you specified for NextToken in a List request isn't valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListTagsForResource @@ -1903,17 +1903,17 @@ func (c *Route53Resolver) PutResolverRulePolicyRequest(input *PutResolverRulePol // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation PutResolverRulePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidPolicyDocument "InvalidPolicyDocument" +// Returned Error Types: +// * InvalidPolicyDocument // The specified resolver rule policy is invalid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeUnknownResourceException "UnknownResourceException" +// * UnknownResourceException // The specified resource doesn't exist. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/PutResolverRulePolicy @@ -1992,23 +1992,23 @@ func (c *Route53Resolver) TagResourceRequest(input *TagResourceInput) (req *requ // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // The request caused one or more limits to be exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInvalidTagException "InvalidTagException" +// * InvalidTagException // The specified tag is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/TagResource @@ -2087,17 +2087,17 @@ func (c *Route53Resolver) UntagResourceRequest(input *UntagResourceInput) (req * // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UntagResource @@ -2175,20 +2175,20 @@ func (c *Route53Resolver) UpdateResolverEndpointRequest(input *UpdateResolverEnd // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation UpdateResolverEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UpdateResolverEndpoint @@ -2268,26 +2268,26 @@ func (c *Route53Resolver) UpdateResolverRuleRequest(input *UpdateResolverRuleInp // See the AWS API reference guide for Amazon Route 53 Resolver's // API operation UpdateResolverRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is invalid. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more parameters in this request are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource isn't available. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request caused one or more limits to be exceeded. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // We encountered an unknown error. Try again in a few minutes. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was throttled. Try again in a few minutes. // // See also, https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/UpdateResolverRule @@ -3410,6 +3410,346 @@ func (s *GetResolverRulePolicyOutput) SetResolverRulePolicy(v string) *GetResolv return s } +// We encountered an unknown error. Try again in a few minutes. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s InternalServiceErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s InternalServiceErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The value that you specified for NextToken in a List request isn't valid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more parameters in this request are not valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // For an InvalidParameterException error, the name of the parameter that's + // invalid. + FieldName *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resolver rule policy is invalid. +type InvalidPolicyDocument struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidPolicyDocument) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPolicyDocument) GoString() string { + return s.String() +} + +func newErrorInvalidPolicyDocument(v protocol.ResponseMetadata) error { + return &InvalidPolicyDocument{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPolicyDocument) Code() string { + return "InvalidPolicyDocument" +} + +// Message returns the exception's message. +func (s InvalidPolicyDocument) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPolicyDocument) OrigErr() error { + return nil +} + +func (s InvalidPolicyDocument) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPolicyDocument) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPolicyDocument) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is invalid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified tag is invalid. +type InvalidTagException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidTagException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidTagException) GoString() string { + return s.String() +} + +func newErrorInvalidTagException(v protocol.ResponseMetadata) error { + return &InvalidTagException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidTagException) Code() string { + return "InvalidTagException" +} + +// Message returns the exception's message. +func (s InvalidTagException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTagException) OrigErr() error { + return nil +} + +func (s InvalidTagException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTagException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidTagException) RequestID() string { + return s.respMetadata.RequestID +} + // In an CreateResolverEndpoint request, a subnet and IP address that you want // to use for DNS queries. type IpAddressRequest struct { @@ -3610,6 +3950,66 @@ func (s *IpAddressUpdate) SetSubnetId(v string) *IpAddressUpdate { return s } +// The request caused one or more limits to be exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // For a LimitExceededException error, the type of resource that exceeded the + // current limit. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListResolverEndpointIpAddressesInput struct { _ struct{} `type:"structure"` @@ -4686,6 +5086,246 @@ func (s *ResolverRuleConfig) SetTargetIps(v []*TargetAddress) *ResolverRuleConfi return s } +// The resource that you tried to create already exists. +type ResourceExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // For a ResourceExistsException error, the type of resource that the error + // applies to. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceExistsException) GoString() string { + return s.String() +} + +func newErrorResourceExistsException(v protocol.ResponseMetadata) error { + return &ResourceExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceExistsException) Code() string { + return "ResourceExistsException" +} + +// Message returns the exception's message. +func (s ResourceExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceExistsException) OrigErr() error { + return nil +} + +func (s ResourceExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource that you tried to update or delete is currently in use. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // For a ResourceInUseException error, the type of resource that is currently + // in use. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // For a ResourceNotFoundException error, the type of resource that doesn't + // exist. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource isn't available. +type ResourceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // For a ResourceUnavailableException error, the type of resource that isn't + // available. + ResourceType *string `type:"string"` +} + +// String returns the string representation +func (s ResourceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceUnavailableException) GoString() string { + return s.String() +} + +func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { + return &ResourceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceUnavailableException) Code() string { + return "ResourceUnavailableException" +} + +// Message returns the exception's message. +func (s ResourceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceUnavailableException) OrigErr() error { + return nil +} + +func (s ResourceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // One tag that you want to add to the specified resource. A tag consists of // a Key (a name for the tag) and a Value. type Tag struct { @@ -4858,6 +5498,118 @@ func (s *TargetAddress) SetPort(v int64) *TargetAddress { return s } +// The request was throttled. Try again in a few minutes. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource doesn't exist. +type UnknownResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnknownResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnknownResourceException) GoString() string { + return s.String() +} + +func newErrorUnknownResourceException(v protocol.ResponseMetadata) error { + return &UnknownResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnknownResourceException) Code() string { + return "UnknownResourceException" +} + +// Message returns the exception's message. +func (s UnknownResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnknownResourceException) OrigErr() error { + return nil +} + +func (s UnknownResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnknownResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnknownResourceException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/route53resolver/errors.go b/service/route53resolver/errors.go index 0d410863ec0..a27e58d72e6 100644 --- a/service/route53resolver/errors.go +++ b/service/route53resolver/errors.go @@ -2,6 +2,10 @@ package route53resolver +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServiceErrorException for service response error code @@ -82,3 +86,19 @@ const ( // The specified resource doesn't exist. ErrCodeUnknownResourceException = "UnknownResourceException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidPolicyDocument": newErrorInvalidPolicyDocument, + "InvalidRequestException": newErrorInvalidRequestException, + "InvalidTagException": newErrorInvalidTagException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceExistsException": newErrorResourceExistsException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceUnavailableException": newErrorResourceUnavailableException, + "ThrottlingException": newErrorThrottlingException, + "UnknownResourceException": newErrorUnknownResourceException, +} diff --git a/service/route53resolver/service.go b/service/route53resolver/service.go index 21a33e2b80c..f54c4af745e 100644 --- a/service/route53resolver/service.go +++ b/service/route53resolver/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/s3/api.go b/service/s3/api.go index df70e4e49eb..52e87308f69 100644 --- a/service/s3/api.go +++ b/service/s3/api.go @@ -9706,12 +9706,19 @@ func (es *SelectObjectContentEventStream) runOutputStream(r *request.Request) { opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForSelectObjectContentEventStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - unmarshalerForSelectObjectContentEventStreamEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -28261,7 +28268,11 @@ func (r *readSelectObjectContentEventStream) readEventStream() { } } -func unmarshalerForSelectObjectContentEventStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForSelectObjectContentEventStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForSelectObjectContentEventStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { case "Cont": return &ContinuationEvent{}, nil diff --git a/service/sagemaker/api.go b/service/sagemaker/api.go index 9750b561011..7d687c047eb 100644 --- a/service/sagemaker/api.go +++ b/service/sagemaker/api.go @@ -157,11 +157,11 @@ func (c *SageMaker) AssociateTrialComponentRequest(input *AssociateTrialComponen // See the AWS API reference guide for Amazon SageMaker Service's // API operation AssociateTrialComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -322,12 +322,12 @@ func (c *SageMaker) CreateAppRequest(input *CreateAppInput) (req *request.Reques // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateApp @@ -405,11 +405,11 @@ func (c *SageMaker) CreateAutoMLJobRequest(input *CreateAutoMLJobInput) (req *re // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateAutoMLJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -597,11 +597,11 @@ func (c *SageMaker) CreateCompilationJobRequest(input *CreateCompilationJobInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateCompilationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -688,12 +688,12 @@ func (c *SageMaker) CreateDomainRequest(input *CreateDomainInput) (req *request. // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateDomain @@ -802,8 +802,8 @@ func (c *SageMaker) CreateEndpointRequest(input *CreateEndpointInput) (req *requ // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -900,8 +900,8 @@ func (c *SageMaker) CreateEndpointConfigRequest(input *CreateEndpointConfigInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateEndpointConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -1004,8 +1004,8 @@ func (c *SageMaker) CreateExperimentRequest(input *CreateExperimentInput) (req * // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateExperiment for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -1084,12 +1084,12 @@ func (c *SageMaker) CreateFlowDefinitionRequest(input *CreateFlowDefinitionInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateFlowDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateFlowDefinition @@ -1169,12 +1169,12 @@ func (c *SageMaker) CreateHumanTaskUiRequest(input *CreateHumanTaskUiInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateHumanTaskUi for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateHumanTaskUi @@ -1256,11 +1256,11 @@ func (c *SageMaker) CreateHyperParameterTuningJobRequest(input *CreateHyperParam // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateHyperParameterTuningJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -1366,11 +1366,11 @@ func (c *SageMaker) CreateLabelingJobRequest(input *CreateLabelingJobInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateLabelingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -1475,8 +1475,8 @@ func (c *SageMaker) CreateModelRequest(input *CreateModelInput) (req *request.Re // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateModel for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -1638,12 +1638,12 @@ func (c *SageMaker) CreateMonitoringScheduleRequest(input *CreateMonitoringSched // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateMonitoringSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateMonitoringSchedule @@ -1758,8 +1758,8 @@ func (c *SageMaker) CreateNotebookInstanceRequest(input *CreateNotebookInstanceI // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateNotebookInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -1855,8 +1855,8 @@ func (c *SageMaker) CreateNotebookInstanceLifecycleConfigRequest(input *CreateNo // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateNotebookInstanceLifecycleConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -2103,15 +2103,15 @@ func (c *SageMaker) CreateProcessingJobRequest(input *CreateProcessingJobInput) // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateProcessingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateProcessingJob @@ -2230,15 +2230,15 @@ func (c *SageMaker) CreateTrainingJobRequest(input *CreateTrainingJobInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTrainingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTrainingJob @@ -2341,15 +2341,15 @@ func (c *SageMaker) CreateTransformJobRequest(input *CreateTransformJobInput) (r // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTransformJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateTransformJob @@ -2441,11 +2441,11 @@ func (c *SageMaker) CreateTrialRequest(input *CreateTrialInput) (req *request.Re // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTrial for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -2544,8 +2544,8 @@ func (c *SageMaker) CreateTrialComponentRequest(input *CreateTrialComponentInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateTrialComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -2630,12 +2630,12 @@ func (c *SageMaker) CreateUserProfileRequest(input *CreateUserProfileInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/CreateUserProfile @@ -2717,11 +2717,11 @@ func (c *SageMaker) CreateWorkteamRequest(input *CreateWorkteamInput) (req *requ // See the AWS API reference guide for Amazon SageMaker Service's // API operation CreateWorkteam for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -2876,11 +2876,11 @@ func (c *SageMaker) DeleteAppRequest(input *DeleteAppInput) (req *request.Reques // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteApp @@ -3037,11 +3037,11 @@ func (c *SageMaker) DeleteDomainRequest(input *DeleteDomainInput) (req *request. // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteDomain @@ -3278,8 +3278,8 @@ func (c *SageMaker) DeleteExperimentRequest(input *DeleteExperimentInput) (req * // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteExperiment for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteExperiment @@ -3358,8 +3358,8 @@ func (c *SageMaker) DeleteFlowDefinitionRequest(input *DeleteFlowDefinitionInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteFlowDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteFlowDefinition @@ -3597,8 +3597,8 @@ func (c *SageMaker) DeleteMonitoringScheduleRequest(input *DeleteMonitoringSched // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteMonitoringSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteMonitoringSchedule @@ -3914,8 +3914,8 @@ func (c *SageMaker) DeleteTrialRequest(input *DeleteTrialInput) (req *request.Re // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteTrial for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTrial @@ -3995,8 +3995,8 @@ func (c *SageMaker) DeleteTrialComponentRequest(input *DeleteTrialComponentInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteTrialComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteTrialComponent @@ -4075,11 +4075,11 @@ func (c *SageMaker) DeleteUserProfileRequest(input *DeleteUserProfileInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUse "ResourceInUse" +// Returned Error Types: +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DeleteUserProfile @@ -4157,8 +4157,8 @@ func (c *SageMaker) DeleteWorkteamRequest(input *DeleteWorkteamInput) (req *requ // See the AWS API reference guide for Amazon SageMaker Service's // API operation DeleteWorkteam for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -4311,8 +4311,8 @@ func (c *SageMaker) DescribeAppRequest(input *DescribeAppInput) (req *request.Re // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeApp @@ -4390,8 +4390,8 @@ func (c *SageMaker) DescribeAutoMLJobRequest(input *DescribeAutoMLJobInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeAutoMLJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeAutoMLJob @@ -4546,8 +4546,8 @@ func (c *SageMaker) DescribeCompilationJobRequest(input *DescribeCompilationJobI // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeCompilationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeCompilationJob @@ -4625,8 +4625,8 @@ func (c *SageMaker) DescribeDomainRequest(input *DescribeDomainInput) (req *requ // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeDomain @@ -4853,8 +4853,8 @@ func (c *SageMaker) DescribeExperimentRequest(input *DescribeExperimentInput) (r // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeExperiment for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeExperiment @@ -4932,8 +4932,8 @@ func (c *SageMaker) DescribeFlowDefinitionRequest(input *DescribeFlowDefinitionI // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeFlowDefinition for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeFlowDefinition @@ -5011,8 +5011,8 @@ func (c *SageMaker) DescribeHumanTaskUiRequest(input *DescribeHumanTaskUiInput) // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeHumanTaskUi for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHumanTaskUi @@ -5090,8 +5090,8 @@ func (c *SageMaker) DescribeHyperParameterTuningJobRequest(input *DescribeHyperP // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeHyperParameterTuningJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeHyperParameterTuningJob @@ -5169,8 +5169,8 @@ func (c *SageMaker) DescribeLabelingJobRequest(input *DescribeLabelingJobInput) // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeLabelingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeLabelingJob @@ -5400,8 +5400,8 @@ func (c *SageMaker) DescribeMonitoringScheduleRequest(input *DescribeMonitoringS // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeMonitoringSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeMonitoringSchedule @@ -5630,8 +5630,8 @@ func (c *SageMaker) DescribeProcessingJobRequest(input *DescribeProcessingJobInp // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeProcessingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeProcessingJob @@ -5784,8 +5784,8 @@ func (c *SageMaker) DescribeTrainingJobRequest(input *DescribeTrainingJobInput) // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTrainingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrainingJob @@ -5863,8 +5863,8 @@ func (c *SageMaker) DescribeTransformJobRequest(input *DescribeTransformJobInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTransformJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTransformJob @@ -5942,8 +5942,8 @@ func (c *SageMaker) DescribeTrialRequest(input *DescribeTrialInput) (req *reques // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTrial for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrial @@ -6021,8 +6021,8 @@ func (c *SageMaker) DescribeTrialComponentRequest(input *DescribeTrialComponentI // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeTrialComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeTrialComponent @@ -6100,8 +6100,8 @@ func (c *SageMaker) DescribeUserProfileRequest(input *DescribeUserProfileInput) // See the AWS API reference guide for Amazon SageMaker Service's // API operation DescribeUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DescribeUserProfile @@ -6259,8 +6259,8 @@ func (c *SageMaker) DisassociateTrialComponentRequest(input *DisassociateTrialCo // See the AWS API reference guide for Amazon SageMaker Service's // API operation DisassociateTrialComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/DisassociateTrialComponent @@ -6817,8 +6817,8 @@ func (c *SageMaker) ListCandidatesForAutoMLJobRequest(input *ListCandidatesForAu // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListCandidatesForAutoMLJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListCandidatesForAutoMLJob @@ -8280,8 +8280,8 @@ func (c *SageMaker) ListLabelingJobsForWorkteamRequest(input *ListLabelingJobsFo // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListLabelingJobsForWorkteam for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListLabelingJobsForWorkteam @@ -9743,8 +9743,8 @@ func (c *SageMaker) ListTrainingJobsForHyperParameterTuningJobRequest(input *Lis // See the AWS API reference guide for Amazon SageMaker Service's // API operation ListTrainingJobsForHyperParameterTuningJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ListTrainingJobsForHyperParameterTuningJob @@ -10756,8 +10756,8 @@ func (c *SageMaker) StartMonitoringScheduleRequest(input *StartMonitoringSchedul // See the AWS API reference guide for Amazon SageMaker Service's // API operation StartMonitoringSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StartMonitoringSchedule @@ -10840,8 +10840,8 @@ func (c *SageMaker) StartNotebookInstanceRequest(input *StartNotebookInstanceInp // See the AWS API reference guide for Amazon SageMaker Service's // API operation StartNotebookInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -10921,8 +10921,8 @@ func (c *SageMaker) StopAutoMLJobRequest(input *StopAutoMLJobInput) (req *reques // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopAutoMLJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopAutoMLJob @@ -11010,8 +11010,8 @@ func (c *SageMaker) StopCompilationJobRequest(input *StopCompilationJobInput) (r // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopCompilationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopCompilationJob @@ -11096,8 +11096,8 @@ func (c *SageMaker) StopHyperParameterTuningJobRequest(input *StopHyperParameter // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopHyperParameterTuningJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopHyperParameterTuningJob @@ -11178,8 +11178,8 @@ func (c *SageMaker) StopLabelingJobRequest(input *StopLabelingJobInput) (req *re // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopLabelingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopLabelingJob @@ -11258,8 +11258,8 @@ func (c *SageMaker) StopMonitoringScheduleRequest(input *StopMonitoringScheduleI // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopMonitoringSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopMonitoringSchedule @@ -11421,8 +11421,8 @@ func (c *SageMaker) StopProcessingJobRequest(input *StopProcessingJobInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopProcessingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopProcessingJob @@ -11508,8 +11508,8 @@ func (c *SageMaker) StopTrainingJobRequest(input *StopTrainingJobInput) (req *re // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopTrainingJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTrainingJob @@ -11593,8 +11593,8 @@ func (c *SageMaker) StopTransformJobRequest(input *StopTransformJobInput) (req * // See the AWS API reference guide for Amazon SageMaker Service's // API operation StopTransformJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFound "ResourceNotFound" +// Returned Error Types: +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/StopTransformJob @@ -11746,15 +11746,15 @@ func (c *SageMaker) UpdateDomainRequest(input *UpdateDomainInput) (req *request. // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateDomain @@ -11843,8 +11843,8 @@ func (c *SageMaker) UpdateEndpointRequest(input *UpdateEndpointInput) (req *requ // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -11928,8 +11928,8 @@ func (c *SageMaker) UpdateEndpointWeightsAndCapacitiesRequest(input *UpdateEndpo // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateEndpointWeightsAndCapacities for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -12009,12 +12009,12 @@ func (c *SageMaker) UpdateExperimentRequest(input *UpdateExperimentInput) (req * // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateExperiment for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // There was a conflict when you attempted to modify an experiment, trial, or // trial component. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateExperiment @@ -12092,12 +12092,12 @@ func (c *SageMaker) UpdateMonitoringScheduleRequest(input *UpdateMonitoringSched // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateMonitoringSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateMonitoringSchedule @@ -12178,8 +12178,8 @@ func (c *SageMaker) UpdateNotebookInstanceRequest(input *UpdateNotebookInstanceI // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateNotebookInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -12260,8 +12260,8 @@ func (c *SageMaker) UpdateNotebookInstanceLifecycleConfigRequest(input *UpdateNo // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateNotebookInstanceLifecycleConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -12340,12 +12340,12 @@ func (c *SageMaker) UpdateTrialRequest(input *UpdateTrialInput) (req *request.Re // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateTrial for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // There was a conflict when you attempted to modify an experiment, trial, or // trial component. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateTrial @@ -12423,12 +12423,12 @@ func (c *SageMaker) UpdateTrialComponentRequest(input *UpdateTrialComponentInput // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateTrialComponent for usage and error information. // -// Returned Error Codes: -// * ErrCodeConflictException "ConflictException" +// Returned Error Types: +// * ConflictException // There was a conflict when you attempted to modify an experiment, trial, or // trial component. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateTrialComponent @@ -12506,15 +12506,15 @@ func (c *SageMaker) UpdateUserProfileRequest(input *UpdateUserProfileInput) (req // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateUserProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // Resource being accessed is in use. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Resource being access is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/UpdateUserProfile @@ -12592,8 +12592,8 @@ func (c *SageMaker) UpdateWorkteamRequest(input *UpdateWorkteamInput) (req *requ // See the AWS API reference guide for Amazon SageMaker Service's // API operation UpdateWorkteam for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// Returned Error Types: +// * ResourceLimitExceeded // You have exceeded an Amazon SageMaker resource limit. For example, you might // have too many training jobs created. // @@ -15076,6 +15076,63 @@ func (s *CompilationJobSummary) SetLastModifiedTime(v time.Time) *CompilationJob return s } +// There was a conflict when you attempted to modify an experiment, trial, or +// trial component. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the container, as part of model definition. type ContainerDefinition struct { _ struct{} `type:"structure"` @@ -38863,6 +38920,119 @@ func (s *ResourceConfig) SetVolumeSizeInGB(v int64) *ResourceConfig { return s } +// Resource being accessed is in use. +type ResourceInUse struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUse) GoString() string { + return s.String() +} + +func newErrorResourceInUse(v protocol.ResponseMetadata) error { + return &ResourceInUse{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUse) Code() string { + return "ResourceInUse" +} + +// Message returns the exception's message. +func (s ResourceInUse) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUse) OrigErr() error { + return nil +} + +func (s ResourceInUse) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUse) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUse) RequestID() string { + return s.respMetadata.RequestID +} + +// You have exceeded an Amazon SageMaker resource limit. For example, you might +// have too many training jobs created. +type ResourceLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceeded) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceeded(v protocol.ResponseMetadata) error { + return &ResourceLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceeded) Code() string { + return "ResourceLimitExceeded" +} + +// Message returns the exception's message. +func (s ResourceLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceeded) OrigErr() error { + return nil +} + +func (s ResourceLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies the maximum number of training jobs and parallel training jobs // that a hyperparameter tuning job can launch. type ResourceLimits struct { @@ -38925,6 +39095,62 @@ func (s *ResourceLimits) SetMaxParallelTrainingJobs(v int64) *ResourceLimits { return s } +// Resource being access is not found. +type ResourceNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFound) GoString() string { + return s.String() +} + +func newErrorResourceNotFound(v protocol.ResponseMetadata) error { + return &ResourceNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFound) Code() string { + return "ResourceNotFound" +} + +// Message returns the exception's message. +func (s ResourceNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFound) OrigErr() error { + return nil +} + +func (s ResourceNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // The instance type and quantity. type ResourceSpec struct { _ struct{} `type:"structure"` diff --git a/service/sagemaker/errors.go b/service/sagemaker/errors.go index d95062eaca0..c201ba6a4ce 100644 --- a/service/sagemaker/errors.go +++ b/service/sagemaker/errors.go @@ -2,6 +2,10 @@ package sagemaker +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConflictException for service response error code @@ -30,3 +34,10 @@ const ( // Resource being access is not found. ErrCodeResourceNotFound = "ResourceNotFound" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConflictException": newErrorConflictException, + "ResourceInUse": newErrorResourceInUse, + "ResourceLimitExceeded": newErrorResourceLimitExceeded, + "ResourceNotFound": newErrorResourceNotFound, +} diff --git a/service/sagemaker/service.go b/service/sagemaker/service.go index 341eb6405b4..b2b649cfb5a 100644 --- a/service/sagemaker/service.go +++ b/service/sagemaker/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/sagemakerruntime/api.go b/service/sagemakerruntime/api.go index 55febdb30b2..b6ab52751dd 100644 --- a/service/sagemakerruntime/api.go +++ b/service/sagemakerruntime/api.go @@ -3,9 +3,12 @@ package sagemakerruntime import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opInvokeEndpoint = "InvokeEndpoint" @@ -83,17 +86,17 @@ func (c *SageMakerRuntime) InvokeEndpointRequest(input *InvokeEndpointInput) (re // See the AWS API reference guide for Amazon SageMaker Runtime's // API operation InvokeEndpoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalFailure "InternalFailure" +// Returned Error Types: +// * InternalFailure // An internal failure occurred. // -// * ErrCodeServiceUnavailable "ServiceUnavailable" +// * ServiceUnavailable // The service is unavailable. Try your call again. // -// * ErrCodeValidationError "ValidationError" +// * ValidationError // Inspect your request and try again. // -// * ErrCodeModelError "ModelError" +// * ModelError // Model (owned by the customer in the container) returned 4xx or 5xx error // code. // @@ -119,6 +122,62 @@ func (c *SageMakerRuntime) InvokeEndpointWithContext(ctx aws.Context, input *Inv return out, req.Send() } +// An internal failure occurred. +type InternalFailure struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalFailure) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailure) GoString() string { + return s.String() +} + +func newErrorInternalFailure(v protocol.ResponseMetadata) error { + return &InternalFailure{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailure) Code() string { + return "InternalFailure" +} + +// Message returns the exception's message. +func (s InternalFailure) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailure) OrigErr() error { + return nil +} + +func (s InternalFailure) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailure) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailure) RequestID() string { + return s.respMetadata.RequestID +} + type InvokeEndpointInput struct { _ struct{} `type:"structure" payload:"Body"` @@ -294,3 +353,181 @@ func (s *InvokeEndpointOutput) SetInvokedProductionVariant(v string) *InvokeEndp s.InvokedProductionVariant = &v return s } + +// Model (owned by the customer in the container) returned 4xx or 5xx error +// code. +type ModelError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The Amazon Resource Name (ARN) of the log stream. + LogStreamArn *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // Original message. + OriginalMessage *string `type:"string"` + + // Original status code. + OriginalStatusCode *int64 `type:"integer"` +} + +// String returns the string representation +func (s ModelError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ModelError) GoString() string { + return s.String() +} + +func newErrorModelError(v protocol.ResponseMetadata) error { + return &ModelError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ModelError) Code() string { + return "ModelError" +} + +// Message returns the exception's message. +func (s ModelError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ModelError) OrigErr() error { + return nil +} + +func (s ModelError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ModelError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ModelError) RequestID() string { + return s.respMetadata.RequestID +} + +// The service is unavailable. Try your call again. +type ServiceUnavailable struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailable) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailable) GoString() string { + return s.String() +} + +func newErrorServiceUnavailable(v protocol.ResponseMetadata) error { + return &ServiceUnavailable{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailable) Code() string { + return "ServiceUnavailable" +} + +// Message returns the exception's message. +func (s ServiceUnavailable) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailable) OrigErr() error { + return nil +} + +func (s ServiceUnavailable) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailable) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailable) RequestID() string { + return s.respMetadata.RequestID +} + +// Inspect your request and try again. +type ValidationError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ValidationError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationError) GoString() string { + return s.String() +} + +func newErrorValidationError(v protocol.ResponseMetadata) error { + return &ValidationError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationError) Code() string { + return "ValidationError" +} + +// Message returns the exception's message. +func (s ValidationError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationError) OrigErr() error { + return nil +} + +func (s ValidationError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationError) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/sagemakerruntime/errors.go b/service/sagemakerruntime/errors.go index 9df07b4695d..664c8e3bd8b 100644 --- a/service/sagemakerruntime/errors.go +++ b/service/sagemakerruntime/errors.go @@ -2,6 +2,10 @@ package sagemakerruntime +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalFailure for service response error code @@ -29,3 +33,10 @@ const ( // Inspect your request and try again. ErrCodeValidationError = "ValidationError" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalFailure": newErrorInternalFailure, + "ModelError": newErrorModelError, + "ServiceUnavailable": newErrorServiceUnavailable, + "ValidationError": newErrorValidationError, +} diff --git a/service/sagemakerruntime/service.go b/service/sagemakerruntime/service.go index bb5e8d3886f..1f382e5b878 100644 --- a/service/sagemakerruntime/service.go +++ b/service/sagemakerruntime/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/savingsplans/api.go b/service/savingsplans/api.go index d227fd0194e..7991bcd4504 100644 --- a/service/savingsplans/api.go +++ b/service/savingsplans/api.go @@ -3,6 +3,8 @@ package savingsplans import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -63,17 +65,17 @@ func (c *SavingsPlans) CreateSavingsPlanRequest(input *CreateSavingsPlanInput) ( // See the AWS API reference guide for AWS Savings Plans's // API operation CreateSavingsPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One of the input parameters is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An unexpected error occurred. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service quota has been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/CreateSavingsPlan @@ -151,11 +153,11 @@ func (c *SavingsPlans) DescribeSavingsPlanRatesRequest(input *DescribeSavingsPla // See the AWS API reference guide for AWS Savings Plans's // API operation DescribeSavingsPlanRates for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One of the input parameters is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlanRates @@ -233,11 +235,11 @@ func (c *SavingsPlans) DescribeSavingsPlansRequest(input *DescribeSavingsPlansIn // See the AWS API reference guide for AWS Savings Plans's // API operation DescribeSavingsPlans for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerException "InternalServerException" +// Returned Error Types: +// * InternalServerException // An unexpected error occurred. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One of the input parameters is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlans @@ -315,11 +317,11 @@ func (c *SavingsPlans) DescribeSavingsPlansOfferingRatesRequest(input *DescribeS // See the AWS API reference guide for AWS Savings Plans's // API operation DescribeSavingsPlansOfferingRates for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One of the input parameters is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An unexpected error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferingRates @@ -397,11 +399,11 @@ func (c *SavingsPlans) DescribeSavingsPlansOfferingsRequest(input *DescribeSavin // See the AWS API reference guide for AWS Savings Plans's // API operation DescribeSavingsPlansOfferings for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // One of the input parameters is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An unexpected error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/DescribeSavingsPlansOfferings @@ -479,14 +481,14 @@ func (c *SavingsPlans) ListTagsForResourceRequest(input *ListTagsForResourceInpu // See the AWS API reference guide for AWS Savings Plans's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One of the input parameters is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An unexpected error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/ListTagsForResource @@ -565,17 +567,17 @@ func (c *SavingsPlans) TagResourceRequest(input *TagResourceInput) (req *request // See the AWS API reference guide for AWS Savings Plans's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeServiceQuotaExceededException "ServiceQuotaExceededException" +// * ServiceQuotaExceededException // A service quota has been exceeded. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One of the input parameters is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An unexpected error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/TagResource @@ -654,14 +656,14 @@ func (c *SavingsPlans) UntagResourceRequest(input *UntagResourceInput) (req *req // See the AWS API reference guide for AWS Savings Plans's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // One of the input parameters is not valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An unexpected error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/savingsplans-2019-06-28/UntagResource @@ -1321,6 +1323,62 @@ func (s *DescribeSavingsPlansOutput) SetSavingsPlans(v []*SavingsPlan) *Describe return s } +// An unexpected error occurred. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTagsForResourceInput struct { _ struct{} `type:"structure"` @@ -1451,6 +1509,62 @@ func (s *ParentSavingsPlanOffering) SetPlanType(v string) *ParentSavingsPlanOffe return s } +// The specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a Savings Plan. type SavingsPlan struct { _ struct{} `type:"structure"` @@ -2147,6 +2261,62 @@ func (s *SavingsPlanRateProperty) SetValue(v string) *SavingsPlanRateProperty { return s } +// A service quota has been exceeded. +type ServiceQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { + return &ServiceQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaExceededException) Code() string { + return "ServiceQuotaExceededException" +} + +// Message returns the exception's message. +func (s ServiceQuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaExceededException) OrigErr() error { + return nil +} + +func (s ServiceQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` @@ -2280,6 +2450,62 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +// One of the input parameters is not valid. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // CurrencyCodeCny is a CurrencyCode enum value CurrencyCodeCny = "CNY" diff --git a/service/savingsplans/errors.go b/service/savingsplans/errors.go index 8aa2c7c355c..6677404a069 100644 --- a/service/savingsplans/errors.go +++ b/service/savingsplans/errors.go @@ -2,6 +2,10 @@ package savingsplans +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerException for service response error code @@ -28,3 +32,10 @@ const ( // One of the input parameters is not valid. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerException": newErrorInternalServerException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceQuotaExceededException": newErrorServiceQuotaExceededException, + "ValidationException": newErrorValidationException, +} diff --git a/service/savingsplans/service.go b/service/savingsplans/service.go index 5ae0d1929e2..468feae5c9d 100644 --- a/service/savingsplans/service.go +++ b/service/savingsplans/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/schemas/api.go b/service/schemas/api.go index da391e14df1..1bbf3a0dfed 100644 --- a/service/schemas/api.go +++ b/service/schemas/api.go @@ -3,6 +3,7 @@ package schemas import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -65,18 +66,18 @@ func (c *Schemas) CreateDiscovererRequest(input *CreateDiscovererInput) (req *re // See the AWS API reference guide for Schemas's // API operation CreateDiscoverer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/CreateDiscoverer func (c *Schemas) CreateDiscoverer(input *CreateDiscovererInput) (*CreateDiscovererOutput, error) { @@ -153,18 +154,18 @@ func (c *Schemas) CreateRegistryRequest(input *CreateRegistryInput) (req *reques // See the AWS API reference guide for Schemas's // API operation CreateRegistry for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/CreateRegistry func (c *Schemas) CreateRegistry(input *CreateRegistryInput) (*CreateRegistryOutput, error) { @@ -241,14 +242,14 @@ func (c *Schemas) CreateSchemaRequest(input *CreateSchemaInput) (req *request.Re // See the AWS API reference guide for Schemas's // API operation CreateSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/CreateSchema func (c *Schemas) CreateSchema(input *CreateSchemaInput) (*CreateSchemaOutput, error) { @@ -326,18 +327,18 @@ func (c *Schemas) DeleteDiscovererRequest(input *DeleteDiscovererInput) (req *re // See the AWS API reference guide for Schemas's // API operation DeleteDiscoverer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DeleteDiscoverer func (c *Schemas) DeleteDiscoverer(input *DeleteDiscovererInput) (*DeleteDiscovererOutput, error) { @@ -415,18 +416,18 @@ func (c *Schemas) DeleteRegistryRequest(input *DeleteRegistryInput) (req *reques // See the AWS API reference guide for Schemas's // API operation DeleteRegistry for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DeleteRegistry func (c *Schemas) DeleteRegistry(input *DeleteRegistryInput) (*DeleteRegistryOutput, error) { @@ -504,18 +505,18 @@ func (c *Schemas) DeleteSchemaRequest(input *DeleteSchemaInput) (req *request.Re // See the AWS API reference guide for Schemas's // API operation DeleteSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DeleteSchema func (c *Schemas) DeleteSchema(input *DeleteSchemaInput) (*DeleteSchemaOutput, error) { @@ -593,18 +594,18 @@ func (c *Schemas) DeleteSchemaVersionRequest(input *DeleteSchemaVersionInput) (r // See the AWS API reference guide for Schemas's // API operation DeleteSchemaVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DeleteSchemaVersion func (c *Schemas) DeleteSchemaVersion(input *DeleteSchemaVersionInput) (*DeleteSchemaVersionOutput, error) { @@ -681,18 +682,18 @@ func (c *Schemas) DescribeCodeBindingRequest(input *DescribeCodeBindingInput) (r // See the AWS API reference guide for Schemas's // API operation DescribeCodeBinding for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DescribeCodeBinding func (c *Schemas) DescribeCodeBinding(input *DescribeCodeBindingInput) (*DescribeCodeBindingOutput, error) { @@ -769,18 +770,18 @@ func (c *Schemas) DescribeDiscovererRequest(input *DescribeDiscovererInput) (req // See the AWS API reference guide for Schemas's // API operation DescribeDiscoverer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DescribeDiscoverer func (c *Schemas) DescribeDiscoverer(input *DescribeDiscovererInput) (*DescribeDiscovererOutput, error) { @@ -857,18 +858,18 @@ func (c *Schemas) DescribeRegistryRequest(input *DescribeRegistryInput) (req *re // See the AWS API reference guide for Schemas's // API operation DescribeRegistry for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DescribeRegistry func (c *Schemas) DescribeRegistry(input *DescribeRegistryInput) (*DescribeRegistryOutput, error) { @@ -945,18 +946,18 @@ func (c *Schemas) DescribeSchemaRequest(input *DescribeSchemaInput) (req *reques // See the AWS API reference guide for Schemas's // API operation DescribeSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/DescribeSchema func (c *Schemas) DescribeSchema(input *DescribeSchemaInput) (*DescribeSchemaOutput, error) { @@ -1033,18 +1034,18 @@ func (c *Schemas) GetCodeBindingSourceRequest(input *GetCodeBindingSourceInput) // See the AWS API reference guide for Schemas's // API operation GetCodeBindingSource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetCodeBindingSource func (c *Schemas) GetCodeBindingSource(input *GetCodeBindingSourceInput) (*GetCodeBindingSourceOutput, error) { @@ -1121,16 +1122,16 @@ func (c *Schemas) GetDiscoveredSchemaRequest(input *GetDiscoveredSchemaInput) (r // See the AWS API reference guide for Schemas's // API operation GetDiscoveredSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/GetDiscoveredSchema func (c *Schemas) GetDiscoveredSchema(input *GetDiscoveredSchemaInput) (*GetDiscoveredSchemaOutput, error) { @@ -1213,16 +1214,16 @@ func (c *Schemas) ListDiscoverersRequest(input *ListDiscoverersInput) (req *requ // See the AWS API reference guide for Schemas's // API operation ListDiscoverers for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListDiscoverers func (c *Schemas) ListDiscoverers(input *ListDiscoverersInput) (*ListDiscoverersOutput, error) { @@ -1357,16 +1358,16 @@ func (c *Schemas) ListRegistriesRequest(input *ListRegistriesInput) (req *reques // See the AWS API reference guide for Schemas's // API operation ListRegistries for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListRegistries func (c *Schemas) ListRegistries(input *ListRegistriesInput) (*ListRegistriesOutput, error) { @@ -1501,18 +1502,18 @@ func (c *Schemas) ListSchemaVersionsRequest(input *ListSchemaVersionsInput) (req // See the AWS API reference guide for Schemas's // API operation ListSchemaVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListSchemaVersions func (c *Schemas) ListSchemaVersions(input *ListSchemaVersionsInput) (*ListSchemaVersionsOutput, error) { @@ -1647,16 +1648,16 @@ func (c *Schemas) ListSchemasRequest(input *ListSchemasInput) (req *request.Requ // See the AWS API reference guide for Schemas's // API operation ListSchemas for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListSchemas func (c *Schemas) ListSchemas(input *ListSchemasInput) (*ListSchemasOutput, error) { @@ -1785,14 +1786,14 @@ func (c *Schemas) ListTagsForResourceRequest(input *ListTagsForResourceInput) (r // See the AWS API reference guide for Schemas's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/ListTagsForResource func (c *Schemas) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -1867,16 +1868,16 @@ func (c *Schemas) LockServiceLinkedRoleRequest(input *LockServiceLinkedRoleInput // See the AWS API reference guide for Schemas's // API operation LockServiceLinkedRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/LockServiceLinkedRole func (c *Schemas) LockServiceLinkedRole(input *LockServiceLinkedRoleInput) (*LockServiceLinkedRoleOutput, error) { @@ -1953,20 +1954,20 @@ func (c *Schemas) PutCodeBindingRequest(input *PutCodeBindingInput) (req *reques // See the AWS API reference guide for Schemas's // API operation PutCodeBinding for usage and error information. // -// Returned Error Codes: -// * ErrCodeGoneException "GoneException" +// Returned Error Types: +// * GoneException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/PutCodeBinding func (c *Schemas) PutCodeBinding(input *PutCodeBindingInput) (*PutCodeBindingOutput, error) { @@ -2049,16 +2050,16 @@ func (c *Schemas) SearchSchemasRequest(input *SearchSchemasInput) (req *request. // See the AWS API reference guide for Schemas's // API operation SearchSchemas for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/SearchSchemas func (c *Schemas) SearchSchemas(input *SearchSchemasInput) (*SearchSchemasOutput, error) { @@ -2187,18 +2188,18 @@ func (c *Schemas) StartDiscovererRequest(input *StartDiscovererInput) (req *requ // See the AWS API reference guide for Schemas's // API operation StartDiscoverer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/StartDiscoverer func (c *Schemas) StartDiscoverer(input *StartDiscovererInput) (*StartDiscovererOutput, error) { @@ -2275,18 +2276,18 @@ func (c *Schemas) StopDiscovererRequest(input *StopDiscovererInput) (req *reques // See the AWS API reference guide for Schemas's // API operation StopDiscoverer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/StopDiscoverer func (c *Schemas) StopDiscoverer(input *StopDiscovererInput) (*StopDiscovererOutput, error) { @@ -2364,14 +2365,14 @@ func (c *Schemas) TagResourceRequest(input *TagResourceInput) (req *request.Requ // See the AWS API reference guide for Schemas's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/TagResource func (c *Schemas) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -2447,16 +2448,16 @@ func (c *Schemas) UnlockServiceLinkedRoleRequest(input *UnlockServiceLinkedRoleI // See the AWS API reference guide for Schemas's // API operation UnlockServiceLinkedRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UnlockServiceLinkedRole func (c *Schemas) UnlockServiceLinkedRole(input *UnlockServiceLinkedRoleInput) (*UnlockServiceLinkedRoleOutput, error) { @@ -2534,14 +2535,14 @@ func (c *Schemas) UntagResourceRequest(input *UntagResourceInput) (req *request. // See the AWS API reference guide for Schemas's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UntagResource func (c *Schemas) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -2618,18 +2619,18 @@ func (c *Schemas) UpdateDiscovererRequest(input *UpdateDiscovererInput) (req *re // See the AWS API reference guide for Schemas's // API operation UpdateDiscoverer for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UpdateDiscoverer func (c *Schemas) UpdateDiscoverer(input *UpdateDiscovererInput) (*UpdateDiscovererOutput, error) { @@ -2706,18 +2707,18 @@ func (c *Schemas) UpdateRegistryRequest(input *UpdateRegistryInput) (req *reques // See the AWS API reference guide for Schemas's // API operation UpdateRegistry for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UpdateRegistry func (c *Schemas) UpdateRegistry(input *UpdateRegistryInput) (*UpdateRegistryOutput, error) { @@ -2794,16 +2795,16 @@ func (c *Schemas) UpdateSchemaRequest(input *UpdateSchemaInput) (req *request.Re // See the AWS API reference guide for Schemas's // API operation UpdateSchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // // See also, https://docs.aws.amazon.com/goto/WebAPI/schemas-2019-12-02/UpdateSchema func (c *Schemas) UpdateSchema(input *UpdateSchemaInput) (*UpdateSchemaOutput, error) { @@ -2827,6 +2828,120 @@ func (c *Schemas) UpdateSchemaWithContext(ctx aws.Context, input *UpdateSchemaIn return out, req.Send() } +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateDiscovererInput struct { _ struct{} `type:"structure"` @@ -4001,6 +4116,63 @@ func (s *DiscovererSummary) SetTags(v map[string]*string) *DiscovererSummary { return s } +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetCodeBindingSourceInput struct { _ struct{} `type:"structure"` @@ -4173,6 +4345,120 @@ func (s *GetDiscoveredSchemaOutput) SetContent(v string) *GetDiscoveredSchemaOut return s } +type GoneException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s GoneException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s GoneException) GoString() string { + return s.String() +} + +func newErrorGoneException(v protocol.ResponseMetadata) error { + return &GoneException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s GoneException) Code() string { + return "GoneException" +} + +// Message returns the exception's message. +func (s GoneException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s GoneException) OrigErr() error { + return nil +} + +func (s GoneException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s GoneException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s GoneException) RequestID() string { + return s.respMetadata.RequestID +} + +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDiscoverersInput struct { _ struct{} `type:"structure"` @@ -4674,6 +4960,63 @@ func (s *LockServiceLinkedRoleOutput) SetRelatedResources(v []*DiscovererSummary return s } +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type PutCodeBindingInput struct { _ struct{} `type:"structure"` @@ -5117,6 +5460,63 @@ func (s *SearchSchemasOutput) SetSchemas(v []*SearchSchemaSummary) *SearchSchema return s } +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type StartDiscovererInput struct { _ struct{} `type:"structure"` @@ -5322,6 +5722,120 @@ func (s TagResourceOutput) GoString() string { return s.String() } +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UnlockServiceLinkedRoleInput struct { _ struct{} `type:"structure"` diff --git a/service/schemas/errors.go b/service/schemas/errors.go index 6dcbfaf6a79..5048d2eb362 100644 --- a/service/schemas/errors.go +++ b/service/schemas/errors.go @@ -2,6 +2,10 @@ package schemas +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -40,3 +44,15 @@ const ( // "UnauthorizedException". ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "GoneException": newErrorGoneException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/schemas/service.go b/service/schemas/service.go index 9b5b6ad9f35..6642d6f0df3 100644 --- a/service/schemas/service.go +++ b/service/schemas/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/secretsmanager/api.go b/service/secretsmanager/api.go index f4233729fa4..0f5389eabeb 100644 --- a/service/secretsmanager/api.go +++ b/service/secretsmanager/api.go @@ -107,17 +107,17 @@ func (c *SecretsManager) CancelRotateSecretRequest(input *CancelRotateSecretInpu // See the AWS API reference guide for AWS Secrets Manager's // API operation CancelRotateSecret for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -276,11 +276,11 @@ func (c *SecretsManager) CreateSecretRequest(input *CreateSecretInput) (req *req // See the AWS API reference guide for AWS Secrets Manager's // API operation CreateSecret for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -293,29 +293,29 @@ func (c *SecretsManager) CreateSecretRequest(input *CreateSecretInput) (req *req // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because it would exceed one of the Secrets Manager internal // limits. // -// * ErrCodeEncryptionFailure "EncryptionFailure" +// * EncryptionFailure // Secrets Manager can't encrypt the protected secret text using the provided // KMS key. Check that the customer master key (CMK) is available, enabled, // and not in an invalid state. For more information, see How Key State Affects // Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html). // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // A resource with the ID you requested already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// * MalformedPolicyDocumentException // The policy document that you provided isn't valid. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // The request failed because you did not complete all the prerequisite steps. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/CreateSecret @@ -408,14 +408,14 @@ func (c *SecretsManager) DeleteResourcePolicyRequest(input *DeleteResourcePolicy // See the AWS API reference guide for AWS Secrets Manager's // API operation DeleteResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -538,14 +538,14 @@ func (c *SecretsManager) DeleteSecretRequest(input *DeleteSecretInput) (req *req // See the AWS API reference guide for AWS Secrets Manager's // API operation DeleteSecret for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -558,7 +558,7 @@ func (c *SecretsManager) DeleteSecretRequest(input *DeleteSecretInput) (req *req // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/DeleteSecret @@ -654,11 +654,11 @@ func (c *SecretsManager) DescribeSecretRequest(input *DescribeSecretInput) (req // See the AWS API reference guide for AWS Secrets Manager's // API operation DescribeSecret for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/DescribeSecret @@ -745,11 +745,11 @@ func (c *SecretsManager) GetRandomPasswordRequest(input *GetRandomPasswordInput) // See the AWS API reference guide for AWS Secrets Manager's // API operation GetRandomPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -762,7 +762,7 @@ func (c *SecretsManager) GetRandomPasswordRequest(input *GetRandomPasswordInput) // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/GetRandomPassword @@ -858,14 +858,14 @@ func (c *SecretsManager) GetResourcePolicyRequest(input *GetResourcePolicyInput) // See the AWS API reference guide for AWS Secrets Manager's // API operation GetResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -971,14 +971,14 @@ func (c *SecretsManager) GetSecretValueRequest(input *GetSecretValueInput) (req // See the AWS API reference guide for AWS Secrets Manager's // API operation GetSecretValue for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -991,11 +991,11 @@ func (c *SecretsManager) GetSecretValueRequest(input *GetSecretValueInput) (req // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeDecryptionFailure "DecryptionFailure" +// * DecryptionFailure // Secrets Manager can't decrypt the protected secret text using the provided // KMS key. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/GetSecretValue @@ -1098,14 +1098,14 @@ func (c *SecretsManager) ListSecretVersionIdsRequest(input *ListSecretVersionIds // See the AWS API reference guide for AWS Secrets Manager's // API operation ListSecretVersionIds for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // You provided an invalid NextToken value. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/ListSecretVersionIds @@ -1260,14 +1260,14 @@ func (c *SecretsManager) ListSecretsRequest(input *ListSecretsInput) (req *reque // See the AWS API reference guide for AWS Secrets Manager's // API operation ListSecrets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // You provided an invalid NextToken value. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/ListSecrets @@ -1422,20 +1422,20 @@ func (c *SecretsManager) PutResourcePolicyRequest(input *PutResourcePolicyInput) // See the AWS API reference guide for AWS Secrets Manager's // API operation PutResourcePolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// Returned Error Types: +// * MalformedPolicyDocumentException // The policy document that you provided isn't valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -1592,11 +1592,11 @@ func (c *SecretsManager) PutSecretValueRequest(input *PutSecretValueInput) (req // See the AWS API reference guide for AWS Secrets Manager's // API operation PutSecretValue for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -1609,23 +1609,23 @@ func (c *SecretsManager) PutSecretValueRequest(input *PutSecretValueInput) (req // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because it would exceed one of the Secrets Manager internal // limits. // -// * ErrCodeEncryptionFailure "EncryptionFailure" +// * EncryptionFailure // Secrets Manager can't encrypt the protected secret text using the provided // KMS key. Check that the customer master key (CMK) is available, enabled, // and not in an invalid state. For more information, see How Key State Affects // Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html). // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // A resource with the ID you requested already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/PutSecretValue @@ -1714,14 +1714,14 @@ func (c *SecretsManager) RestoreSecretRequest(input *RestoreSecretInput) (req *r // See the AWS API reference guide for AWS Secrets Manager's // API operation RestoreSecret for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -1734,7 +1734,7 @@ func (c *SecretsManager) RestoreSecretRequest(input *RestoreSecretInput) (req *r // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/RestoreSecret @@ -1867,17 +1867,17 @@ func (c *SecretsManager) RotateSecretRequest(input *RotateSecretInput) (req *req // See the AWS API reference guide for AWS Secrets Manager's // API operation RotateSecret for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -2008,11 +2008,11 @@ func (c *SecretsManager) TagResourceRequest(input *TagResourceInput) (req *reque // See the AWS API reference guide for AWS Secrets Manager's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -2025,10 +2025,10 @@ func (c *SecretsManager) TagResourceRequest(input *TagResourceInput) (req *reque // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/TagResource @@ -2128,11 +2128,11 @@ func (c *SecretsManager) UntagResourceRequest(input *UntagResourceInput) (req *r // See the AWS API reference guide for AWS Secrets Manager's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -2145,10 +2145,10 @@ func (c *SecretsManager) UntagResourceRequest(input *UntagResourceInput) (req *r // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/UntagResource @@ -2289,11 +2289,11 @@ func (c *SecretsManager) UpdateSecretRequest(input *UpdateSecretInput) (req *req // See the AWS API reference guide for AWS Secrets Manager's // API operation UpdateSecret for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -2306,29 +2306,29 @@ func (c *SecretsManager) UpdateSecretRequest(input *UpdateSecretInput) (req *req // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because it would exceed one of the Secrets Manager internal // limits. // -// * ErrCodeEncryptionFailure "EncryptionFailure" +// * EncryptionFailure // Secrets Manager can't encrypt the protected secret text using the provided // KMS key. Check that the customer master key (CMK) is available, enabled, // and not in an invalid state. For more information, see How Key State Affects // Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html). // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // A resource with the ID you requested already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeMalformedPolicyDocumentException "MalformedPolicyDocumentException" +// * MalformedPolicyDocumentException // The policy document that you provided isn't valid. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // -// * ErrCodePreconditionNotMetException "PreconditionNotMetException" +// * PreconditionNotMetException // The request failed because you did not complete all the prerequisite steps. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/UpdateSecret @@ -2438,14 +2438,14 @@ func (c *SecretsManager) UpdateSecretVersionStageRequest(input *UpdateSecretVers // See the AWS API reference guide for AWS Secrets Manager's // API operation UpdateSecretVersionStage for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // We can't find the resource that you asked for. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // You provided an invalid value for a parameter. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // You provided a parameter value that is not valid for the current state of // the resource. // @@ -2458,11 +2458,11 @@ func (c *SecretsManager) UpdateSecretVersionStageRequest(input *UpdateSecretVers // Lambda function ARN configured and you didn't include such an ARN as a // parameter in this call. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request failed because it would exceed one of the Secrets Manager internal // limits. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/secretsmanager-2017-10-17/UpdateSecretVersionStage @@ -2871,6 +2871,63 @@ func (s *CreateSecretOutput) SetVersionId(v string) *CreateSecretOutput { return s } +// Secrets Manager can't decrypt the protected secret text using the provided +// KMS key. +type DecryptionFailure struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DecryptionFailure) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DecryptionFailure) GoString() string { + return s.String() +} + +func newErrorDecryptionFailure(v protocol.ResponseMetadata) error { + return &DecryptionFailure{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DecryptionFailure) Code() string { + return "DecryptionFailure" +} + +// Message returns the exception's message. +func (s DecryptionFailure) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DecryptionFailure) OrigErr() error { + return nil +} + +func (s DecryptionFailure) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DecryptionFailure) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DecryptionFailure) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteResourcePolicyInput struct { _ struct{} `type:"structure"` @@ -3308,6 +3365,65 @@ func (s *DescribeSecretOutput) SetVersionIdsToStages(v map[string][]*string) *De return s } +// Secrets Manager can't encrypt the protected secret text using the provided +// KMS key. Check that the customer master key (CMK) is available, enabled, +// and not in an invalid state. For more information, see How Key State Affects +// Use of a Customer Master Key (http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html). +type EncryptionFailure struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EncryptionFailure) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EncryptionFailure) GoString() string { + return s.String() +} + +func newErrorEncryptionFailure(v protocol.ResponseMetadata) error { + return &EncryptionFailure{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EncryptionFailure) Code() string { + return "EncryptionFailure" +} + +// Message returns the exception's message. +func (s EncryptionFailure) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EncryptionFailure) OrigErr() error { + return nil +} + +func (s EncryptionFailure) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EncryptionFailure) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EncryptionFailure) RequestID() string { + return s.respMetadata.RequestID +} + type GetRandomPasswordInput struct { _ struct{} `type:"structure"` @@ -3746,6 +3862,297 @@ func (s *GetSecretValueOutput) SetVersionStages(v []*string) *GetSecretValueOutp return s } +// An error occurred on the server side. +type InternalServiceError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceError) GoString() string { + return s.String() +} + +func newErrorInternalServiceError(v protocol.ResponseMetadata) error { + return &InternalServiceError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceError) Code() string { + return "InternalServiceError" +} + +// Message returns the exception's message. +func (s InternalServiceError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceError) OrigErr() error { + return nil +} + +func (s InternalServiceError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceError) RequestID() string { + return s.respMetadata.RequestID +} + +// You provided an invalid NextToken value. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// You provided an invalid value for a parameter. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// You provided a parameter value that is not valid for the current state of +// the resource. +// +// Possible causes: +// +// * You tried to perform the operation on a secret that's currently marked +// deleted. +// +// * You tried to enable rotation on a secret that doesn't already have a +// Lambda function ARN configured and you didn't include such an ARN as a +// parameter in this call. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request failed because it would exceed one of the Secrets Manager internal +// limits. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListSecretVersionIdsInput struct { _ struct{} `type:"structure"` @@ -4007,6 +4414,118 @@ func (s *ListSecretsOutput) SetSecretList(v []*SecretListEntry) *ListSecretsOutp return s } +// The policy document that you provided isn't valid. +type MalformedPolicyDocumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MalformedPolicyDocumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MalformedPolicyDocumentException) GoString() string { + return s.String() +} + +func newErrorMalformedPolicyDocumentException(v protocol.ResponseMetadata) error { + return &MalformedPolicyDocumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MalformedPolicyDocumentException) Code() string { + return "MalformedPolicyDocumentException" +} + +// Message returns the exception's message. +func (s MalformedPolicyDocumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MalformedPolicyDocumentException) OrigErr() error { + return nil +} + +func (s MalformedPolicyDocumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MalformedPolicyDocumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MalformedPolicyDocumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request failed because you did not complete all the prerequisite steps. +type PreconditionNotMetException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s PreconditionNotMetException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PreconditionNotMetException) GoString() string { + return s.String() +} + +func newErrorPreconditionNotMetException(v protocol.ResponseMetadata) error { + return &PreconditionNotMetException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PreconditionNotMetException) Code() string { + return "PreconditionNotMetException" +} + +// Message returns the exception's message. +func (s PreconditionNotMetException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PreconditionNotMetException) OrigErr() error { + return nil +} + +func (s PreconditionNotMetException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PreconditionNotMetException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PreconditionNotMetException) RequestID() string { + return s.respMetadata.RequestID +} + type PutResourcePolicyInput struct { _ struct{} `type:"structure"` @@ -4334,6 +4853,118 @@ func (s *PutSecretValueOutput) SetVersionStages(v []*string) *PutSecretValueOutp return s } +// A resource with the ID you requested already exists. +type ResourceExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceExistsException) GoString() string { + return s.String() +} + +func newErrorResourceExistsException(v protocol.ResponseMetadata) error { + return &ResourceExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceExistsException) Code() string { + return "ResourceExistsException" +} + +// Message returns the exception's message. +func (s ResourceExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceExistsException) OrigErr() error { + return nil +} + +func (s ResourceExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// We can't find the resource that you asked for. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type RestoreSecretInput struct { _ struct{} `type:"structure"` diff --git a/service/secretsmanager/errors.go b/service/secretsmanager/errors.go index b3c0c48fdcc..df82716bb59 100644 --- a/service/secretsmanager/errors.go +++ b/service/secretsmanager/errors.go @@ -2,6 +2,10 @@ package secretsmanager +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDecryptionFailure for service response error code @@ -85,3 +89,17 @@ const ( // We can't find the resource that you asked for. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DecryptionFailure": newErrorDecryptionFailure, + "EncryptionFailure": newErrorEncryptionFailure, + "InternalServiceError": newErrorInternalServiceError, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "MalformedPolicyDocumentException": newErrorMalformedPolicyDocumentException, + "PreconditionNotMetException": newErrorPreconditionNotMetException, + "ResourceExistsException": newErrorResourceExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/secretsmanager/service.go b/service/secretsmanager/service.go index 54b06293603..abb0bee7ac5 100644 --- a/service/secretsmanager/service.go +++ b/service/secretsmanager/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/securityhub/api.go b/service/securityhub/api.go index d496b6b18d5..f057892432b 100644 --- a/service/securityhub/api.go +++ b/service/securityhub/api.go @@ -70,22 +70,22 @@ func (c *SecurityHub) AcceptInvitationRequest(input *AcceptInvitationInput) (req // See the AWS API reference guide for AWS SecurityHub's // API operation AcceptInvitation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AcceptInvitation @@ -164,18 +164,18 @@ func (c *SecurityHub) BatchDisableStandardsRequest(input *BatchDisableStandardsI // See the AWS API reference guide for AWS SecurityHub's // API operation BatchDisableStandards for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -256,18 +256,18 @@ func (c *SecurityHub) BatchEnableStandardsRequest(input *BatchEnableStandardsInp // See the AWS API reference guide for AWS SecurityHub's // API operation BatchEnableStandards for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -349,19 +349,19 @@ func (c *SecurityHub) BatchImportFindingsRequest(input *BatchImportFindingsInput // See the AWS API reference guide for AWS SecurityHub's // API operation BatchImportFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/BatchImportFindings @@ -441,22 +441,22 @@ func (c *SecurityHub) CreateActionTargetRequest(input *CreateActionTargetInput) // See the AWS API reference guide for AWS SecurityHub's // API operation CreateActionTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource specified in the request conflicts with an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateActionTarget @@ -536,22 +536,22 @@ func (c *SecurityHub) CreateInsightRequest(input *CreateInsightInput) (req *requ // See the AWS API reference guide for AWS SecurityHub's // API operation CreateInsight for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource specified in the request conflicts with an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateInsight @@ -645,22 +645,22 @@ func (c *SecurityHub) CreateMembersRequest(input *CreateMembersInput) (req *requ // See the AWS API reference guide for AWS SecurityHub's // API operation CreateMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource specified in the request conflicts with an existing resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/CreateMembers @@ -738,18 +738,18 @@ func (c *SecurityHub) DeclineInvitationsRequest(input *DeclineInvitationsInput) // See the AWS API reference guide for AWS SecurityHub's // API operation DeclineInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeclineInvitations @@ -829,18 +829,18 @@ func (c *SecurityHub) DeleteActionTargetRequest(input *DeleteActionTargetInput) // See the AWS API reference guide for AWS SecurityHub's // API operation DeleteActionTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteActionTarget @@ -918,22 +918,22 @@ func (c *SecurityHub) DeleteInsightRequest(input *DeleteInsightInput) (req *requ // See the AWS API reference guide for AWS SecurityHub's // API operation DeleteInsight for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInsight @@ -1011,22 +1011,22 @@ func (c *SecurityHub) DeleteInvitationsRequest(input *DeleteInvitationsInput) (r // See the AWS API reference guide for AWS SecurityHub's // API operation DeleteInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteInvitations @@ -1104,22 +1104,22 @@ func (c *SecurityHub) DeleteMembersRequest(input *DeleteMembersInput) (req *requ // See the AWS API reference guide for AWS SecurityHub's // API operation DeleteMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DeleteMembers @@ -1203,18 +1203,18 @@ func (c *SecurityHub) DescribeActionTargetsRequest(input *DescribeActionTargetsI // See the AWS API reference guide for AWS SecurityHub's // API operation DescribeActionTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DescribeActionTargets @@ -1345,22 +1345,22 @@ func (c *SecurityHub) DescribeHubRequest(input *DescribeHubInput) (req *request. // See the AWS API reference guide for AWS SecurityHub's // API operation DescribeHub for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DescribeHub @@ -1445,18 +1445,18 @@ func (c *SecurityHub) DescribeProductsRequest(input *DescribeProductsInput) (req // See the AWS API reference guide for AWS SecurityHub's // API operation DescribeProducts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // @@ -1590,21 +1590,21 @@ func (c *SecurityHub) DisableImportFindingsForProductRequest(input *DisableImpor // See the AWS API reference guide for AWS SecurityHub's // API operation DisableImportFindingsForProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -1693,18 +1693,18 @@ func (c *SecurityHub) DisableSecurityHubRequest(input *DisableSecurityHubInput) // See the AWS API reference guide for AWS SecurityHub's // API operation DisableSecurityHub for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisableSecurityHub @@ -1784,22 +1784,22 @@ func (c *SecurityHub) DisassociateFromMasterAccountRequest(input *DisassociateFr // See the AWS API reference guide for AWS SecurityHub's // API operation DisassociateFromMasterAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateFromMasterAccount @@ -1878,22 +1878,22 @@ func (c *SecurityHub) DisassociateMembersRequest(input *DisassociateMembersInput // See the AWS API reference guide for AWS SecurityHub's // API operation DisassociateMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/DisassociateMembers @@ -1974,21 +1974,21 @@ func (c *SecurityHub) EnableImportFindingsForProductRequest(input *EnableImportF // See the AWS API reference guide for AWS SecurityHub's // API operation EnableImportFindingsForProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource specified in the request conflicts with an existing resource. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -2073,21 +2073,21 @@ func (c *SecurityHub) EnableSecurityHubRequest(input *EnableSecurityHubInput) (r // See the AWS API reference guide for AWS SecurityHub's // API operation EnableSecurityHub for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceConflictException "ResourceConflictException" +// * ResourceConflictException // The resource specified in the request conflicts with an existing resource. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You don't have permission to perform the action specified in the request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/EnableSecurityHub @@ -2165,18 +2165,18 @@ func (c *SecurityHub) GetEnabledStandardsRequest(input *GetEnabledStandardsInput // See the AWS API reference guide for AWS SecurityHub's // API operation GetEnabledStandards for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -2261,18 +2261,18 @@ func (c *SecurityHub) GetFindingsRequest(input *GetFindingsInput) (req *request. // See the AWS API reference guide for AWS SecurityHub's // API operation GetFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -2403,22 +2403,22 @@ func (c *SecurityHub) GetInsightResultsRequest(input *GetInsightResultsInput) (r // See the AWS API reference guide for AWS SecurityHub's // API operation GetInsightResults for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsightResults @@ -2502,22 +2502,22 @@ func (c *SecurityHub) GetInsightsRequest(input *GetInsightsInput) (req *request. // See the AWS API reference guide for AWS SecurityHub's // API operation GetInsights for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetInsights @@ -2648,18 +2648,18 @@ func (c *SecurityHub) GetInvitationsCountRequest(input *GetInvitationsCountInput // See the AWS API reference guide for AWS SecurityHub's // API operation GetInvitationsCount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -2739,22 +2739,22 @@ func (c *SecurityHub) GetMasterAccountRequest(input *GetMasterAccountInput) (req // See the AWS API reference guide for AWS SecurityHub's // API operation GetMasterAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMasterAccount @@ -2833,22 +2833,22 @@ func (c *SecurityHub) GetMembersRequest(input *GetMembersInput) (req *request.Re // See the AWS API reference guide for AWS SecurityHub's // API operation GetMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/GetMembers @@ -2931,22 +2931,22 @@ func (c *SecurityHub) InviteMembersRequest(input *InviteMembersInput) (req *requ // See the AWS API reference guide for AWS SecurityHub's // API operation InviteMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/InviteMembers @@ -3031,15 +3031,15 @@ func (c *SecurityHub) ListEnabledProductsForImportRequest(input *ListEnabledProd // See the AWS API reference guide for AWS SecurityHub's // API operation ListEnabledProductsForImport for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListEnabledProductsForImport @@ -3170,18 +3170,18 @@ func (c *SecurityHub) ListInvitationsRequest(input *ListInvitationsInput) (req * // See the AWS API reference guide for AWS SecurityHub's // API operation ListInvitations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -3261,18 +3261,18 @@ func (c *SecurityHub) ListMembersRequest(input *ListMembersInput) (req *request. // See the AWS API reference guide for AWS SecurityHub's // API operation ListMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // @@ -3351,15 +3351,15 @@ func (c *SecurityHub) ListTagsForResourceRequest(input *ListTagsForResourceInput // See the AWS API reference guide for AWS SecurityHub's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/ListTagsForResource @@ -3438,15 +3438,15 @@ func (c *SecurityHub) TagResourceRequest(input *TagResourceInput) (req *request. // See the AWS API reference guide for AWS SecurityHub's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/TagResource @@ -3525,15 +3525,15 @@ func (c *SecurityHub) UntagResourceRequest(input *UntagResourceInput) (req *requ // See the AWS API reference guide for AWS SecurityHub's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UntagResource @@ -3612,21 +3612,21 @@ func (c *SecurityHub) UpdateActionTargetRequest(input *UpdateActionTargetInput) // See the AWS API reference guide for AWS SecurityHub's // API operation UpdateActionTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateActionTarget @@ -3707,22 +3707,22 @@ func (c *SecurityHub) UpdateFindingsRequest(input *UpdateFindingsInput) (req *re // See the AWS API reference guide for AWS SecurityHub's // API operation UpdateFindings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateFindings @@ -3801,22 +3801,22 @@ func (c *SecurityHub) UpdateInsightRequest(input *UpdateInsightInput) (req *requ // See the AWS API reference guide for AWS SecurityHub's // API operation UpdateInsight for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalException "InternalException" +// Returned Error Types: +// * InternalException // Internal server error. // -// * ErrCodeInvalidInputException "InvalidInputException" +// * InvalidInputException // The request was rejected because you supplied an invalid or out-of-range // value for an input parameter. // -// * ErrCodeInvalidAccessException "InvalidAccessException" +// * InvalidAccessException // AWS Security Hub isn't enabled for the account used to make this request. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The request was rejected because it attempted to create resources beyond // the current AWS account limits. The error code describes the limit exceeded. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The request was rejected because we can't find the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/UpdateInsight @@ -3907,6 +3907,64 @@ func (s AcceptInvitationOutput) GoString() string { return s.String() } +// You don't have permission to perform the action specified in the request. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // The details of an AWS account. type AccountDetails struct { _ struct{} `type:"structure"` @@ -8584,6 +8642,181 @@ func (s *InsightResults) SetResultValues(v []*InsightResultValue) *InsightResult return s } +// Internal server error. +type InternalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalException) GoString() string { + return s.String() +} + +func newErrorInternalException(v protocol.ResponseMetadata) error { + return &InternalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalException) Code() string { + return "InternalException" +} + +// Message returns the exception's message. +func (s InternalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalException) OrigErr() error { + return nil +} + +func (s InternalException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS Security Hub isn't enabled for the account used to make this request. +type InvalidAccessException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAccessException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAccessException) GoString() string { + return s.String() +} + +func newErrorInvalidAccessException(v protocol.ResponseMetadata) error { + return &InvalidAccessException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAccessException) Code() string { + return "InvalidAccessException" +} + +// Message returns the exception's message. +func (s InvalidAccessException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAccessException) OrigErr() error { + return nil +} + +func (s InvalidAccessException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAccessException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAccessException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request was rejected because you supplied an invalid or out-of-range +// value for an input parameter. +type InvalidInputException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInputException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputException) GoString() string { + return s.String() +} + +func newErrorInvalidInputException(v protocol.ResponseMetadata) error { + return &InvalidInputException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputException) Code() string { + return "InvalidInputException" +} + +// Message returns the exception's message. +func (s InvalidInputException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputException) OrigErr() error { + return nil +} + +func (s InvalidInputException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputException) RequestID() string { + return s.respMetadata.RequestID +} + // Details about an invitation. type Invitation struct { _ struct{} `type:"structure"` @@ -8732,6 +8965,65 @@ func (s *KeywordFilter) SetValue(v string) *KeywordFilter { return s } +// The request was rejected because it attempted to create resources beyond +// the current AWS account limits. The error code describes the limit exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListEnabledProductsForImportInput struct { _ struct{} `type:"structure"` @@ -9911,6 +10203,64 @@ func (s *Resource) SetType(v string) *Resource { return s } +// The resource specified in the request conflicts with an existing resource. +type ResourceConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceConflictException) GoString() string { + return s.String() +} + +func newErrorResourceConflictException(v protocol.ResponseMetadata) error { + return &ResourceConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceConflictException) Code() string { + return "ResourceConflictException" +} + +// Message returns the exception's message. +func (s ResourceConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceConflictException) OrigErr() error { + return nil +} + +func (s ResourceConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // Additional details about a resource related to a finding. type ResourceDetails struct { _ struct{} `type:"structure"` @@ -10049,6 +10399,64 @@ func (s *ResourceDetails) SetOther(v map[string]*string) *ResourceDetails { return s } +// The request was rejected because we can't find the specified resource. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Code_ *string `locationName:"Code" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Details about the account that wasn't processed. type Result struct { _ struct{} `type:"structure"` diff --git a/service/securityhub/errors.go b/service/securityhub/errors.go index ea15ffb030d..eb6cf77147f 100644 --- a/service/securityhub/errors.go +++ b/service/securityhub/errors.go @@ -2,6 +2,10 @@ package securityhub +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -48,3 +52,13 @@ const ( // The request was rejected because we can't find the specified resource. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "InternalException": newErrorInternalException, + "InvalidAccessException": newErrorInvalidAccessException, + "InvalidInputException": newErrorInvalidInputException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceConflictException": newErrorResourceConflictException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/securityhub/service.go b/service/securityhub/service.go index 5899cb7db77..09819115950 100644 --- a/service/securityhub/service.go +++ b/service/securityhub/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/serverlessapplicationrepository/api.go b/service/serverlessapplicationrepository/api.go index 9636e2ec2a9..32f6c86b85e 100644 --- a/service/serverlessapplicationrepository/api.go +++ b/service/serverlessapplicationrepository/api.go @@ -66,22 +66,22 @@ func (c *ServerlessApplicationRepository) CreateApplicationRequest(input *Create // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation CreateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The resource already exists. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplication @@ -159,22 +159,22 @@ func (c *ServerlessApplicationRepository) CreateApplicationVersionRequest(input // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation CreateApplicationVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The resource already exists. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateApplicationVersion @@ -252,19 +252,19 @@ func (c *ServerlessApplicationRepository) CreateCloudFormationChangeSetRequest(i // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation CreateCloudFormationChangeSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationChangeSet @@ -342,23 +342,23 @@ func (c *ServerlessApplicationRepository) CreateCloudFormationTemplateRequest(in // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation CreateCloudFormationTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/CreateCloudFormationTemplate @@ -437,26 +437,26 @@ func (c *ServerlessApplicationRepository) DeleteApplicationRequest(input *Delete // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation DeleteApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The resource already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/DeleteApplication @@ -534,23 +534,23 @@ func (c *ServerlessApplicationRepository) GetApplicationRequest(input *GetApplic // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation GetApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplication @@ -628,23 +628,23 @@ func (c *ServerlessApplicationRepository) GetApplicationPolicyRequest(input *Get // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation GetApplicationPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetApplicationPolicy @@ -722,23 +722,23 @@ func (c *ServerlessApplicationRepository) GetCloudFormationTemplateRequest(input // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation GetCloudFormationTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/GetCloudFormationTemplate @@ -822,23 +822,23 @@ func (c *ServerlessApplicationRepository) ListApplicationDependenciesRequest(inp // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation ListApplicationDependencies for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationDependencies @@ -974,23 +974,23 @@ func (c *ServerlessApplicationRepository) ListApplicationVersionsRequest(input * // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation ListApplicationVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplicationVersions @@ -1126,19 +1126,19 @@ func (c *ServerlessApplicationRepository) ListApplicationsRequest(input *ListApp // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation ListApplications for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/ListApplications @@ -1269,23 +1269,23 @@ func (c *ServerlessApplicationRepository) PutApplicationPolicyRequest(input *Put // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation PutApplicationPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/PutApplicationPolicy @@ -1363,26 +1363,26 @@ func (c *ServerlessApplicationRepository) UpdateApplicationRequest(input *Update // See the AWS API reference guide for AWSServerlessApplicationRepository's // API operation UpdateApplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // One of the parameters in the request is invalid. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The AWS Serverless Application Repository service encountered an internal // error. // -// * ErrCodeForbiddenException "ForbiddenException" +// * ForbiddenException // The client is not authenticated. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource (for example, an access policy statement) specified in the request // doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The client is sending more than the allowed number of requests per unit of // time. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // The resource already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/serverlessrepo-2017-09-08/UpdateApplication @@ -1617,6 +1617,126 @@ func (s *ApplicationSummary) SetSpdxLicenseId(v string) *ApplicationSummary { return s } +// One of the parameters in the request is invalid. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 400 + ErrorCode *string `locationName:"errorCode" type:"string"` + + // One of the parameters in the request is invalid. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource already exists. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 409 + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The resource already exists. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateApplicationOutput struct { _ struct{} `type:"structure"` @@ -2447,6 +2567,66 @@ func (s DeleteApplicationOutput) GoString() string { return s.String() } +// The client is not authenticated. +type ForbiddenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 403 + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The client is not authenticated. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ForbiddenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ForbiddenException) GoString() string { + return s.String() +} + +func newErrorForbiddenException(v protocol.ResponseMetadata) error { + return &ForbiddenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ForbiddenException) Code() string { + return "ForbiddenException" +} + +// Message returns the exception's message. +func (s ForbiddenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ForbiddenException) OrigErr() error { + return nil +} + +func (s ForbiddenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ForbiddenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ForbiddenException) RequestID() string { + return s.respMetadata.RequestID +} + type GetApplicationInput struct { _ struct{} `type:"structure"` @@ -2798,6 +2978,68 @@ func (s *GetCloudFormationTemplateOutput) SetTemplateUrl(v string) *GetCloudForm return s } +// The AWS Serverless Application Repository service encountered an internal +// error. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 500 + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The AWS Serverless Application Repository service encountered an internal + // error. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListApplicationDependenciesInput struct { _ struct{} `type:"structure"` @@ -3055,6 +3297,68 @@ func (s *ListApplicationsOutput) SetNextToken(v string) *ListApplicationsOutput return s } +// The resource (for example, an access policy statement) specified in the request +// doesn't exist. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 404 + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The resource (for example, an access policy statement) specified in the request + // doesn't exist. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Parameters supported by the application. type ParameterDefinition struct { _ struct{} `type:"structure"` @@ -3551,6 +3855,68 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// The client is sending more than the allowed number of requests per unit of +// time. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // 429 + ErrorCode *string `locationName:"errorCode" type:"string"` + + // The client is sending more than the allowed number of requests per unit of + // time. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateApplicationOutput struct { _ struct{} `type:"structure"` diff --git a/service/serverlessapplicationrepository/errors.go b/service/serverlessapplicationrepository/errors.go index 2855c3aec7c..a6cae0c919f 100644 --- a/service/serverlessapplicationrepository/errors.go +++ b/service/serverlessapplicationrepository/errors.go @@ -2,6 +2,10 @@ package serverlessapplicationrepository +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -43,3 +47,12 @@ const ( // time. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "ForbiddenException": newErrorForbiddenException, + "InternalServerErrorException": newErrorInternalServerErrorException, + "NotFoundException": newErrorNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/serverlessapplicationrepository/service.go b/service/serverlessapplicationrepository/service.go index 845726839ca..289f4a111f6 100644 --- a/service/serverlessapplicationrepository/service.go +++ b/service/serverlessapplicationrepository/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/servicecatalog/api.go b/service/servicecatalog/api.go index 7fd6793ab7a..2e96cb3ada1 100644 --- a/service/servicecatalog/api.go +++ b/service/servicecatalog/api.go @@ -67,14 +67,14 @@ func (c *ServiceCatalog) AcceptPortfolioShareRequest(input *AcceptPortfolioShare // See the AWS API reference guide for AWS Service Catalog's // API operation AcceptPortfolioShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. @@ -155,19 +155,19 @@ func (c *ServiceCatalog) AssociateBudgetWithResourceRequest(input *AssociateBudg // See the AWS API reference guide for AWS Service Catalog's // API operation AssociateBudgetWithResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // The specified resource is a duplicate. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/AssociateBudgetWithResource @@ -246,14 +246,14 @@ func (c *ServiceCatalog) AssociatePrincipalWithPortfolioRequest(input *Associate // See the AWS API reference guide for AWS Service Catalog's // API operation AssociatePrincipalWithPortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. @@ -334,14 +334,14 @@ func (c *ServiceCatalog) AssociateProductWithPortfolioRequest(input *AssociatePr // See the AWS API reference guide for AWS Service Catalog's // API operation AssociateProductWithPortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. @@ -422,14 +422,14 @@ func (c *ServiceCatalog) AssociateServiceActionWithProvisioningArtifactRequest(i // See the AWS API reference guide for AWS Service Catalog's // API operation AssociateServiceActionWithProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // The specified resource is a duplicate. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. @@ -510,27 +510,27 @@ func (c *ServiceCatalog) AssociateTagOptionWithResourceRequest(input *AssociateT // See the AWS API reference guide for AWS Service Catalog's // API operation AssociateTagOptionWithResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // The specified resource is a duplicate. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. @@ -610,8 +610,8 @@ func (c *ServiceCatalog) BatchAssociateServiceActionWithProvisioningArtifactRequ // See the AWS API reference guide for AWS Service Catalog's // API operation BatchAssociateServiceActionWithProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/BatchAssociateServiceActionWithProvisioningArtifact @@ -690,8 +690,8 @@ func (c *ServiceCatalog) BatchDisassociateServiceActionFromProvisioningArtifactR // See the AWS API reference guide for AWS Service Catalog's // API operation BatchDisassociateServiceActionFromProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/BatchDisassociateServiceActionFromProvisioningArtifact @@ -776,11 +776,11 @@ func (c *ServiceCatalog) CopyProductRequest(input *CopyProductInput) (req *reque // See the AWS API reference guide for AWS Service Catalog's // API operation CopyProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CopyProduct @@ -858,19 +858,19 @@ func (c *ServiceCatalog) CreateConstraintRequest(input *CreateConstraintInput) ( // See the AWS API reference guide for AWS Service Catalog's // API operation CreateConstraint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // The specified resource is a duplicate. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/CreateConstraint @@ -948,16 +948,16 @@ func (c *ServiceCatalog) CreatePortfolioRequest(input *CreatePortfolioInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation CreatePortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. // -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. @@ -1040,22 +1040,22 @@ func (c *ServiceCatalog) CreatePortfolioShareRequest(input *CreatePortfolioShare // See the AWS API reference guide for AWS Service Catalog's // API operation CreatePortfolioShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. @@ -1135,16 +1135,16 @@ func (c *ServiceCatalog) CreateProductRequest(input *CreateProductInput) (req *r // See the AWS API reference guide for AWS Service Catalog's // API operation CreateProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. // -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. @@ -1232,14 +1232,14 @@ func (c *ServiceCatalog) CreateProvisionedProductPlanRequest(input *CreateProvis // See the AWS API reference guide for AWS Service Catalog's // API operation CreateProvisionedProductPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. @@ -1323,14 +1323,14 @@ func (c *ServiceCatalog) CreateProvisioningArtifactRequest(input *CreateProvisio // See the AWS API reference guide for AWS Service Catalog's // API operation CreateProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. @@ -1410,11 +1410,11 @@ func (c *ServiceCatalog) CreateServiceActionRequest(input *CreateServiceActionIn // See the AWS API reference guide for AWS Service Catalog's // API operation CreateServiceAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. @@ -1494,16 +1494,16 @@ func (c *ServiceCatalog) CreateTagOptionRequest(input *CreateTagOptionInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation CreateTagOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // The specified resource is a duplicate. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. @@ -1584,11 +1584,11 @@ func (c *ServiceCatalog) DeleteConstraintRequest(input *DeleteConstraintInput) ( // See the AWS API reference guide for AWS Service Catalog's // API operation DeleteConstraint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteConstraint @@ -1670,18 +1670,18 @@ func (c *ServiceCatalog) DeletePortfolioRequest(input *DeletePortfolioInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation DeletePortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // A resource that is currently in use. Ensure that the resource is not in use // and retry the operation. // -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. @@ -1763,17 +1763,17 @@ func (c *ServiceCatalog) DeletePortfolioShareRequest(input *DeletePortfolioShare // See the AWS API reference guide for AWS Service Catalog's // API operation DeletePortfolioShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. @@ -1857,18 +1857,18 @@ func (c *ServiceCatalog) DeleteProductRequest(input *DeleteProductInput) (req *r // See the AWS API reference guide for AWS Service Catalog's // API operation DeleteProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // A resource that is currently in use. Ensure that the resource is not in use // and retry the operation. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. @@ -1949,11 +1949,11 @@ func (c *ServiceCatalog) DeleteProvisionedProductPlanRequest(input *DeleteProvis // See the AWS API reference guide for AWS Service Catalog's // API operation DeleteProvisionedProductPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProvisionedProductPlan @@ -2037,15 +2037,15 @@ func (c *ServiceCatalog) DeleteProvisioningArtifactRequest(input *DeleteProvisio // See the AWS API reference guide for AWS Service Catalog's // API operation DeleteProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // A resource that is currently in use. Ensure that the resource is not in use // and retry the operation. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteProvisioningArtifact @@ -2124,11 +2124,11 @@ func (c *ServiceCatalog) DeleteServiceActionRequest(input *DeleteServiceActionIn // See the AWS API reference guide for AWS Service Catalog's // API operation DeleteServiceAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // A resource that is currently in use. Ensure that the resource is not in use // and retry the operation. // @@ -2210,17 +2210,17 @@ func (c *ServiceCatalog) DeleteTagOptionRequest(input *DeleteTagOptionInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation DeleteTagOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // A resource that is currently in use. Ensure that the resource is not in use // and retry the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DeleteTagOption @@ -2298,8 +2298,8 @@ func (c *ServiceCatalog) DescribeConstraintRequest(input *DescribeConstraintInpu // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeConstraint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeConstraint @@ -2377,8 +2377,8 @@ func (c *ServiceCatalog) DescribeCopyProductStatusRequest(input *DescribeCopyPro // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeCopyProductStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeCopyProductStatus @@ -2456,8 +2456,8 @@ func (c *ServiceCatalog) DescribePortfolioRequest(input *DescribePortfolioInput) // See the AWS API reference guide for AWS Service Catalog's // API operation DescribePortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolio @@ -2536,14 +2536,14 @@ func (c *ServiceCatalog) DescribePortfolioShareStatusRequest(input *DescribePort // See the AWS API reference guide for AWS Service Catalog's // API operation DescribePortfolioShareStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribePortfolioShareStatus @@ -2621,11 +2621,11 @@ func (c *ServiceCatalog) DescribeProductRequest(input *DescribeProductInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProduct @@ -2704,8 +2704,8 @@ func (c *ServiceCatalog) DescribeProductAsAdminRequest(input *DescribeProductAsA // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeProductAsAdmin for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductAsAdmin @@ -2783,11 +2783,11 @@ func (c *ServiceCatalog) DescribeProductViewRequest(input *DescribeProductViewIn // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeProductView for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProductView @@ -2865,8 +2865,8 @@ func (c *ServiceCatalog) DescribeProvisionedProductRequest(input *DescribeProvis // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeProvisionedProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisionedProduct @@ -2944,11 +2944,11 @@ func (c *ServiceCatalog) DescribeProvisionedProductPlanRequest(input *DescribePr // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeProvisionedProductPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisionedProductPlan @@ -3027,8 +3027,8 @@ func (c *ServiceCatalog) DescribeProvisioningArtifactRequest(input *DescribeProv // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningArtifact @@ -3114,11 +3114,11 @@ func (c *ServiceCatalog) DescribeProvisioningParametersRequest(input *DescribePr // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeProvisioningParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeProvisioningParameters @@ -3205,8 +3205,8 @@ func (c *ServiceCatalog) DescribeRecordRequest(input *DescribeRecordInput) (req // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeRecord for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeRecord @@ -3284,8 +3284,8 @@ func (c *ServiceCatalog) DescribeServiceActionRequest(input *DescribeServiceActi // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeServiceAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeServiceAction @@ -3361,11 +3361,11 @@ func (c *ServiceCatalog) DescribeServiceActionExecutionParametersRequest(input * // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeServiceActionExecutionParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeServiceActionExecutionParameters @@ -3443,13 +3443,13 @@ func (c *ServiceCatalog) DescribeTagOptionRequest(input *DescribeTagOptionInput) // See the AWS API reference guide for AWS Service Catalog's // API operation DescribeTagOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DescribeTagOption @@ -3532,16 +3532,16 @@ func (c *ServiceCatalog) DisableAWSOrganizationsAccessRequest(input *DisableAWSO // See the AWS API reference guide for AWS Service Catalog's // API operation DisableAWSOrganizationsAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisableAWSOrganizationsAccess @@ -3620,8 +3620,8 @@ func (c *ServiceCatalog) DisassociateBudgetFromResourceRequest(input *Disassocia // See the AWS API reference guide for AWS Service Catalog's // API operation DisassociateBudgetFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateBudgetFromResource @@ -3700,11 +3700,11 @@ func (c *ServiceCatalog) DisassociatePrincipalFromPortfolioRequest(input *Disass // See the AWS API reference guide for AWS Service Catalog's // API operation DisassociatePrincipalFromPortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociatePrincipalFromPortfolio @@ -3783,15 +3783,15 @@ func (c *ServiceCatalog) DisassociateProductFromPortfolioRequest(input *Disassoc // See the AWS API reference guide for AWS Service Catalog's // API operation DisassociateProductFromPortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeResourceInUseException "ResourceInUseException" +// * ResourceInUseException // A resource that is currently in use. Ensure that the resource is not in use // and retry the operation. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateProductFromPortfolio @@ -3871,8 +3871,8 @@ func (c *ServiceCatalog) DisassociateServiceActionFromProvisioningArtifactReques // See the AWS API reference guide for AWS Service Catalog's // API operation DisassociateServiceActionFromProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateServiceActionFromProvisioningArtifact @@ -3951,13 +3951,13 @@ func (c *ServiceCatalog) DisassociateTagOptionFromResourceRequest(input *Disasso // See the AWS API reference guide for AWS Service Catalog's // API operation DisassociateTagOptionFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/DisassociateTagOptionFromResource @@ -4043,16 +4043,16 @@ func (c *ServiceCatalog) EnableAWSOrganizationsAccessRequest(input *EnableAWSOrg // See the AWS API reference guide for AWS Service Catalog's // API operation EnableAWSOrganizationsAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/EnableAWSOrganizationsAccess @@ -4131,14 +4131,14 @@ func (c *ServiceCatalog) ExecuteProvisionedProductPlanRequest(input *ExecuteProv // See the AWS API reference guide for AWS Service Catalog's // API operation ExecuteProvisionedProductPlan for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. @@ -4218,14 +4218,14 @@ func (c *ServiceCatalog) ExecuteProvisionedProductServiceActionRequest(input *Ex // See the AWS API reference guide for AWS Service Catalog's // API operation ExecuteProvisionedProductServiceAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. @@ -4306,11 +4306,11 @@ func (c *ServiceCatalog) GetAWSOrganizationsAccessStatusRequest(input *GetAWSOrg // See the AWS API reference guide for AWS Service Catalog's // API operation GetAWSOrganizationsAccessStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/GetAWSOrganizationsAccessStatus @@ -4394,11 +4394,11 @@ func (c *ServiceCatalog) ListAcceptedPortfolioSharesRequest(input *ListAcceptedP // See the AWS API reference guide for AWS Service Catalog's // API operation ListAcceptedPortfolioShares for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListAcceptedPortfolioShares @@ -4534,11 +4534,11 @@ func (c *ServiceCatalog) ListBudgetsForResourceRequest(input *ListBudgetsForReso // See the AWS API reference guide for AWS Service Catalog's // API operation ListBudgetsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListBudgetsForResource @@ -4674,11 +4674,11 @@ func (c *ServiceCatalog) ListConstraintsForPortfolioRequest(input *ListConstrain // See the AWS API reference guide for AWS Service Catalog's // API operation ListConstraintsForPortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListConstraintsForPortfolio @@ -4816,11 +4816,11 @@ func (c *ServiceCatalog) ListLaunchPathsRequest(input *ListLaunchPathsInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation ListLaunchPaths for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListLaunchPaths @@ -4957,14 +4957,14 @@ func (c *ServiceCatalog) ListOrganizationPortfolioAccessRequest(input *ListOrgan // See the AWS API reference guide for AWS Service Catalog's // API operation ListOrganizationPortfolioAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // The operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListOrganizationPortfolioAccess @@ -5094,8 +5094,8 @@ func (c *ServiceCatalog) ListPortfolioAccessRequest(input *ListPortfolioAccessIn // See the AWS API reference guide for AWS Service Catalog's // API operation ListPortfolioAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolioAccess @@ -5179,8 +5179,8 @@ func (c *ServiceCatalog) ListPortfoliosRequest(input *ListPortfoliosInput) (req // See the AWS API reference guide for AWS Service Catalog's // API operation ListPortfolios for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfolios @@ -5316,11 +5316,11 @@ func (c *ServiceCatalog) ListPortfoliosForProductRequest(input *ListPortfoliosFo // See the AWS API reference guide for AWS Service Catalog's // API operation ListPortfoliosForProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPortfoliosForProduct @@ -5456,11 +5456,11 @@ func (c *ServiceCatalog) ListPrincipalsForPortfolioRequest(input *ListPrincipals // See the AWS API reference guide for AWS Service Catalog's // API operation ListPrincipalsForPortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListPrincipalsForPortfolio @@ -5591,11 +5591,11 @@ func (c *ServiceCatalog) ListProvisionedProductPlansRequest(input *ListProvision // See the AWS API reference guide for AWS Service Catalog's // API operation ListProvisionedProductPlans for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisionedProductPlans @@ -5674,11 +5674,11 @@ func (c *ServiceCatalog) ListProvisioningArtifactsRequest(input *ListProvisionin // See the AWS API reference guide for AWS Service Catalog's // API operation ListProvisioningArtifacts for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifacts @@ -5763,11 +5763,11 @@ func (c *ServiceCatalog) ListProvisioningArtifactsForServiceActionRequest(input // See the AWS API reference guide for AWS Service Catalog's // API operation ListProvisioningArtifactsForServiceAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListProvisioningArtifactsForServiceAction @@ -5897,8 +5897,8 @@ func (c *ServiceCatalog) ListRecordHistoryRequest(input *ListRecordHistoryInput) // See the AWS API reference guide for AWS Service Catalog's // API operation ListRecordHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListRecordHistory @@ -5982,16 +5982,16 @@ func (c *ServiceCatalog) ListResourcesForTagOptionRequest(input *ListResourcesFo // See the AWS API reference guide for AWS Service Catalog's // API operation ListResourcesForTagOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListResourcesForTagOption @@ -6127,8 +6127,8 @@ func (c *ServiceCatalog) ListServiceActionsRequest(input *ListServiceActionsInpu // See the AWS API reference guide for AWS Service Catalog's // API operation ListServiceActions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListServiceActions @@ -6265,11 +6265,11 @@ func (c *ServiceCatalog) ListServiceActionsForProvisioningArtifactRequest(input // See the AWS API reference guide for AWS Service Catalog's // API operation ListServiceActionsForProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListServiceActionsForProvisioningArtifact @@ -6401,11 +6401,11 @@ func (c *ServiceCatalog) ListStackInstancesForProvisionedProductRequest(input *L // See the AWS API reference guide for AWS Service Catalog's // API operation ListStackInstancesForProvisionedProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListStackInstancesForProvisionedProduct @@ -6489,13 +6489,13 @@ func (c *ServiceCatalog) ListTagOptionsRequest(input *ListTagOptionsInput) (req // See the AWS API reference guide for AWS Service Catalog's // API operation ListTagOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ListTagOptions @@ -6635,14 +6635,14 @@ func (c *ServiceCatalog) ProvisionProductRequest(input *ProvisionProductInput) ( // See the AWS API reference guide for AWS Service Catalog's // API operation ProvisionProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // The specified resource is a duplicate. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ProvisionProduct @@ -6721,8 +6721,8 @@ func (c *ServiceCatalog) RejectPortfolioShareRequest(input *RejectPortfolioShare // See the AWS API reference guide for AWS Service Catalog's // API operation RejectPortfolioShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/RejectPortfolioShare @@ -6802,8 +6802,8 @@ func (c *ServiceCatalog) ScanProvisionedProductsRequest(input *ScanProvisionedPr // See the AWS API reference guide for AWS Service Catalog's // API operation ScanProvisionedProducts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ScanProvisionedProducts @@ -6887,8 +6887,8 @@ func (c *ServiceCatalog) SearchProductsRequest(input *SearchProductsInput) (req // See the AWS API reference guide for AWS Service Catalog's // API operation SearchProducts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProducts @@ -7024,11 +7024,11 @@ func (c *ServiceCatalog) SearchProductsAsAdminRequest(input *SearchProductsAsAdm // See the AWS API reference guide for AWS Service Catalog's // API operation SearchProductsAsAdmin for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProductsAsAdmin @@ -7164,8 +7164,8 @@ func (c *ServiceCatalog) SearchProvisionedProductsRequest(input *SearchProvision // See the AWS API reference guide for AWS Service Catalog's // API operation SearchProvisionedProducts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/SearchProvisionedProducts @@ -7300,8 +7300,8 @@ func (c *ServiceCatalog) TerminateProvisionedProductRequest(input *TerminateProv // See the AWS API reference guide for AWS Service Catalog's // API operation TerminateProvisionedProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/TerminateProvisionedProduct @@ -7379,11 +7379,11 @@ func (c *ServiceCatalog) UpdateConstraintRequest(input *UpdateConstraintInput) ( // See the AWS API reference guide for AWS Service Catalog's // API operation UpdateConstraint for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateConstraint @@ -7463,19 +7463,19 @@ func (c *ServiceCatalog) UpdatePortfolioRequest(input *UpdatePortfolioInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation UpdatePortfolio for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The current limits of the service would have been exceeded by this operation. // Decrease your resource use or increase your service limits and retry the // operation. // -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. @@ -7555,14 +7555,14 @@ func (c *ServiceCatalog) UpdateProductRequest(input *UpdateProductInput) (req *r // See the AWS API reference guide for AWS Service Catalog's // API operation UpdateProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. @@ -7649,11 +7649,11 @@ func (c *ServiceCatalog) UpdateProvisionedProductRequest(input *UpdateProvisione // See the AWS API reference guide for AWS Service Catalog's // API operation UpdateProvisionedProduct for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisionedProduct @@ -7731,14 +7731,14 @@ func (c *ServiceCatalog) UpdateProvisionedProductPropertiesRequest(input *Update // See the AWS API reference guide for AWS Service Catalog's // API operation UpdateProvisionedProductProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParametersException "InvalidParametersException" +// Returned Error Types: +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidStateException "InvalidStateException" +// * InvalidStateException // An attempt was made to modify a resource that is in a state that is not valid. // Check your resources to ensure that they are in valid states before retrying // the operation. @@ -7822,11 +7822,11 @@ func (c *ServiceCatalog) UpdateProvisioningArtifactRequest(input *UpdateProvisio // See the AWS API reference guide for AWS Service Catalog's // API operation UpdateProvisioningArtifact for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateProvisioningArtifact @@ -7904,11 +7904,11 @@ func (c *ServiceCatalog) UpdateServiceActionRequest(input *UpdateServiceActionIn // See the AWS API reference guide for AWS Service Catalog's // API operation UpdateServiceAction for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateServiceAction @@ -7986,19 +7986,19 @@ func (c *ServiceCatalog) UpdateTagOptionRequest(input *UpdateTagOptionInput) (re // See the AWS API reference guide for AWS Service Catalog's // API operation UpdateTagOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeTagOptionNotMigratedException "TagOptionNotMigratedException" +// Returned Error Types: +// * TagOptionNotMigratedException // An operation requiring TagOptions failed because the TagOptions migration // process has not been performed for this account. Please use the AWS console // to perform the migration process before retrying the operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource was not found. // -// * ErrCodeDuplicateResourceException "DuplicateResourceException" +// * DuplicateResourceException // The specified resource is a duplicate. // -// * ErrCodeInvalidParametersException "InvalidParametersException" +// * InvalidParametersException // One or more parameters provided to the operation are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/UpdateTagOption @@ -12951,6 +12951,57 @@ func (s DisassociateTagOptionFromResourceOutput) GoString() string { return s.String() } +// The specified resource is a duplicate. +type DuplicateResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DuplicateResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateResourceException) GoString() string { + return s.String() +} + +func newErrorDuplicateResourceException(v protocol.ResponseMetadata) error { + return &DuplicateResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateResourceException) Code() string { + return "DuplicateResourceException" +} + +// Message returns the exception's message. +func (s DuplicateResourceException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateResourceException) OrigErr() error { + return nil +} + +func (s DuplicateResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateResourceException) RequestID() string { + return s.respMetadata.RequestID +} + type EnableAWSOrganizationsAccessInput struct { _ struct{} `type:"structure"` } @@ -13328,6 +13379,110 @@ func (s *GetAWSOrganizationsAccessStatusOutput) SetAccessStatus(v string) *GetAW return s } +// One or more parameters provided to the operation are not valid. +type InvalidParametersException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidParametersException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParametersException) GoString() string { + return s.String() +} + +func newErrorInvalidParametersException(v protocol.ResponseMetadata) error { + return &InvalidParametersException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParametersException) Code() string { + return "InvalidParametersException" +} + +// Message returns the exception's message. +func (s InvalidParametersException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParametersException) OrigErr() error { + return nil +} + +func (s InvalidParametersException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParametersException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParametersException) RequestID() string { + return s.respMetadata.RequestID +} + +// An attempt was made to modify a resource that is in a state that is not valid. +// Check your resources to ensure that they are in valid states before retrying +// the operation. +type InvalidStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidStateException) GoString() string { + return s.String() +} + +func newErrorInvalidStateException(v protocol.ResponseMetadata) error { + return &InvalidStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidStateException) Code() string { + return "InvalidStateException" +} + +// Message returns the exception's message. +func (s InvalidStateException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidStateException) OrigErr() error { + return nil +} + +func (s InvalidStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidStateException) RequestID() string { + return s.respMetadata.RequestID +} + // Summary information about a product path for a user. type LaunchPathSummary struct { _ struct{} `type:"structure"` @@ -13379,6 +13534,59 @@ func (s *LaunchPathSummary) SetTags(v []*Tag) *LaunchPathSummary { return s } +// The current limits of the service would have been exceeded by this operation. +// Decrease your resource use or increase your service limits and retry the +// operation. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAcceptedPortfolioSharesInput struct { _ struct{} `type:"structure"` @@ -15345,6 +15553,57 @@ func (s *ListTagOptionsOutput) SetTagOptionDetails(v []*TagOptionDetail) *ListTa return s } +// The operation is not supported. +type OperationNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s OperationNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotSupportedException) GoString() string { + return s.String() +} + +func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error { + return &OperationNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotSupportedException) Code() string { + return "OperationNotSupportedException" +} + +// Message returns the exception's message. +func (s OperationNotSupportedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotSupportedException) OrigErr() error { + return nil +} + +func (s OperationNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about the organization node. type OrganizationNode struct { _ struct{} `type:"structure"` @@ -17638,6 +17897,109 @@ func (s *ResourceDetail) SetName(v string) *ResourceDetail { return s } +// A resource that is currently in use. Ensure that the resource is not in use +// and retry the operation. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a change to a resource attribute. type ResourceTargetDefinition struct { _ struct{} `type:"structure"` @@ -18572,6 +18934,59 @@ func (s *TagOptionDetail) SetValue(v string) *TagOptionDetail { return s } +// An operation requiring TagOptions failed because the TagOptions migration +// process has not been performed for this account. Please use the AWS console +// to perform the migration process before retrying the operation. +type TagOptionNotMigratedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TagOptionNotMigratedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagOptionNotMigratedException) GoString() string { + return s.String() +} + +func newErrorTagOptionNotMigratedException(v protocol.ResponseMetadata) error { + return &TagOptionNotMigratedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagOptionNotMigratedException) Code() string { + return "TagOptionNotMigratedException" +} + +// Message returns the exception's message. +func (s TagOptionNotMigratedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagOptionNotMigratedException) OrigErr() error { + return nil +} + +func (s TagOptionNotMigratedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagOptionNotMigratedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagOptionNotMigratedException) RequestID() string { + return s.respMetadata.RequestID +} + // Summary information about a TagOption. type TagOptionSummary struct { _ struct{} `type:"structure"` diff --git a/service/servicecatalog/errors.go b/service/servicecatalog/errors.go index 357d9e52f5d..5fed488c09a 100644 --- a/service/servicecatalog/errors.go +++ b/service/servicecatalog/errors.go @@ -2,6 +2,10 @@ package servicecatalog +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDuplicateResourceException for service response error code @@ -59,3 +63,14 @@ const ( // to perform the migration process before retrying the operation. ErrCodeTagOptionNotMigratedException = "TagOptionNotMigratedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DuplicateResourceException": newErrorDuplicateResourceException, + "InvalidParametersException": newErrorInvalidParametersException, + "InvalidStateException": newErrorInvalidStateException, + "LimitExceededException": newErrorLimitExceededException, + "OperationNotSupportedException": newErrorOperationNotSupportedException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TagOptionNotMigratedException": newErrorTagOptionNotMigratedException, +} diff --git a/service/servicecatalog/service.go b/service/servicecatalog/service.go index 96ace62f2fe..fcab9489853 100644 --- a/service/servicecatalog/service.go +++ b/service/servicecatalog/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/servicediscovery/api.go b/service/servicediscovery/api.go index 796c561766d..0fee972596d 100644 --- a/service/servicediscovery/api.go +++ b/service/servicediscovery/api.go @@ -72,20 +72,20 @@ func (c *ServiceDiscovery) CreateHttpNamespaceRequest(input *CreateHttpNamespace // See the AWS API reference guide for AWS Cloud Map's // API operation CreateHttpNamespace for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeNamespaceAlreadyExists "NamespaceAlreadyExists" +// * NamespaceAlreadyExists // The namespace that you're trying to create already exists. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // The resource can't be created because you've reached the limit on the number // of resources. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The operation is already in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateHttpNamespace @@ -169,20 +169,20 @@ func (c *ServiceDiscovery) CreatePrivateDnsNamespaceRequest(input *CreatePrivate // See the AWS API reference guide for AWS Cloud Map's // API operation CreatePrivateDnsNamespace for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeNamespaceAlreadyExists "NamespaceAlreadyExists" +// * NamespaceAlreadyExists // The namespace that you're trying to create already exists. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // The resource can't be created because you've reached the limit on the number // of resources. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The operation is already in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreatePrivateDnsNamespace @@ -266,20 +266,20 @@ func (c *ServiceDiscovery) CreatePublicDnsNamespaceRequest(input *CreatePublicDn // See the AWS API reference guide for AWS Cloud Map's // API operation CreatePublicDnsNamespace for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeNamespaceAlreadyExists "NamespaceAlreadyExists" +// * NamespaceAlreadyExists // The namespace that you're trying to create already exists. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // The resource can't be created because you've reached the limit on the number // of resources. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The operation is already in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreatePublicDnsNamespace @@ -370,20 +370,20 @@ func (c *ServiceDiscovery) CreateServiceRequest(input *CreateServiceInput) (req // See the AWS API reference guide for AWS Cloud Map's // API operation CreateService for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // The resource can't be created because you've reached the limit on the number // of resources. // -// * ErrCodeNamespaceNotFound "NamespaceNotFound" +// * NamespaceNotFound // No namespace exists with the specified ID. // -// * ErrCodeServiceAlreadyExists "ServiceAlreadyExists" +// * ServiceAlreadyExists // The service can't be created because a service with the same name already // exists. // @@ -463,20 +463,20 @@ func (c *ServiceDiscovery) DeleteNamespaceRequest(input *DeleteNamespaceInput) ( // See the AWS API reference guide for AWS Cloud Map's // API operation DeleteNamespace for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeNamespaceNotFound "NamespaceNotFound" +// * NamespaceNotFound // No namespace exists with the specified ID. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // The specified resource can't be deleted because it contains other resources. // For example, you can't delete a service that contains any instances. // -// * ErrCodeDuplicateRequest "DuplicateRequest" +// * DuplicateRequest // The operation is already in progress. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DeleteNamespace @@ -556,16 +556,16 @@ func (c *ServiceDiscovery) DeleteServiceRequest(input *DeleteServiceInput) (req // See the AWS API reference guide for AWS Cloud Map's // API operation DeleteService for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // The specified resource can't be deleted because it contains other resources. // For example, you can't delete a service that contains any instances. // @@ -645,24 +645,24 @@ func (c *ServiceDiscovery) DeregisterInstanceRequest(input *DeregisterInstanceIn // See the AWS API reference guide for AWS Cloud Map's // API operation DeregisterInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateRequest "DuplicateRequest" +// Returned Error Types: +// * DuplicateRequest // The operation is already in progress. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeInstanceNotFound "InstanceNotFound" +// * InstanceNotFound // No instance exists with the specified ID, or the instance was recently registered, // and information about the instance hasn't propagated yet. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // The specified resource can't be deleted because it contains other resources. // For example, you can't delete a service that contains any instances. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DeregisterInstance @@ -742,14 +742,14 @@ func (c *ServiceDiscovery) DiscoverInstancesRequest(input *DiscoverInstancesInpu // See the AWS API reference guide for AWS Cloud Map's // API operation DiscoverInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceNotFound "ServiceNotFound" +// Returned Error Types: +// * ServiceNotFound // No service exists with the specified ID. // -// * ErrCodeNamespaceNotFound "NamespaceNotFound" +// * NamespaceNotFound // No namespace exists with the specified ID. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. @@ -829,17 +829,17 @@ func (c *ServiceDiscovery) GetInstanceRequest(input *GetInstanceInput) (req *req // See the AWS API reference guide for AWS Cloud Map's // API operation GetInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNotFound "InstanceNotFound" +// Returned Error Types: +// * InstanceNotFound // No instance exists with the specified ID, or the instance was recently registered, // and information about the instance hasn't propagated yet. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetInstance @@ -927,17 +927,17 @@ func (c *ServiceDiscovery) GetInstancesHealthStatusRequest(input *GetInstancesHe // See the AWS API reference guide for AWS Cloud Map's // API operation GetInstancesHealthStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNotFound "InstanceNotFound" +// Returned Error Types: +// * InstanceNotFound // No instance exists with the specified ID, or the instance was recently registered, // and information about the instance hasn't propagated yet. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetInstancesHealthStatus @@ -1067,13 +1067,13 @@ func (c *ServiceDiscovery) GetNamespaceRequest(input *GetNamespaceInput) (req *r // See the AWS API reference guide for AWS Cloud Map's // API operation GetNamespace for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeNamespaceNotFound "NamespaceNotFound" +// * NamespaceNotFound // No namespace exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetNamespace @@ -1154,13 +1154,13 @@ func (c *ServiceDiscovery) GetOperationRequest(input *GetOperationInput) (req *r // See the AWS API reference guide for AWS Cloud Map's // API operation GetOperation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeOperationNotFound "OperationNotFound" +// * OperationNotFound // No operation exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetOperation @@ -1238,13 +1238,13 @@ func (c *ServiceDiscovery) GetServiceRequest(input *GetServiceInput) (req *reque // See the AWS API reference guide for AWS Cloud Map's // API operation GetService for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/GetService @@ -1329,11 +1329,11 @@ func (c *ServiceDiscovery) ListInstancesRequest(input *ListInstancesInput) (req // See the AWS API reference guide for AWS Cloud Map's // API operation ListInstances for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceNotFound "ServiceNotFound" +// Returned Error Types: +// * ServiceNotFound // No service exists with the specified ID. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. @@ -1472,8 +1472,8 @@ func (c *ServiceDiscovery) ListNamespacesRequest(input *ListNamespacesInput) (re // See the AWS API reference guide for AWS Cloud Map's // API operation ListNamespaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. @@ -1611,8 +1611,8 @@ func (c *ServiceDiscovery) ListOperationsRequest(input *ListOperationsInput) (re // See the AWS API reference guide for AWS Cloud Map's // API operation ListOperations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. @@ -1751,8 +1751,8 @@ func (c *ServiceDiscovery) ListServicesRequest(input *ListServicesInput) (req *r // See the AWS API reference guide for AWS Cloud Map's // API operation ListServices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInput "InvalidInput" +// Returned Error Types: +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. @@ -1916,24 +1916,24 @@ func (c *ServiceDiscovery) RegisterInstanceRequest(input *RegisterInstanceInput) // See the AWS API reference guide for AWS Cloud Map's // API operation RegisterInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateRequest "DuplicateRequest" +// Returned Error Types: +// * DuplicateRequest // The operation is already in progress. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeResourceInUse "ResourceInUse" +// * ResourceInUse // The specified resource can't be deleted because it contains other resources. // For example, you can't delete a service that contains any instances. // -// * ErrCodeResourceLimitExceeded "ResourceLimitExceeded" +// * ResourceLimitExceeded // The resource can't be created because you've reached the limit on the number // of resources. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/RegisterInstance @@ -2020,19 +2020,19 @@ func (c *ServiceDiscovery) UpdateInstanceCustomHealthStatusRequest(input *Update // See the AWS API reference guide for AWS Cloud Map's // API operation UpdateInstanceCustomHealthStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInstanceNotFound "InstanceNotFound" +// Returned Error Types: +// * InstanceNotFound // No instance exists with the specified ID, or the instance was recently registered, // and information about the instance hasn't propagated yet. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // -// * ErrCodeCustomHealthNotFound "CustomHealthNotFound" +// * CustomHealthNotFound // The health check for the instance that is specified by ServiceId and InstanceId // is not a custom health check. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. @@ -2127,16 +2127,16 @@ func (c *ServiceDiscovery) UpdateServiceRequest(input *UpdateServiceInput) (req // See the AWS API reference guide for AWS Cloud Map's // API operation UpdateService for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateRequest "DuplicateRequest" +// Returned Error Types: +// * DuplicateRequest // The operation is already in progress. // -// * ErrCodeInvalidInput "InvalidInput" +// * InvalidInput // One or more specified values aren't valid. For example, a required value // might be missing, a numeric value might be outside the allowed range, or // a string value might exceed length constraints. // -// * ErrCodeServiceNotFound "ServiceNotFound" +// * ServiceNotFound // No service exists with the specified ID. // // See also, https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateService @@ -2569,6 +2569,63 @@ func (s *CreateServiceOutput) SetService(v *Service) *CreateServiceOutput { return s } +// The health check for the instance that is specified by ServiceId and InstanceId +// is not a custom health check. +type CustomHealthNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CustomHealthNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomHealthNotFound) GoString() string { + return s.String() +} + +func newErrorCustomHealthNotFound(v protocol.ResponseMetadata) error { + return &CustomHealthNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CustomHealthNotFound) Code() string { + return "CustomHealthNotFound" +} + +// Message returns the exception's message. +func (s CustomHealthNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomHealthNotFound) OrigErr() error { + return nil +} + +func (s CustomHealthNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomHealthNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomHealthNotFound) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteNamespaceInput struct { _ struct{} `type:"structure"` @@ -3189,6 +3246,65 @@ func (s *DnsRecord) SetType(v string) *DnsRecord { return s } +// The operation is already in progress. +type DuplicateRequest struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The ID of the operation that is already in progress. + DuplicateOperationId *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateRequest) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateRequest) GoString() string { + return s.String() +} + +func newErrorDuplicateRequest(v protocol.ResponseMetadata) error { + return &DuplicateRequest{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateRequest) Code() string { + return "DuplicateRequest" +} + +// Message returns the exception's message. +func (s DuplicateRequest) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateRequest) OrigErr() error { + return nil +} + +func (s DuplicateRequest) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateRequest) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateRequest) RequestID() string { + return s.respMetadata.RequestID +} + type GetInstanceInput struct { _ struct{} `type:"structure"` @@ -4032,6 +4148,63 @@ func (s *Instance) SetId(v string) *Instance { return s } +// No instance exists with the specified ID, or the instance was recently registered, +// and information about the instance hasn't propagated yet. +type InstanceNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InstanceNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceNotFound) GoString() string { + return s.String() +} + +func newErrorInstanceNotFound(v protocol.ResponseMetadata) error { + return &InstanceNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InstanceNotFound) Code() string { + return "InstanceNotFound" +} + +// Message returns the exception's message. +func (s InstanceNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InstanceNotFound) OrigErr() error { + return nil +} + +func (s InstanceNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InstanceNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InstanceNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type that contains information about the instances that you registered // by using a specified service. type InstanceSummary struct { @@ -4089,6 +4262,64 @@ func (s *InstanceSummary) SetId(v string) *InstanceSummary { return s } +// One or more specified values aren't valid. For example, a required value +// might be missing, a numeric value might be outside the allowed range, or +// a string value might exceed length constraints. +type InvalidInput struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInput) GoString() string { + return s.String() +} + +func newErrorInvalidInput(v protocol.ResponseMetadata) error { + return &InvalidInput{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInput) Code() string { + return "InvalidInput" +} + +// Message returns the exception's message. +func (s InvalidInput) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInput) OrigErr() error { + return nil +} + +func (s InvalidInput) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInput) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInput) RequestID() string { + return s.respMetadata.RequestID +} + type ListInstancesInput struct { _ struct{} `type:"structure"` @@ -4648,6 +4879,68 @@ func (s *Namespace) SetType(v string) *Namespace { return s } +// The namespace that you're trying to create already exists. +type NamespaceAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The CreatorRequestId that was used to create the namespace. + CreatorRequestId *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The ID of the existing namespace. + NamespaceId *string `type:"string"` +} + +// String returns the string representation +func (s NamespaceAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NamespaceAlreadyExists) GoString() string { + return s.String() +} + +func newErrorNamespaceAlreadyExists(v protocol.ResponseMetadata) error { + return &NamespaceAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NamespaceAlreadyExists) Code() string { + return "NamespaceAlreadyExists" +} + +// Message returns the exception's message. +func (s NamespaceAlreadyExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NamespaceAlreadyExists) OrigErr() error { + return nil +} + +func (s NamespaceAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NamespaceAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NamespaceAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type that identifies the namespaces that you want to list. You // can choose to list public or private namespaces. type NamespaceFilter struct { @@ -4724,6 +5017,62 @@ func (s *NamespaceFilter) SetValues(v []*string) *NamespaceFilter { return s } +// No namespace exists with the specified ID. +type NamespaceNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NamespaceNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NamespaceNotFound) GoString() string { + return s.String() +} + +func newErrorNamespaceNotFound(v protocol.ResponseMetadata) error { + return &NamespaceNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NamespaceNotFound) Code() string { + return "NamespaceNotFound" +} + +// Message returns the exception's message. +func (s NamespaceNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NamespaceNotFound) OrigErr() error { + return nil +} + +func (s NamespaceNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NamespaceNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NamespaceNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type that contains information that is specific to the namespace // type. type NamespaceProperties struct { @@ -5072,6 +5421,62 @@ func (s *OperationFilter) SetValues(v []*string) *OperationFilter { return s } +// No operation exists with the specified ID. +type OperationNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OperationNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotFound) GoString() string { + return s.String() +} + +func newErrorOperationNotFound(v protocol.ResponseMetadata) error { + return &OperationNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotFound) Code() string { + return "OperationNotFound" +} + +// Message returns the exception's message. +func (s OperationNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotFound) OrigErr() error { + return nil +} + +func (s OperationNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type that contains information about an operation that matches // the criteria that you specified in a ListOperations request. type OperationSummary struct { @@ -5317,6 +5722,120 @@ func (s *RegisterInstanceOutput) SetOperationId(v string) *RegisterInstanceOutpu return s } +// The specified resource can't be deleted because it contains other resources. +// For example, you can't delete a service that contains any instances. +type ResourceInUse struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUse) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUse) GoString() string { + return s.String() +} + +func newErrorResourceInUse(v protocol.ResponseMetadata) error { + return &ResourceInUse{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUse) Code() string { + return "ResourceInUse" +} + +// Message returns the exception's message. +func (s ResourceInUse) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUse) OrigErr() error { + return nil +} + +func (s ResourceInUse) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUse) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUse) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource can't be created because you've reached the limit on the number +// of resources. +type ResourceLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceeded) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceeded(v protocol.ResponseMetadata) error { + return &ResourceLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceeded) Code() string { + return "ResourceLimitExceeded" +} + +// Message returns the exception's message. +func (s ResourceLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceeded) OrigErr() error { + return nil +} + +func (s ResourceLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type that contains information about the specified service. type Service struct { _ struct{} `type:"structure"` @@ -5449,6 +5968,69 @@ func (s *Service) SetNamespaceId(v string) *Service { return s } +// The service can't be created because a service with the same name already +// exists. +type ServiceAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The CreatorRequestId that was used to create the service. + CreatorRequestId *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + // The ID of the existing service. + ServiceId *string `type:"string"` +} + +// String returns the string representation +func (s ServiceAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceAlreadyExists) GoString() string { + return s.String() +} + +func newErrorServiceAlreadyExists(v protocol.ResponseMetadata) error { + return &ServiceAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceAlreadyExists) Code() string { + return "ServiceAlreadyExists" +} + +// Message returns the exception's message. +func (s ServiceAlreadyExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceAlreadyExists) OrigErr() error { + return nil +} + +func (s ServiceAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type that contains changes to an existing service. type ServiceChange struct { _ struct{} `type:"structure"` @@ -5647,6 +6229,62 @@ func (s *ServiceFilter) SetValues(v []*string) *ServiceFilter { return s } +// No service exists with the specified ID. +type ServiceNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceNotFound) GoString() string { + return s.String() +} + +func newErrorServiceNotFound(v protocol.ResponseMetadata) error { + return &ServiceNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceNotFound) Code() string { + return "ServiceNotFound" +} + +// Message returns the exception's message. +func (s ServiceNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceNotFound) OrigErr() error { + return nil +} + +func (s ServiceNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // A complex type that contains information about a specified service. type ServiceSummary struct { _ struct{} `type:"structure"` diff --git a/service/servicediscovery/errors.go b/service/servicediscovery/errors.go index 0238a42ba47..0e4e0085797 100644 --- a/service/servicediscovery/errors.go +++ b/service/servicediscovery/errors.go @@ -2,6 +2,10 @@ package servicediscovery +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeCustomHealthNotFound for service response error code @@ -77,3 +81,17 @@ const ( // No service exists with the specified ID. ErrCodeServiceNotFound = "ServiceNotFound" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "CustomHealthNotFound": newErrorCustomHealthNotFound, + "DuplicateRequest": newErrorDuplicateRequest, + "InstanceNotFound": newErrorInstanceNotFound, + "InvalidInput": newErrorInvalidInput, + "NamespaceAlreadyExists": newErrorNamespaceAlreadyExists, + "NamespaceNotFound": newErrorNamespaceNotFound, + "OperationNotFound": newErrorOperationNotFound, + "ResourceInUse": newErrorResourceInUse, + "ResourceLimitExceeded": newErrorResourceLimitExceeded, + "ServiceAlreadyExists": newErrorServiceAlreadyExists, + "ServiceNotFound": newErrorServiceNotFound, +} diff --git a/service/servicediscovery/service.go b/service/servicediscovery/service.go index 6588f3268ec..eee9f932853 100644 --- a/service/servicediscovery/service.go +++ b/service/servicediscovery/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/servicequotas/api.go b/service/servicequotas/api.go index efc3cf18659..e1df5bbc1b9 100644 --- a/service/servicequotas/api.go +++ b/service/servicequotas/api.go @@ -3,6 +3,7 @@ package servicequotas import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -71,33 +72,33 @@ func (c *ServiceQuotas) AssociateServiceQuotaTemplateRequest(input *AssociateSer // See the AWS API reference guide for Service Quotas's // API operation AssociateServiceQuotaTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// Returned Error Types: +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // -// * ErrCodeAWSServiceAccessNotEnabledException "AWSServiceAccessNotEnabledException" +// * AWSServiceAccessNotEnabledException // The action you attempted is not allowed unless Service Access with Service // Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. // -// * ErrCodeOrganizationNotInAllFeaturesModeException "OrganizationNotInAllFeaturesModeException" +// * OrganizationNotInAllFeaturesModeException // The organization that your account belongs to, is not in All Features mode. // To enable all features mode, see EnableAllFeatures (https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAllFeatures.html). // -// * ErrCodeTemplatesNotAvailableInRegionException "TemplatesNotAvailableInRegionException" +// * TemplatesNotAvailableInRegionException // The Service Quotas template is not available in the Region where you are // making the request. Please make the request in us-east-1. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // The account making this call is not a member of an organization. // // See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/AssociateServiceQuotaTemplate @@ -176,35 +177,35 @@ func (c *ServiceQuotas) DeleteServiceQuotaIncreaseRequestFromTemplateRequest(inp // See the AWS API reference guide for Service Quotas's // API operation DeleteServiceQuotaIncreaseRequestFromTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeAWSServiceAccessNotEnabledException "AWSServiceAccessNotEnabledException" +// * AWSServiceAccessNotEnabledException // The action you attempted is not allowed unless Service Access with Service // Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. // -// * ErrCodeTemplatesNotAvailableInRegionException "TemplatesNotAvailableInRegionException" +// * TemplatesNotAvailableInRegionException // The Service Quotas template is not available in the Region where you are // making the request. Please make the request in us-east-1. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // The account making this call is not a member of an organization. // // See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DeleteServiceQuotaIncreaseRequestFromTemplate @@ -291,34 +292,34 @@ func (c *ServiceQuotas) DisassociateServiceQuotaTemplateRequest(input *Disassoci // See the AWS API reference guide for Service Quotas's // API operation DisassociateServiceQuotaTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// Returned Error Types: +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeServiceQuotaTemplateNotInUseException "ServiceQuotaTemplateNotInUseException" +// * ServiceQuotaTemplateNotInUseException // The quota request template is not associated with your organization. // // To use the template, call AssociateServiceQuotaTemplate. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // -// * ErrCodeAWSServiceAccessNotEnabledException "AWSServiceAccessNotEnabledException" +// * AWSServiceAccessNotEnabledException // The action you attempted is not allowed unless Service Access with Service // Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. // -// * ErrCodeTemplatesNotAvailableInRegionException "TemplatesNotAvailableInRegionException" +// * TemplatesNotAvailableInRegionException // The Service Quotas template is not available in the Region where you are // making the request. Please make the request in us-east-1. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // The account making this call is not a member of an organization. // // See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/DisassociateServiceQuotaTemplate @@ -397,20 +398,20 @@ func (c *ServiceQuotas) GetAWSDefaultServiceQuotaRequest(input *GetAWSDefaultSer // See the AWS API reference guide for Service Quotas's // API operation GetAWSDefaultServiceQuota for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -491,34 +492,34 @@ func (c *ServiceQuotas) GetAssociationForServiceQuotaTemplateRequest(input *GetA // See the AWS API reference guide for Service Quotas's // API operation GetAssociationForServiceQuotaTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// Returned Error Types: +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeServiceQuotaTemplateNotInUseException "ServiceQuotaTemplateNotInUseException" +// * ServiceQuotaTemplateNotInUseException // The quota request template is not associated with your organization. // // To use the template, call AssociateServiceQuotaTemplate. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // -// * ErrCodeAWSServiceAccessNotEnabledException "AWSServiceAccessNotEnabledException" +// * AWSServiceAccessNotEnabledException // The action you attempted is not allowed unless Service Access with Service // Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. // -// * ErrCodeTemplatesNotAvailableInRegionException "TemplatesNotAvailableInRegionException" +// * TemplatesNotAvailableInRegionException // The Service Quotas template is not available in the Region where you are // making the request. Please make the request in us-east-1. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // The account making this call is not a member of an organization. // // See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetAssociationForServiceQuotaTemplate @@ -596,20 +597,20 @@ func (c *ServiceQuotas) GetRequestedServiceQuotaChangeRequest(input *GetRequeste // See the AWS API reference guide for Service Quotas's // API operation GetRequestedServiceQuotaChange for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -691,20 +692,20 @@ func (c *ServiceQuotas) GetServiceQuotaRequest(input *GetServiceQuotaInput) (req // See the AWS API reference guide for Service Quotas's // API operation GetServiceQuota for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -783,35 +784,35 @@ func (c *ServiceQuotas) GetServiceQuotaIncreaseRequestFromTemplateRequest(input // See the AWS API reference guide for Service Quotas's // API operation GetServiceQuotaIncreaseRequestFromTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeAWSServiceAccessNotEnabledException "AWSServiceAccessNotEnabledException" +// * AWSServiceAccessNotEnabledException // The action you attempted is not allowed unless Service Access with Service // Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. // -// * ErrCodeTemplatesNotAvailableInRegionException "TemplatesNotAvailableInRegionException" +// * TemplatesNotAvailableInRegionException // The Service Quotas template is not available in the Region where you are // making the request. Please make the request in us-east-1. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // The account making this call is not a member of an organization. // // See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/GetServiceQuotaIncreaseRequestFromTemplate @@ -906,23 +907,23 @@ func (c *ServiceQuotas) ListAWSDefaultServiceQuotasRequest(input *ListAWSDefault // See the AWS API reference guide for Service Quotas's // API operation ListAWSDefaultServiceQuotas for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -1059,23 +1060,23 @@ func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryRequest(input *Lis // See the AWS API reference guide for Service Quotas's // API operation ListRequestedServiceQuotaChangeHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -1215,23 +1216,23 @@ func (c *ServiceQuotas) ListRequestedServiceQuotaChangeHistoryByQuotaRequest(inp // See the AWS API reference guide for Service Quotas's // API operation ListRequestedServiceQuotaChangeHistoryByQuota for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -1368,32 +1369,32 @@ func (c *ServiceQuotas) ListServiceQuotaIncreaseRequestsInTemplateRequest(input // See the AWS API reference guide for Service Quotas's // API operation ListServiceQuotaIncreaseRequestsInTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeAWSServiceAccessNotEnabledException "AWSServiceAccessNotEnabledException" +// * AWSServiceAccessNotEnabledException // The action you attempted is not allowed unless Service Access with Service // Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. // -// * ErrCodeTemplatesNotAvailableInRegionException "TemplatesNotAvailableInRegionException" +// * TemplatesNotAvailableInRegionException // The Service Quotas template is not available in the Region where you are // making the request. Please make the request in us-east-1. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // The account making this call is not a member of an organization. // // See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/ListServiceQuotaIncreaseRequestsInTemplate @@ -1537,23 +1538,23 @@ func (c *ServiceQuotas) ListServiceQuotasRequest(input *ListServiceQuotasInput) // See the AWS API reference guide for Service Quotas's // API operation ListServiceQuotas for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -1692,20 +1693,20 @@ func (c *ServiceQuotas) ListServicesRequest(input *ListServicesInput) (req *requ // See the AWS API reference guide for Service Quotas's // API operation ListServices for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Invalid input was provided. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -1839,40 +1840,40 @@ func (c *ServiceQuotas) PutServiceQuotaIncreaseRequestIntoTemplateRequest(input // See the AWS API reference guide for Service Quotas's // API operation PutServiceQuotaIncreaseRequestIntoTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeQuotaExceededException "QuotaExceededException" +// * QuotaExceededException // You have exceeded your service quota. To perform the requested action, remove // some of the relevant resources, or use Service Quotas to request a service // quota increase. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeAWSServiceAccessNotEnabledException "AWSServiceAccessNotEnabledException" +// * AWSServiceAccessNotEnabledException // The action you attempted is not allowed unless Service Access with Service // Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. // -// * ErrCodeTemplatesNotAvailableInRegionException "TemplatesNotAvailableInRegionException" +// * TemplatesNotAvailableInRegionException // The Service Quotas template is not available in the Region where you are // making the request. Please make the request in us-east-1. // -// * ErrCodeNoAvailableOrganizationException "NoAvailableOrganizationException" +// * NoAvailableOrganizationException // The account making this call is not a member of an organization. // // See also, https://docs.aws.amazon.com/goto/WebAPI/service-quotas-2019-06-24/PutServiceQuotaIncreaseRequestIntoTemplate @@ -1951,34 +1952,34 @@ func (c *ServiceQuotas) RequestServiceQuotaIncreaseRequest(input *RequestService // See the AWS API reference guide for Service Quotas's // API operation RequestServiceQuotaIncrease for usage and error information. // -// Returned Error Codes: -// * ErrCodeDependencyAccessDeniedException "DependencyAccessDeniedException" +// Returned Error Types: +// * DependencyAccessDeniedException // You can't perform this action because a dependency does not have access. // -// * ErrCodeQuotaExceededException "QuotaExceededException" +// * QuotaExceededException // You have exceeded your service quota. To perform the requested action, remove // some of the relevant resources, or use Service Quotas to request a service // quota increase. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeNoSuchResourceException "NoSuchResourceException" +// * NoSuchResourceException // The specified resource does not exist. // -// * ErrCodeIllegalArgumentException "IllegalArgumentException" +// * IllegalArgumentException // Invalid input was provided. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // Invalid input was provided for the . // -// * ErrCodeServiceException "ServiceException" +// * ServiceException // Something went wrong. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Due to throttling, the request was denied. Slow down the rate of request // calls, or request an increase for this quota. // @@ -2004,6 +2005,119 @@ func (c *ServiceQuotas) RequestServiceQuotaIncreaseWithContext(ctx aws.Context, return out, req.Send() } +// The action you attempted is not allowed unless Service Access with Service +// Quotas is enabled in your organization. To enable, call AssociateServiceQuotaTemplate. +type AWSServiceAccessNotEnabledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AWSServiceAccessNotEnabledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AWSServiceAccessNotEnabledException) GoString() string { + return s.String() +} + +func newErrorAWSServiceAccessNotEnabledException(v protocol.ResponseMetadata) error { + return &AWSServiceAccessNotEnabledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AWSServiceAccessNotEnabledException) Code() string { + return "AWSServiceAccessNotEnabledException" +} + +// Message returns the exception's message. +func (s AWSServiceAccessNotEnabledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AWSServiceAccessNotEnabledException) OrigErr() error { + return nil +} + +func (s AWSServiceAccessNotEnabledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AWSServiceAccessNotEnabledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AWSServiceAccessNotEnabledException) RequestID() string { + return s.respMetadata.RequestID +} + +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AssociateServiceQuotaTemplateInput struct { _ struct{} `type:"structure"` } @@ -2121,6 +2235,62 @@ func (s DeleteServiceQuotaIncreaseRequestFromTemplateOutput) GoString() string { return s.String() } +// You can't perform this action because a dependency does not have access. +type DependencyAccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DependencyAccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DependencyAccessDeniedException) GoString() string { + return s.String() +} + +func newErrorDependencyAccessDeniedException(v protocol.ResponseMetadata) error { + return &DependencyAccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DependencyAccessDeniedException) Code() string { + return "DependencyAccessDeniedException" +} + +// Message returns the exception's message. +func (s DependencyAccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DependencyAccessDeniedException) OrigErr() error { + return nil +} + +func (s DependencyAccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DependencyAccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DependencyAccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type DisassociateServiceQuotaTemplateInput struct { _ struct{} `type:"structure"` } @@ -2559,6 +2729,174 @@ func (s *GetServiceQuotaOutput) SetQuota(v *ServiceQuota) *GetServiceQuotaOutput return s } +// Invalid input was provided. +type IllegalArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IllegalArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IllegalArgumentException) GoString() string { + return s.String() +} + +func newErrorIllegalArgumentException(v protocol.ResponseMetadata) error { + return &IllegalArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IllegalArgumentException) Code() string { + return "IllegalArgumentException" +} + +// Message returns the exception's message. +func (s IllegalArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IllegalArgumentException) OrigErr() error { + return nil +} + +func (s IllegalArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IllegalArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IllegalArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// Invalid input was provided. +type InvalidPaginationTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidPaginationTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPaginationTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error { + return &InvalidPaginationTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPaginationTokenException) Code() string { + return "InvalidPaginationTokenException" +} + +// Message returns the exception's message. +func (s InvalidPaginationTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPaginationTokenException) OrigErr() error { + return nil +} + +func (s InvalidPaginationTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPaginationTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPaginationTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// Invalid input was provided for the . +type InvalidResourceStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidResourceStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceStateException) GoString() string { + return s.String() +} + +func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error { + return &InvalidResourceStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceStateException) Code() string { + return "InvalidResourceStateException" +} + +// Message returns the exception's message. +func (s InvalidResourceStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceStateException) OrigErr() error { + return nil +} + +func (s InvalidResourceStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceStateException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAWSDefaultServiceQuotasInput struct { _ struct{} `type:"structure"` @@ -3298,6 +3636,175 @@ func (s *MetricInfo) SetMetricStatisticRecommendation(v string) *MetricInfo { return s } +// The account making this call is not a member of an organization. +type NoAvailableOrganizationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NoAvailableOrganizationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoAvailableOrganizationException) GoString() string { + return s.String() +} + +func newErrorNoAvailableOrganizationException(v protocol.ResponseMetadata) error { + return &NoAvailableOrganizationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoAvailableOrganizationException) Code() string { + return "NoAvailableOrganizationException" +} + +// Message returns the exception's message. +func (s NoAvailableOrganizationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoAvailableOrganizationException) OrigErr() error { + return nil +} + +func (s NoAvailableOrganizationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoAvailableOrganizationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoAvailableOrganizationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource does not exist. +type NoSuchResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NoSuchResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoSuchResourceException) GoString() string { + return s.String() +} + +func newErrorNoSuchResourceException(v protocol.ResponseMetadata) error { + return &NoSuchResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoSuchResourceException) Code() string { + return "NoSuchResourceException" +} + +// Message returns the exception's message. +func (s NoSuchResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoSuchResourceException) OrigErr() error { + return nil +} + +func (s NoSuchResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoSuchResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoSuchResourceException) RequestID() string { + return s.respMetadata.RequestID +} + +// The organization that your account belongs to, is not in All Features mode. +// To enable all features mode, see EnableAllFeatures (https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAllFeatures.html). +type OrganizationNotInAllFeaturesModeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OrganizationNotInAllFeaturesModeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationNotInAllFeaturesModeException) GoString() string { + return s.String() +} + +func newErrorOrganizationNotInAllFeaturesModeException(v protocol.ResponseMetadata) error { + return &OrganizationNotInAllFeaturesModeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationNotInAllFeaturesModeException) Code() string { + return "OrganizationNotInAllFeaturesModeException" +} + +// Message returns the exception's message. +func (s OrganizationNotInAllFeaturesModeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationNotInAllFeaturesModeException) OrigErr() error { + return nil +} + +func (s OrganizationNotInAllFeaturesModeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationNotInAllFeaturesModeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationNotInAllFeaturesModeException) RequestID() string { + return s.respMetadata.RequestID +} + type PutServiceQuotaIncreaseRequestIntoTemplateInput struct { _ struct{} `type:"structure"` @@ -3410,6 +3917,64 @@ func (s *PutServiceQuotaIncreaseRequestIntoTemplateOutput) SetServiceQuotaIncrea return s } +// You have exceeded your service quota. To perform the requested action, remove +// some of the relevant resources, or use Service Quotas to request a service +// quota increase. +type QuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s QuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s QuotaExceededException) GoString() string { + return s.String() +} + +func newErrorQuotaExceededException(v protocol.ResponseMetadata) error { + return &QuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s QuotaExceededException) Code() string { + return "QuotaExceededException" +} + +// Message returns the exception's message. +func (s QuotaExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s QuotaExceededException) OrigErr() error { + return nil +} + +func (s QuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s QuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s QuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // A structure that contains information about the quota period. type QuotaPeriod struct { _ struct{} `type:"structure"` @@ -3681,6 +4246,118 @@ func (s *RequestedServiceQuotaChange) SetUnit(v string) *RequestedServiceQuotaCh return s } +// The specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Something went wrong. +type ServiceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceException) GoString() string { + return s.String() +} + +func newErrorServiceException(v protocol.ResponseMetadata) error { + return &ServiceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceException) Code() string { + return "ServiceException" +} + +// Message returns the exception's message. +func (s ServiceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceException) OrigErr() error { + return nil +} + +func (s ServiceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceException) RequestID() string { + return s.respMetadata.RequestID +} + // A structure that contains the ServiceName and ServiceCode. It does not include // all details of the service quota. To get those values, use the ListServiceQuotas // operation. @@ -3928,6 +4605,178 @@ func (s *ServiceQuotaIncreaseRequestInTemplate) SetUnit(v string) *ServiceQuotaI return s } +// The quota request template is not associated with your organization. +// +// To use the template, call AssociateServiceQuotaTemplate. +type ServiceQuotaTemplateNotInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceQuotaTemplateNotInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceQuotaTemplateNotInUseException) GoString() string { + return s.String() +} + +func newErrorServiceQuotaTemplateNotInUseException(v protocol.ResponseMetadata) error { + return &ServiceQuotaTemplateNotInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceQuotaTemplateNotInUseException) Code() string { + return "ServiceQuotaTemplateNotInUseException" +} + +// Message returns the exception's message. +func (s ServiceQuotaTemplateNotInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceQuotaTemplateNotInUseException) OrigErr() error { + return nil +} + +func (s ServiceQuotaTemplateNotInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceQuotaTemplateNotInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceQuotaTemplateNotInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Service Quotas template is not available in the Region where you are +// making the request. Please make the request in us-east-1. +type TemplatesNotAvailableInRegionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TemplatesNotAvailableInRegionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TemplatesNotAvailableInRegionException) GoString() string { + return s.String() +} + +func newErrorTemplatesNotAvailableInRegionException(v protocol.ResponseMetadata) error { + return &TemplatesNotAvailableInRegionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TemplatesNotAvailableInRegionException) Code() string { + return "TemplatesNotAvailableInRegionException" +} + +// Message returns the exception's message. +func (s TemplatesNotAvailableInRegionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TemplatesNotAvailableInRegionException) OrigErr() error { + return nil +} + +func (s TemplatesNotAvailableInRegionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TemplatesNotAvailableInRegionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TemplatesNotAvailableInRegionException) RequestID() string { + return s.respMetadata.RequestID +} + +// Due to throttling, the request was denied. Slow down the rate of request +// calls, or request an increase for this quota. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ErrorCodeDependencyAccessDeniedError is a ErrorCode enum value ErrorCodeDependencyAccessDeniedError = "DEPENDENCY_ACCESS_DENIED_ERROR" diff --git a/service/servicequotas/errors.go b/service/servicequotas/errors.go index 6afc7a200bc..664f268e1e9 100644 --- a/service/servicequotas/errors.go +++ b/service/servicequotas/errors.go @@ -2,6 +2,10 @@ package servicequotas +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAWSServiceAccessNotEnabledException for service response error code @@ -102,3 +106,21 @@ const ( // calls, or request an increase for this quota. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AWSServiceAccessNotEnabledException": newErrorAWSServiceAccessNotEnabledException, + "AccessDeniedException": newErrorAccessDeniedException, + "DependencyAccessDeniedException": newErrorDependencyAccessDeniedException, + "IllegalArgumentException": newErrorIllegalArgumentException, + "InvalidPaginationTokenException": newErrorInvalidPaginationTokenException, + "InvalidResourceStateException": newErrorInvalidResourceStateException, + "NoAvailableOrganizationException": newErrorNoAvailableOrganizationException, + "NoSuchResourceException": newErrorNoSuchResourceException, + "OrganizationNotInAllFeaturesModeException": newErrorOrganizationNotInAllFeaturesModeException, + "QuotaExceededException": newErrorQuotaExceededException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ServiceException": newErrorServiceException, + "ServiceQuotaTemplateNotInUseException": newErrorServiceQuotaTemplateNotInUseException, + "TemplatesNotAvailableInRegionException": newErrorTemplatesNotAvailableInRegionException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/servicequotas/service.go b/service/servicequotas/service.go index a541522140c..4020a5393ba 100644 --- a/service/servicequotas/service.go +++ b/service/servicequotas/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/sesv2/api.go b/service/sesv2/api.go index 663bee2774b..ffeaa215073 100644 --- a/service/sesv2/api.go +++ b/service/sesv2/api.go @@ -71,23 +71,23 @@ func (c *SESV2) CreateConfigurationSetRequest(input *CreateConfigurationSetInput // See the AWS API reference guide for Amazon Simple Email Service's // API operation CreateConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateConfigurationSet @@ -173,20 +173,20 @@ func (c *SESV2) CreateConfigurationSetEventDestinationRequest(input *CreateConfi // See the AWS API reference guide for Amazon Simple Email Service's // API operation CreateConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateConfigurationSetEventDestination @@ -269,20 +269,20 @@ func (c *SESV2) CreateDedicatedIpPoolRequest(input *CreateDedicatedIpPoolInput) // See the AWS API reference guide for Amazon Simple Email Service's // API operation CreateDedicatedIpPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateDedicatedIpPool @@ -367,34 +367,34 @@ func (c *SESV2) CreateDeliverabilityTestReportRequest(input *CreateDeliverabilit // See the AWS API reference guide for Amazon Simple Email Service's // API operation CreateDeliverabilityTestReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccountSuspendedException "AccountSuspendedException" +// Returned Error Types: +// * AccountSuspendedException // The message can't be sent because the account's ability to send email has // been permanently restricted. // -// * ErrCodeSendingPausedException "SendingPausedException" +// * SendingPausedException // The message can't be sent because the account's ability to send email is // currently paused. // -// * ErrCodeMessageRejected "MessageRejected" +// * MessageRejected // The message can't be sent because it contains invalid content. // -// * ErrCodeMailFromDomainNotVerifiedException "MailFromDomainNotVerifiedException" +// * MailFromDomainNotVerifiedException // The message can't be sent because the sending domain isn't verified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateDeliverabilityTestReport @@ -495,20 +495,20 @@ func (c *SESV2) CreateEmailIdentityRequest(input *CreateEmailIdentityInput) (req // See the AWS API reference guide for Amazon Simple Email Service's // API operation CreateEmailIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/CreateEmailIdentity @@ -593,17 +593,17 @@ func (c *SESV2) DeleteConfigurationSetRequest(input *DeleteConfigurationSetInput // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/DeleteConfigurationSet @@ -688,14 +688,14 @@ func (c *SESV2) DeleteConfigurationSetEventDestinationRequest(input *DeleteConfi // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/DeleteConfigurationSetEventDestination @@ -774,17 +774,17 @@ func (c *SESV2) DeleteDedicatedIpPoolRequest(input *DeleteDedicatedIpPoolInput) // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteDedicatedIpPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/DeleteDedicatedIpPool @@ -864,17 +864,17 @@ func (c *SESV2) DeleteEmailIdentityRequest(input *DeleteEmailIdentityInput) (req // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteEmailIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/DeleteEmailIdentity @@ -953,14 +953,14 @@ func (c *SESV2) DeleteSuppressedDestinationRequest(input *DeleteSuppressedDestin // See the AWS API reference guide for Amazon Simple Email Service's // API operation DeleteSuppressedDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/DeleteSuppressedDestination @@ -1039,11 +1039,11 @@ func (c *SESV2) GetAccountRequest(input *GetAccountInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetAccount @@ -1122,14 +1122,14 @@ func (c *SESV2) GetBlacklistReportsRequest(input *GetBlacklistReportsInput) (req // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetBlacklistReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetBlacklistReports @@ -1215,14 +1215,14 @@ func (c *SESV2) GetConfigurationSetRequest(input *GetConfigurationSetInput) (req // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetConfigurationSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetConfigurationSet @@ -1307,14 +1307,14 @@ func (c *SESV2) GetConfigurationSetEventDestinationsRequest(input *GetConfigurat // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetConfigurationSetEventDestinations for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetConfigurationSetEventDestinations @@ -1394,14 +1394,14 @@ func (c *SESV2) GetDedicatedIpRequest(input *GetDedicatedIpInput) (req *request. // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetDedicatedIp for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetDedicatedIp @@ -1485,14 +1485,14 @@ func (c *SESV2) GetDedicatedIpsRequest(input *GetDedicatedIpsInput) (req *reques // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetDedicatedIps for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetDedicatedIps @@ -1631,14 +1631,14 @@ func (c *SESV2) GetDeliverabilityDashboardOptionsRequest(input *GetDeliverabilit // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetDeliverabilityDashboardOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetDeliverabilityDashboardOptions @@ -1716,14 +1716,14 @@ func (c *SESV2) GetDeliverabilityTestReportRequest(input *GetDeliverabilityTestR // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetDeliverabilityTestReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetDeliverabilityTestReport @@ -1803,14 +1803,14 @@ func (c *SESV2) GetDomainDeliverabilityCampaignRequest(input *GetDomainDeliverab // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetDomainDeliverabilityCampaign for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetDomainDeliverabilityCampaign @@ -1889,14 +1889,14 @@ func (c *SESV2) GetDomainStatisticsReportRequest(input *GetDomainStatisticsRepor // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetDomainStatisticsReport for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetDomainStatisticsReport @@ -1976,14 +1976,14 @@ func (c *SESV2) GetEmailIdentityRequest(input *GetEmailIdentityInput) (req *requ // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetEmailIdentity for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetEmailIdentity @@ -2062,14 +2062,14 @@ func (c *SESV2) GetSuppressedDestinationRequest(input *GetSuppressedDestinationI // See the AWS API reference guide for Amazon Simple Email Service's // API operation GetSuppressedDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/GetSuppressedDestination @@ -2160,11 +2160,11 @@ func (c *SESV2) ListConfigurationSetsRequest(input *ListConfigurationSetsInput) // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListConfigurationSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListConfigurationSets @@ -2301,11 +2301,11 @@ func (c *SESV2) ListDedicatedIpPoolsRequest(input *ListDedicatedIpPoolsInput) (r // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListDedicatedIpPools for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListDedicatedIpPools @@ -2444,14 +2444,14 @@ func (c *SESV2) ListDeliverabilityTestReportsRequest(input *ListDeliverabilityTe // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListDeliverabilityTestReports for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListDeliverabilityTestReports @@ -2589,14 +2589,14 @@ func (c *SESV2) ListDomainDeliverabilityCampaignsRequest(input *ListDomainDelive // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListDomainDeliverabilityCampaigns for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListDomainDeliverabilityCampaigns @@ -2736,11 +2736,11 @@ func (c *SESV2) ListEmailIdentitiesRequest(input *ListEmailIdentitiesInput) (req // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListEmailIdentities for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListEmailIdentities @@ -2877,14 +2877,14 @@ func (c *SESV2) ListSuppressedDestinationsRequest(input *ListSuppressedDestinati // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListSuppressedDestinations for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The specified request includes an invalid or expired token. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListSuppressedDestinations @@ -3019,14 +3019,14 @@ func (c *SESV2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req // See the AWS API reference guide for Amazon Simple Email Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/ListTagsForResource @@ -3105,11 +3105,11 @@ func (c *SESV2) PutAccountDedicatedIpWarmupAttributesRequest(input *PutAccountDe // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutAccountDedicatedIpWarmupAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutAccountDedicatedIpWarmupAttributes @@ -3188,11 +3188,11 @@ func (c *SESV2) PutAccountSendingAttributesRequest(input *PutAccountSendingAttri // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutAccountSendingAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutAccountSendingAttributes @@ -3271,11 +3271,11 @@ func (c *SESV2) PutAccountSuppressionAttributesRequest(input *PutAccountSuppress // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutAccountSuppressionAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutAccountSuppressionAttributes @@ -3356,14 +3356,14 @@ func (c *SESV2) PutConfigurationSetDeliveryOptionsRequest(input *PutConfiguratio // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutConfigurationSetDeliveryOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutConfigurationSetDeliveryOptions @@ -3443,14 +3443,14 @@ func (c *SESV2) PutConfigurationSetReputationOptionsRequest(input *PutConfigurat // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutConfigurationSetReputationOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutConfigurationSetReputationOptions @@ -3530,14 +3530,14 @@ func (c *SESV2) PutConfigurationSetSendingOptionsRequest(input *PutConfiguration // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutConfigurationSetSendingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutConfigurationSetSendingOptions @@ -3616,14 +3616,14 @@ func (c *SESV2) PutConfigurationSetSuppressionOptionsRequest(input *PutConfigura // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutConfigurationSetSuppressionOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutConfigurationSetSuppressionOptions @@ -3703,14 +3703,14 @@ func (c *SESV2) PutConfigurationSetTrackingOptionsRequest(input *PutConfiguratio // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutConfigurationSetTrackingOptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutConfigurationSetTrackingOptions @@ -3795,14 +3795,14 @@ func (c *SESV2) PutDedicatedIpInPoolRequest(input *PutDedicatedIpInPoolInput) (r // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutDedicatedIpInPool for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutDedicatedIpInPool @@ -3879,14 +3879,14 @@ func (c *SESV2) PutDedicatedIpWarmupAttributesRequest(input *PutDedicatedIpWarmu // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutDedicatedIpWarmupAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutDedicatedIpWarmupAttributes @@ -3973,20 +3973,20 @@ func (c *SESV2) PutDeliverabilityDashboardOptionRequest(input *PutDeliverability // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutDeliverabilityDashboardOption for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // The resource specified in your request already exists. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutDeliverabilityDashboardOption @@ -4065,14 +4065,14 @@ func (c *SESV2) PutEmailIdentityDkimAttributesRequest(input *PutEmailIdentityDki // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutEmailIdentityDkimAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutEmailIdentityDkimAttributes @@ -4162,14 +4162,14 @@ func (c *SESV2) PutEmailIdentityDkimSigningAttributesRequest(input *PutEmailIden // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutEmailIdentityDkimSigningAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutEmailIdentityDkimSigningAttributes @@ -4259,14 +4259,14 @@ func (c *SESV2) PutEmailIdentityFeedbackAttributesRequest(input *PutEmailIdentit // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutEmailIdentityFeedbackAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutEmailIdentityFeedbackAttributes @@ -4346,14 +4346,14 @@ func (c *SESV2) PutEmailIdentityMailFromAttributesRequest(input *PutEmailIdentit // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutEmailIdentityMailFromAttributes for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutEmailIdentityMailFromAttributes @@ -4432,11 +4432,11 @@ func (c *SESV2) PutSuppressedDestinationRequest(input *PutSuppressedDestinationI // See the AWS API reference guide for Amazon Simple Email Service's // API operation PutSuppressedDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/PutSuppressedDestination @@ -4524,31 +4524,31 @@ func (c *SESV2) SendEmailRequest(input *SendEmailInput) (req *request.Request, o // See the AWS API reference guide for Amazon Simple Email Service's // API operation SendEmail for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // There are too many instances of the specified resource type. // -// * ErrCodeAccountSuspendedException "AccountSuspendedException" +// * AccountSuspendedException // The message can't be sent because the account's ability to send email has // been permanently restricted. // -// * ErrCodeSendingPausedException "SendingPausedException" +// * SendingPausedException // The message can't be sent because the account's ability to send email is // currently paused. // -// * ErrCodeMessageRejected "MessageRejected" +// * MessageRejected // The message can't be sent because it contains invalid content. // -// * ErrCodeMailFromDomainNotVerifiedException "MailFromDomainNotVerifiedException" +// * MailFromDomainNotVerifiedException // The message can't be sent because the sending domain isn't verified. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/SendEmail @@ -4636,17 +4636,17 @@ func (c *SESV2) TagResourceRequest(input *TagResourceInput) (req *request.Reques // See the AWS API reference guide for Amazon Simple Email Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/TagResource @@ -4725,17 +4725,17 @@ func (c *SESV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Re // See the AWS API reference guide for Amazon Simple Email Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // The input you provided is invalid. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource is being modified by another operation or thread. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/UntagResource @@ -4820,14 +4820,14 @@ func (c *SESV2) UpdateConfigurationSetEventDestinationRequest(input *UpdateConfi // See the AWS API reference guide for Amazon Simple Email Service's // API operation UpdateConfigurationSetEventDestination for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // The resource you attempted to access doesn't exist. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Too many requests have been made to the operation. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The input you provided is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sesv2-2019-09-27/UpdateConfigurationSetEventDestination @@ -4852,6 +4852,160 @@ func (c *SESV2) UpdateConfigurationSetEventDestinationWithContext(ctx aws.Contex return out, req.Send() } +// The message can't be sent because the account's ability to send email has +// been permanently restricted. +type AccountSuspendedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccountSuspendedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccountSuspendedException) GoString() string { + return s.String() +} + +func newErrorAccountSuspendedException(v protocol.ResponseMetadata) error { + return &AccountSuspendedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccountSuspendedException) Code() string { + return "AccountSuspendedException" +} + +// Message returns the exception's message. +func (s AccountSuspendedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccountSuspendedException) OrigErr() error { + return nil +} + +func (s AccountSuspendedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccountSuspendedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccountSuspendedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource specified in your request already exists. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The input you provided is invalid. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that contains information about a blacklisting event that impacts // one of the dedicated IP addresses that is associated with your account. type BlacklistEntry struct { @@ -5090,6 +5244,57 @@ func (s *CloudWatchDimensionConfiguration) SetDimensionValueSource(v string) *Cl return s } +// The resource is being modified by another operation or thread. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that represents the content of the email, and optionally a character // set specification. type Content struct { @@ -8229,6 +8434,57 @@ func (s *InboxPlacementTrackingOption) SetTrackedIsps(v []*string) *InboxPlaceme return s } +// The specified request includes an invalid or expired token. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that describes how email sent during the predictive inbox placement // test was handled by a certain email provider. type IspPlacement struct { @@ -8320,6 +8576,57 @@ func (s *KinesisFirehoseDestination) SetIamRoleArn(v string) *KinesisFirehoseDes return s } +// There are too many instances of the specified resource type. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // A request to obtain a list of configuration sets for your Amazon SES account // in the current AWS Region. type ListConfigurationSetsInput struct { @@ -9002,6 +9309,57 @@ func (s *MailFromAttributes) SetMailFromDomainStatus(v string) *MailFromAttribut return s } +// The message can't be sent because the sending domain isn't verified. +type MailFromDomainNotVerifiedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MailFromDomainNotVerifiedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MailFromDomainNotVerifiedException) GoString() string { + return s.String() +} + +func newErrorMailFromDomainNotVerifiedException(v protocol.ResponseMetadata) error { + return &MailFromDomainNotVerifiedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MailFromDomainNotVerifiedException) Code() string { + return "MailFromDomainNotVerifiedException" +} + +// Message returns the exception's message. +func (s MailFromDomainNotVerifiedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MailFromDomainNotVerifiedException) OrigErr() error { + return nil +} + +func (s MailFromDomainNotVerifiedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MailFromDomainNotVerifiedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MailFromDomainNotVerifiedException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents the email message that you're sending. The Message object consists // of a subject line and a message body. type Message struct { @@ -9069,6 +9427,57 @@ func (s *Message) SetSubject(v *Content) *Message { return s } +// The message can't be sent because it contains invalid content. +type MessageRejected struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s MessageRejected) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MessageRejected) GoString() string { + return s.String() +} + +func newErrorMessageRejected(v protocol.ResponseMetadata) error { + return &MessageRejected{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MessageRejected) Code() string { + return "MessageRejected" +} + +// Message returns the exception's message. +func (s MessageRejected) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MessageRejected) OrigErr() error { + return nil +} + +func (s MessageRejected) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MessageRejected) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MessageRejected) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the name and value of a tag that you apply to an email. You can // use message tags when you publish email sending events. type MessageTag struct { @@ -9135,6 +9544,57 @@ func (s *MessageTag) SetValue(v string) *MessageTag { return s } +// The resource you attempted to access doesn't exist. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that contains information about email that was sent from the selected // domain. type OverallVolume struct { @@ -10784,6 +11244,58 @@ func (s *SendingOptions) SetSendingEnabled(v bool) *SendingOptions { return s } +// The message can't be sent because the account's ability to send email is +// currently paused. +type SendingPausedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s SendingPausedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SendingPausedException) GoString() string { + return s.String() +} + +func newErrorSendingPausedException(v protocol.ResponseMetadata) error { + return &SendingPausedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SendingPausedException) Code() string { + return "SendingPausedException" +} + +// Message returns the exception's message. +func (s SendingPausedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SendingPausedException) OrigErr() error { + return nil +} + +func (s SendingPausedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SendingPausedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SendingPausedException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines an Amazon SNS destination for email events. You can // use Amazon SNS to send notification when certain email events occur. type SnsDestination struct { @@ -11243,6 +11755,57 @@ func (s *Template) SetTemplateData(v string) *Template { return s } +// Too many requests have been made to the operation. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines the tracking options for a configuration set. When // you use the Amazon SES API v2 to send an email, it contains an invisible // image that's used to track when recipients open your email. If your email diff --git a/service/sesv2/errors.go b/service/sesv2/errors.go index 5535ae253ec..ea0cabad6fe 100644 --- a/service/sesv2/errors.go +++ b/service/sesv2/errors.go @@ -2,6 +2,10 @@ package sesv2 +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccountSuspendedException for service response error code @@ -72,3 +76,17 @@ const ( // Too many requests have been made to the operation. ErrCodeTooManyRequestsException = "TooManyRequestsException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccountSuspendedException": newErrorAccountSuspendedException, + "AlreadyExistsException": newErrorAlreadyExistsException, + "BadRequestException": newErrorBadRequestException, + "ConcurrentModificationException": newErrorConcurrentModificationException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "LimitExceededException": newErrorLimitExceededException, + "MailFromDomainNotVerifiedException": newErrorMailFromDomainNotVerifiedException, + "MessageRejected": newErrorMessageRejected, + "NotFoundException": newErrorNotFoundException, + "SendingPausedException": newErrorSendingPausedException, + "TooManyRequestsException": newErrorTooManyRequestsException, +} diff --git a/service/sesv2/service.go b/service/sesv2/service.go index 91c20be7aad..6476a3a4809 100644 --- a/service/sesv2/service.go +++ b/service/sesv2/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/sfn/api.go b/service/sfn/api.go index 6ac1460bc34..6032fdcb80e 100644 --- a/service/sfn/api.go +++ b/service/sfn/api.go @@ -81,15 +81,15 @@ func (c *SFN) CreateActivityRequest(input *CreateActivityInput) (req *request.Re // See the AWS API reference guide for AWS Step Functions's // API operation CreateActivity for usage and error information. // -// Returned Error Codes: -// * ErrCodeActivityLimitExceeded "ActivityLimitExceeded" +// Returned Error Types: +// * ActivityLimitExceeded // The maximum number of activities has been reached. Existing activities must // be deleted before a new activity can be created. // -// * ErrCodeInvalidName "InvalidName" +// * InvalidName // The provided name is invalid. // -// * ErrCodeTooManyTags "TooManyTags" +// * TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) // in the AWS Step Functions Developer Guide. @@ -182,32 +182,32 @@ func (c *SFN) CreateStateMachineRequest(input *CreateStateMachineInput) (req *re // See the AWS API reference guide for AWS Step Functions's // API operation CreateStateMachine for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeInvalidDefinition "InvalidDefinition" +// * InvalidDefinition // The provided Amazon States Language definition is invalid. // -// * ErrCodeInvalidName "InvalidName" +// * InvalidName // The provided name is invalid. // -// * ErrCodeInvalidLoggingConfiguration "InvalidLoggingConfiguration" +// * InvalidLoggingConfiguration // -// * ErrCodeStateMachineAlreadyExists "StateMachineAlreadyExists" +// * StateMachineAlreadyExists // A state machine with the same name but a different definition or role ARN // already exists. // -// * ErrCodeStateMachineDeleting "StateMachineDeleting" +// * StateMachineDeleting // The specified state machine is being deleted. // -// * ErrCodeStateMachineLimitExceeded "StateMachineLimitExceeded" +// * StateMachineLimitExceeded // The maximum number of state machines has been reached. Existing state machines // must be deleted before a new state machine can be created. // -// * ErrCodeStateMachineTypeNotSupported "StateMachineTypeNotSupported" +// * StateMachineTypeNotSupported // -// * ErrCodeTooManyTags "TooManyTags" +// * TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) // in the AWS Step Functions Developer Guide. @@ -288,8 +288,8 @@ func (c *SFN) DeleteActivityRequest(input *DeleteActivityInput) (req *request.Re // See the AWS API reference guide for AWS Step Functions's // API operation DeleteActivity for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity @@ -373,8 +373,8 @@ func (c *SFN) DeleteStateMachineRequest(input *DeleteStateMachineInput) (req *re // See the AWS API reference guide for AWS Step Functions's // API operation DeleteStateMachine for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine @@ -455,11 +455,11 @@ func (c *SFN) DescribeActivityRequest(input *DescribeActivityInput) (req *reques // See the AWS API reference guide for AWS Step Functions's // API operation DescribeActivity for usage and error information. // -// Returned Error Codes: -// * ErrCodeActivityDoesNotExist "ActivityDoesNotExist" +// Returned Error Types: +// * ActivityDoesNotExist // The specified activity does not exist. // -// * ErrCodeInvalidArn "InvalidArn" +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity @@ -540,11 +540,11 @@ func (c *SFN) DescribeExecutionRequest(input *DescribeExecutionInput) (req *requ // See the AWS API reference guide for AWS Step Functions's // API operation DescribeExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeExecutionDoesNotExist "ExecutionDoesNotExist" +// Returned Error Types: +// * ExecutionDoesNotExist // The specified execution does not exist. // -// * ErrCodeInvalidArn "InvalidArn" +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution @@ -625,11 +625,11 @@ func (c *SFN) DescribeStateMachineRequest(input *DescribeStateMachineInput) (req // See the AWS API reference guide for AWS Step Functions's // API operation DescribeStateMachine for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeStateMachineDoesNotExist "StateMachineDoesNotExist" +// * StateMachineDoesNotExist // The specified state machine does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine @@ -710,11 +710,11 @@ func (c *SFN) DescribeStateMachineForExecutionRequest(input *DescribeStateMachin // See the AWS API reference guide for AWS Step Functions's // API operation DescribeStateMachineForExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeExecutionDoesNotExist "ExecutionDoesNotExist" +// Returned Error Types: +// * ExecutionDoesNotExist // The specified execution does not exist. // -// * ErrCodeInvalidArn "InvalidArn" +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineForExecution @@ -805,15 +805,15 @@ func (c *SFN) GetActivityTaskRequest(input *GetActivityTaskInput) (req *request. // See the AWS API reference guide for AWS Step Functions's // API operation GetActivityTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeActivityDoesNotExist "ActivityDoesNotExist" +// Returned Error Types: +// * ActivityDoesNotExist // The specified activity does not exist. // -// * ErrCodeActivityWorkerLimitExceeded "ActivityWorkerLimitExceeded" +// * ActivityWorkerLimitExceeded // The maximum number of workers concurrently polling for activity tasks has // been reached. // -// * ErrCodeInvalidArn "InvalidArn" +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask @@ -905,14 +905,14 @@ func (c *SFN) GetExecutionHistoryRequest(input *GetExecutionHistoryInput) (req * // See the AWS API reference guide for AWS Step Functions's // API operation GetExecutionHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeExecutionDoesNotExist "ExecutionDoesNotExist" +// Returned Error Types: +// * ExecutionDoesNotExist // The specified execution does not exist. // -// * ErrCodeInvalidArn "InvalidArn" +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeInvalidToken "InvalidToken" +// * InvalidToken // The provided token is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory @@ -1057,8 +1057,8 @@ func (c *SFN) ListActivitiesRequest(input *ListActivitiesInput) (req *request.Re // See the AWS API reference guide for AWS Step Functions's // API operation ListActivities for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidToken "InvalidToken" +// Returned Error Types: +// * InvalidToken // The provided token is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities @@ -1204,17 +1204,17 @@ func (c *SFN) ListExecutionsRequest(input *ListExecutionsInput) (req *request.Re // See the AWS API reference guide for AWS Step Functions's // API operation ListExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeInvalidToken "InvalidToken" +// * InvalidToken // The provided token is invalid. // -// * ErrCodeStateMachineDoesNotExist "StateMachineDoesNotExist" +// * StateMachineDoesNotExist // The specified state machine does not exist. // -// * ErrCodeStateMachineTypeNotSupported "StateMachineTypeNotSupported" +// * StateMachineTypeNotSupported // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions func (c *SFN) ListExecutions(input *ListExecutionsInput) (*ListExecutionsOutput, error) { @@ -1358,8 +1358,8 @@ func (c *SFN) ListStateMachinesRequest(input *ListStateMachinesInput) (req *requ // See the AWS API reference guide for AWS Step Functions's // API operation ListStateMachines for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidToken "InvalidToken" +// Returned Error Types: +// * InvalidToken // The provided token is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines @@ -1492,11 +1492,11 @@ func (c *SFN) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for AWS Step Functions's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // @@ -1577,13 +1577,13 @@ func (c *SFN) SendTaskFailureRequest(input *SendTaskFailureInput) (req *request. // See the AWS API reference guide for AWS Step Functions's // API operation SendTaskFailure for usage and error information. // -// Returned Error Codes: -// * ErrCodeTaskDoesNotExist "TaskDoesNotExist" +// Returned Error Types: +// * TaskDoesNotExist // -// * ErrCodeInvalidToken "InvalidToken" +// * InvalidToken // The provided token is invalid. // -// * ErrCodeTaskTimedOut "TaskTimedOut" +// * TaskTimedOut // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure func (c *SFN) SendTaskFailure(input *SendTaskFailureInput) (*SendTaskFailureOutput, error) { @@ -1675,13 +1675,13 @@ func (c *SFN) SendTaskHeartbeatRequest(input *SendTaskHeartbeatInput) (req *requ // See the AWS API reference guide for AWS Step Functions's // API operation SendTaskHeartbeat for usage and error information. // -// Returned Error Codes: -// * ErrCodeTaskDoesNotExist "TaskDoesNotExist" +// Returned Error Types: +// * TaskDoesNotExist // -// * ErrCodeInvalidToken "InvalidToken" +// * InvalidToken // The provided token is invalid. // -// * ErrCodeTaskTimedOut "TaskTimedOut" +// * TaskTimedOut // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat func (c *SFN) SendTaskHeartbeat(input *SendTaskHeartbeatInput) (*SendTaskHeartbeatOutput, error) { @@ -1760,16 +1760,16 @@ func (c *SFN) SendTaskSuccessRequest(input *SendTaskSuccessInput) (req *request. // See the AWS API reference guide for AWS Step Functions's // API operation SendTaskSuccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeTaskDoesNotExist "TaskDoesNotExist" +// Returned Error Types: +// * TaskDoesNotExist // -// * ErrCodeInvalidOutput "InvalidOutput" +// * InvalidOutput // The provided JSON output data is invalid. // -// * ErrCodeInvalidToken "InvalidToken" +// * InvalidToken // The provided token is invalid. // -// * ErrCodeTaskTimedOut "TaskTimedOut" +// * TaskTimedOut // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess func (c *SFN) SendTaskSuccess(input *SendTaskSuccessInput) (*SendTaskSuccessOutput, error) { @@ -1852,29 +1852,29 @@ func (c *SFN) StartExecutionRequest(input *StartExecutionInput) (req *request.Re // See the AWS API reference guide for AWS Step Functions's // API operation StartExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeExecutionLimitExceeded "ExecutionLimitExceeded" +// Returned Error Types: +// * ExecutionLimitExceeded // The maximum number of running executions has been reached. Running executions // must end or be stopped before a new execution can be started. // -// * ErrCodeExecutionAlreadyExists "ExecutionAlreadyExists" +// * ExecutionAlreadyExists // The execution has the same name as another execution (but a different input). // // Executions with the same name and input are considered idempotent. // -// * ErrCodeInvalidArn "InvalidArn" +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeInvalidExecutionInput "InvalidExecutionInput" +// * InvalidExecutionInput // The provided JSON input data is invalid. // -// * ErrCodeInvalidName "InvalidName" +// * InvalidName // The provided name is invalid. // -// * ErrCodeStateMachineDoesNotExist "StateMachineDoesNotExist" +// * StateMachineDoesNotExist // The specified state machine does not exist. // -// * ErrCodeStateMachineDeleting "StateMachineDeleting" +// * StateMachineDeleting // The specified state machine is being deleted. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution @@ -1952,11 +1952,11 @@ func (c *SFN) StopExecutionRequest(input *StopExecutionInput) (req *request.Requ // See the AWS API reference guide for AWS Step Functions's // API operation StopExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeExecutionDoesNotExist "ExecutionDoesNotExist" +// Returned Error Types: +// * ExecutionDoesNotExist // The specified execution does not exist. // -// * ErrCodeInvalidArn "InvalidArn" +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution @@ -2043,15 +2043,15 @@ func (c *SFN) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for AWS Step Functions's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // -// * ErrCodeTooManyTags "TooManyTags" +// * TooManyTags // You've exceeded the number of tags allowed for a resource. See the Limits // Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) // in the AWS Step Functions Developer Guide. @@ -2132,11 +2132,11 @@ func (c *SFN) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS Step Functions's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeResourceNotFound "ResourceNotFound" +// * ResourceNotFound // Could not find the referenced resource. Only state machine and activity ARNs // are supported. // @@ -2222,23 +2222,23 @@ func (c *SFN) UpdateStateMachineRequest(input *UpdateStateMachineInput) (req *re // See the AWS API reference guide for AWS Step Functions's // API operation UpdateStateMachine for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidArn "InvalidArn" +// Returned Error Types: +// * InvalidArn // The provided Amazon Resource Name (ARN) is invalid. // -// * ErrCodeInvalidDefinition "InvalidDefinition" +// * InvalidDefinition // The provided Amazon States Language definition is invalid. // -// * ErrCodeInvalidLoggingConfiguration "InvalidLoggingConfiguration" +// * InvalidLoggingConfiguration // -// * ErrCodeMissingRequiredParameter "MissingRequiredParameter" +// * MissingRequiredParameter // Request is missing a required parameter. This error occurs if both definition // and roleArn are not specified. // -// * ErrCodeStateMachineDeleting "StateMachineDeleting" +// * StateMachineDeleting // The specified state machine is being deleted. // -// * ErrCodeStateMachineDoesNotExist "StateMachineDoesNotExist" +// * StateMachineDoesNotExist // The specified state machine does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/UpdateStateMachine @@ -2263,6 +2263,62 @@ func (c *SFN) UpdateStateMachineWithContext(ctx aws.Context, input *UpdateStateM return out, req.Send() } +// The specified activity does not exist. +type ActivityDoesNotExist struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ActivityDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityDoesNotExist) GoString() string { + return s.String() +} + +func newErrorActivityDoesNotExist(v protocol.ResponseMetadata) error { + return &ActivityDoesNotExist{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ActivityDoesNotExist) Code() string { + return "ActivityDoesNotExist" +} + +// Message returns the exception's message. +func (s ActivityDoesNotExist) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ActivityDoesNotExist) OrigErr() error { + return nil +} + +func (s ActivityDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ActivityDoesNotExist) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ActivityDoesNotExist) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about an activity that failed during an execution. type ActivityFailedEventDetails struct { _ struct{} `type:"structure"` @@ -2296,6 +2352,63 @@ func (s *ActivityFailedEventDetails) SetError(v string) *ActivityFailedEventDeta return s } +// The maximum number of activities has been reached. Existing activities must +// be deleted before a new activity can be created. +type ActivityLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ActivityLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityLimitExceeded) GoString() string { + return s.String() +} + +func newErrorActivityLimitExceeded(v protocol.ResponseMetadata) error { + return &ActivityLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ActivityLimitExceeded) Code() string { + return "ActivityLimitExceeded" +} + +// Message returns the exception's message. +func (s ActivityLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ActivityLimitExceeded) OrigErr() error { + return nil +} + +func (s ActivityLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ActivityLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ActivityLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about an activity. type ActivityListItem struct { _ struct{} `type:"structure"` @@ -2526,6 +2639,63 @@ func (s *ActivityTimedOutEventDetails) SetError(v string) *ActivityTimedOutEvent return s } +// The maximum number of workers concurrently polling for activity tasks has +// been reached. +type ActivityWorkerLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ActivityWorkerLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ActivityWorkerLimitExceeded) GoString() string { + return s.String() +} + +func newErrorActivityWorkerLimitExceeded(v protocol.ResponseMetadata) error { + return &ActivityWorkerLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ActivityWorkerLimitExceeded) Code() string { + return "ActivityWorkerLimitExceeded" +} + +// Message returns the exception's message. +func (s ActivityWorkerLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ActivityWorkerLimitExceeded) OrigErr() error { + return nil +} + +func (s ActivityWorkerLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ActivityWorkerLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ActivityWorkerLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + type CloudWatchLogsLogGroup struct { _ struct{} `type:"structure"` @@ -3517,6 +3687,120 @@ func (s *ExecutionAbortedEventDetails) SetError(v string) *ExecutionAbortedEvent return s } +// The execution has the same name as another execution (but a different input). +// +// Executions with the same name and input are considered idempotent. +type ExecutionAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExecutionAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionAlreadyExists) GoString() string { + return s.String() +} + +func newErrorExecutionAlreadyExists(v protocol.ResponseMetadata) error { + return &ExecutionAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExecutionAlreadyExists) Code() string { + return "ExecutionAlreadyExists" +} + +// Message returns the exception's message. +func (s ExecutionAlreadyExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExecutionAlreadyExists) OrigErr() error { + return nil +} + +func (s ExecutionAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExecutionAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExecutionAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified execution does not exist. +type ExecutionDoesNotExist struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExecutionDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionDoesNotExist) GoString() string { + return s.String() +} + +func newErrorExecutionDoesNotExist(v protocol.ResponseMetadata) error { + return &ExecutionDoesNotExist{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExecutionDoesNotExist) Code() string { + return "ExecutionDoesNotExist" +} + +// Message returns the exception's message. +func (s ExecutionDoesNotExist) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExecutionDoesNotExist) OrigErr() error { + return nil +} + +func (s ExecutionDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExecutionDoesNotExist) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExecutionDoesNotExist) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about an execution failure event. type ExecutionFailedEventDetails struct { _ struct{} `type:"structure"` @@ -3550,6 +3834,63 @@ func (s *ExecutionFailedEventDetails) SetError(v string) *ExecutionFailedEventDe return s } +// The maximum number of running executions has been reached. Running executions +// must end or be stopped before a new execution can be started. +type ExecutionLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ExecutionLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExecutionLimitExceeded) GoString() string { + return s.String() +} + +func newErrorExecutionLimitExceeded(v protocol.ResponseMetadata) error { + return &ExecutionLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExecutionLimitExceeded) Code() string { + return "ExecutionLimitExceeded" +} + +// Message returns the exception's message. +func (s ExecutionLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExecutionLimitExceeded) OrigErr() error { + return nil +} + +func (s ExecutionLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExecutionLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExecutionLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about an execution. type ExecutionListItem struct { _ struct{} `type:"structure"` @@ -4289,118 +4630,509 @@ func (s *HistoryEvent) SetType(v string) *HistoryEvent { return s } -// Contains details about a lambda function that failed during an execution. -type LambdaFunctionFailedEventDetails struct { - _ struct{} `type:"structure"` - - // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string" sensitive:"true"` +// The provided Amazon Resource Name (ARN) is invalid. +type InvalidArn struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The error code of the failure. - Error *string `locationName:"error" type:"string" sensitive:"true"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s LambdaFunctionFailedEventDetails) String() string { +func (s InvalidArn) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LambdaFunctionFailedEventDetails) GoString() string { +func (s InvalidArn) GoString() string { return s.String() } -// SetCause sets the Cause field's value. -func (s *LambdaFunctionFailedEventDetails) SetCause(v string) *LambdaFunctionFailedEventDetails { - s.Cause = &v - return s +func newErrorInvalidArn(v protocol.ResponseMetadata) error { + return &InvalidArn{ + respMetadata: v, + } } -// SetError sets the Error field's value. -func (s *LambdaFunctionFailedEventDetails) SetError(v string) *LambdaFunctionFailedEventDetails { - s.Error = &v - return s +// Code returns the exception type name. +func (s InvalidArn) Code() string { + return "InvalidArn" } -// Contains details about a failed lambda function schedule event that occurred -// during an execution. -type LambdaFunctionScheduleFailedEventDetails struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidArn) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // A more detailed explanation of the cause of the failure. - Cause *string `locationName:"cause" type:"string" sensitive:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArn) OrigErr() error { + return nil +} - // The error code of the failure. - Error *string `locationName:"error" type:"string" sensitive:"true"` +func (s InvalidArn) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArn) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArn) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided Amazon States Language definition is invalid. +type InvalidDefinition struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s LambdaFunctionScheduleFailedEventDetails) String() string { +func (s InvalidDefinition) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LambdaFunctionScheduleFailedEventDetails) GoString() string { +func (s InvalidDefinition) GoString() string { return s.String() } -// SetCause sets the Cause field's value. -func (s *LambdaFunctionScheduleFailedEventDetails) SetCause(v string) *LambdaFunctionScheduleFailedEventDetails { - s.Cause = &v - return s +func newErrorInvalidDefinition(v protocol.ResponseMetadata) error { + return &InvalidDefinition{ + respMetadata: v, + } } -// SetError sets the Error field's value. -func (s *LambdaFunctionScheduleFailedEventDetails) SetError(v string) *LambdaFunctionScheduleFailedEventDetails { - s.Error = &v - return s +// Code returns the exception type name. +func (s InvalidDefinition) Code() string { + return "InvalidDefinition" } -// Contains details about a lambda function scheduled during an execution. -type LambdaFunctionScheduledEventDetails struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidDefinition) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The JSON data input to the lambda function. - Input *string `locationName:"input" type:"string" sensitive:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDefinition) OrigErr() error { + return nil +} - // The Amazon Resource Name (ARN) of the scheduled lambda function. - // - // Resource is a required field - Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` +func (s InvalidDefinition) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The maximum allowed duration of the lambda function. - TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDefinition) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDefinition) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided JSON input data is invalid. +type InvalidExecutionInput struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s LambdaFunctionScheduledEventDetails) String() string { +func (s InvalidExecutionInput) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LambdaFunctionScheduledEventDetails) GoString() string { +func (s InvalidExecutionInput) GoString() string { return s.String() } -// SetInput sets the Input field's value. -func (s *LambdaFunctionScheduledEventDetails) SetInput(v string) *LambdaFunctionScheduledEventDetails { - s.Input = &v - return s +func newErrorInvalidExecutionInput(v protocol.ResponseMetadata) error { + return &InvalidExecutionInput{ + respMetadata: v, + } } -// SetResource sets the Resource field's value. -func (s *LambdaFunctionScheduledEventDetails) SetResource(v string) *LambdaFunctionScheduledEventDetails { - s.Resource = &v - return s +// Code returns the exception type name. +func (s InvalidExecutionInput) Code() string { + return "InvalidExecutionInput" } -// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. -func (s *LambdaFunctionScheduledEventDetails) SetTimeoutInSeconds(v int64) *LambdaFunctionScheduledEventDetails { - s.TimeoutInSeconds = &v - return s +// Message returns the exception's message. +func (s InvalidExecutionInput) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// Contains details about a lambda function that failed to start during an execution. +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidExecutionInput) OrigErr() error { + return nil +} + +func (s InvalidExecutionInput) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidExecutionInput) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidExecutionInput) RequestID() string { + return s.respMetadata.RequestID +} + +type InvalidLoggingConfiguration struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidLoggingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidLoggingConfiguration) GoString() string { + return s.String() +} + +func newErrorInvalidLoggingConfiguration(v protocol.ResponseMetadata) error { + return &InvalidLoggingConfiguration{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidLoggingConfiguration) Code() string { + return "InvalidLoggingConfiguration" +} + +// Message returns the exception's message. +func (s InvalidLoggingConfiguration) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidLoggingConfiguration) OrigErr() error { + return nil +} + +func (s InvalidLoggingConfiguration) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidLoggingConfiguration) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidLoggingConfiguration) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided name is invalid. +type InvalidName struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidName) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidName) GoString() string { + return s.String() +} + +func newErrorInvalidName(v protocol.ResponseMetadata) error { + return &InvalidName{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidName) Code() string { + return "InvalidName" +} + +// Message returns the exception's message. +func (s InvalidName) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidName) OrigErr() error { + return nil +} + +func (s InvalidName) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidName) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidName) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided JSON output data is invalid. +type InvalidOutput struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOutput) GoString() string { + return s.String() +} + +func newErrorInvalidOutput(v protocol.ResponseMetadata) error { + return &InvalidOutput{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOutput) Code() string { + return "InvalidOutput" +} + +// Message returns the exception's message. +func (s InvalidOutput) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOutput) OrigErr() error { + return nil +} + +func (s InvalidOutput) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOutput) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOutput) RequestID() string { + return s.respMetadata.RequestID +} + +// The provided token is invalid. +type InvalidToken struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidToken) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidToken) GoString() string { + return s.String() +} + +func newErrorInvalidToken(v protocol.ResponseMetadata) error { + return &InvalidToken{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidToken) Code() string { + return "InvalidToken" +} + +// Message returns the exception's message. +func (s InvalidToken) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidToken) OrigErr() error { + return nil +} + +func (s InvalidToken) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidToken) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidToken) RequestID() string { + return s.respMetadata.RequestID +} + +// Contains details about a lambda function that failed during an execution. +type LambdaFunctionFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string" sensitive:"true"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s LambdaFunctionFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *LambdaFunctionFailedEventDetails) SetCause(v string) *LambdaFunctionFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *LambdaFunctionFailedEventDetails) SetError(v string) *LambdaFunctionFailedEventDetails { + s.Error = &v + return s +} + +// Contains details about a failed lambda function schedule event that occurred +// during an execution. +type LambdaFunctionScheduleFailedEventDetails struct { + _ struct{} `type:"structure"` + + // A more detailed explanation of the cause of the failure. + Cause *string `locationName:"cause" type:"string" sensitive:"true"` + + // The error code of the failure. + Error *string `locationName:"error" type:"string" sensitive:"true"` +} + +// String returns the string representation +func (s LambdaFunctionScheduleFailedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionScheduleFailedEventDetails) GoString() string { + return s.String() +} + +// SetCause sets the Cause field's value. +func (s *LambdaFunctionScheduleFailedEventDetails) SetCause(v string) *LambdaFunctionScheduleFailedEventDetails { + s.Cause = &v + return s +} + +// SetError sets the Error field's value. +func (s *LambdaFunctionScheduleFailedEventDetails) SetError(v string) *LambdaFunctionScheduleFailedEventDetails { + s.Error = &v + return s +} + +// Contains details about a lambda function scheduled during an execution. +type LambdaFunctionScheduledEventDetails struct { + _ struct{} `type:"structure"` + + // The JSON data input to the lambda function. + Input *string `locationName:"input" type:"string" sensitive:"true"` + + // The Amazon Resource Name (ARN) of the scheduled lambda function. + // + // Resource is a required field + Resource *string `locationName:"resource" min:"1" type:"string" required:"true"` + + // The maximum allowed duration of the lambda function. + TimeoutInSeconds *int64 `locationName:"timeoutInSeconds" type:"long"` +} + +// String returns the string representation +func (s LambdaFunctionScheduledEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LambdaFunctionScheduledEventDetails) GoString() string { + return s.String() +} + +// SetInput sets the Input field's value. +func (s *LambdaFunctionScheduledEventDetails) SetInput(v string) *LambdaFunctionScheduledEventDetails { + s.Input = &v + return s +} + +// SetResource sets the Resource field's value. +func (s *LambdaFunctionScheduledEventDetails) SetResource(v string) *LambdaFunctionScheduledEventDetails { + s.Resource = &v + return s +} + +// SetTimeoutInSeconds sets the TimeoutInSeconds field's value. +func (s *LambdaFunctionScheduledEventDetails) SetTimeoutInSeconds(v int64) *LambdaFunctionScheduledEventDetails { + s.TimeoutInSeconds = &v + return s +} + +// Contains details about a lambda function that failed to start during an execution. type LambdaFunctionStartFailedEventDetails struct { _ struct{} `type:"structure"` @@ -4967,54 +5699,170 @@ type MapIterationEventDetails struct { // The index of the array belonging to the Map state iteration. Index *int64 `locationName:"index" type:"integer"` - // The name of the iteration’s parent Map state. - Name *string `locationName:"name" min:"1" type:"string"` + // The name of the iteration’s parent Map state. + Name *string `locationName:"name" min:"1" type:"string"` +} + +// String returns the string representation +func (s MapIterationEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MapIterationEventDetails) GoString() string { + return s.String() +} + +// SetIndex sets the Index field's value. +func (s *MapIterationEventDetails) SetIndex(v int64) *MapIterationEventDetails { + s.Index = &v + return s +} + +// SetName sets the Name field's value. +func (s *MapIterationEventDetails) SetName(v string) *MapIterationEventDetails { + s.Name = &v + return s +} + +// Details about a Map state that was started. +type MapStateStartedEventDetails struct { + _ struct{} `type:"structure"` + + // The size of the array for Map state iterations. + Length *int64 `locationName:"length" type:"integer"` +} + +// String returns the string representation +func (s MapStateStartedEventDetails) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MapStateStartedEventDetails) GoString() string { + return s.String() +} + +// SetLength sets the Length field's value. +func (s *MapStateStartedEventDetails) SetLength(v int64) *MapStateStartedEventDetails { + s.Length = &v + return s +} + +// Request is missing a required parameter. This error occurs if both definition +// and roleArn are not specified. +type MissingRequiredParameter struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MissingRequiredParameter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingRequiredParameter) GoString() string { + return s.String() +} + +func newErrorMissingRequiredParameter(v protocol.ResponseMetadata) error { + return &MissingRequiredParameter{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingRequiredParameter) Code() string { + return "MissingRequiredParameter" +} + +// Message returns the exception's message. +func (s MissingRequiredParameter) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingRequiredParameter) OrigErr() error { + return nil +} + +func (s MissingRequiredParameter) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingRequiredParameter) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingRequiredParameter) RequestID() string { + return s.respMetadata.RequestID +} + +// Could not find the referenced resource. Only state machine and activity ARNs +// are supported. +type ResourceNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ResourceName *string `locationName:"resourceName" min:"1" type:"string"` } // String returns the string representation -func (s MapIterationEventDetails) String() string { +func (s ResourceNotFound) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s MapIterationEventDetails) GoString() string { +func (s ResourceNotFound) GoString() string { return s.String() } -// SetIndex sets the Index field's value. -func (s *MapIterationEventDetails) SetIndex(v int64) *MapIterationEventDetails { - s.Index = &v - return s +func newErrorResourceNotFound(v protocol.ResponseMetadata) error { + return &ResourceNotFound{ + respMetadata: v, + } } -// SetName sets the Name field's value. -func (s *MapIterationEventDetails) SetName(v string) *MapIterationEventDetails { - s.Name = &v - return s +// Code returns the exception type name. +func (s ResourceNotFound) Code() string { + return "ResourceNotFound" } -// Details about a Map state that was started. -type MapStateStartedEventDetails struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s ResourceNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The size of the array for Map state iterations. - Length *int64 `locationName:"length" type:"integer"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFound) OrigErr() error { + return nil } -// String returns the string representation -func (s MapStateStartedEventDetails) String() string { - return awsutil.Prettify(s) +func (s ResourceNotFound) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) } -// GoString returns the string representation -func (s MapStateStartedEventDetails) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFound) StatusCode() int { + return s.respMetadata.StatusCode } -// SetLength sets the Length field's value. -func (s *MapStateStartedEventDetails) SetLength(v int64) *MapStateStartedEventDetails { - s.Length = &v - return s +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFound) RequestID() string { + return s.respMetadata.RequestID } type SendTaskFailureInput struct { @@ -5420,6 +6268,232 @@ func (s *StateExitedEventDetails) SetOutput(v string) *StateExitedEventDetails { return s } +// A state machine with the same name but a different definition or role ARN +// already exists. +type StateMachineAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StateMachineAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateMachineAlreadyExists) GoString() string { + return s.String() +} + +func newErrorStateMachineAlreadyExists(v protocol.ResponseMetadata) error { + return &StateMachineAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StateMachineAlreadyExists) Code() string { + return "StateMachineAlreadyExists" +} + +// Message returns the exception's message. +func (s StateMachineAlreadyExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StateMachineAlreadyExists) OrigErr() error { + return nil +} + +func (s StateMachineAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StateMachineAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StateMachineAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified state machine is being deleted. +type StateMachineDeleting struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StateMachineDeleting) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateMachineDeleting) GoString() string { + return s.String() +} + +func newErrorStateMachineDeleting(v protocol.ResponseMetadata) error { + return &StateMachineDeleting{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StateMachineDeleting) Code() string { + return "StateMachineDeleting" +} + +// Message returns the exception's message. +func (s StateMachineDeleting) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StateMachineDeleting) OrigErr() error { + return nil +} + +func (s StateMachineDeleting) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StateMachineDeleting) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StateMachineDeleting) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified state machine does not exist. +type StateMachineDoesNotExist struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StateMachineDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateMachineDoesNotExist) GoString() string { + return s.String() +} + +func newErrorStateMachineDoesNotExist(v protocol.ResponseMetadata) error { + return &StateMachineDoesNotExist{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StateMachineDoesNotExist) Code() string { + return "StateMachineDoesNotExist" +} + +// Message returns the exception's message. +func (s StateMachineDoesNotExist) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StateMachineDoesNotExist) OrigErr() error { + return nil +} + +func (s StateMachineDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StateMachineDoesNotExist) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StateMachineDoesNotExist) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum number of state machines has been reached. Existing state machines +// must be deleted before a new state machine can be created. +type StateMachineLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StateMachineLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateMachineLimitExceeded) GoString() string { + return s.String() +} + +func newErrorStateMachineLimitExceeded(v protocol.ResponseMetadata) error { + return &StateMachineLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StateMachineLimitExceeded) Code() string { + return "StateMachineLimitExceeded" +} + +// Message returns the exception's message. +func (s StateMachineLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StateMachineLimitExceeded) OrigErr() error { + return nil +} + +func (s StateMachineLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StateMachineLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StateMachineLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about the state machine. type StateMachineListItem struct { _ struct{} `type:"structure"` @@ -5489,6 +6563,61 @@ func (s *StateMachineListItem) SetType(v string) *StateMachineListItem { return s } +type StateMachineTypeNotSupported struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StateMachineTypeNotSupported) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StateMachineTypeNotSupported) GoString() string { + return s.String() +} + +func newErrorStateMachineTypeNotSupported(v protocol.ResponseMetadata) error { + return &StateMachineTypeNotSupported{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StateMachineTypeNotSupported) Code() string { + return "StateMachineTypeNotSupported" +} + +// Message returns the exception's message. +func (s StateMachineTypeNotSupported) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StateMachineTypeNotSupported) OrigErr() error { + return nil +} + +func (s StateMachineTypeNotSupported) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StateMachineTypeNotSupported) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StateMachineTypeNotSupported) RequestID() string { + return s.respMetadata.RequestID +} + type StopExecutionInput struct { _ struct{} `type:"structure"` @@ -5710,6 +6839,61 @@ func (s TagResourceOutput) GoString() string { return s.String() } +type TaskDoesNotExist struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TaskDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskDoesNotExist) GoString() string { + return s.String() +} + +func newErrorTaskDoesNotExist(v protocol.ResponseMetadata) error { + return &TaskDoesNotExist{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TaskDoesNotExist) Code() string { + return "TaskDoesNotExist" +} + +// Message returns the exception's message. +func (s TaskDoesNotExist) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TaskDoesNotExist) OrigErr() error { + return nil +} + +func (s TaskDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TaskDoesNotExist) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TaskDoesNotExist) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about a task failure event. type TaskFailedEventDetails struct { _ struct{} `type:"structure"` @@ -6073,6 +7257,61 @@ func (s *TaskSucceededEventDetails) SetResourceType(v string) *TaskSucceededEven return s } +type TaskTimedOut struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TaskTimedOut) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TaskTimedOut) GoString() string { + return s.String() +} + +func newErrorTaskTimedOut(v protocol.ResponseMetadata) error { + return &TaskTimedOut{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TaskTimedOut) Code() string { + return "TaskTimedOut" +} + +// Message returns the exception's message. +func (s TaskTimedOut) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TaskTimedOut) OrigErr() error { + return nil +} + +func (s TaskTimedOut) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TaskTimedOut) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TaskTimedOut) RequestID() string { + return s.respMetadata.RequestID +} + // Contains details about a resource timeout that occurred during an execution. type TaskTimedOutEventDetails struct { _ struct{} `type:"structure"` @@ -6128,6 +7367,66 @@ func (s *TaskTimedOutEventDetails) SetResourceType(v string) *TaskTimedOutEventD return s } +// You've exceeded the number of tags allowed for a resource. See the Limits +// Topic (https://docs.aws.amazon.com/step-functions/latest/dg/limits.html) +// in the AWS Step Functions Developer Guide. +type TooManyTags struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` + + ResourceName *string `locationName:"resourceName" min:"1" type:"string"` +} + +// String returns the string representation +func (s TooManyTags) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTags) GoString() string { + return s.String() +} + +func newErrorTooManyTags(v protocol.ResponseMetadata) error { + return &TooManyTags{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTags) Code() string { + return "TooManyTags" +} + +// Message returns the exception's message. +func (s TooManyTags) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTags) OrigErr() error { + return nil +} + +func (s TooManyTags) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTags) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTags) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/sfn/errors.go b/service/sfn/errors.go index aa4d310dc81..1bebc5bb2f2 100644 --- a/service/sfn/errors.go +++ b/service/sfn/errors.go @@ -2,6 +2,10 @@ package sfn +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeActivityDoesNotExist for service response error code @@ -145,3 +149,29 @@ const ( // in the AWS Step Functions Developer Guide. ErrCodeTooManyTags = "TooManyTags" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ActivityDoesNotExist": newErrorActivityDoesNotExist, + "ActivityLimitExceeded": newErrorActivityLimitExceeded, + "ActivityWorkerLimitExceeded": newErrorActivityWorkerLimitExceeded, + "ExecutionAlreadyExists": newErrorExecutionAlreadyExists, + "ExecutionDoesNotExist": newErrorExecutionDoesNotExist, + "ExecutionLimitExceeded": newErrorExecutionLimitExceeded, + "InvalidArn": newErrorInvalidArn, + "InvalidDefinition": newErrorInvalidDefinition, + "InvalidExecutionInput": newErrorInvalidExecutionInput, + "InvalidLoggingConfiguration": newErrorInvalidLoggingConfiguration, + "InvalidName": newErrorInvalidName, + "InvalidOutput": newErrorInvalidOutput, + "InvalidToken": newErrorInvalidToken, + "MissingRequiredParameter": newErrorMissingRequiredParameter, + "ResourceNotFound": newErrorResourceNotFound, + "StateMachineAlreadyExists": newErrorStateMachineAlreadyExists, + "StateMachineDeleting": newErrorStateMachineDeleting, + "StateMachineDoesNotExist": newErrorStateMachineDoesNotExist, + "StateMachineLimitExceeded": newErrorStateMachineLimitExceeded, + "StateMachineTypeNotSupported": newErrorStateMachineTypeNotSupported, + "TaskDoesNotExist": newErrorTaskDoesNotExist, + "TaskTimedOut": newErrorTaskTimedOut, + "TooManyTags": newErrorTooManyTags, +} diff --git a/service/sfn/service.go b/service/sfn/service.go index c0786411661..dbd7207e776 100644 --- a/service/sfn/service.go +++ b/service/sfn/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/shield/api.go b/service/shield/api.go index aa23ff9860e..dc532852620 100644 --- a/service/shield/api.go +++ b/service/shield/api.go @@ -73,39 +73,39 @@ func (c *Shield) AssociateDRTLogBucketRequest(input *AssociateDRTLogBucketInput) // See the AWS API reference guide for AWS Shield's // API operation AssociateDRTLogBucket for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // Exception that indicates that the operation would not cause any change to // occur. // -// * ErrCodeNoAssociatedRoleException "NoAssociatedRoleException" +// * NoAssociatedRoleException // The ARN of the role that you specifed does not exist. // -// * ErrCodeLimitsExceededException "LimitsExceededException" +// * LimitsExceededException // Exception that indicates that the operation would exceed a limit. // // Type is the type of limit that would be exceeded. // // Limit is the threshold that would be exceeded. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Exception that indicates that the parameters passed to the API are invalid. // -// * ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException" +// * AccessDeniedForDependencyException // In order to grant the necessary access to the DDoS Response Team, the user // submitting AssociateDRTRole 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AssociateDRTLogBucket @@ -211,29 +211,29 @@ func (c *Shield) AssociateDRTRoleRequest(input *AssociateDRTRoleInput) (req *req // See the AWS API reference guide for AWS Shield's // API operation AssociateDRTRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // Exception that indicates that the operation would not cause any change to // occur. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Exception that indicates that the parameters passed to the API are invalid. // -// * ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException" +// * AccessDeniedForDependencyException // In order to grant the necessary access to the DDoS Response Team, the user // submitting AssociateDRTRole 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/AssociateDRTRole @@ -320,34 +320,34 @@ func (c *Shield) CreateProtectionRequest(input *CreateProtectionInput) (req *req // See the AWS API reference guide for AWS Shield's // API operation CreateProtection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidResourceException "InvalidResourceException" +// * InvalidResourceException // Exception that indicates that the resource is invalid. You might not have // access to the resource, or the resource might not exist. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // Exception that indicates that the operation would not cause any change to // occur. // -// * ErrCodeLimitsExceededException "LimitsExceededException" +// * LimitsExceededException // Exception that indicates that the operation would exceed a limit. // // Type is the type of limit that would be exceeded. // // Limit is the threshold that would be exceeded. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // Exception indicating the specified resource already exists. // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtection @@ -439,12 +439,12 @@ func (c *Shield) CreateSubscriptionRequest(input *CreateSubscriptionInput) (req // See the AWS API reference guide for AWS Shield's // API operation CreateSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // Exception indicating the specified resource already exists. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateSubscription @@ -523,15 +523,15 @@ func (c *Shield) DeleteProtectionRequest(input *DeleteProtectionInput) (req *req // See the AWS API reference guide for AWS Shield's // API operation DeleteProtection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // @@ -618,18 +618,18 @@ func (c *Shield) DeleteSubscriptionRequest(input *DeleteSubscriptionInput) (req // See the AWS API reference guide for AWS Shield's // API operation DeleteSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeLockedSubscriptionException "LockedSubscriptionException" +// * LockedSubscriptionException // You are trying to update a subscription that has not yet completed the 1-year // commitment. You can change the AutoRenew parameter during the last 30 days // of your subscription. This exception indicates that you are attempting to // change AutoRenew prior to that period. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DeleteSubscription @@ -711,12 +711,12 @@ func (c *Shield) DescribeAttackRequest(input *DescribeAttackInput) (req *request // See the AWS API reference guide for AWS Shield's // API operation DescribeAttack for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // Exception that indicates the specified AttackId does not exist, or the requester // does not have the appropriate permissions to access the AttackId. // @@ -797,12 +797,12 @@ func (c *Shield) DescribeDRTAccessRequest(input *DescribeDRTAccessInput) (req *r // See the AWS API reference guide for AWS Shield's // API operation DescribeDRTAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeDRTAccess @@ -881,12 +881,12 @@ func (c *Shield) DescribeEmergencyContactSettingsRequest(input *DescribeEmergenc // See the AWS API reference guide for AWS Shield's // API operation DescribeEmergencyContactSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeEmergencyContactSettings @@ -964,15 +964,15 @@ func (c *Shield) DescribeProtectionRequest(input *DescribeProtectionInput) (req // See the AWS API reference guide for AWS Shield's // API operation DescribeProtection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Exception that indicates that the parameters passed to the API are invalid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeProtection @@ -1050,12 +1050,12 @@ func (c *Shield) DescribeSubscriptionRequest(input *DescribeSubscriptionInput) ( // See the AWS API reference guide for AWS Shield's // API operation DescribeSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DescribeSubscription @@ -1142,29 +1142,29 @@ func (c *Shield) DisassociateDRTLogBucketRequest(input *DisassociateDRTLogBucket // See the AWS API reference guide for AWS Shield's // API operation DisassociateDRTLogBucket for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // Exception that indicates that the operation would not cause any change to // occur. // -// * ErrCodeNoAssociatedRoleException "NoAssociatedRoleException" +// * NoAssociatedRoleException // The ARN of the role that you specifed does not exist. // -// * ErrCodeAccessDeniedForDependencyException "AccessDeniedForDependencyException" +// * AccessDeniedForDependencyException // In order to grant the necessary access to the DDoS Response Team, the user // submitting AssociateDRTRole 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisassociateDRTLogBucket @@ -1250,20 +1250,20 @@ func (c *Shield) DisassociateDRTRoleRequest(input *DisassociateDRTRoleInput) (re // See the AWS API reference guide for AWS Shield's // API operation DisassociateDRTRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // Exception that indicates that the operation would not cause any change to // occur. // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/DisassociateDRTRole @@ -1341,8 +1341,8 @@ func (c *Shield) GetSubscriptionStateRequest(input *GetSubscriptionStateInput) ( // See the AWS API reference guide for AWS Shield's // API operation GetSubscriptionState for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // @@ -1422,15 +1422,15 @@ func (c *Shield) ListAttacksRequest(input *ListAttacksInput) (req *request.Reque // See the AWS API reference guide for AWS Shield's // API operation ListAttacks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Exception that indicates that the parameters passed to the API are invalid. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // Exception that indicates that the operation would not cause any change to // occur. // @@ -1509,15 +1509,15 @@ func (c *Shield) ListProtectionsRequest(input *ListProtectionsInput) (req *reque // See the AWS API reference guide for AWS Shield's // API operation ListProtections for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // -// * ErrCodeInvalidPaginationTokenException "InvalidPaginationTokenException" +// * InvalidPaginationTokenException // Exception that indicates that the NextToken specified in the request is invalid. // Submit the request using the NextToken value that was returned in the response. // @@ -1598,19 +1598,19 @@ func (c *Shield) UpdateEmergencyContactSettingsRequest(input *UpdateEmergencyCon // See the AWS API reference guide for AWS Shield's // API operation UpdateEmergencyContactSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Exception that indicates that the parameters passed to the API are invalid. // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/UpdateEmergencyContactSettings @@ -1690,24 +1690,24 @@ func (c *Shield) UpdateSubscriptionRequest(input *UpdateSubscriptionInput) (req // See the AWS API reference guide for AWS Shield's // API operation UpdateSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "InternalErrorException" +// Returned Error Types: +// * InternalErrorException // Exception that indicates that a problem occurred with the service infrastructure. // You can retry the request. // -// * ErrCodeLockedSubscriptionException "LockedSubscriptionException" +// * LockedSubscriptionException // You are trying to update a subscription that has not yet completed the 1-year // commitment. You can change the AutoRenew parameter during the last 30 days // of your subscription. This exception indicates that you are attempting to // change AutoRenew prior to that period. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // Exception indicating the specified resource does not exist. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // Exception that indicates that the parameters passed to the API are invalid. // -// * ErrCodeOptimisticLockException "OptimisticLockException" +// * OptimisticLockException // Exception that indicates that the protection state has been modified by another // client. You can retry the request. // @@ -1733,6 +1733,122 @@ func (c *Shield) UpdateSubscriptionWithContext(ctx aws.Context, input *UpdateSub return out, req.Send() } +// Exception that indicates the specified AttackId does not exist, or the requester +// does not have the appropriate permissions to access the AttackId. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// In order to grant the necessary access to the DDoS Response Team, the user +// submitting AssociateDRTRole 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 (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html). +type AccessDeniedForDependencyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedForDependencyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedForDependencyException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedForDependencyException(v protocol.ResponseMetadata) error { + return &AccessDeniedForDependencyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedForDependencyException) Code() string { + return "AccessDeniedForDependencyException" +} + +// Message returns the exception's message. +func (s AccessDeniedForDependencyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedForDependencyException) OrigErr() error { + return nil +} + +func (s AccessDeniedForDependencyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedForDependencyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedForDependencyException) RequestID() string { + return s.respMetadata.RequestID +} + type AssociateDRTLogBucketInput struct { _ struct{} `type:"structure"` @@ -2799,6 +2915,290 @@ func (s *GetSubscriptionStateOutput) SetSubscriptionState(v string) *GetSubscrip return s } +// Exception that indicates that a problem occurred with the service infrastructure. +// You can retry the request. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalErrorException) GoString() string { + return s.String() +} + +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "InternalErrorException" +} + +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil +} + +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception that indicates that the operation would not cause any change to +// occur. +type InvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOperationException) GoString() string { + return s.String() +} + +func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { + return &InvalidOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOperationException) Code() string { + return "InvalidOperationException" +} + +// Message returns the exception's message. +func (s InvalidOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOperationException) OrigErr() error { + return nil +} + +func (s InvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception that indicates that the NextToken specified in the request is invalid. +// Submit the request using the NextToken value that was returned in the response. +type InvalidPaginationTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPaginationTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPaginationTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidPaginationTokenException(v protocol.ResponseMetadata) error { + return &InvalidPaginationTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPaginationTokenException) Code() string { + return "InvalidPaginationTokenException" +} + +// Message returns the exception's message. +func (s InvalidPaginationTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPaginationTokenException) OrigErr() error { + return nil +} + +func (s InvalidPaginationTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPaginationTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPaginationTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception that indicates that the parameters passed to the API are invalid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception that indicates that the resource is invalid. You might not have +// access to the resource, or the resource might not exist. +type InvalidResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceException) GoString() string { + return s.String() +} + +func newErrorInvalidResourceException(v protocol.ResponseMetadata) error { + return &InvalidResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceException) Code() string { + return "InvalidResourceException" +} + +// Message returns the exception's message. +func (s InvalidResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceException) OrigErr() error { + return nil +} + +func (s InvalidResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies how many protections of a given type you can create. type Limit struct { _ struct{} `type:"structure"` @@ -2832,6 +3232,70 @@ func (s *Limit) SetType(v string) *Limit { return s } +// Exception that indicates that the operation would exceed a limit. +// +// Type is the type of limit that would be exceeded. +// +// Limit is the threshold that would be exceeded. +type LimitsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Limit *int64 `type:"long"` + + Message_ *string `locationName:"message" type:"string"` + + Type *string `type:"string"` +} + +// String returns the string representation +func (s LimitsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitsExceededException) GoString() string { + return s.String() +} + +func newErrorLimitsExceededException(v protocol.ResponseMetadata) error { + return &LimitsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitsExceededException) Code() string { + return "LimitsExceededException" +} + +// Message returns the exception's message. +func (s LimitsExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitsExceededException) OrigErr() error { + return nil +} + +func (s LimitsExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAttacksInput struct { _ struct{} `type:"structure"` @@ -3051,6 +3515,65 @@ func (s *ListProtectionsOutput) SetProtections(v []*Protection) *ListProtections return s } +// You are trying to update a subscription that has not yet completed the 1-year +// commitment. You can change the AutoRenew parameter during the last 30 days +// of your subscription. This exception indicates that you are attempting to +// change AutoRenew prior to that period. +type LockedSubscriptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LockedSubscriptionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LockedSubscriptionException) GoString() string { + return s.String() +} + +func newErrorLockedSubscriptionException(v protocol.ResponseMetadata) error { + return &LockedSubscriptionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LockedSubscriptionException) Code() string { + return "LockedSubscriptionException" +} + +// Message returns the exception's message. +func (s LockedSubscriptionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LockedSubscriptionException) OrigErr() error { + return nil +} + +func (s LockedSubscriptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LockedSubscriptionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LockedSubscriptionException) RequestID() string { + return s.respMetadata.RequestID +} + // The mitigation applied to a DDoS attack. type Mitigation struct { _ struct{} `type:"structure"` @@ -3075,6 +3598,119 @@ func (s *Mitigation) SetMitigationName(v string) *Mitigation { return s } +// The ARN of the role that you specifed does not exist. +type NoAssociatedRoleException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NoAssociatedRoleException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoAssociatedRoleException) GoString() string { + return s.String() +} + +func newErrorNoAssociatedRoleException(v protocol.ResponseMetadata) error { + return &NoAssociatedRoleException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoAssociatedRoleException) Code() string { + return "NoAssociatedRoleException" +} + +// Message returns the exception's message. +func (s NoAssociatedRoleException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoAssociatedRoleException) OrigErr() error { + return nil +} + +func (s NoAssociatedRoleException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoAssociatedRoleException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoAssociatedRoleException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception that indicates that the protection state has been modified by another +// client. You can retry the request. +type OptimisticLockException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OptimisticLockException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OptimisticLockException) GoString() string { + return s.String() +} + +func newErrorOptimisticLockException(v protocol.ResponseMetadata) error { + return &OptimisticLockException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OptimisticLockException) Code() string { + return "OptimisticLockException" +} + +// Message returns the exception's message. +func (s OptimisticLockException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OptimisticLockException) OrigErr() error { + return nil +} + +func (s OptimisticLockException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OptimisticLockException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OptimisticLockException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that represents a resource that is under DDoS protection. type Protection struct { _ struct{} `type:"structure"` @@ -3117,6 +3753,118 @@ func (s *Protection) SetResourceArn(v string) *Protection { return s } +// Exception indicating the specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Exception indicating the specified resource does not exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The attack information for the specified SubResource. type SubResourceSummary struct { _ struct{} `type:"structure"` diff --git a/service/shield/errors.go b/service/shield/errors.go index cb5b021a0c7..51626321758 100644 --- a/service/shield/errors.go +++ b/service/shield/errors.go @@ -2,6 +2,10 @@ package shield +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -98,3 +102,19 @@ const ( // Exception indicating the specified resource does not exist. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AccessDeniedForDependencyException": newErrorAccessDeniedForDependencyException, + "InternalErrorException": newErrorInternalErrorException, + "InvalidOperationException": newErrorInvalidOperationException, + "InvalidPaginationTokenException": newErrorInvalidPaginationTokenException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidResourceException": newErrorInvalidResourceException, + "LimitsExceededException": newErrorLimitsExceededException, + "LockedSubscriptionException": newErrorLockedSubscriptionException, + "NoAssociatedRoleException": newErrorNoAssociatedRoleException, + "OptimisticLockException": newErrorOptimisticLockException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/shield/service.go b/service/shield/service.go index fb00254f813..a831fb21d27 100644 --- a/service/shield/service.go +++ b/service/shield/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/signer/api.go b/service/signer/api.go index 6b79d2b9a02..935b2fa0dbf 100644 --- a/service/signer/api.go +++ b/service/signer/api.go @@ -3,6 +3,7 @@ package signer import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -68,17 +69,17 @@ func (c *Signer) CancelSigningProfileRequest(input *CancelSigningProfileInput) ( // See the AWS API reference guide for AWS Signer's // API operation CancelSigningProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A specified resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The signing job has been throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/CancelSigningProfile @@ -157,14 +158,14 @@ func (c *Signer) DescribeSigningJobRequest(input *DescribeSigningJobInput) (req // See the AWS API reference guide for AWS Signer's // API operation DescribeSigningJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A specified resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/DescribeSigningJob @@ -242,14 +243,14 @@ func (c *Signer) GetSigningPlatformRequest(input *GetSigningPlatformInput) (req // See the AWS API reference guide for AWS Signer's // API operation GetSigningPlatform for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A specified resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningPlatform @@ -327,17 +328,17 @@ func (c *Signer) GetSigningProfileRequest(input *GetSigningProfileInput) (req *r // See the AWS API reference guide for AWS Signer's // API operation GetSigningProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A specified resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The signing job has been throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningProfile @@ -427,17 +428,17 @@ func (c *Signer) ListSigningJobsRequest(input *ListSigningJobsInput) (req *reque // See the AWS API reference guide for AWS Signer's // API operation ListSigningJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // You signing certificate could not be validated. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The signing job has been throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs @@ -578,17 +579,17 @@ func (c *Signer) ListSigningPlatformsRequest(input *ListSigningPlatformsInput) ( // See the AWS API reference guide for AWS Signer's // API operation ListSigningPlatforms for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // You signing certificate could not be validated. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The signing job has been throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningPlatforms @@ -730,14 +731,14 @@ func (c *Signer) ListSigningProfilesRequest(input *ListSigningProfilesInput) (re // See the AWS API reference guide for AWS Signer's // API operation ListSigningProfiles for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The signing job has been throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfiles @@ -867,15 +868,15 @@ func (c *Signer) ListTagsForResourceRequest(input *ListTagsForResourceInput) (re // See the AWS API reference guide for AWS Signer's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// Returned Error Types: +// * InternalServiceErrorException // An internal error occurred. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request contains invalid parameters for the ARN or tags. This exception // also occurs when you call a tagging API on a cancelled signing profile. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The signing profile was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListTagsForResource @@ -956,20 +957,20 @@ func (c *Signer) PutSigningProfileRequest(input *PutSigningProfileInput) (req *r // See the AWS API reference guide for AWS Signer's // API operation PutSigningProfile for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // A specified resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeValidationException "ValidationException" +// * ValidationException // You signing certificate could not be validated. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The signing job has been throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/PutSigningProfile @@ -1070,20 +1071,20 @@ func (c *Signer) StartSigningJobRequest(input *StartSigningJobInput) (req *reque // See the AWS API reference guide for AWS Signer's // API operation StartSigningJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeValidationException "ValidationException" +// Returned Error Types: +// * ValidationException // You signing certificate could not be validated. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // A specified resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The signing job has been throttled. // -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// * InternalServiceErrorException // An internal error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/StartSigningJob @@ -1165,15 +1166,15 @@ func (c *Signer) TagResourceRequest(input *TagResourceInput) (req *request.Reque // See the AWS API reference guide for AWS Signer's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// Returned Error Types: +// * InternalServiceErrorException // An internal error occurred. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request contains invalid parameters for the ARN or tags. This exception // also occurs when you call a tagging API on a cancelled signing profile. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The signing profile was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/TagResource @@ -1253,15 +1254,15 @@ func (c *Signer) UntagResourceRequest(input *UntagResourceInput) (req *request.R // See the AWS API reference guide for AWS Signer's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServiceErrorException "InternalServiceErrorException" +// Returned Error Types: +// * InternalServiceErrorException // An internal error occurred. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // The request contains invalid parameters for the ARN or tags. This exception // also occurs when you call a tagging API on a cancelled signing profile. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // The signing profile was not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/UntagResource @@ -1286,6 +1287,119 @@ func (c *Signer) UntagResourceWithContext(ctx aws.Context, input *UntagResourceI return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request contains invalid parameters for the ARN or tags. This exception +// also occurs when you call a tagging API on a cancelled signing profile. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type CancelSigningProfileInput struct { _ struct{} `type:"structure"` @@ -1870,6 +1984,62 @@ func (s *HashAlgorithmOptions) SetDefaultValue(v string) *HashAlgorithmOptions { return s } +// An internal error occurred. +type InternalServiceErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { + return &InternalServiceErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceErrorException) Code() string { + return "InternalServiceErrorException" +} + +// Message returns the exception's message. +func (s InternalServiceErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceErrorException) OrigErr() error { + return nil +} + +func (s InternalServiceErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type ListSigningJobsInput struct { _ struct{} `type:"structure"` @@ -2242,6 +2412,62 @@ func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForRe return s } +// The signing profile was not found. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type PutSigningProfileInput struct { _ struct{} `type:"structure"` @@ -2373,6 +2599,62 @@ func (s *PutSigningProfileOutput) SetArn(v string) *PutSigningProfileOutput { return s } +// A specified resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The name and prefix of the S3 bucket where code signing saves your signed // objects. type S3Destination struct { @@ -3164,6 +3446,62 @@ func (s TagResourceOutput) GoString() string { return s.String() } +// The signing job has been throttled. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -3236,6 +3574,62 @@ func (s UntagResourceOutput) GoString() string { return s.String() } +// You signing certificate could not be validated. +type ValidationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ValidationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ValidationException) GoString() string { + return s.String() +} + +func newErrorValidationException(v protocol.ResponseMetadata) error { + return &ValidationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ValidationException) Code() string { + return "ValidationException" +} + +// Message returns the exception's message. +func (s ValidationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ValidationException) OrigErr() error { + return nil +} + +func (s ValidationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ValidationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ValidationException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // CategoryAwsioT is a Category enum value CategoryAwsioT = "AWSIoT" diff --git a/service/signer/errors.go b/service/signer/errors.go index 2af89255c89..525a011ab12 100644 --- a/service/signer/errors.go +++ b/service/signer/errors.go @@ -2,6 +2,10 @@ package signer +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -47,3 +51,13 @@ const ( // You signing certificate could not be validated. ErrCodeValidationException = "ValidationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "BadRequestException": newErrorBadRequestException, + "InternalServiceErrorException": newErrorInternalServiceErrorException, + "NotFoundException": newErrorNotFoundException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ThrottlingException": newErrorThrottlingException, + "ValidationException": newErrorValidationException, +} diff --git a/service/signer/service.go b/service/signer/service.go index 6ee061c9126..66ad0c2fb3f 100644 --- a/service/signer/service.go +++ b/service/signer/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/sms/api.go b/service/sms/api.go index a0c72336851..f9f004975c2 100644 --- a/service/sms/api.go +++ b/service/sms/api.go @@ -3,6 +3,7 @@ package sms import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,21 +67,21 @@ func (c *SMS) CreateAppRequest(input *CreateAppInput) (req *request.Request, out // See the AWS API reference guide for AWS Server Migration Service's // API operation CreateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp @@ -160,33 +161,33 @@ func (c *SMS) CreateReplicationJobRequest(input *CreateReplicationJobInput) (req // See the AWS API reference guide for AWS Server Migration Service's // API operation CreateReplicationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // -// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException" +// * ServerCannotBeReplicatedException // The specified server cannot be replicated. // -// * ErrCodeReplicationJobAlreadyExistsException "ReplicationJobAlreadyExistsException" +// * ReplicationJobAlreadyExistsException // The specified replication job already exists. // -// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException" +// * NoConnectorsAvailableException // There are no connectors available. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException" +// * TemporarilyUnavailableException // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob @@ -267,21 +268,21 @@ func (c *SMS) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, out // See the AWS API reference guide for AWS Server Migration Service's // API operation DeleteApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp @@ -360,21 +361,21 @@ func (c *SMS) DeleteAppLaunchConfigurationRequest(input *DeleteAppLaunchConfigur // See the AWS API reference guide for AWS Server Migration Service's // API operation DeleteAppLaunchConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration @@ -453,21 +454,21 @@ func (c *SMS) DeleteAppReplicationConfigurationRequest(input *DeleteAppReplicati // See the AWS API reference guide for AWS Server Migration Service's // API operation DeleteAppReplicationConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration @@ -550,21 +551,21 @@ func (c *SMS) DeleteReplicationJobRequest(input *DeleteReplicationJobInput) (req // See the AWS API reference guide for AWS Server Migration Service's // API operation DeleteReplicationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // -// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" +// * ReplicationJobNotFoundException // The specified replication job does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob @@ -643,18 +644,18 @@ func (c *SMS) DeleteServerCatalogRequest(input *DeleteServerCatalogInput) (req * // See the AWS API reference guide for AWS Server Migration Service's // API operation DeleteServerCatalog for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog @@ -736,18 +737,18 @@ func (c *SMS) DisassociateConnectorRequest(input *DisassociateConnectorInput) (r // See the AWS API reference guide for AWS Server Migration Service's // API operation DisassociateConnector for usage and error information. // -// Returned Error Codes: -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// Returned Error Types: +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector @@ -826,21 +827,21 @@ func (c *SMS) GenerateChangeSetRequest(input *GenerateChangeSetInput) (req *requ // See the AWS API reference guide for AWS Server Migration Service's // API operation GenerateChangeSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet @@ -919,21 +920,21 @@ func (c *SMS) GenerateTemplateRequest(input *GenerateTemplateInput) (req *reques // See the AWS API reference guide for AWS Server Migration Service's // API operation GenerateTemplate for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate @@ -1011,21 +1012,21 @@ func (c *SMS) GetAppRequest(input *GetAppInput) (req *request.Request, output *G // See the AWS API reference guide for AWS Server Migration Service's // API operation GetApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp @@ -1103,21 +1104,21 @@ func (c *SMS) GetAppLaunchConfigurationRequest(input *GetAppLaunchConfigurationI // See the AWS API reference guide for AWS Server Migration Service's // API operation GetAppLaunchConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration @@ -1195,21 +1196,21 @@ func (c *SMS) GetAppReplicationConfigurationRequest(input *GetAppReplicationConf // See the AWS API reference guide for AWS Server Migration Service's // API operation GetAppReplicationConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration @@ -1293,8 +1294,8 @@ func (c *SMS) GetConnectorsRequest(input *GetConnectorsInput) (req *request.Requ // See the AWS API reference guide for AWS Server Migration Service's // API operation GetConnectors for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // @@ -1431,14 +1432,14 @@ func (c *SMS) GetReplicationJobsRequest(input *GetReplicationJobsInput) (req *re // See the AWS API reference guide for AWS Server Migration Service's // API operation GetReplicationJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // @@ -1575,14 +1576,14 @@ func (c *SMS) GetReplicationRunsRequest(input *GetReplicationRunsInput) (req *re // See the AWS API reference guide for AWS Server Migration Service's // API operation GetReplicationRuns for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // @@ -1721,8 +1722,8 @@ func (c *SMS) GetServersRequest(input *GetServersInput) (req *request.Request, o // See the AWS API reference guide for AWS Server Migration Service's // API operation GetServers for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // @@ -1858,21 +1859,21 @@ func (c *SMS) ImportServerCatalogRequest(input *ImportServerCatalogInput) (req * // See the AWS API reference guide for AWS Server Migration Service's // API operation ImportServerCatalog for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException" +// * NoConnectorsAvailableException // There are no connectors available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog @@ -1951,21 +1952,21 @@ func (c *SMS) LaunchAppRequest(input *LaunchAppInput) (req *request.Request, out // See the AWS API reference guide for AWS Server Migration Service's // API operation LaunchApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp @@ -2043,21 +2044,21 @@ func (c *SMS) ListAppsRequest(input *ListAppsInput) (req *request.Request, outpu // See the AWS API reference guide for AWS Server Migration Service's // API operation ListApps for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps @@ -2136,21 +2137,21 @@ func (c *SMS) PutAppLaunchConfigurationRequest(input *PutAppLaunchConfigurationI // See the AWS API reference guide for AWS Server Migration Service's // API operation PutAppLaunchConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration @@ -2229,21 +2230,21 @@ func (c *SMS) PutAppReplicationConfigurationRequest(input *PutAppReplicationConf // See the AWS API reference guide for AWS Server Migration Service's // API operation PutAppReplicationConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration @@ -2322,21 +2323,21 @@ func (c *SMS) StartAppReplicationRequest(input *StartAppReplicationInput) (req * // See the AWS API reference guide for AWS Server Migration Service's // API operation StartAppReplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication @@ -2419,21 +2420,21 @@ func (c *SMS) StartOnDemandReplicationRunRequest(input *StartOnDemandReplication // See the AWS API reference guide for AWS Server Migration Service's // API operation StartOnDemandReplicationRun for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // -// * ErrCodeReplicationRunLimitExceededException "ReplicationRunLimitExceededException" +// * ReplicationRunLimitExceededException // You have exceeded the number of on-demand replication runs you can request // in a 24-hour period. // @@ -2513,21 +2514,21 @@ func (c *SMS) StopAppReplicationRequest(input *StopAppReplicationInput) (req *re // See the AWS API reference guide for AWS Server Migration Service's // API operation StopAppReplication for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication @@ -2606,21 +2607,21 @@ func (c *SMS) TerminateAppRequest(input *TerminateAppInput) (req *request.Reques // See the AWS API reference guide for AWS Server Migration Service's // API operation TerminateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp @@ -2698,21 +2699,21 @@ func (c *SMS) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, out // See the AWS API reference guide for AWS Server Migration Service's // API operation UpdateApp for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp @@ -2791,30 +2792,30 @@ func (c *SMS) UpdateReplicationJobRequest(input *UpdateReplicationJobInput) (req // See the AWS API reference guide for AWS Server Migration Service's // API operation UpdateReplicationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // A specified parameter is not valid. // -// * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException" +// * MissingRequiredParameterException // A required parameter is missing. // -// * ErrCodeOperationNotPermittedException "OperationNotPermittedException" +// * OperationNotPermittedException // This operation is not allowed. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // You lack permissions needed to perform this operation. Check your IAM policies, // and ensure that you are using the correct access keys. // -// * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException" +// * ServerCannotBeReplicatedException // The specified server cannot be replicated. // -// * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException" +// * ReplicationJobNotFoundException // The specified replication job does not exist. // -// * ErrCodeInternalError "InternalError" +// * InternalError // An internal error occurred. // -// * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException" +// * TemporarilyUnavailableException // The service is temporarily unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob @@ -4287,6 +4288,118 @@ func (s ImportServerCatalogOutput) GoString() string { return s.String() } +// An internal error occurred. +type InternalError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalError) GoString() string { + return s.String() +} + +func newErrorInternalError(v protocol.ResponseMetadata) error { + return &InternalError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalError) Code() string { + return "InternalError" +} + +// Message returns the exception's message. +func (s InternalError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalError) OrigErr() error { + return nil +} + +func (s InternalError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalError) RequestID() string { + return s.respMetadata.RequestID +} + +// A specified parameter is not valid. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + type LaunchAppInput struct { _ struct{} `type:"structure"` @@ -4441,6 +4554,174 @@ func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput { return s } +// A required parameter is missing. +type MissingRequiredParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s MissingRequiredParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MissingRequiredParameterException) GoString() string { + return s.String() +} + +func newErrorMissingRequiredParameterException(v protocol.ResponseMetadata) error { + return &MissingRequiredParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MissingRequiredParameterException) Code() string { + return "MissingRequiredParameterException" +} + +// Message returns the exception's message. +func (s MissingRequiredParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MissingRequiredParameterException) OrigErr() error { + return nil +} + +func (s MissingRequiredParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MissingRequiredParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MissingRequiredParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// There are no connectors available. +type NoConnectorsAvailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NoConnectorsAvailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NoConnectorsAvailableException) GoString() string { + return s.String() +} + +func newErrorNoConnectorsAvailableException(v protocol.ResponseMetadata) error { + return &NoConnectorsAvailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NoConnectorsAvailableException) Code() string { + return "NoConnectorsAvailableException" +} + +// Message returns the exception's message. +func (s NoConnectorsAvailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NoConnectorsAvailableException) OrigErr() error { + return nil +} + +func (s NoConnectorsAvailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NoConnectorsAvailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NoConnectorsAvailableException) RequestID() string { + return s.respMetadata.RequestID +} + +// This operation is not allowed. +type OperationNotPermittedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OperationNotPermittedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotPermittedException) GoString() string { + return s.String() +} + +func newErrorOperationNotPermittedException(v protocol.ResponseMetadata) error { + return &OperationNotPermittedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotPermittedException) Code() string { + return "OperationNotPermittedException" +} + +// Message returns the exception's message. +func (s OperationNotPermittedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotPermittedException) OrigErr() error { + return nil +} + +func (s OperationNotPermittedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotPermittedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotPermittedException) RequestID() string { + return s.respMetadata.RequestID +} + type PutAppLaunchConfigurationInput struct { _ struct{} `type:"structure"` @@ -4734,6 +5015,118 @@ func (s *ReplicationJob) SetVmServer(v *VmServer) *ReplicationJob { return s } +// The specified replication job already exists. +type ReplicationJobAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ReplicationJobAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationJobAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorReplicationJobAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ReplicationJobAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReplicationJobAlreadyExistsException) Code() string { + return "ReplicationJobAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ReplicationJobAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplicationJobAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ReplicationJobAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReplicationJobAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReplicationJobAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified replication job does not exist. +type ReplicationJobNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ReplicationJobNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationJobNotFoundException) GoString() string { + return s.String() +} + +func newErrorReplicationJobNotFoundException(v protocol.ResponseMetadata) error { + return &ReplicationJobNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReplicationJobNotFoundException) Code() string { + return "ReplicationJobNotFoundException" +} + +// Message returns the exception's message. +func (s ReplicationJobNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplicationJobNotFoundException) OrigErr() error { + return nil +} + +func (s ReplicationJobNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReplicationJobNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReplicationJobNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Represents a replication run. type ReplicationRun struct { _ struct{} `type:"structure"` @@ -4861,6 +5254,63 @@ func (s *ReplicationRun) SetType(v string) *ReplicationRun { return s } +// You have exceeded the number of on-demand replication runs you can request +// in a 24-hour period. +type ReplicationRunLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ReplicationRunLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReplicationRunLimitExceededException) GoString() string { + return s.String() +} + +func newErrorReplicationRunLimitExceededException(v protocol.ResponseMetadata) error { + return &ReplicationRunLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReplicationRunLimitExceededException) Code() string { + return "ReplicationRunLimitExceededException" +} + +// Message returns the exception's message. +func (s ReplicationRunLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReplicationRunLimitExceededException) OrigErr() error { + return nil +} + +func (s ReplicationRunLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReplicationRunLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReplicationRunLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Details of the current stage of a replication run. type ReplicationRunStageDetails struct { _ struct{} `type:"structure"` @@ -4987,6 +5437,62 @@ func (s *Server) SetVmServer(v *VmServer) *Server { return s } +// The specified server cannot be replicated. +type ServerCannotBeReplicatedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServerCannotBeReplicatedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServerCannotBeReplicatedException) GoString() string { + return s.String() +} + +func newErrorServerCannotBeReplicatedException(v protocol.ResponseMetadata) error { + return &ServerCannotBeReplicatedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServerCannotBeReplicatedException) Code() string { + return "ServerCannotBeReplicatedException" +} + +// Message returns the exception's message. +func (s ServerCannotBeReplicatedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServerCannotBeReplicatedException) OrigErr() error { + return nil +} + +func (s ServerCannotBeReplicatedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServerCannotBeReplicatedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServerCannotBeReplicatedException) RequestID() string { + return s.respMetadata.RequestID +} + // A logical grouping of servers. type ServerGroup struct { _ struct{} `type:"structure"` @@ -5501,6 +6007,57 @@ func (s *Tag) SetValue(v string) *Tag { return s } +// The service is temporarily unavailable. +type TemporarilyUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TemporarilyUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TemporarilyUnavailableException) GoString() string { + return s.String() +} + +func newErrorTemporarilyUnavailableException(v protocol.ResponseMetadata) error { + return &TemporarilyUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TemporarilyUnavailableException) Code() string { + return "TemporarilyUnavailableException" +} + +// Message returns the exception's message. +func (s TemporarilyUnavailableException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TemporarilyUnavailableException) OrigErr() error { + return nil +} + +func (s TemporarilyUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TemporarilyUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TemporarilyUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type TerminateAppInput struct { _ struct{} `type:"structure"` @@ -5538,6 +6095,63 @@ func (s TerminateAppOutput) GoString() string { return s.String() } +// You lack permissions needed to perform this operation. Check your IAM policies, +// and ensure that you are using the correct access keys. +type UnauthorizedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedOperationException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedOperationException(v protocol.ResponseMetadata) error { + return &UnauthorizedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedOperationException) Code() string { + return "UnauthorizedOperationException" +} + +// Message returns the exception's message. +func (s UnauthorizedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedOperationException) OrigErr() error { + return nil +} + +func (s UnauthorizedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateAppInput struct { _ struct{} `type:"structure"` diff --git a/service/sms/errors.go b/service/sms/errors.go index 1f5a4572293..f9cf24b55af 100644 --- a/service/sms/errors.go +++ b/service/sms/errors.go @@ -2,6 +2,10 @@ package sms +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalError for service response error code @@ -72,3 +76,17 @@ const ( // and ensure that you are using the correct access keys. ErrCodeUnauthorizedOperationException = "UnauthorizedOperationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalError": newErrorInternalError, + "InvalidParameterException": newErrorInvalidParameterException, + "MissingRequiredParameterException": newErrorMissingRequiredParameterException, + "NoConnectorsAvailableException": newErrorNoConnectorsAvailableException, + "OperationNotPermittedException": newErrorOperationNotPermittedException, + "ReplicationJobAlreadyExistsException": newErrorReplicationJobAlreadyExistsException, + "ReplicationJobNotFoundException": newErrorReplicationJobNotFoundException, + "ReplicationRunLimitExceededException": newErrorReplicationRunLimitExceededException, + "ServerCannotBeReplicatedException": newErrorServerCannotBeReplicatedException, + "TemporarilyUnavailableException": newErrorTemporarilyUnavailableException, + "UnauthorizedOperationException": newErrorUnauthorizedOperationException, +} diff --git a/service/sms/service.go b/service/sms/service.go index 3f68fa527a5..0cc15ca1b46 100644 --- a/service/sms/service.go +++ b/service/sms/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/snowball/api.go b/service/snowball/api.go index 6942381dc15..0f99816016a 100644 --- a/service/snowball/api.go +++ b/service/snowball/api.go @@ -69,16 +69,16 @@ func (c *Snowball) CancelClusterRequest(input *CancelClusterInput) (req *request // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation CancelCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// Returned Error Types: +// * KMSRequestFailedException // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The action can't be performed because the job's current state doesn't allow // that action to be performed. // -// * ErrCodeInvalidResourceException "InvalidResourceException" +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // @@ -160,16 +160,16 @@ func (c *Snowball) CancelJobRequest(input *CancelJobInput) (req *request.Request // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation CancelJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The action can't be performed because the job's current state doesn't allow // that action to be performed. // -// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// * KMSRequestFailedException // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // @@ -251,12 +251,12 @@ func (c *Snowball) CreateAddressRequest(input *CreateAddressInput) (req *request // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation CreateAddress for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidAddressException "InvalidAddressException" +// Returned Error Types: +// * InvalidAddressException // The address provided was invalid. Check the address with your region's carrier, // and try again. // -// * ErrCodeUnsupportedAddressException "UnsupportedAddressException" +// * UnsupportedAddressException // The address is either outside the serviceable area for your region, or an // error occurred. Check the address with your region's carrier and try again. // If the issue persists, contact AWS Support. @@ -338,21 +338,21 @@ func (c *Snowball) CreateClusterRequest(input *CreateClusterInput) (req *request // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation CreateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// * KMSRequestFailedException // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // -// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// * InvalidInputCombinationException // Job or cluster creation failed. One ore more inputs were invalid. Confirm // that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, // and try again. // -// * ErrCodeEc2RequestFailedException "Ec2RequestFailedException" +// * Ec2RequestFailedException // Your IAM user lacks the necessary Amazon EC2 permissions to perform the attempted // action. // @@ -435,27 +435,27 @@ func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation CreateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// * KMSRequestFailedException // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // -// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// * InvalidInputCombinationException // Job or cluster creation failed. One ore more inputs were invalid. Confirm // that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, // and try again. // -// * ErrCodeClusterLimitExceededException "ClusterLimitExceededException" +// * ClusterLimitExceededException // Job creation failed. Currently, clusters support five nodes. If you have // less than five nodes for your cluster and you have more nodes to create for // this cluster, try again and create jobs until your cluster has exactly five // notes. // -// * ErrCodeEc2RequestFailedException "Ec2RequestFailedException" +// * Ec2RequestFailedException // Your IAM user lacks the necessary Amazon EC2 permissions to perform the attempted // action. // @@ -535,8 +535,8 @@ func (c *Snowball) DescribeAddressRequest(input *DescribeAddressInput) (req *req // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation DescribeAddress for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // @@ -623,12 +623,12 @@ func (c *Snowball) DescribeAddressesRequest(input *DescribeAddressesInput) (req // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation DescribeAddresses for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken string was altered unexpectedly, and the operation has stopped. // Run the operation without changing the NextToken string, and try again. // @@ -760,8 +760,8 @@ func (c *Snowball) DescribeClusterRequest(input *DescribeClusterInput) (req *req // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation DescribeCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // @@ -841,8 +841,8 @@ func (c *Snowball) DescribeJobRequest(input *DescribeJobInput) (req *request.Req // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation DescribeJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // @@ -938,12 +938,12 @@ func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *reque // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation GetJobManifest for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The action can't be performed because the job's current state doesn't allow // that action to be performed. // @@ -1034,12 +1034,12 @@ func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *r // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation GetJobUnlockCode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The action can't be performed because the job's current state doesn't allow // that action to be performed. // @@ -1197,12 +1197,12 @@ func (c *Snowball) GetSoftwareUpdatesRequest(input *GetSoftwareUpdatesInput) (re // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation GetSoftwareUpdates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The action can't be performed because the job's current state doesn't allow // that action to be performed. // @@ -1283,12 +1283,12 @@ func (c *Snowball) ListClusterJobsRequest(input *ListClusterJobsInput) (req *req // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation ListClusterJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken string was altered unexpectedly, and the operation has stopped. // Run the operation without changing the NextToken string, and try again. // @@ -1369,8 +1369,8 @@ func (c *Snowball) ListClustersRequest(input *ListClustersInput) (req *request.R // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation ListClusters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The NextToken string was altered unexpectedly, and the operation has stopped. // Run the operation without changing the NextToken string, and try again. // @@ -1453,12 +1453,12 @@ func (c *Snowball) ListCompatibleImagesRequest(input *ListCompatibleImagesInput) // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation ListCompatibleImages for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The NextToken string was altered unexpectedly, and the operation has stopped. // Run the operation without changing the NextToken string, and try again. // -// * ErrCodeEc2RequestFailedException "Ec2RequestFailedException" +// * Ec2RequestFailedException // Your IAM user lacks the necessary Amazon EC2 permissions to perform the attempted // action. // @@ -1547,8 +1547,8 @@ func (c *Snowball) ListJobsRequest(input *ListJobsInput) (req *request.Request, // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation ListJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// Returned Error Types: +// * InvalidNextTokenException // The NextToken string was altered unexpectedly, and the operation has stopped. // Run the operation without changing the NextToken string, and try again. // @@ -1683,25 +1683,25 @@ func (c *Snowball) UpdateClusterRequest(input *UpdateClusterInput) (req *request // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation UpdateCluster for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The action can't be performed because the job's current state doesn't allow // that action to be performed. // -// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// * KMSRequestFailedException // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // -// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// * InvalidInputCombinationException // Job or cluster creation failed. One ore more inputs were invalid. Confirm // that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, // and try again. // -// * ErrCodeEc2RequestFailedException "Ec2RequestFailedException" +// * Ec2RequestFailedException // Your IAM user lacks the necessary Amazon EC2 permissions to perform the attempted // action. // @@ -1783,31 +1783,31 @@ func (c *Snowball) UpdateJobRequest(input *UpdateJobInput) (req *request.Request // See the AWS API reference guide for Amazon Import/Export Snowball's // API operation UpdateJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceException "InvalidResourceException" +// Returned Error Types: +// * InvalidResourceException // The specified resource can't be found. Check the information you provided // in your last request, and try again. // -// * ErrCodeInvalidJobStateException "InvalidJobStateException" +// * InvalidJobStateException // The action can't be performed because the job's current state doesn't allow // that action to be performed. // -// * ErrCodeKMSRequestFailedException "KMSRequestFailedException" +// * KMSRequestFailedException // The provided AWS Key Management Service key lacks the permissions to perform // the specified CreateJob or UpdateJob action. // -// * ErrCodeInvalidInputCombinationException "InvalidInputCombinationException" +// * InvalidInputCombinationException // Job or cluster creation failed. One ore more inputs were invalid. Confirm // that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, // and try again. // -// * ErrCodeClusterLimitExceededException "ClusterLimitExceededException" +// * ClusterLimitExceededException // Job creation failed. Currently, clusters support five nodes. If you have // less than five nodes for your cluster and you have more nodes to create for // this cluster, try again and create jobs until your cluster has exactly five // notes. // -// * ErrCodeEc2RequestFailedException "Ec2RequestFailedException" +// * Ec2RequestFailedException // Your IAM user lacks the necessary Amazon EC2 permissions to perform the attempted // action. // @@ -2141,6 +2141,65 @@ func (s CancelJobOutput) GoString() string { return s.String() } +// Job creation failed. Currently, clusters support five nodes. If you have +// less than five nodes for your cluster and you have more nodes to create for +// this cluster, try again and create jobs until your cluster has exactly five +// notes. +type ClusterLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s ClusterLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ClusterLimitExceededException) GoString() string { + return s.String() +} + +func newErrorClusterLimitExceededException(v protocol.ResponseMetadata) error { + return &ClusterLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ClusterLimitExceededException) Code() string { + return "ClusterLimitExceededException" +} + +// Message returns the exception's message. +func (s ClusterLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ClusterLimitExceededException) OrigErr() error { + return nil +} + +func (s ClusterLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ClusterLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ClusterLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains a cluster's state, a cluster's ID, and other important information. type ClusterListEntry struct { _ struct{} `type:"structure"` @@ -3262,6 +3321,63 @@ func (s *Ec2AmiResource) SetSnowballAmiId(v string) *Ec2AmiResource { return s } +// Your IAM user lacks the necessary Amazon EC2 permissions to perform the attempted +// action. +type Ec2RequestFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s Ec2RequestFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s Ec2RequestFailedException) GoString() string { + return s.String() +} + +func newErrorEc2RequestFailedException(v protocol.ResponseMetadata) error { + return &Ec2RequestFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s Ec2RequestFailedException) Code() string { + return "Ec2RequestFailedException" +} + +// Message returns the exception's message. +func (s Ec2RequestFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s Ec2RequestFailedException) OrigErr() error { + return nil +} + +func (s Ec2RequestFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s Ec2RequestFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s Ec2RequestFailedException) RequestID() string { + return s.respMetadata.RequestID +} + // The container for the EventTriggerDefinition$EventResourceARN. type EventTriggerDefinition struct { _ struct{} `type:"structure"` @@ -3534,6 +3650,295 @@ func (s *GetSoftwareUpdatesOutput) SetUpdatesURI(v string) *GetSoftwareUpdatesOu return s } +// The address provided was invalid. Check the address with your region's carrier, +// and try again. +type InvalidAddressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidAddressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAddressException) GoString() string { + return s.String() +} + +func newErrorInvalidAddressException(v protocol.ResponseMetadata) error { + return &InvalidAddressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAddressException) Code() string { + return "InvalidAddressException" +} + +// Message returns the exception's message. +func (s InvalidAddressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAddressException) OrigErr() error { + return nil +} + +func (s InvalidAddressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAddressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAddressException) RequestID() string { + return s.respMetadata.RequestID +} + +// Job or cluster creation failed. One ore more inputs were invalid. Confirm +// that the CreateClusterRequest$SnowballType value supports your CreateJobRequest$JobType, +// and try again. +type InvalidInputCombinationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidInputCombinationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInputCombinationException) GoString() string { + return s.String() +} + +func newErrorInvalidInputCombinationException(v protocol.ResponseMetadata) error { + return &InvalidInputCombinationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInputCombinationException) Code() string { + return "InvalidInputCombinationException" +} + +// Message returns the exception's message. +func (s InvalidInputCombinationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInputCombinationException) OrigErr() error { + return nil +} + +func (s InvalidInputCombinationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInputCombinationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInputCombinationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The action can't be performed because the job's current state doesn't allow +// that action to be performed. +type InvalidJobStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidJobStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidJobStateException) GoString() string { + return s.String() +} + +func newErrorInvalidJobStateException(v protocol.ResponseMetadata) error { + return &InvalidJobStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidJobStateException) Code() string { + return "InvalidJobStateException" +} + +// Message returns the exception's message. +func (s InvalidJobStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidJobStateException) OrigErr() error { + return nil +} + +func (s InvalidJobStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidJobStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidJobStateException) RequestID() string { + return s.respMetadata.RequestID +} + +// The NextToken string was altered unexpectedly, and the operation has stopped. +// Run the operation without changing the NextToken string, and try again. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource can't be found. Check the information you provided +// in your last request, and try again. +type InvalidResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` + + // The provided resource value is invalid. + ResourceType *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceException) GoString() string { + return s.String() +} + +func newErrorInvalidResourceException(v protocol.ResponseMetadata) error { + return &InvalidResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceException) Code() string { + return "InvalidResourceException" +} + +// Message returns the exception's message. +func (s InvalidResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceException) OrigErr() error { + return nil +} + +func (s InvalidResourceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceException) RequestID() string { + return s.respMetadata.RequestID +} + // Each JobListEntry object contains a job's state, a job's ID, and a value // that indicates whether the job is a job part, in the case of an export job. type JobListEntry struct { @@ -3941,6 +4346,63 @@ func (s *JobResource) SetS3Resources(v []*S3Resource) *JobResource { return s } +// The provided AWS Key Management Service key lacks the permissions to perform +// the specified CreateJob or UpdateJob action. +type KMSRequestFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s KMSRequestFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s KMSRequestFailedException) GoString() string { + return s.String() +} + +func newErrorKMSRequestFailedException(v protocol.ResponseMetadata) error { + return &KMSRequestFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s KMSRequestFailedException) Code() string { + return "KMSRequestFailedException" +} + +// Message returns the exception's message. +func (s KMSRequestFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s KMSRequestFailedException) OrigErr() error { + return nil +} + +func (s KMSRequestFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s KMSRequestFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s KMSRequestFailedException) RequestID() string { + return s.respMetadata.RequestID +} + // Contains a key range. For export jobs, a S3Resource object can have an optional // KeyRange value. The length of the range is defined at job creation, and has // either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges @@ -4584,6 +5046,64 @@ func (s *ShippingDetails) SetShippingOption(v string) *ShippingDetails { return s } +// The address is either outside the serviceable area for your region, or an +// error occurred. Check the address with your region's carrier and try again. +// If the issue persists, contact AWS Support. +type UnsupportedAddressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" min:"1" type:"string"` +} + +// String returns the string representation +func (s UnsupportedAddressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedAddressException) GoString() string { + return s.String() +} + +func newErrorUnsupportedAddressException(v protocol.ResponseMetadata) error { + return &UnsupportedAddressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedAddressException) Code() string { + return "UnsupportedAddressException" +} + +// Message returns the exception's message. +func (s UnsupportedAddressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedAddressException) OrigErr() error { + return nil +} + +func (s UnsupportedAddressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedAddressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedAddressException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateClusterInput struct { _ struct{} `type:"structure"` diff --git a/service/snowball/errors.go b/service/snowball/errors.go index 37517e114f3..61d1dffa95a 100644 --- a/service/snowball/errors.go +++ b/service/snowball/errors.go @@ -2,6 +2,10 @@ package snowball +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeClusterLimitExceededException for service response error code @@ -71,3 +75,15 @@ const ( // If the issue persists, contact AWS Support. ErrCodeUnsupportedAddressException = "UnsupportedAddressException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ClusterLimitExceededException": newErrorClusterLimitExceededException, + "Ec2RequestFailedException": newErrorEc2RequestFailedException, + "InvalidAddressException": newErrorInvalidAddressException, + "InvalidInputCombinationException": newErrorInvalidInputCombinationException, + "InvalidJobStateException": newErrorInvalidJobStateException, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidResourceException": newErrorInvalidResourceException, + "KMSRequestFailedException": newErrorKMSRequestFailedException, + "UnsupportedAddressException": newErrorUnsupportedAddressException, +} diff --git a/service/snowball/service.go b/service/snowball/service.go index b63fe28fe1f..9c1fe702b80 100644 --- a/service/snowball/service.go +++ b/service/snowball/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ssm/api.go b/service/ssm/api.go index ce6cc4ced70..12b77b915b5 100644 --- a/service/ssm/api.go +++ b/service/ssm/api.go @@ -86,23 +86,23 @@ func (c *SSM) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation AddTagsToResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceType "InvalidResourceType" +// Returned Error Types: +// * InvalidResourceType // The resource type is not valid. For example, if you are attempting to tag // an instance, the instance must be a registered, managed instance. // -// * ErrCodeInvalidResourceId "InvalidResourceId" +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeTooManyTagsError "TooManyTagsError" +// * TooManyTagsError // The Targets parameter includes too many tags. Remove one or more tags and // try the command again. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // @@ -183,13 +183,13 @@ func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CancelCommand for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidCommandId "InvalidCommandId" +// * InvalidCommandId // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -201,7 +201,7 @@ func (c *SSM) CancelCommandRequest(input *CancelCommandInput) (req *request.Requ // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeDuplicateInstanceId "DuplicateInstanceId" +// * DuplicateInstanceId // You cannot specify an instance ID in more than one association. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CancelCommand @@ -281,11 +281,11 @@ func (c *SSM) CancelMaintenanceWindowExecutionRequest(input *CancelMaintenanceWi // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CancelMaintenanceWindowExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeDoesNotExistException "DoesNotExistException" +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -372,8 +372,8 @@ func (c *SSM) CreateActivationRequest(input *CreateActivationInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateActivation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateActivation @@ -459,23 +459,23 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeAssociationAlreadyExists "AssociationAlreadyExists" +// Returned Error Types: +// * AssociationAlreadyExists // The specified association already exists. // -// * ErrCodeAssociationLimitExceeded "AssociationLimitExceeded" +// * AssociationLimitExceeded // You can have at most 2,000 active associations. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -487,23 +487,23 @@ func (c *SSM) CreateAssociationRequest(input *CreateAssociationInput) (req *requ // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeUnsupportedPlatformType "UnsupportedPlatformType" +// * UnsupportedPlatformType // The document does not support the platform type of the given instance ID(s). // For example, you sent an document for a Windows instance to a Linux instance. // -// * ErrCodeInvalidOutputLocation "InvalidOutputLocation" +// * InvalidOutputLocation // The output location is not valid or does not exist. // -// * ErrCodeInvalidParameters "InvalidParameters" +// * InvalidParameters // You must specify values for all required parameters in the Systems Manager // document. You can only supply values to parameters defined in the Systems // Manager document. // -// * ErrCodeInvalidTarget "InvalidTarget" +// * InvalidTarget // The target is not valid or does not exist. It might not be configured for // EC2 Systems Manager or you might not have permission to perform the operation. // -// * ErrCodeInvalidSchedule "InvalidSchedule" +// * InvalidSchedule // The schedule is invalid. Verify your cron or rate expression and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociation @@ -589,17 +589,17 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateAssociationBatch for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -611,29 +611,29 @@ func (c *SSM) CreateAssociationBatchRequest(input *CreateAssociationBatchInput) // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidParameters "InvalidParameters" +// * InvalidParameters // You must specify values for all required parameters in the Systems Manager // document. You can only supply values to parameters defined in the Systems // Manager document. // -// * ErrCodeDuplicateInstanceId "DuplicateInstanceId" +// * DuplicateInstanceId // You cannot specify an instance ID in more than one association. // -// * ErrCodeAssociationLimitExceeded "AssociationLimitExceeded" +// * AssociationLimitExceeded // You can have at most 2,000 active associations. // -// * ErrCodeUnsupportedPlatformType "UnsupportedPlatformType" +// * UnsupportedPlatformType // The document does not support the platform type of the given instance ID(s). // For example, you sent an document for a Windows instance to a Linux instance. // -// * ErrCodeInvalidOutputLocation "InvalidOutputLocation" +// * InvalidOutputLocation // The output location is not valid or does not exist. // -// * ErrCodeInvalidTarget "InvalidTarget" +// * InvalidTarget // The target is not valid or does not exist. It might not be configured for // EC2 Systems Manager or you might not have permission to perform the operation. // -// * ErrCodeInvalidSchedule "InvalidSchedule" +// * InvalidSchedule // The schedule is invalid. Verify your cron or rate expression and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateAssociationBatch @@ -714,23 +714,23 @@ func (c *SSM) CreateDocumentRequest(input *CreateDocumentInput) (req *request.Re // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeDocumentAlreadyExists "DocumentAlreadyExists" +// Returned Error Types: +// * DocumentAlreadyExists // The specified document already exists. // -// * ErrCodeMaxDocumentSizeExceeded "MaxDocumentSizeExceeded" +// * MaxDocumentSizeExceeded // The size limit of a document is 64 KB. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocumentContent "InvalidDocumentContent" +// * InvalidDocumentContent // The content for the document is not valid. // -// * ErrCodeDocumentLimitExceeded "DocumentLimitExceeded" +// * DocumentLimitExceeded // You can have at most 500 active Systems Manager documents. // -// * ErrCodeInvalidDocumentSchemaVersion "InvalidDocumentSchemaVersion" +// * InvalidDocumentSchemaVersion // The version of the document schema is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateDocument @@ -815,12 +815,12 @@ func (c *SSM) CreateMaintenanceWindowRequest(input *CreateMaintenanceWindowInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Returned Error Types: +// * IdempotentParameterMismatch // Error returned when an idempotent operation is retried and the parameters // don't match the original call to the API with the same idempotency token. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Error returned when the caller has exceeded the default resource quotas. // For example, too many maintenance windows or patch baselines have been created. // @@ -828,7 +828,7 @@ func (c *SSM) CreateMaintenanceWindowRequest(input *CreateMaintenanceWindowInput // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateMaintenanceWindow @@ -915,18 +915,18 @@ func (c *SSM) CreateOpsItemRequest(input *CreateOpsItemInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateOpsItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeOpsItemAlreadyExistsException "OpsItemAlreadyExistsException" +// * OpsItemAlreadyExistsException // The OpsItem already exists. // -// * ErrCodeOpsItemLimitExceededException "OpsItemLimitExceededException" +// * OpsItemLimitExceededException // The request caused OpsItems to exceed one or more quotas. For information // about OpsItem quotas, see What are the resource limits for OpsCenter? (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits). // -// * ErrCodeOpsItemInvalidParameterException "OpsItemInvalidParameterException" +// * OpsItemInvalidParameterException // A specified parameter argument isn't valid. Verify the available arguments // and try again. // @@ -1008,12 +1008,12 @@ func (c *SSM) CreatePatchBaselineRequest(input *CreatePatchBaselineInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreatePatchBaseline for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Returned Error Types: +// * IdempotentParameterMismatch // Error returned when an idempotent operation is retried and the parameters // don't match the original call to the API with the same idempotency token. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Error returned when the caller has exceeded the default resource quotas. // For example, too many maintenance windows or patch baselines have been created. // @@ -1021,7 +1021,7 @@ func (c *SSM) CreatePatchBaselineRequest(input *CreatePatchBaselineInput) (req * // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreatePatchBaseline @@ -1126,17 +1126,17 @@ func (c *SSM) CreateResourceDataSyncRequest(input *CreateResourceDataSyncInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation CreateResourceDataSync for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeResourceDataSyncCountExceededException "ResourceDataSyncCountExceededException" +// * ResourceDataSyncCountExceededException // You have exceeded the allowed maximum sync configurations. // -// * ErrCodeResourceDataSyncAlreadyExistsException "ResourceDataSyncAlreadyExistsException" +// * ResourceDataSyncAlreadyExistsException // A sync configuration with the same name already exists. // -// * ErrCodeResourceDataSyncInvalidConfigurationException "ResourceDataSyncInvalidConfigurationException" +// * ResourceDataSyncInvalidConfigurationException // The specified sync configuration is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/CreateResourceDataSync @@ -1218,19 +1218,19 @@ func (c *SSM) DeleteActivationRequest(input *DeleteActivationInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteActivation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidActivationId "InvalidActivationId" +// Returned Error Types: +// * InvalidActivationId // The activation ID is not valid. Verify the you entered the correct ActivationId // or ActivationCode and try again. // -// * ErrCodeInvalidActivation "InvalidActivation" +// * InvalidActivation // The activation is not valid. The activation might have been deleted, or the // ActivationId and the ActivationCode do not match. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // @@ -1315,17 +1315,17 @@ func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// Returned Error Types: +// * AssociationDoesNotExist // The specified association does not exist. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -1337,7 +1337,7 @@ func (c *SSM) DeleteAssociationRequest(input *DeleteAssociationInput) (req *requ // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // @@ -1421,18 +1421,18 @@ func (c *SSM) DeleteDocumentRequest(input *DeleteDocumentInput) (req *request.Re // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentOperation "InvalidDocumentOperation" +// * InvalidDocumentOperation // You attempted to delete a document while it is still shared. You must stop // sharing the document before you can delete it. // -// * ErrCodeAssociatedInstances "AssociatedInstances" +// * AssociatedInstances // You must disassociate a document from all instances before you can delete // it. // @@ -1513,22 +1513,22 @@ func (c *SSM) DeleteInventoryRequest(input *DeleteInventoryInput) (req *request. // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteInventory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// * InvalidTypeNameException // The parameter type name is not valid. // -// * ErrCodeInvalidOptionException "InvalidOptionException" +// * InvalidOptionException // The delete inventory option specified is not valid. Verify the option and // try again. // -// * ErrCodeInvalidDeleteInventoryParametersException "InvalidDeleteInventoryParametersException" +// * InvalidDeleteInventoryParametersException // One or more of the parameters specified for the delete operation is not valid. // Verify all parameters and try again. // -// * ErrCodeInvalidInventoryRequestException "InvalidInventoryRequestException" +// * InvalidInventoryRequestException // The request is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteInventory @@ -1606,8 +1606,8 @@ func (c *SSM) DeleteMaintenanceWindowRequest(input *DeleteMaintenanceWindowInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteMaintenanceWindow @@ -1686,11 +1686,11 @@ func (c *SSM) DeleteParameterRequest(input *DeleteParameterInput) (req *request. // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteParameter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeParameterNotFound "ParameterNotFound" +// * ParameterNotFound // The parameter could not be found. Verify the name and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteParameter @@ -1768,8 +1768,8 @@ func (c *SSM) DeleteParametersRequest(input *DeleteParametersInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteParameters @@ -1847,12 +1847,12 @@ func (c *SSM) DeletePatchBaselineRequest(input *DeletePatchBaselineInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeletePatchBaseline for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceInUseException "ResourceInUseException" +// Returned Error Types: +// * ResourceInUseException // Error returned if an attempt is made to delete a patch baseline that is registered // for a patch group. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeletePatchBaseline @@ -1933,14 +1933,14 @@ func (c *SSM) DeleteResourceDataSyncRequest(input *DeleteResourceDataSyncInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeleteResourceDataSync for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeResourceDataSyncNotFoundException "ResourceDataSyncNotFoundException" +// * ResourceDataSyncNotFoundException // The specified sync name was not found. // -// * ErrCodeResourceDataSyncInvalidConfigurationException "ResourceDataSyncInvalidConfigurationException" +// * ResourceDataSyncInvalidConfigurationException // The specified sync configuration is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeleteResourceDataSync @@ -2021,8 +2021,8 @@ func (c *SSM) DeregisterManagedInstanceRequest(input *DeregisterManagedInstanceI // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeregisterManagedInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// Returned Error Types: +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -2034,7 +2034,7 @@ func (c *SSM) DeregisterManagedInstanceRequest(input *DeregisterManagedInstanceI // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterManagedInstance @@ -2112,12 +2112,12 @@ func (c *SSM) DeregisterPatchBaselineForPatchGroupRequest(input *DeregisterPatch // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeregisterPatchBaselineForPatchGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceId "InvalidResourceId" +// Returned Error Types: +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterPatchBaselineForPatchGroup @@ -2195,8 +2195,8 @@ func (c *SSM) DeregisterTargetFromMaintenanceWindowRequest(input *DeregisterTarg // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeregisterTargetFromMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -2204,10 +2204,10 @@ func (c *SSM) DeregisterTargetFromMaintenanceWindowRequest(input *DeregisterTarg // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeTargetInUseException "TargetInUseException" +// * TargetInUseException // You specified the Safe option for the DeregisterTargetFromMaintenanceWindow // operation, but the target is still referenced in a task. // @@ -2286,8 +2286,8 @@ func (c *SSM) DeregisterTaskFromMaintenanceWindowRequest(input *DeregisterTaskFr // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DeregisterTaskFromMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -2295,7 +2295,7 @@ func (c *SSM) DeregisterTaskFromMaintenanceWindowRequest(input *DeregisterTaskFr // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DeregisterTaskFromMaintenanceWindow @@ -2381,15 +2381,15 @@ func (c *SSM) DescribeActivationsRequest(input *DescribeActivationsInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeActivations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidFilter "InvalidFilter" +// Returned Error Types: +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeActivations @@ -2523,22 +2523,22 @@ func (c *SSM) DescribeAssociationRequest(input *DescribeAssociationInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// Returned Error Types: +// * AssociationDoesNotExist // The specified association does not exist. // -// * ErrCodeInvalidAssociationVersion "InvalidAssociationVersion" +// * InvalidAssociationVersion // The version you specified is not valid. Use ListAssociationVersions to view // all versions of an association according to the association ID. Or, use the // $LATEST parameter to view the latest version of the association. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -2626,17 +2626,17 @@ func (c *SSM) DescribeAssociationExecutionTargetsRequest(input *DescribeAssociat // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeAssociationExecutionTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// * AssociationDoesNotExist // The specified association does not exist. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeAssociationExecutionDoesNotExist "AssociationExecutionDoesNotExist" +// * AssociationExecutionDoesNotExist // The specified execution ID does not exist. Verify the ID number and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAssociationExecutionTargets @@ -2714,14 +2714,14 @@ func (c *SSM) DescribeAssociationExecutionsRequest(input *DescribeAssociationExe // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeAssociationExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// * AssociationDoesNotExist // The specified association does not exist. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAssociationExecutions @@ -2799,17 +2799,17 @@ func (c *SSM) DescribeAutomationExecutionsRequest(input *DescribeAutomationExecu // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeAutomationExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// Returned Error Types: +// * InvalidFilterKey // The specified key is not valid. // -// * ErrCodeInvalidFilterValue "InvalidFilterValue" +// * InvalidFilterValue // The filter value is not valid. Verify the value and try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAutomationExecutions @@ -2888,21 +2888,21 @@ func (c *SSM) DescribeAutomationStepExecutionsRequest(input *DescribeAutomationS // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeAutomationStepExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeAutomationExecutionNotFoundException "AutomationExecutionNotFoundException" +// Returned Error Types: +// * AutomationExecutionNotFoundException // There is no automation execution information for the requested automation // execution ID. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // -// * ErrCodeInvalidFilterValue "InvalidFilterValue" +// * InvalidFilterValue // The filter value is not valid. Verify the value and try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAutomationStepExecutions @@ -2980,8 +2980,8 @@ func (c *SSM) DescribeAvailablePatchesRequest(input *DescribeAvailablePatchesInp // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeAvailablePatches for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeAvailablePatches @@ -3059,14 +3059,14 @@ func (c *SSM) DescribeDocumentRequest(input *DescribeDocumentInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeDocument @@ -3146,14 +3146,14 @@ func (c *SSM) DescribeDocumentPermissionRequest(input *DescribeDocumentPermissio // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeDocumentPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidPermissionType "InvalidPermissionType" +// * InvalidPermissionType // The permission type is not supported. Share is the only supported permission // type. // @@ -3232,11 +3232,11 @@ func (c *SSM) DescribeEffectiveInstanceAssociationsRequest(input *DescribeEffect // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeEffectiveInstanceAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -3248,7 +3248,7 @@ func (c *SSM) DescribeEffectiveInstanceAssociationsRequest(input *DescribeEffect // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectiveInstanceAssociations @@ -3328,12 +3328,12 @@ func (c *SSM) DescribeEffectivePatchesForPatchBaselineRequest(input *DescribeEff // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeEffectivePatchesForPatchBaseline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceId "InvalidResourceId" +// Returned Error Types: +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeDoesNotExistException "DoesNotExistException" +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -3341,12 +3341,12 @@ func (c *SSM) DescribeEffectivePatchesForPatchBaselineRequest(input *DescribeEff // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeUnsupportedOperatingSystem "UnsupportedOperatingSystem" +// * UnsupportedOperatingSystem // The operating systems you specified is not supported, or the operation is // not supported for the operating system. Valid operating systems include: // Windows, AmazonLinux, RedhatEnterpriseLinux, and Ubuntu. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeEffectivePatchesForPatchBaseline @@ -3424,11 +3424,11 @@ func (c *SSM) DescribeInstanceAssociationsStatusRequest(input *DescribeInstanceA // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeInstanceAssociationsStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -3440,7 +3440,7 @@ func (c *SSM) DescribeInstanceAssociationsStatusRequest(input *DescribeInstanceA // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceAssociationsStatus @@ -3533,11 +3533,11 @@ func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformat // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeInstanceInformation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -3549,13 +3549,13 @@ func (c *SSM) DescribeInstanceInformationRequest(input *DescribeInstanceInformat // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInvalidInstanceInformationFilterValue "InvalidInstanceInformationFilterValue" +// * InvalidInstanceInformationFilterValue // The specified filter value is not valid. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstanceInformation @@ -3685,11 +3685,11 @@ func (c *SSM) DescribeInstancePatchStatesRequest(input *DescribeInstancePatchSta // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeInstancePatchStates for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStates @@ -3768,15 +3768,15 @@ func (c *SSM) DescribeInstancePatchStatesForPatchGroupRequest(input *DescribeIns // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeInstancePatchStatesForPatchGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidFilter "InvalidFilter" +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatchStatesForPatchGroup @@ -3855,11 +3855,11 @@ func (c *SSM) DescribeInstancePatchesRequest(input *DescribeInstancePatchesInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeInstancePatches for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -3871,11 +3871,11 @@ func (c *SSM) DescribeInstancePatchesRequest(input *DescribeInstancePatchesInput // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidFilter "InvalidFilter" +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInstancePatches @@ -3953,15 +3953,15 @@ func (c *SSM) DescribeInventoryDeletionsRequest(input *DescribeInventoryDeletion // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeInventoryDeletions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDeletionIdException "InvalidDeletionIdException" +// * InvalidDeletionIdException // The ID specified for the delete operation does not exist or is not valid. // Verify the ID and try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeInventoryDeletions @@ -4040,8 +4040,8 @@ func (c *SSM) DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input *De // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindowExecutionTaskInvocations for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -4049,7 +4049,7 @@ func (c *SSM) DescribeMaintenanceWindowExecutionTaskInvocationsRequest(input *De // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTaskInvocations @@ -4127,8 +4127,8 @@ func (c *SSM) DescribeMaintenanceWindowExecutionTasksRequest(input *DescribeMain // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindowExecutionTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -4136,7 +4136,7 @@ func (c *SSM) DescribeMaintenanceWindowExecutionTasksRequest(input *DescribeMain // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutionTasks @@ -4216,8 +4216,8 @@ func (c *SSM) DescribeMaintenanceWindowExecutionsRequest(input *DescribeMaintena // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindowExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowExecutions @@ -4295,11 +4295,11 @@ func (c *SSM) DescribeMaintenanceWindowScheduleRequest(input *DescribeMaintenanc // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindowSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeDoesNotExistException "DoesNotExistException" +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -4382,8 +4382,8 @@ func (c *SSM) DescribeMaintenanceWindowTargetsRequest(input *DescribeMaintenance // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindowTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -4391,7 +4391,7 @@ func (c *SSM) DescribeMaintenanceWindowTargetsRequest(input *DescribeMaintenance // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTargets @@ -4469,8 +4469,8 @@ func (c *SSM) DescribeMaintenanceWindowTasksRequest(input *DescribeMaintenanceWi // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindowTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -4478,7 +4478,7 @@ func (c *SSM) DescribeMaintenanceWindowTasksRequest(input *DescribeMaintenanceWi // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowTasks @@ -4556,8 +4556,8 @@ func (c *SSM) DescribeMaintenanceWindowsRequest(input *DescribeMaintenanceWindow // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindows for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindows @@ -4636,8 +4636,8 @@ func (c *SSM) DescribeMaintenanceWindowsForTargetRequest(input *DescribeMaintena // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeMaintenanceWindowsForTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeMaintenanceWindowsForTarget @@ -4724,8 +4724,8 @@ func (c *SSM) DescribeOpsItemsRequest(input *DescribeOpsItemsInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeOpsItems for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeOpsItems @@ -4817,21 +4817,21 @@ func (c *SSM) DescribeParametersRequest(input *DescribeParametersInput) (req *re // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // -// * ErrCodeInvalidFilterOption "InvalidFilterOption" +// * InvalidFilterOption // The specified filter option is not valid. Valid options are Equals and BeginsWith. // For Path filter, valid options are Recursive and OneLevel. // -// * ErrCodeInvalidFilterValue "InvalidFilterValue" +// * InvalidFilterValue // The filter value is not valid. Verify the value and try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeParameters @@ -4961,8 +4961,8 @@ func (c *SSM) DescribePatchBaselinesRequest(input *DescribePatchBaselinesInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribePatchBaselines for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchBaselines @@ -5040,11 +5040,11 @@ func (c *SSM) DescribePatchGroupStateRequest(input *DescribePatchGroupStateInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribePatchGroupState for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroupState @@ -5122,8 +5122,8 @@ func (c *SSM) DescribePatchGroupsRequest(input *DescribePatchGroupsInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribePatchGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchGroups @@ -5236,8 +5236,8 @@ func (c *SSM) DescribePatchPropertiesRequest(input *DescribePatchPropertiesInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribePatchProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribePatchProperties @@ -5316,14 +5316,14 @@ func (c *SSM) DescribeSessionsRequest(input *DescribeSessionsInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation DescribeSessions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DescribeSessions @@ -5401,12 +5401,12 @@ func (c *SSM) GetAutomationExecutionRequest(input *GetAutomationExecutionInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetAutomationExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeAutomationExecutionNotFoundException "AutomationExecutionNotFoundException" +// Returned Error Types: +// * AutomationExecutionNotFoundException // There is no automation execution information for the requested automation // execution ID. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetAutomationExecution @@ -5491,18 +5491,18 @@ func (c *SSM) GetCalendarStateRequest(input *GetCalendarStateInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetCalendarState for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentType "InvalidDocumentType" +// * InvalidDocumentType // The document type is not valid. Valid document types are described in the // DocumentType property. // -// * ErrCodeUnsupportedCalendarException "UnsupportedCalendarException" +// * UnsupportedCalendarException // The calendar entry contained in the specified Systems Manager document is // not supported. // @@ -5582,13 +5582,13 @@ func (c *SSM) GetCommandInvocationRequest(input *GetCommandInvocationInput) (req // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetCommandInvocation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidCommandId "InvalidCommandId" +// * InvalidCommandId // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -5600,10 +5600,10 @@ func (c *SSM) GetCommandInvocationRequest(input *GetCommandInvocationInput) (req // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidPluginName "InvalidPluginName" +// * InvalidPluginName // The plugin name is not valid. // -// * ErrCodeInvocationDoesNotExist "InvocationDoesNotExist" +// * InvocationDoesNotExist // The command ID and instance ID you specified did not match any invocations. // Verify the command ID and the instance ID and try again. // @@ -5683,8 +5683,8 @@ func (c *SSM) GetConnectionStatusRequest(input *GetConnectionStatusInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetConnectionStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetConnectionStatus @@ -5767,8 +5767,8 @@ func (c *SSM) GetDefaultPatchBaselineRequest(input *GetDefaultPatchBaselineInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetDefaultPatchBaseline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDefaultPatchBaseline @@ -5847,16 +5847,16 @@ func (c *SSM) GetDeployablePatchSnapshotForInstanceRequest(input *GetDeployableP // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetDeployablePatchSnapshotForInstance for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeUnsupportedOperatingSystem "UnsupportedOperatingSystem" +// * UnsupportedOperatingSystem // The operating systems you specified is not supported, or the operation is // not supported for the operating system. Valid operating systems include: // Windows, AmazonLinux, RedhatEnterpriseLinux, and Ubuntu. // -// * ErrCodeUnsupportedFeatureRequiredException "UnsupportedFeatureRequiredException" +// * UnsupportedFeatureRequiredException // Microsoft application patching is only available on EC2 instances and Advanced // Instances. To patch Microsoft applications on on-premises servers and VMs, // you must enable Advanced Instances. For more information, see Using the Advanced-Instances @@ -5938,14 +5938,14 @@ func (c *SSM) GetDocumentRequest(input *GetDocumentInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetDocument @@ -6023,28 +6023,28 @@ func (c *SSM) GetInventoryRequest(input *GetInventoryInput) (req *request.Reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetInventory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidFilter "InvalidFilter" +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidInventoryGroupException "InvalidInventoryGroupException" +// * InvalidInventoryGroupException // The specified inventory group is not valid. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// * InvalidTypeNameException // The parameter type name is not valid. // -// * ErrCodeInvalidAggregatorException "InvalidAggregatorException" +// * InvalidAggregatorException // The specified aggregator is not valid for inventory groups. Verify that the // aggregator uses a valid inventory type such as AWS:Application or AWS:InstanceInformation. // -// * ErrCodeInvalidResultAttributeException "InvalidResultAttributeException" +// * InvalidResultAttributeException // The specified inventory item result attribute is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventory @@ -6123,14 +6123,14 @@ func (c *SSM) GetInventorySchemaRequest(input *GetInventorySchemaInput) (req *re // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetInventorySchema for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// * InvalidTypeNameException // The parameter type name is not valid. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetInventorySchema @@ -6208,8 +6208,8 @@ func (c *SSM) GetMaintenanceWindowRequest(input *GetMaintenanceWindowInput) (req // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -6217,7 +6217,7 @@ func (c *SSM) GetMaintenanceWindowRequest(input *GetMaintenanceWindowInput) (req // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindow @@ -6295,8 +6295,8 @@ func (c *SSM) GetMaintenanceWindowExecutionRequest(input *GetMaintenanceWindowEx // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetMaintenanceWindowExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -6304,7 +6304,7 @@ func (c *SSM) GetMaintenanceWindowExecutionRequest(input *GetMaintenanceWindowEx // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecution @@ -6383,8 +6383,8 @@ func (c *SSM) GetMaintenanceWindowExecutionTaskRequest(input *GetMaintenanceWind // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetMaintenanceWindowExecutionTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -6392,7 +6392,7 @@ func (c *SSM) GetMaintenanceWindowExecutionTaskRequest(input *GetMaintenanceWind // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionTask @@ -6470,8 +6470,8 @@ func (c *SSM) GetMaintenanceWindowExecutionTaskInvocationRequest(input *GetMaint // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetMaintenanceWindowExecutionTaskInvocation for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -6479,7 +6479,7 @@ func (c *SSM) GetMaintenanceWindowExecutionTaskInvocationRequest(input *GetMaint // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowExecutionTaskInvocation @@ -6557,8 +6557,8 @@ func (c *SSM) GetMaintenanceWindowTaskRequest(input *GetMaintenanceWindowTaskInp // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetMaintenanceWindowTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -6566,7 +6566,7 @@ func (c *SSM) GetMaintenanceWindowTaskRequest(input *GetMaintenanceWindowTaskInp // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetMaintenanceWindowTask @@ -6653,11 +6653,11 @@ func (c *SSM) GetOpsItemRequest(input *GetOpsItemInput) (req *request.Request, o // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetOpsItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeOpsItemNotFoundException "OpsItemNotFoundException" +// * OpsItemNotFoundException // The specified OpsItem ID doesn't exist. Verify the ID and try again. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetOpsItem @@ -6735,24 +6735,24 @@ func (c *SSM) GetOpsSummaryRequest(input *GetOpsSummaryInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetOpsSummary for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeResourceDataSyncNotFoundException "ResourceDataSyncNotFoundException" +// * ResourceDataSyncNotFoundException // The specified sync name was not found. // -// * ErrCodeInvalidFilter "InvalidFilter" +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// * InvalidTypeNameException // The parameter type name is not valid. // -// * ErrCodeInvalidAggregatorException "InvalidAggregatorException" +// * InvalidAggregatorException // The specified aggregator is not valid for inventory groups. Verify that the // aggregator uses a valid inventory type such as AWS:Application or AWS:InstanceInformation. // @@ -6832,17 +6832,17 @@ func (c *SSM) GetParameterRequest(input *GetParameterInput) (req *request.Reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetParameter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidKeyId "InvalidKeyId" +// * InvalidKeyId // The query key ID is not valid. // -// * ErrCodeParameterNotFound "ParameterNotFound" +// * ParameterNotFound // The parameter could not be found. Verify the name and try again. // -// * ErrCodeParameterVersionNotFound "ParameterVersionNotFound" +// * ParameterVersionNotFound // The specified parameter version was not found. Verify the parameter name // and version, and try again. // @@ -6927,17 +6927,17 @@ func (c *SSM) GetParameterHistoryRequest(input *GetParameterHistoryInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetParameterHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeParameterNotFound "ParameterNotFound" +// * ParameterNotFound // The parameter could not be found. Verify the name and try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInvalidKeyId "InvalidKeyId" +// * InvalidKeyId // The query key ID is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameterHistory @@ -7068,11 +7068,11 @@ func (c *SSM) GetParametersRequest(input *GetParametersInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetParameters for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidKeyId "InvalidKeyId" +// Returned Error Types: +// * InvalidKeyId // The query key ID is not valid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParameters @@ -7164,24 +7164,24 @@ func (c *SSM) GetParametersByPathRequest(input *GetParametersByPathInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetParametersByPath for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // -// * ErrCodeInvalidFilterOption "InvalidFilterOption" +// * InvalidFilterOption // The specified filter option is not valid. Valid options are Equals and BeginsWith. // For Path filter, valid options are Recursive and OneLevel. // -// * ErrCodeInvalidFilterValue "InvalidFilterValue" +// * InvalidFilterValue // The filter value is not valid. Verify the value and try again. // -// * ErrCodeInvalidKeyId "InvalidKeyId" +// * InvalidKeyId // The query key ID is not valid. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetParametersByPath @@ -7311,8 +7311,8 @@ func (c *SSM) GetPatchBaselineRequest(input *GetPatchBaselineInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetPatchBaseline for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -7320,11 +7320,11 @@ func (c *SSM) GetPatchBaselineRequest(input *GetPatchBaselineInput) (req *reques // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInvalidResourceId "InvalidResourceId" +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaseline @@ -7403,8 +7403,8 @@ func (c *SSM) GetPatchBaselineForPatchGroupRequest(input *GetPatchBaselineForPat // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetPatchBaselineForPatchGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/GetPatchBaselineForPatchGroup @@ -7496,11 +7496,11 @@ func (c *SSM) GetServiceSettingRequest(input *GetServiceSettingInput) (req *requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation GetServiceSetting for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeServiceSettingNotFound "ServiceSettingNotFound" +// * ServiceSettingNotFound // The specified service setting was not found. Either the service name or the // setting has not been provisioned by the AWS service team. // @@ -7607,22 +7607,22 @@ func (c *SSM) LabelParameterVersionRequest(input *LabelParameterVersionInput) (r // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation LabelParameterVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // -// * ErrCodeParameterNotFound "ParameterNotFound" +// * ParameterNotFound // The parameter could not be found. Verify the name and try again. // -// * ErrCodeParameterVersionNotFound "ParameterVersionNotFound" +// * ParameterVersionNotFound // The specified parameter version was not found. Verify the parameter name // and version, and try again. // -// * ErrCodeParameterVersionLabelLimitExceeded "ParameterVersionLabelLimitExceeded" +// * ParameterVersionLabelLimitExceeded // A parameter version can have a maximum of ten labels. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/LabelParameterVersion @@ -7700,14 +7700,14 @@ func (c *SSM) ListAssociationVersionsRequest(input *ListAssociationVersionsInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListAssociationVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// * AssociationDoesNotExist // The specified association does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociationVersions @@ -7791,11 +7791,11 @@ func (c *SSM) ListAssociationsRequest(input *ListAssociationsInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListAssociations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListAssociations @@ -7935,13 +7935,13 @@ func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListCommandInvocations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidCommandId "InvalidCommandId" +// * InvalidCommandId // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -7953,10 +7953,10 @@ func (c *SSM) ListCommandInvocationsRequest(input *ListCommandInvocationsInput) // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommandInvocations @@ -8092,13 +8092,13 @@ func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListCommands for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidCommandId "InvalidCommandId" +// * InvalidCommandId // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -8110,10 +8110,10 @@ func (c *SSM) ListCommandsRequest(input *ListCommandsInput) (req *request.Reques // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListCommands @@ -8246,23 +8246,23 @@ func (c *SSM) ListComplianceItemsRequest(input *ListComplianceItemsInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListComplianceItems for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceType "InvalidResourceType" +// Returned Error Types: +// * InvalidResourceType // The resource type is not valid. For example, if you are attempting to tag // an instance, the instance must be a registered, managed instance. // -// * ErrCodeInvalidResourceId "InvalidResourceId" +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidFilter "InvalidFilter" +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListComplianceItems @@ -8342,15 +8342,15 @@ func (c *SSM) ListComplianceSummariesRequest(input *ListComplianceSummariesInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListComplianceSummaries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidFilter "InvalidFilter" +// Returned Error Types: +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListComplianceSummaries @@ -8428,14 +8428,14 @@ func (c *SSM) ListDocumentVersionsRequest(input *ListDocumentVersionsInput) (req // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListDocumentVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocumentVersions @@ -8519,14 +8519,14 @@ func (c *SSM) ListDocumentsRequest(input *ListDocumentsInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListDocuments for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInvalidFilterKey "InvalidFilterKey" +// * InvalidFilterKey // The specified key is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListDocuments @@ -8656,11 +8656,11 @@ func (c *SSM) ListInventoryEntriesRequest(input *ListInventoryEntriesInput) (req // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListInventoryEntries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -8672,14 +8672,14 @@ func (c *SSM) ListInventoryEntriesRequest(input *ListInventoryEntriesInput) (req // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// * InvalidTypeNameException // The parameter type name is not valid. // -// * ErrCodeInvalidFilter "InvalidFilter" +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListInventoryEntries @@ -8759,15 +8759,15 @@ func (c *SSM) ListResourceComplianceSummariesRequest(input *ListResourceComplian // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListResourceComplianceSummaries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidFilter "InvalidFilter" +// Returned Error Types: +// * InvalidFilter // The filter name is not valid. Verify the you entered the correct name and // try again. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListResourceComplianceSummaries @@ -8854,14 +8854,14 @@ func (c *SSM) ListResourceDataSyncRequest(input *ListResourceDataSyncInput) (req // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListResourceDataSync for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceDataSyncInvalidConfigurationException "ResourceDataSyncInvalidConfigurationException" +// Returned Error Types: +// * ResourceDataSyncInvalidConfigurationException // The specified sync configuration is invalid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidNextToken "InvalidNextToken" +// * InvalidNextToken // The specified token is not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListResourceDataSync @@ -8939,16 +8939,16 @@ func (c *SSM) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceType "InvalidResourceType" +// Returned Error Types: +// * InvalidResourceType // The resource type is not valid. For example, if you are attempting to tag // an instance, the instance must be a registered, managed instance. // -// * ErrCodeInvalidResourceId "InvalidResourceId" +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ListTagsForResource @@ -9030,23 +9030,23 @@ func (c *SSM) ModifyDocumentPermissionRequest(input *ModifyDocumentPermissionInp // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ModifyDocumentPermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidPermissionType "InvalidPermissionType" +// * InvalidPermissionType // The permission type is not supported. Share is the only supported permission // type. // -// * ErrCodeDocumentPermissionLimit "DocumentPermissionLimit" +// * DocumentPermissionLimit // The document cannot be shared with more AWS user accounts. You can share // a document with a maximum of 20 accounts. You can publicly share up to five // documents. If you need to increase this limit, contact AWS Support. // -// * ErrCodeDocumentLimitExceeded "DocumentLimitExceeded" +// * DocumentLimitExceeded // You can have at most 500 active Systems Manager documents. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ModifyDocumentPermission @@ -9166,28 +9166,28 @@ func (c *SSM) PutComplianceItemsRequest(input *PutComplianceItemsInput) (req *re // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation PutComplianceItems for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidItemContentException "InvalidItemContentException" +// * InvalidItemContentException // One or more content items is not valid. // -// * ErrCodeTotalSizeLimitExceededException "TotalSizeLimitExceededException" +// * TotalSizeLimitExceededException // The size of inventory data has exceeded the total size limit for the resource. // -// * ErrCodeItemSizeLimitExceededException "ItemSizeLimitExceededException" +// * ItemSizeLimitExceededException // The inventory item size has exceeded the size limit. // -// * ErrCodeComplianceTypeCountLimitExceededException "ComplianceTypeCountLimitExceededException" +// * ComplianceTypeCountLimitExceededException // You specified too many custom compliance types. You can specify a maximum // of 10 different types. // -// * ErrCodeInvalidResourceType "InvalidResourceType" +// * InvalidResourceType // The resource type is not valid. For example, if you are attempting to tag // an instance, the instance must be a registered, managed instance. // -// * ErrCodeInvalidResourceId "InvalidResourceId" +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // @@ -9268,11 +9268,11 @@ func (c *SSM) PutInventoryRequest(input *PutInventoryInput) (req *request.Reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation PutInventory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -9284,40 +9284,40 @@ func (c *SSM) PutInventoryRequest(input *PutInventoryInput) (req *request.Reques // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidTypeNameException "InvalidTypeNameException" +// * InvalidTypeNameException // The parameter type name is not valid. // -// * ErrCodeInvalidItemContentException "InvalidItemContentException" +// * InvalidItemContentException // One or more content items is not valid. // -// * ErrCodeTotalSizeLimitExceededException "TotalSizeLimitExceededException" +// * TotalSizeLimitExceededException // The size of inventory data has exceeded the total size limit for the resource. // -// * ErrCodeItemSizeLimitExceededException "ItemSizeLimitExceededException" +// * ItemSizeLimitExceededException // The inventory item size has exceeded the size limit. // -// * ErrCodeItemContentMismatchException "ItemContentMismatchException" +// * ItemContentMismatchException // The inventory item has invalid content. // -// * ErrCodeCustomSchemaCountLimitExceededException "CustomSchemaCountLimitExceededException" +// * CustomSchemaCountLimitExceededException // You have exceeded the limit for custom schemas. Delete one or more custom // schemas and try again. // -// * ErrCodeUnsupportedInventorySchemaVersionException "UnsupportedInventorySchemaVersionException" +// * UnsupportedInventorySchemaVersionException // Inventory item type schema version has to match supported versions in the // service. Check output of GetInventorySchema to see the available schema version // for each type. // -// * ErrCodeUnsupportedInventoryItemContextException "UnsupportedInventoryItemContextException" +// * UnsupportedInventoryItemContextException // The Context attribute that you specified for the InventoryItem is not allowed // for this inventory type. You can only use the Context attribute with inventory // types like AWS:ComplianceItem. // -// * ErrCodeInvalidInventoryItemContextException "InvalidInventoryItemContextException" +// * InvalidInventoryItemContextException // You specified invalid keys or values in the Context attribute for InventoryItem. // Verify the keys and values, and try again. // -// * ErrCodeSubTypeCountLimitExceededException "SubTypeCountLimitExceededException" +// * SubTypeCountLimitExceededException // The sub-type count exceeded the limit for the inventory type. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/PutInventory @@ -9395,58 +9395,58 @@ func (c *SSM) PutParameterRequest(input *PutParameterInput) (req *request.Reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation PutParameter for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidKeyId "InvalidKeyId" +// * InvalidKeyId // The query key ID is not valid. // -// * ErrCodeParameterLimitExceeded "ParameterLimitExceeded" +// * ParameterLimitExceeded // You have exceeded the number of parameters for this AWS account. Delete one // or more parameters and try again. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // -// * ErrCodeParameterAlreadyExists "ParameterAlreadyExists" +// * ParameterAlreadyExists // The parameter already exists. You can't create duplicate parameters. // -// * ErrCodeHierarchyLevelLimitExceededException "HierarchyLevelLimitExceededException" +// * HierarchyLevelLimitExceededException // A hierarchy can have a maximum of 15 levels. For more information, see Requirements // and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html) // in the AWS Systems Manager User Guide. // -// * ErrCodeHierarchyTypeMismatchException "HierarchyTypeMismatchException" +// * HierarchyTypeMismatchException // Parameter Store does not support changing a parameter type in a hierarchy. // For example, you can't change a parameter from a String type to a SecureString // type. You must create a new, unique parameter. // -// * ErrCodeInvalidAllowedPatternException "InvalidAllowedPatternException" +// * InvalidAllowedPatternException // The request does not meet the regular expression requirement. // -// * ErrCodeParameterMaxVersionLimitExceeded "ParameterMaxVersionLimitExceeded" +// * ParameterMaxVersionLimitExceeded // The parameter exceeded the maximum number of allowed versions. // -// * ErrCodeParameterPatternMismatchException "ParameterPatternMismatchException" +// * ParameterPatternMismatchException // The parameter name is not valid. // -// * ErrCodeUnsupportedParameterType "UnsupportedParameterType" +// * UnsupportedParameterType // The parameter type is not supported. // -// * ErrCodePoliciesLimitExceededException "PoliciesLimitExceededException" +// * PoliciesLimitExceededException // You specified more than the maximum number of allowed policies for the parameter. // The maximum is 10. // -// * ErrCodeInvalidPolicyTypeException "InvalidPolicyTypeException" +// * InvalidPolicyTypeException // The policy type is not supported. Parameter Store supports the following // policy types: Expiration, ExpirationNotification, and NoChangeNotification. // -// * ErrCodeInvalidPolicyAttributeException "InvalidPolicyAttributeException" +// * InvalidPolicyAttributeException // A policy attribute or its value is invalid. // -// * ErrCodeIncompatiblePolicyException "IncompatiblePolicyException" +// * IncompatiblePolicyException // There is a conflict in the policies specified for this parameter. You can't, // for example, specify two Expiration policies for a parameter. Review your // policies, and try again. @@ -9531,12 +9531,12 @@ func (c *SSM) RegisterDefaultPatchBaselineRequest(input *RegisterDefaultPatchBas // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation RegisterDefaultPatchBaseline for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceId "InvalidResourceId" +// Returned Error Types: +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeDoesNotExistException "DoesNotExistException" +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -9544,7 +9544,7 @@ func (c *SSM) RegisterDefaultPatchBaselineRequest(input *RegisterDefaultPatchBas // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterDefaultPatchBaseline @@ -9622,12 +9622,12 @@ func (c *SSM) RegisterPatchBaselineForPatchGroupRequest(input *RegisterPatchBase // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation RegisterPatchBaselineForPatchGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeAlreadyExistsException "AlreadyExistsException" +// Returned Error Types: +// * AlreadyExistsException // Error returned if an attempt is made to register a patch group with a patch // baseline that is already registered with a different patch baseline. // -// * ErrCodeDoesNotExistException "DoesNotExistException" +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -9635,11 +9635,11 @@ func (c *SSM) RegisterPatchBaselineForPatchGroupRequest(input *RegisterPatchBase // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInvalidResourceId "InvalidResourceId" +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Error returned when the caller has exceeded the default resource quotas. // For example, too many maintenance windows or patch baselines have been created. // @@ -9647,7 +9647,7 @@ func (c *SSM) RegisterPatchBaselineForPatchGroupRequest(input *RegisterPatchBase // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterPatchBaselineForPatchGroup @@ -9725,12 +9725,12 @@ func (c *SSM) RegisterTargetWithMaintenanceWindowRequest(input *RegisterTargetWi // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation RegisterTargetWithMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Returned Error Types: +// * IdempotentParameterMismatch // Error returned when an idempotent operation is retried and the parameters // don't match the original call to the API with the same idempotency token. // -// * ErrCodeDoesNotExistException "DoesNotExistException" +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -9738,7 +9738,7 @@ func (c *SSM) RegisterTargetWithMaintenanceWindowRequest(input *RegisterTargetWi // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Error returned when the caller has exceeded the default resource quotas. // For example, too many maintenance windows or patch baselines have been created. // @@ -9746,7 +9746,7 @@ func (c *SSM) RegisterTargetWithMaintenanceWindowRequest(input *RegisterTargetWi // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTargetWithMaintenanceWindow @@ -9824,12 +9824,12 @@ func (c *SSM) RegisterTaskWithMaintenanceWindowRequest(input *RegisterTaskWithMa // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation RegisterTaskWithMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// Returned Error Types: +// * IdempotentParameterMismatch // Error returned when an idempotent operation is retried and the parameters // don't match the original call to the API with the same idempotency token. // -// * ErrCodeDoesNotExistException "DoesNotExistException" +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -9837,7 +9837,7 @@ func (c *SSM) RegisterTaskWithMaintenanceWindowRequest(input *RegisterTaskWithMa // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Error returned when the caller has exceeded the default resource quotas. // For example, too many maintenance windows or patch baselines have been created. // @@ -9845,11 +9845,11 @@ func (c *SSM) RegisterTaskWithMaintenanceWindowRequest(input *RegisterTaskWithMa // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeFeatureNotAvailableException "FeatureNotAvailableException" +// * FeatureNotAvailableException // You attempted to register a LAMBDA or STEP_FUNCTIONS task in a region where // the corresponding service is not available. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/RegisterTaskWithMaintenanceWindow @@ -9928,19 +9928,19 @@ func (c *SSM) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation RemoveTagsFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidResourceType "InvalidResourceType" +// Returned Error Types: +// * InvalidResourceType // The resource type is not valid. For example, if you are attempting to tag // an instance, the instance must be a registered, managed instance. // -// * ErrCodeInvalidResourceId "InvalidResourceId" +// * InvalidResourceId // The resource ID is not valid. Verify that you entered the correct ID and // try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // @@ -10034,15 +10034,15 @@ func (c *SSM) ResetServiceSettingRequest(input *ResetServiceSettingInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ResetServiceSetting for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeServiceSettingNotFound "ServiceSettingNotFound" +// * ServiceSettingNotFound // The specified service setting was not found. Either the service name or the // setting has not been provisioned by the AWS service team. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // @@ -10125,8 +10125,8 @@ func (c *SSM) ResumeSessionRequest(input *ResumeSessionInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation ResumeSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -10134,7 +10134,7 @@ func (c *SSM) ResumeSessionRequest(input *ResumeSessionInput) (req *request.Requ // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ResumeSession @@ -10214,19 +10214,19 @@ func (c *SSM) SendAutomationSignalRequest(input *SendAutomationSignalInput) (req // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation SendAutomationSignal for usage and error information. // -// Returned Error Codes: -// * ErrCodeAutomationExecutionNotFoundException "AutomationExecutionNotFoundException" +// Returned Error Types: +// * AutomationExecutionNotFoundException // There is no automation execution information for the requested automation // execution ID. // -// * ErrCodeAutomationStepNotFoundException "AutomationStepNotFoundException" +// * AutomationStepNotFoundException // The specified step name and execution ID don't exist. Verify the information // and try again. // -// * ErrCodeInvalidAutomationSignalException "InvalidAutomationSignalException" +// * InvalidAutomationSignalException // The signal is not valid for the current Automation execution. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/SendAutomationSignal @@ -10304,14 +10304,14 @@ func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation SendCommand for usage and error information. // -// Returned Error Codes: -// * ErrCodeDuplicateInstanceId "DuplicateInstanceId" +// Returned Error Types: +// * DuplicateInstanceId // You cannot specify an instance ID in more than one association. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -10323,35 +10323,35 @@ func (c *SSM) SendCommandRequest(input *SendCommandInput) (req *request.Request, // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // -// * ErrCodeInvalidOutputFolder "InvalidOutputFolder" +// * InvalidOutputFolder // The S3 bucket does not exist. // -// * ErrCodeInvalidParameters "InvalidParameters" +// * InvalidParameters // You must specify values for all required parameters in the Systems Manager // document. You can only supply values to parameters defined in the Systems // Manager document. // -// * ErrCodeUnsupportedPlatformType "UnsupportedPlatformType" +// * UnsupportedPlatformType // The document does not support the platform type of the given instance ID(s). // For example, you sent an document for a Windows instance to a Linux instance. // -// * ErrCodeMaxDocumentSizeExceeded "MaxDocumentSizeExceeded" +// * MaxDocumentSizeExceeded // The size limit of a document is 64 KB. // -// * ErrCodeInvalidRole "InvalidRole" +// * InvalidRole // The role name can't contain invalid characters. Also verify that you specified // an IAM role for notifications that includes the required trust policy. For // information about configuring the IAM role for Run Command notifications, // see Configuring Amazon SNS Notifications for Run Command (http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html) // in the AWS Systems Manager User Guide. // -// * ErrCodeInvalidNotificationConfig "InvalidNotificationConfig" +// * InvalidNotificationConfig // One or more configuration items is not valid. Verify that a valid Amazon // Resource Name (ARN) was provided for an Amazon SNS topic. // @@ -10432,11 +10432,11 @@ func (c *SSM) StartAssociationsOnceRequest(input *StartAssociationsOnceInput) (r // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation StartAssociationsOnce for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidAssociation "InvalidAssociation" +// Returned Error Types: +// * InvalidAssociation // The association is not valid or does not exist. // -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// * AssociationDoesNotExist // The specified association does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartAssociationsOnce @@ -10514,31 +10514,31 @@ func (c *SSM) StartAutomationExecutionRequest(input *StartAutomationExecutionInp // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation StartAutomationExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeAutomationDefinitionNotFoundException "AutomationDefinitionNotFoundException" +// Returned Error Types: +// * AutomationDefinitionNotFoundException // An Automation document with the specified name could not be found. // -// * ErrCodeInvalidAutomationExecutionParametersException "InvalidAutomationExecutionParametersException" +// * InvalidAutomationExecutionParametersException // The supplied parameters for invoking the specified Automation document are // incorrect. For example, they may not match the set of parameters permitted // for the specified Automation document. // -// * ErrCodeAutomationExecutionLimitExceededException "AutomationExecutionLimitExceededException" +// * AutomationExecutionLimitExceededException // The number of simultaneously running Automation executions exceeded the allowable // limit. // -// * ErrCodeAutomationDefinitionVersionNotFoundException "AutomationDefinitionVersionNotFoundException" +// * AutomationDefinitionVersionNotFoundException // An Automation document with the specified name and version could not be found. // -// * ErrCodeIdempotentParameterMismatch "IdempotentParameterMismatch" +// * IdempotentParameterMismatch // Error returned when an idempotent operation is retried and the parameters // don't match the original call to the API with the same idempotency token. // -// * ErrCodeInvalidTarget "InvalidTarget" +// * InvalidTarget // The target is not valid or does not exist. It might not be configured for // EC2 Systems Manager or you might not have permission to perform the operation. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartAutomationExecution @@ -10626,17 +10626,17 @@ func (c *SSM) StartSessionRequest(input *StartSessionInput) (req *request.Reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation StartSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidDocument "InvalidDocument" +// Returned Error Types: +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeTargetNotConnected "TargetNotConnected" +// * TargetNotConnected // The specified target instance for the session is not fully configured for // use with Session Manager. For more information, see Getting Started with // Session Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html) // in the AWS Systems Manager User Guide. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StartSession @@ -10715,15 +10715,15 @@ func (c *SSM) StopAutomationExecutionRequest(input *StopAutomationExecutionInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation StopAutomationExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeAutomationExecutionNotFoundException "AutomationExecutionNotFoundException" +// Returned Error Types: +// * AutomationExecutionNotFoundException // There is no automation execution information for the requested automation // execution ID. // -// * ErrCodeInvalidAutomationStatusUpdateException "InvalidAutomationStatusUpdateException" +// * InvalidAutomationStatusUpdateException // The specified update status operation is not valid. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/StopAutomationExecution @@ -10803,8 +10803,8 @@ func (c *SSM) TerminateSessionRequest(input *TerminateSessionInput) (req *reques // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation TerminateSession for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -10812,7 +10812,7 @@ func (c *SSM) TerminateSessionRequest(input *TerminateSessionInput) (req *reques // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/TerminateSession @@ -10901,47 +10901,47 @@ func (c *SSM) UpdateAssociationRequest(input *UpdateAssociationInput) (req *requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateAssociation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidSchedule "InvalidSchedule" +// * InvalidSchedule // The schedule is invalid. Verify your cron or rate expression and try again. // -// * ErrCodeInvalidParameters "InvalidParameters" +// * InvalidParameters // You must specify values for all required parameters in the Systems Manager // document. You can only supply values to parameters defined in the Systems // Manager document. // -// * ErrCodeInvalidOutputLocation "InvalidOutputLocation" +// * InvalidOutputLocation // The output location is not valid or does not exist. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// * AssociationDoesNotExist // The specified association does not exist. // -// * ErrCodeInvalidUpdate "InvalidUpdate" +// * InvalidUpdate // The update is not valid. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidTarget "InvalidTarget" +// * InvalidTarget // The target is not valid or does not exist. It might not be configured for // EC2 Systems Manager or you might not have permission to perform the operation. // -// * ErrCodeInvalidAssociationVersion "InvalidAssociationVersion" +// * InvalidAssociationVersion // The version you specified is not valid. Use ListAssociationVersions to view // all versions of an association according to the association ID. Or, use the // $LATEST parameter to view the latest version of the association. // -// * ErrCodeAssociationVersionLimitExceeded "AssociationVersionLimitExceeded" +// * AssociationVersionLimitExceeded // You have reached the maximum number versions allowed for an association. // Each association has a limit of 1,000 versions. // @@ -11021,11 +11021,11 @@ func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateAssociationStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -11037,16 +11037,16 @@ func (c *SSM) UpdateAssociationStatusRequest(input *UpdateAssociationStatusInput // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeAssociationDoesNotExist "AssociationDoesNotExist" +// * AssociationDoesNotExist // The specified association does not exist. // -// * ErrCodeStatusUnchanged "StatusUnchanged" +// * StatusUnchanged // The updated status is the same as the current status. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // @@ -11125,38 +11125,38 @@ func (c *SSM) UpdateDocumentRequest(input *UpdateDocumentInput) (req *request.Re // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeMaxDocumentSizeExceeded "MaxDocumentSizeExceeded" +// Returned Error Types: +// * MaxDocumentSizeExceeded // The size limit of a document is 64 KB. // -// * ErrCodeDocumentVersionLimitExceeded "DocumentVersionLimitExceeded" +// * DocumentVersionLimitExceeded // The document has too many versions. Delete one or more document versions // and try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeDuplicateDocumentContent "DuplicateDocumentContent" +// * DuplicateDocumentContent // The content of the association document matches another document. Change // the content of the document and try again. // -// * ErrCodeDuplicateDocumentVersionName "DuplicateDocumentVersionName" +// * DuplicateDocumentVersionName // The version name has already been used in this document. Specify a different // version name, and then try again. // -// * ErrCodeInvalidDocumentContent "InvalidDocumentContent" +// * InvalidDocumentContent // The content for the document is not valid. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // -// * ErrCodeInvalidDocumentSchemaVersion "InvalidDocumentSchemaVersion" +// * InvalidDocumentSchemaVersion // The version of the document schema is not supported. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentOperation "InvalidDocumentOperation" +// * InvalidDocumentOperation // You attempted to delete a document while it is still shared. You must stop // sharing the document before you can delete it. // @@ -11235,17 +11235,17 @@ func (c *SSM) UpdateDocumentDefaultVersionRequest(input *UpdateDocumentDefaultVe // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateDocumentDefaultVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeInvalidDocument "InvalidDocument" +// * InvalidDocument // The specified document does not exist. // -// * ErrCodeInvalidDocumentVersion "InvalidDocumentVersion" +// * InvalidDocumentVersion // The document version is not valid or does not exist. // -// * ErrCodeInvalidDocumentSchemaVersion "InvalidDocumentSchemaVersion" +// * InvalidDocumentSchemaVersion // The version of the document schema is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateDocumentDefaultVersion @@ -11330,8 +11330,8 @@ func (c *SSM) UpdateMaintenanceWindowRequest(input *UpdateMaintenanceWindowInput // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateMaintenanceWindow for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -11339,7 +11339,7 @@ func (c *SSM) UpdateMaintenanceWindowRequest(input *UpdateMaintenanceWindowInput // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindow @@ -11434,8 +11434,8 @@ func (c *SSM) UpdateMaintenanceWindowTargetRequest(input *UpdateMaintenanceWindo // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateMaintenanceWindowTarget for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -11443,7 +11443,7 @@ func (c *SSM) UpdateMaintenanceWindowTargetRequest(input *UpdateMaintenanceWindo // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindowTarget @@ -11540,8 +11540,8 @@ func (c *SSM) UpdateMaintenanceWindowTaskRequest(input *UpdateMaintenanceWindowT // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateMaintenanceWindowTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -11549,7 +11549,7 @@ func (c *SSM) UpdateMaintenanceWindowTaskRequest(input *UpdateMaintenanceWindowT // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateMaintenanceWindowTask @@ -11629,8 +11629,8 @@ func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleI // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateManagedInstanceRole for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidInstanceId "InvalidInstanceId" +// Returned Error Types: +// * InvalidInstanceId // The following problems can cause this exception: // // You do not have permission to access the instance. @@ -11642,7 +11642,7 @@ func (c *SSM) UpdateManagedInstanceRoleRequest(input *UpdateManagedInstanceRoleI // The instance is not in valid state. Valid states are: Running, Pending, Stopped, // Stopping. Invalid states are: Shutting-down and Terminated. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateManagedInstanceRole @@ -11730,21 +11730,21 @@ func (c *SSM) UpdateOpsItemRequest(input *UpdateOpsItemInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateOpsItem for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeOpsItemNotFoundException "OpsItemNotFoundException" +// * OpsItemNotFoundException // The specified OpsItem ID doesn't exist. Verify the ID and try again. // -// * ErrCodeOpsItemAlreadyExistsException "OpsItemAlreadyExistsException" +// * OpsItemAlreadyExistsException // The OpsItem already exists. // -// * ErrCodeOpsItemLimitExceededException "OpsItemLimitExceededException" +// * OpsItemLimitExceededException // The request caused OpsItems to exceed one or more quotas. For information // about OpsItem quotas, see What are the resource limits for OpsCenter? (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits). // -// * ErrCodeOpsItemInvalidParameterException "OpsItemInvalidParameterException" +// * OpsItemInvalidParameterException // A specified parameter argument isn't valid. Verify the available arguments // and try again. // @@ -11827,8 +11827,8 @@ func (c *SSM) UpdatePatchBaselineRequest(input *UpdatePatchBaselineInput) (req * // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdatePatchBaseline for usage and error information. // -// Returned Error Codes: -// * ErrCodeDoesNotExistException "DoesNotExistException" +// Returned Error Types: +// * DoesNotExistException // Error returned when the ID specified for a resource, such as a maintenance // window or Patch baseline, doesn't exist. // @@ -11836,7 +11836,7 @@ func (c *SSM) UpdatePatchBaselineRequest(input *UpdatePatchBaselineInput) (req * // Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) // in the AWS General Reference. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdatePatchBaseline @@ -11920,18 +11920,18 @@ func (c *SSM) UpdateResourceDataSyncRequest(input *UpdateResourceDataSyncInput) // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateResourceDataSync for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceDataSyncNotFoundException "ResourceDataSyncNotFoundException" +// Returned Error Types: +// * ResourceDataSyncNotFoundException // The specified sync name was not found. // -// * ErrCodeResourceDataSyncInvalidConfigurationException "ResourceDataSyncInvalidConfigurationException" +// * ResourceDataSyncInvalidConfigurationException // The specified sync configuration is invalid. // -// * ErrCodeResourceDataSyncConflictException "ResourceDataSyncConflictException" +// * ResourceDataSyncConflictException // Another UpdateResourceDataSync request is being processed. Wait a few minutes // and try again. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An error occurred on the server side. // // See also, https://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/UpdateResourceDataSync @@ -12024,15 +12024,15 @@ func (c *SSM) UpdateServiceSettingRequest(input *UpdateServiceSettingInput) (req // See the AWS API reference guide for Amazon Simple Systems Manager (SSM)'s // API operation UpdateServiceSetting for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An error occurred on the server side. // -// * ErrCodeServiceSettingNotFound "ServiceSettingNotFound" +// * ServiceSettingNotFound // The specified service setting was not found. Either the service name or the // setting has not been provisioned by the AWS service team. // -// * ErrCodeTooManyUpdates "TooManyUpdates" +// * TooManyUpdates // There are concurrent updates for a resource that supports one update at a // time. // @@ -12313,6 +12313,115 @@ func (s AddTagsToResourceOutput) GoString() string { return s.String() } +// Error returned if an attempt is made to register a patch group with a patch +// baseline that is already registered with a different patch baseline. +type AlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorAlreadyExistsException(v protocol.ResponseMetadata) error { + return &AlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AlreadyExistsException) Code() string { + return "AlreadyExistsException" +} + +// Message returns the exception's message. +func (s AlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AlreadyExistsException) OrigErr() error { + return nil +} + +func (s AlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// You must disassociate a document from all instances before you can delete +// it. +type AssociatedInstances struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AssociatedInstances) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociatedInstances) GoString() string { + return s.String() +} + +func newErrorAssociatedInstances(v protocol.ResponseMetadata) error { + return &AssociatedInstances{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociatedInstances) Code() string { + return "AssociatedInstances" +} + +// Message returns the exception's message. +func (s AssociatedInstances) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociatedInstances) OrigErr() error { + return nil +} + +func (s AssociatedInstances) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociatedInstances) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociatedInstances) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an association of a Systems Manager document and an instance. type Association struct { _ struct{} `type:"structure"` @@ -12419,6 +12528,57 @@ func (s *Association) SetTargets(v []*Target) *Association { return s } +// The specified association already exists. +type AssociationAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AssociationAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationAlreadyExists) GoString() string { + return s.String() +} + +func newErrorAssociationAlreadyExists(v protocol.ResponseMetadata) error { + return &AssociationAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociationAlreadyExists) Code() string { + return "AssociationAlreadyExists" +} + +// Message returns the exception's message. +func (s AssociationAlreadyExists) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociationAlreadyExists) OrigErr() error { + return nil +} + +func (s AssociationAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociationAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociationAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the parameters for a document. type AssociationDescription struct { _ struct{} `type:"structure"` @@ -12635,6 +12795,62 @@ func (s *AssociationDescription) SetTargets(v []*Target) *AssociationDescription return s } +// The specified association does not exist. +type AssociationDoesNotExist struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AssociationDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationDoesNotExist) GoString() string { + return s.String() +} + +func newErrorAssociationDoesNotExist(v protocol.ResponseMetadata) error { + return &AssociationDoesNotExist{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociationDoesNotExist) Code() string { + return "AssociationDoesNotExist" +} + +// Message returns the exception's message. +func (s AssociationDoesNotExist) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociationDoesNotExist) OrigErr() error { + return nil +} + +func (s AssociationDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociationDoesNotExist) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociationDoesNotExist) RequestID() string { + return s.respMetadata.RequestID +} + // Includes information about the specified association. type AssociationExecution struct { _ struct{} `type:"structure"` @@ -12723,6 +12939,62 @@ func (s *AssociationExecution) SetStatus(v string) *AssociationExecution { return s } +// The specified execution ID does not exist. Verify the ID number and try again. +type AssociationExecutionDoesNotExist struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AssociationExecutionDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationExecutionDoesNotExist) GoString() string { + return s.String() +} + +func newErrorAssociationExecutionDoesNotExist(v protocol.ResponseMetadata) error { + return &AssociationExecutionDoesNotExist{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociationExecutionDoesNotExist) Code() string { + return "AssociationExecutionDoesNotExist" +} + +// Message returns the exception's message. +func (s AssociationExecutionDoesNotExist) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociationExecutionDoesNotExist) OrigErr() error { + return nil +} + +func (s AssociationExecutionDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociationExecutionDoesNotExist) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociationExecutionDoesNotExist) RequestID() string { + return s.respMetadata.RequestID +} + // Filters used in the request. type AssociationExecutionFilter struct { _ struct{} `type:"structure"` @@ -13001,6 +13273,57 @@ func (s *AssociationFilter) SetValue(v string) *AssociationFilter { return s } +// You can have at most 2,000 active associations. +type AssociationLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AssociationLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationLimitExceeded) GoString() string { + return s.String() +} + +func newErrorAssociationLimitExceeded(v protocol.ResponseMetadata) error { + return &AssociationLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociationLimitExceeded) Code() string { + return "AssociationLimitExceeded" +} + +// Message returns the exception's message. +func (s AssociationLimitExceeded) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociationLimitExceeded) OrigErr() error { + return nil +} + +func (s AssociationLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociationLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociationLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Information about the association. type AssociationOverview struct { _ struct{} `type:"structure"` @@ -13281,6 +13604,63 @@ func (s *AssociationVersionInfo) SetTargets(v []*Target) *AssociationVersionInfo return s } +// You have reached the maximum number versions allowed for an association. +// Each association has a limit of 1,000 versions. +type AssociationVersionLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AssociationVersionLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AssociationVersionLimitExceeded) GoString() string { + return s.String() +} + +func newErrorAssociationVersionLimitExceeded(v protocol.ResponseMetadata) error { + return &AssociationVersionLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AssociationVersionLimitExceeded) Code() string { + return "AssociationVersionLimitExceeded" +} + +// Message returns the exception's message. +func (s AssociationVersionLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AssociationVersionLimitExceeded) OrigErr() error { + return nil +} + +func (s AssociationVersionLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AssociationVersionLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AssociationVersionLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // A structure that includes attributes that describe a document attachment. type AttachmentContent struct { _ struct{} `type:"structure"` @@ -13438,6 +13818,118 @@ func (s *AttachmentsSource) SetValues(v []*string) *AttachmentsSource { return s } +// An Automation document with the specified name could not be found. +type AutomationDefinitionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AutomationDefinitionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationDefinitionNotFoundException) GoString() string { + return s.String() +} + +func newErrorAutomationDefinitionNotFoundException(v protocol.ResponseMetadata) error { + return &AutomationDefinitionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AutomationDefinitionNotFoundException) Code() string { + return "AutomationDefinitionNotFoundException" +} + +// Message returns the exception's message. +func (s AutomationDefinitionNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AutomationDefinitionNotFoundException) OrigErr() error { + return nil +} + +func (s AutomationDefinitionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AutomationDefinitionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AutomationDefinitionNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// An Automation document with the specified name and version could not be found. +type AutomationDefinitionVersionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AutomationDefinitionVersionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationDefinitionVersionNotFoundException) GoString() string { + return s.String() +} + +func newErrorAutomationDefinitionVersionNotFoundException(v protocol.ResponseMetadata) error { + return &AutomationDefinitionVersionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AutomationDefinitionVersionNotFoundException) Code() string { + return "AutomationDefinitionVersionNotFoundException" +} + +// Message returns the exception's message. +func (s AutomationDefinitionVersionNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AutomationDefinitionVersionNotFoundException) OrigErr() error { + return nil +} + +func (s AutomationDefinitionVersionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AutomationDefinitionVersionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AutomationDefinitionVersionNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Detailed information about the current state of an individual Automation // execution. type AutomationExecution struct { @@ -13746,6 +14238,63 @@ func (s *AutomationExecutionFilter) SetValues(v []*string) *AutomationExecutionF return s } +// The number of simultaneously running Automation executions exceeded the allowable +// limit. +type AutomationExecutionLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AutomationExecutionLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationExecutionLimitExceededException) GoString() string { + return s.String() +} + +func newErrorAutomationExecutionLimitExceededException(v protocol.ResponseMetadata) error { + return &AutomationExecutionLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AutomationExecutionLimitExceededException) Code() string { + return "AutomationExecutionLimitExceededException" +} + +// Message returns the exception's message. +func (s AutomationExecutionLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AutomationExecutionLimitExceededException) OrigErr() error { + return nil +} + +func (s AutomationExecutionLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AutomationExecutionLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AutomationExecutionLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Details about a specific Automation execution. type AutomationExecutionMetadata struct { _ struct{} `type:"structure"` @@ -13965,6 +14514,120 @@ func (s *AutomationExecutionMetadata) SetTargets(v []*Target) *AutomationExecuti return s } +// There is no automation execution information for the requested automation +// execution ID. +type AutomationExecutionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AutomationExecutionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationExecutionNotFoundException) GoString() string { + return s.String() +} + +func newErrorAutomationExecutionNotFoundException(v protocol.ResponseMetadata) error { + return &AutomationExecutionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AutomationExecutionNotFoundException) Code() string { + return "AutomationExecutionNotFoundException" +} + +// Message returns the exception's message. +func (s AutomationExecutionNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AutomationExecutionNotFoundException) OrigErr() error { + return nil +} + +func (s AutomationExecutionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AutomationExecutionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AutomationExecutionNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified step name and execution ID don't exist. Verify the information +// and try again. +type AutomationStepNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s AutomationStepNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AutomationStepNotFoundException) GoString() string { + return s.String() +} + +func newErrorAutomationStepNotFoundException(v protocol.ResponseMetadata) error { + return &AutomationStepNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AutomationStepNotFoundException) Code() string { + return "AutomationStepNotFoundException" +} + +// Message returns the exception's message. +func (s AutomationStepNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AutomationStepNotFoundException) OrigErr() error { + return nil +} + +func (s AutomationStepNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AutomationStepNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AutomationStepNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type CancelCommandInput struct { _ struct{} `type:"structure"` @@ -15266,6 +15929,63 @@ func (s *ComplianceSummaryItem) SetNonCompliantSummary(v *NonCompliantSummary) * return s } +// You specified too many custom compliance types. You can specify a maximum +// of 10 different types. +type ComplianceTypeCountLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ComplianceTypeCountLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ComplianceTypeCountLimitExceededException) GoString() string { + return s.String() +} + +func newErrorComplianceTypeCountLimitExceededException(v protocol.ResponseMetadata) error { + return &ComplianceTypeCountLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ComplianceTypeCountLimitExceededException) Code() string { + return "ComplianceTypeCountLimitExceededException" +} + +// Message returns the exception's message. +func (s ComplianceTypeCountLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ComplianceTypeCountLimitExceededException) OrigErr() error { + return nil +} + +func (s ComplianceTypeCountLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ComplianceTypeCountLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ComplianceTypeCountLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // A summary of resources that are compliant. The summary is organized according // to the resource count for each compliance type. type CompliantSummary struct { @@ -16976,6 +17696,63 @@ func (s CreateResourceDataSyncOutput) GoString() string { return s.String() } +// You have exceeded the limit for custom schemas. Delete one or more custom +// schemas and try again. +type CustomSchemaCountLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CustomSchemaCountLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomSchemaCountLimitExceededException) GoString() string { + return s.String() +} + +func newErrorCustomSchemaCountLimitExceededException(v protocol.ResponseMetadata) error { + return &CustomSchemaCountLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CustomSchemaCountLimitExceededException) Code() string { + return "CustomSchemaCountLimitExceededException" +} + +// Message returns the exception's message. +func (s CustomSchemaCountLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomSchemaCountLimitExceededException) OrigErr() error { + return nil +} + +func (s CustomSchemaCountLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomSchemaCountLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomSchemaCountLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteActivationInput struct { _ struct{} `type:"structure"` @@ -21576,6 +22353,62 @@ func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutp return s } +// The specified document already exists. +type DocumentAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DocumentAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentAlreadyExists) GoString() string { + return s.String() +} + +func newErrorDocumentAlreadyExists(v protocol.ResponseMetadata) error { + return &DocumentAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DocumentAlreadyExists) Code() string { + return "DocumentAlreadyExists" +} + +// Message returns the exception's message. +func (s DocumentAlreadyExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DocumentAlreadyExists) OrigErr() error { + return nil +} + +func (s DocumentAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DocumentAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DocumentAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + // A default version of a document. type DocumentDefaultVersionDescription struct { _ struct{} `type:"structure"` @@ -22089,6 +22922,62 @@ func (s *DocumentKeyValuesFilter) SetValues(v []*string) *DocumentKeyValuesFilte return s } +// You can have at most 500 active Systems Manager documents. +type DocumentLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DocumentLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentLimitExceeded) GoString() string { + return s.String() +} + +func newErrorDocumentLimitExceeded(v protocol.ResponseMetadata) error { + return &DocumentLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DocumentLimitExceeded) Code() string { + return "DocumentLimitExceeded" +} + +// Message returns the exception's message. +func (s DocumentLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DocumentLimitExceeded) OrigErr() error { + return nil +} + +func (s DocumentLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DocumentLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DocumentLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Parameters specified in a System Manager document that run on the server // when the command is run. type DocumentParameter struct { @@ -22143,6 +23032,64 @@ func (s *DocumentParameter) SetType(v string) *DocumentParameter { return s } +// The document cannot be shared with more AWS user accounts. You can share +// a document with a maximum of 20 accounts. You can publicly share up to five +// documents. If you need to increase this limit, contact AWS Support. +type DocumentPermissionLimit struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DocumentPermissionLimit) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentPermissionLimit) GoString() string { + return s.String() +} + +func newErrorDocumentPermissionLimit(v protocol.ResponseMetadata) error { + return &DocumentPermissionLimit{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DocumentPermissionLimit) Code() string { + return "DocumentPermissionLimit" +} + +// Message returns the exception's message. +func (s DocumentPermissionLimit) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DocumentPermissionLimit) OrigErr() error { + return nil +} + +func (s DocumentPermissionLimit) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DocumentPermissionLimit) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DocumentPermissionLimit) RequestID() string { + return s.respMetadata.RequestID +} + // An SSM document required by the current document. type DocumentRequires struct { _ struct{} `type:"structure"` @@ -22285,6 +23232,289 @@ func (s *DocumentVersionInfo) SetVersionName(v string) *DocumentVersionInfo { return s } +// The document has too many versions. Delete one or more document versions +// and try again. +type DocumentVersionLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DocumentVersionLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentVersionLimitExceeded) GoString() string { + return s.String() +} + +func newErrorDocumentVersionLimitExceeded(v protocol.ResponseMetadata) error { + return &DocumentVersionLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DocumentVersionLimitExceeded) Code() string { + return "DocumentVersionLimitExceeded" +} + +// Message returns the exception's message. +func (s DocumentVersionLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DocumentVersionLimitExceeded) OrigErr() error { + return nil +} + +func (s DocumentVersionLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DocumentVersionLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DocumentVersionLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// Error returned when the ID specified for a resource, such as a maintenance +// window or Patch baseline, doesn't exist. +// +// For information about resource quotas in Systems Manager, see Systems Manager +// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) +// in the AWS General Reference. +type DoesNotExistException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DoesNotExistException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DoesNotExistException) GoString() string { + return s.String() +} + +func newErrorDoesNotExistException(v protocol.ResponseMetadata) error { + return &DoesNotExistException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DoesNotExistException) Code() string { + return "DoesNotExistException" +} + +// Message returns the exception's message. +func (s DoesNotExistException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DoesNotExistException) OrigErr() error { + return nil +} + +func (s DoesNotExistException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DoesNotExistException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DoesNotExistException) RequestID() string { + return s.respMetadata.RequestID +} + +// The content of the association document matches another document. Change +// the content of the document and try again. +type DuplicateDocumentContent struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateDocumentContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateDocumentContent) GoString() string { + return s.String() +} + +func newErrorDuplicateDocumentContent(v protocol.ResponseMetadata) error { + return &DuplicateDocumentContent{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateDocumentContent) Code() string { + return "DuplicateDocumentContent" +} + +// Message returns the exception's message. +func (s DuplicateDocumentContent) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateDocumentContent) OrigErr() error { + return nil +} + +func (s DuplicateDocumentContent) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateDocumentContent) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateDocumentContent) RequestID() string { + return s.respMetadata.RequestID +} + +// The version name has already been used in this document. Specify a different +// version name, and then try again. +type DuplicateDocumentVersionName struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DuplicateDocumentVersionName) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateDocumentVersionName) GoString() string { + return s.String() +} + +func newErrorDuplicateDocumentVersionName(v protocol.ResponseMetadata) error { + return &DuplicateDocumentVersionName{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateDocumentVersionName) Code() string { + return "DuplicateDocumentVersionName" +} + +// Message returns the exception's message. +func (s DuplicateDocumentVersionName) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateDocumentVersionName) OrigErr() error { + return nil +} + +func (s DuplicateDocumentVersionName) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateDocumentVersionName) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateDocumentVersionName) RequestID() string { + return s.respMetadata.RequestID +} + +// You cannot specify an instance ID in more than one association. +type DuplicateInstanceId struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DuplicateInstanceId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DuplicateInstanceId) GoString() string { + return s.String() +} + +func newErrorDuplicateInstanceId(v protocol.ResponseMetadata) error { + return &DuplicateInstanceId{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DuplicateInstanceId) Code() string { + return "DuplicateInstanceId" +} + +// Message returns the exception's message. +func (s DuplicateInstanceId) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DuplicateInstanceId) OrigErr() error { + return nil +} + +func (s DuplicateInstanceId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DuplicateInstanceId) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DuplicateInstanceId) RequestID() string { + return s.respMetadata.RequestID +} + // The EffectivePatch structure defines metadata about a patch along with the // approval state of the patch in a particular patch baseline. The approval // state includes information about whether the patch is currently approved, @@ -22412,6 +23642,63 @@ func (s *FailureDetails) SetFailureType(v string) *FailureDetails { return s } +// You attempted to register a LAMBDA or STEP_FUNCTIONS task in a region where +// the corresponding service is not available. +type FeatureNotAvailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FeatureNotAvailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FeatureNotAvailableException) GoString() string { + return s.String() +} + +func newErrorFeatureNotAvailableException(v protocol.ResponseMetadata) error { + return &FeatureNotAvailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FeatureNotAvailableException) Code() string { + return "FeatureNotAvailableException" +} + +// Message returns the exception's message. +func (s FeatureNotAvailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FeatureNotAvailableException) OrigErr() error { + return nil +} + +func (s FeatureNotAvailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FeatureNotAvailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FeatureNotAvailableException) RequestID() string { + return s.respMetadata.RequestID +} + type GetAutomationExecutionInput struct { _ struct{} `type:"structure"` @@ -25459,6 +26746,243 @@ func (s *GetServiceSettingOutput) SetServiceSetting(v *ServiceSetting) *GetServi return s } +// A hierarchy can have a maximum of 15 levels. For more information, see Requirements +// and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html) +// in the AWS Systems Manager User Guide. +type HierarchyLevelLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A hierarchy can have a maximum of 15 levels. For more information, see Requirements + // and Constraints for Parameter Names (http://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-parameter-name-constraints.html) + // in the AWS Systems Manager User Guide. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s HierarchyLevelLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HierarchyLevelLimitExceededException) GoString() string { + return s.String() +} + +func newErrorHierarchyLevelLimitExceededException(v protocol.ResponseMetadata) error { + return &HierarchyLevelLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HierarchyLevelLimitExceededException) Code() string { + return "HierarchyLevelLimitExceededException" +} + +// Message returns the exception's message. +func (s HierarchyLevelLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HierarchyLevelLimitExceededException) OrigErr() error { + return nil +} + +func (s HierarchyLevelLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HierarchyLevelLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HierarchyLevelLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// Parameter Store does not support changing a parameter type in a hierarchy. +// For example, you can't change a parameter from a String type to a SecureString +// type. You must create a new, unique parameter. +type HierarchyTypeMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // Parameter Store does not support changing a parameter type in a hierarchy. + // For example, you can't change a parameter from a String type to a SecureString + // type. You must create a new, unique parameter. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s HierarchyTypeMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HierarchyTypeMismatchException) GoString() string { + return s.String() +} + +func newErrorHierarchyTypeMismatchException(v protocol.ResponseMetadata) error { + return &HierarchyTypeMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HierarchyTypeMismatchException) Code() string { + return "HierarchyTypeMismatchException" +} + +// Message returns the exception's message. +func (s HierarchyTypeMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HierarchyTypeMismatchException) OrigErr() error { + return nil +} + +func (s HierarchyTypeMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HierarchyTypeMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HierarchyTypeMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// Error returned when an idempotent operation is retried and the parameters +// don't match the original call to the API with the same idempotency token. +type IdempotentParameterMismatch struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IdempotentParameterMismatch) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatch) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatch(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatch{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatch) Code() string { + return "IdempotentParameterMismatch" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatch) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatch) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatch) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatch) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatch) RequestID() string { + return s.respMetadata.RequestID +} + +// There is a conflict in the policies specified for this parameter. You can't, +// for example, specify two Expiration policies for a parameter. Review your +// policies, and try again. +type IncompatiblePolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s IncompatiblePolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IncompatiblePolicyException) GoString() string { + return s.String() +} + +func newErrorIncompatiblePolicyException(v protocol.ResponseMetadata) error { + return &IncompatiblePolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IncompatiblePolicyException) Code() string { + return "IncompatiblePolicyException" +} + +// Message returns the exception's message. +func (s IncompatiblePolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IncompatiblePolicyException) OrigErr() error { + return nil +} + +func (s IncompatiblePolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IncompatiblePolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IncompatiblePolicyException) RequestID() string { + return s.respMetadata.RequestID +} + // Status information about the aggregated associations. type InstanceAggregatedAssociationOverview struct { _ struct{} `type:"structure"` @@ -25891,457 +27415,3155 @@ func (s *InstanceInformation) SetPingStatus(v string) *InstanceInformation { return s } -// SetPlatformName sets the PlatformName field's value. -func (s *InstanceInformation) SetPlatformName(v string) *InstanceInformation { - s.PlatformName = &v - return s +// SetPlatformName sets the PlatformName field's value. +func (s *InstanceInformation) SetPlatformName(v string) *InstanceInformation { + s.PlatformName = &v + return s +} + +// SetPlatformType sets the PlatformType field's value. +func (s *InstanceInformation) SetPlatformType(v string) *InstanceInformation { + s.PlatformType = &v + return s +} + +// SetPlatformVersion sets the PlatformVersion field's value. +func (s *InstanceInformation) SetPlatformVersion(v string) *InstanceInformation { + s.PlatformVersion = &v + return s +} + +// SetRegistrationDate sets the RegistrationDate field's value. +func (s *InstanceInformation) SetRegistrationDate(v time.Time) *InstanceInformation { + s.RegistrationDate = &v + return s +} + +// SetResourceType sets the ResourceType field's value. +func (s *InstanceInformation) SetResourceType(v string) *InstanceInformation { + s.ResourceType = &v + return s +} + +// Describes a filter for a specific list of instances. You can filter instances +// information by using tags. You specify tags by using a key-value mapping. +// +// Use this action instead of the DescribeInstanceInformationRequest$InstanceInformationFilterList +// method. The InstanceInformationFilterList method is a legacy method and does +// not support tags. +type InstanceInformationFilter struct { + _ struct{} `type:"structure"` + + // The name of the filter. + // + // Key is a required field + Key *string `locationName:"key" type:"string" required:"true" enum:"InstanceInformationFilterKey"` + + // The filter values. + // + // ValueSet is a required field + ValueSet []*string `locationName:"valueSet" min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s InstanceInformationFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceInformationFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceInformationFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceInformationFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.ValueSet == nil { + invalidParams.Add(request.NewErrParamRequired("ValueSet")) + } + if s.ValueSet != nil && len(s.ValueSet) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ValueSet", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *InstanceInformationFilter) SetKey(v string) *InstanceInformationFilter { + s.Key = &v + return s +} + +// SetValueSet sets the ValueSet field's value. +func (s *InstanceInformationFilter) SetValueSet(v []*string) *InstanceInformationFilter { + s.ValueSet = v + return s +} + +// The filters to describe or get information about your managed instances. +type InstanceInformationStringFilter struct { + _ struct{} `type:"structure"` + + // The filter key name to describe your instances. For example: + // + // "InstanceIds"|"AgentVersion"|"PingStatus"|"PlatformTypes"|"ActivationIds"|"IamRole"|"ResourceType"|"AssociationStatus"|"Tag + // Key" + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The filter values. + // + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s InstanceInformationStringFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstanceInformationStringFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstanceInformationStringFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstanceInformationStringFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *InstanceInformationStringFilter) SetKey(v string) *InstanceInformationStringFilter { + s.Key = &v + return s +} + +// SetValues sets the Values field's value. +func (s *InstanceInformationStringFilter) SetValues(v []*string) *InstanceInformationStringFilter { + s.Values = v + return s +} + +// Defines the high-level patch compliance state for a managed instance, providing +// information about the number of installed, missing, not applicable, and failed +// patches along with metadata about the operation when this information was +// gathered for the instance. +type InstancePatchState struct { + _ struct{} `type:"structure"` + + // The ID of the patch baseline used to patch the instance. + // + // BaselineId is a required field + BaselineId *string `min:"20" type:"string" required:"true"` + + // The number of patches from the patch baseline that were attempted to be installed + // during the last patching operation, but failed to install. + FailedCount *int64 `type:"integer"` + + // An https URL or an Amazon S3 path-style URL to a list of patches to be installed. + // This patch installation list, which you maintain in an Amazon S3 bucket in + // YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides + // the patches specified by the default patch baseline. + // + // For more information about the InstallOverrideList parameter, see About the + // SSM Document AWS-RunPatchBaseline (http://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaseline.html) + // in the AWS Systems Manager User Guide. + InstallOverrideList *string `min:"1" type:"string"` + + // The number of patches from the patch baseline that are installed on the instance. + InstalledCount *int64 `type:"integer"` + + // The number of patches not specified in the patch baseline that are installed + // on the instance. + InstalledOtherCount *int64 `type:"integer"` + + // Reserved for future use. + InstalledPendingRebootCount *int64 `type:"integer"` + + // The number of instances with patches installed that are specified in a RejectedPatches + // list. Patches with a status of InstalledRejected were typically installed + // before they were added to a RejectedPatches list. + // + // If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, + // the value of InstalledRejectedCount will always be 0 (zero). + InstalledRejectedCount *int64 `type:"integer"` + + // The ID of the managed instance the high-level patch compliance information + // was collected for. + // + // InstanceId is a required field + InstanceId *string `type:"string" required:"true"` + + // Reserved for future use. + LastNoRebootInstallOperationTime *time.Time `type:"timestamp"` + + // The number of patches from the patch baseline that are applicable for the + // instance but aren't currently installed. + MissingCount *int64 `type:"integer"` + + // The number of patches from the patch baseline that aren't applicable for + // the instance and therefore aren't installed on the instance. This number + // may be truncated if the list of patch names is very large. The number of + // patches beyond this limit are reported in UnreportedNotApplicableCount. + NotApplicableCount *int64 `type:"integer"` + + // The type of patching operation that was performed: SCAN (assess patch compliance + // state) or INSTALL (install missing patches). + // + // Operation is a required field + Operation *string `type:"string" required:"true" enum:"PatchOperationType"` + + // The time the most recent patching operation completed on the instance. + // + // OperationEndTime is a required field + OperationEndTime *time.Time `type:"timestamp" required:"true"` + + // The time the most recent patching operation was started on the instance. + // + // OperationStartTime is a required field + OperationStartTime *time.Time `type:"timestamp" required:"true"` + + // Placeholder information. This field will always be empty in the current release + // of the service. + OwnerInformation *string `min:"1" type:"string" sensitive:"true"` + + // The name of the patch group the managed instance belongs to. + // + // PatchGroup is a required field + PatchGroup *string `min:"1" type:"string" required:"true"` + + // Reserved for future use. + RebootOption *string `type:"string" enum:"RebootOption"` + + // The ID of the patch baseline snapshot used during the patching operation + // when this compliance data was collected. + SnapshotId *string `min:"36" type:"string"` + + // The number of patches beyond the supported limit of NotApplicableCount that + // are not reported by name to Systems Manager Inventory. + UnreportedNotApplicableCount *int64 `type:"integer"` +} + +// String returns the string representation +func (s InstancePatchState) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstancePatchState) GoString() string { + return s.String() +} + +// SetBaselineId sets the BaselineId field's value. +func (s *InstancePatchState) SetBaselineId(v string) *InstancePatchState { + s.BaselineId = &v + return s +} + +// SetFailedCount sets the FailedCount field's value. +func (s *InstancePatchState) SetFailedCount(v int64) *InstancePatchState { + s.FailedCount = &v + return s +} + +// SetInstallOverrideList sets the InstallOverrideList field's value. +func (s *InstancePatchState) SetInstallOverrideList(v string) *InstancePatchState { + s.InstallOverrideList = &v + return s +} + +// SetInstalledCount sets the InstalledCount field's value. +func (s *InstancePatchState) SetInstalledCount(v int64) *InstancePatchState { + s.InstalledCount = &v + return s +} + +// SetInstalledOtherCount sets the InstalledOtherCount field's value. +func (s *InstancePatchState) SetInstalledOtherCount(v int64) *InstancePatchState { + s.InstalledOtherCount = &v + return s +} + +// SetInstalledPendingRebootCount sets the InstalledPendingRebootCount field's value. +func (s *InstancePatchState) SetInstalledPendingRebootCount(v int64) *InstancePatchState { + s.InstalledPendingRebootCount = &v + return s +} + +// SetInstalledRejectedCount sets the InstalledRejectedCount field's value. +func (s *InstancePatchState) SetInstalledRejectedCount(v int64) *InstancePatchState { + s.InstalledRejectedCount = &v + return s +} + +// SetInstanceId sets the InstanceId field's value. +func (s *InstancePatchState) SetInstanceId(v string) *InstancePatchState { + s.InstanceId = &v + return s +} + +// SetLastNoRebootInstallOperationTime sets the LastNoRebootInstallOperationTime field's value. +func (s *InstancePatchState) SetLastNoRebootInstallOperationTime(v time.Time) *InstancePatchState { + s.LastNoRebootInstallOperationTime = &v + return s +} + +// SetMissingCount sets the MissingCount field's value. +func (s *InstancePatchState) SetMissingCount(v int64) *InstancePatchState { + s.MissingCount = &v + return s +} + +// SetNotApplicableCount sets the NotApplicableCount field's value. +func (s *InstancePatchState) SetNotApplicableCount(v int64) *InstancePatchState { + s.NotApplicableCount = &v + return s +} + +// SetOperation sets the Operation field's value. +func (s *InstancePatchState) SetOperation(v string) *InstancePatchState { + s.Operation = &v + return s +} + +// SetOperationEndTime sets the OperationEndTime field's value. +func (s *InstancePatchState) SetOperationEndTime(v time.Time) *InstancePatchState { + s.OperationEndTime = &v + return s +} + +// SetOperationStartTime sets the OperationStartTime field's value. +func (s *InstancePatchState) SetOperationStartTime(v time.Time) *InstancePatchState { + s.OperationStartTime = &v + return s +} + +// SetOwnerInformation sets the OwnerInformation field's value. +func (s *InstancePatchState) SetOwnerInformation(v string) *InstancePatchState { + s.OwnerInformation = &v + return s +} + +// SetPatchGroup sets the PatchGroup field's value. +func (s *InstancePatchState) SetPatchGroup(v string) *InstancePatchState { + s.PatchGroup = &v + return s +} + +// SetRebootOption sets the RebootOption field's value. +func (s *InstancePatchState) SetRebootOption(v string) *InstancePatchState { + s.RebootOption = &v + return s +} + +// SetSnapshotId sets the SnapshotId field's value. +func (s *InstancePatchState) SetSnapshotId(v string) *InstancePatchState { + s.SnapshotId = &v + return s +} + +// SetUnreportedNotApplicableCount sets the UnreportedNotApplicableCount field's value. +func (s *InstancePatchState) SetUnreportedNotApplicableCount(v int64) *InstancePatchState { + s.UnreportedNotApplicableCount = &v + return s +} + +// Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to +// scope down the information returned by the API. +type InstancePatchStateFilter struct { + _ struct{} `type:"structure"` + + // The key for the filter. Supported values are FailedCount, InstalledCount, + // InstalledOtherCount, MissingCount and NotApplicableCount. + // + // Key is a required field + Key *string `min:"1" type:"string" required:"true"` + + // The type of comparison that should be performed for the value: Equal, NotEqual, + // LessThan or GreaterThan. + // + // Type is a required field + Type *string `type:"string" required:"true" enum:"InstancePatchStateOperatorType"` + + // The value for the filter, must be an integer greater than or equal to 0. + // + // Values is a required field + Values []*string `min:"1" type:"list" required:"true"` +} + +// String returns the string representation +func (s InstancePatchStateFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InstancePatchStateFilter) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *InstancePatchStateFilter) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "InstancePatchStateFilter"} + if s.Key == nil { + invalidParams.Add(request.NewErrParamRequired("Key")) + } + if s.Key != nil && len(*s.Key) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Key", 1)) + } + if s.Type == nil { + invalidParams.Add(request.NewErrParamRequired("Type")) + } + if s.Values == nil { + invalidParams.Add(request.NewErrParamRequired("Values")) + } + if s.Values != nil && len(s.Values) < 1 { + invalidParams.Add(request.NewErrParamMinLen("Values", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetKey sets the Key field's value. +func (s *InstancePatchStateFilter) SetKey(v string) *InstancePatchStateFilter { + s.Key = &v + return s +} + +// SetType sets the Type field's value. +func (s *InstancePatchStateFilter) SetType(v string) *InstancePatchStateFilter { + s.Type = &v + return s +} + +// SetValues sets the Values field's value. +func (s *InstancePatchStateFilter) SetValues(v []*string) *InstancePatchStateFilter { + s.Values = v + return s +} + +// An error occurred on the server side. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// The activation is not valid. The activation might have been deleted, or the +// ActivationId and the ActivationCode do not match. +type InvalidActivation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidActivation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidActivation) GoString() string { + return s.String() +} + +func newErrorInvalidActivation(v protocol.ResponseMetadata) error { + return &InvalidActivation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidActivation) Code() string { + return "InvalidActivation" +} + +// Message returns the exception's message. +func (s InvalidActivation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidActivation) OrigErr() error { + return nil +} + +func (s InvalidActivation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidActivation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidActivation) RequestID() string { + return s.respMetadata.RequestID +} + +// The activation ID is not valid. Verify the you entered the correct ActivationId +// or ActivationCode and try again. +type InvalidActivationId struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidActivationId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidActivationId) GoString() string { + return s.String() +} + +func newErrorInvalidActivationId(v protocol.ResponseMetadata) error { + return &InvalidActivationId{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidActivationId) Code() string { + return "InvalidActivationId" +} + +// Message returns the exception's message. +func (s InvalidActivationId) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidActivationId) OrigErr() error { + return nil +} + +func (s InvalidActivationId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidActivationId) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidActivationId) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified aggregator is not valid for inventory groups. Verify that the +// aggregator uses a valid inventory type such as AWS:Application or AWS:InstanceInformation. +type InvalidAggregatorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAggregatorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAggregatorException) GoString() string { + return s.String() +} + +func newErrorInvalidAggregatorException(v protocol.ResponseMetadata) error { + return &InvalidAggregatorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAggregatorException) Code() string { + return "InvalidAggregatorException" +} + +// Message returns the exception's message. +func (s InvalidAggregatorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAggregatorException) OrigErr() error { + return nil +} + +func (s InvalidAggregatorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAggregatorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAggregatorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request does not meet the regular expression requirement. +type InvalidAllowedPatternException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The request does not meet the regular expression requirement. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidAllowedPatternException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAllowedPatternException) GoString() string { + return s.String() +} + +func newErrorInvalidAllowedPatternException(v protocol.ResponseMetadata) error { + return &InvalidAllowedPatternException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAllowedPatternException) Code() string { + return "InvalidAllowedPatternException" +} + +// Message returns the exception's message. +func (s InvalidAllowedPatternException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAllowedPatternException) OrigErr() error { + return nil +} + +func (s InvalidAllowedPatternException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAllowedPatternException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAllowedPatternException) RequestID() string { + return s.respMetadata.RequestID +} + +// The association is not valid or does not exist. +type InvalidAssociation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAssociation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAssociation) GoString() string { + return s.String() +} + +func newErrorInvalidAssociation(v protocol.ResponseMetadata) error { + return &InvalidAssociation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAssociation) Code() string { + return "InvalidAssociation" +} + +// Message returns the exception's message. +func (s InvalidAssociation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAssociation) OrigErr() error { + return nil +} + +func (s InvalidAssociation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAssociation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAssociation) RequestID() string { + return s.respMetadata.RequestID +} + +// The version you specified is not valid. Use ListAssociationVersions to view +// all versions of an association according to the association ID. Or, use the +// $LATEST parameter to view the latest version of the association. +type InvalidAssociationVersion struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAssociationVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAssociationVersion) GoString() string { + return s.String() +} + +func newErrorInvalidAssociationVersion(v protocol.ResponseMetadata) error { + return &InvalidAssociationVersion{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAssociationVersion) Code() string { + return "InvalidAssociationVersion" +} + +// Message returns the exception's message. +func (s InvalidAssociationVersion) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAssociationVersion) OrigErr() error { + return nil +} + +func (s InvalidAssociationVersion) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAssociationVersion) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAssociationVersion) RequestID() string { + return s.respMetadata.RequestID +} + +// The supplied parameters for invoking the specified Automation document are +// incorrect. For example, they may not match the set of parameters permitted +// for the specified Automation document. +type InvalidAutomationExecutionParametersException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAutomationExecutionParametersException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAutomationExecutionParametersException) GoString() string { + return s.String() +} + +func newErrorInvalidAutomationExecutionParametersException(v protocol.ResponseMetadata) error { + return &InvalidAutomationExecutionParametersException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAutomationExecutionParametersException) Code() string { + return "InvalidAutomationExecutionParametersException" +} + +// Message returns the exception's message. +func (s InvalidAutomationExecutionParametersException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAutomationExecutionParametersException) OrigErr() error { + return nil +} + +func (s InvalidAutomationExecutionParametersException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAutomationExecutionParametersException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAutomationExecutionParametersException) RequestID() string { + return s.respMetadata.RequestID +} + +// The signal is not valid for the current Automation execution. +type InvalidAutomationSignalException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAutomationSignalException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAutomationSignalException) GoString() string { + return s.String() +} + +func newErrorInvalidAutomationSignalException(v protocol.ResponseMetadata) error { + return &InvalidAutomationSignalException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAutomationSignalException) Code() string { + return "InvalidAutomationSignalException" +} + +// Message returns the exception's message. +func (s InvalidAutomationSignalException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAutomationSignalException) OrigErr() error { + return nil +} + +func (s InvalidAutomationSignalException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAutomationSignalException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAutomationSignalException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified update status operation is not valid. +type InvalidAutomationStatusUpdateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidAutomationStatusUpdateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidAutomationStatusUpdateException) GoString() string { + return s.String() +} + +func newErrorInvalidAutomationStatusUpdateException(v protocol.ResponseMetadata) error { + return &InvalidAutomationStatusUpdateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidAutomationStatusUpdateException) Code() string { + return "InvalidAutomationStatusUpdateException" +} + +// Message returns the exception's message. +func (s InvalidAutomationStatusUpdateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAutomationStatusUpdateException) OrigErr() error { + return nil +} + +func (s InvalidAutomationStatusUpdateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAutomationStatusUpdateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAutomationStatusUpdateException) RequestID() string { + return s.respMetadata.RequestID +} + +type InvalidCommandId struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidCommandId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCommandId) GoString() string { + return s.String() +} + +func newErrorInvalidCommandId(v protocol.ResponseMetadata) error { + return &InvalidCommandId{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCommandId) Code() string { + return "InvalidCommandId" +} + +// Message returns the exception's message. +func (s InvalidCommandId) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCommandId) OrigErr() error { + return nil +} + +func (s InvalidCommandId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCommandId) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCommandId) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more of the parameters specified for the delete operation is not valid. +// Verify all parameters and try again. +type InvalidDeleteInventoryParametersException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDeleteInventoryParametersException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeleteInventoryParametersException) GoString() string { + return s.String() +} + +func newErrorInvalidDeleteInventoryParametersException(v protocol.ResponseMetadata) error { + return &InvalidDeleteInventoryParametersException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeleteInventoryParametersException) Code() string { + return "InvalidDeleteInventoryParametersException" +} + +// Message returns the exception's message. +func (s InvalidDeleteInventoryParametersException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeleteInventoryParametersException) OrigErr() error { + return nil +} + +func (s InvalidDeleteInventoryParametersException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeleteInventoryParametersException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeleteInventoryParametersException) RequestID() string { + return s.respMetadata.RequestID +} + +// The ID specified for the delete operation does not exist or is not valid. +// Verify the ID and try again. +type InvalidDeletionIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDeletionIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDeletionIdException) GoString() string { + return s.String() +} + +func newErrorInvalidDeletionIdException(v protocol.ResponseMetadata) error { + return &InvalidDeletionIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDeletionIdException) Code() string { + return "InvalidDeletionIdException" +} + +// Message returns the exception's message. +func (s InvalidDeletionIdException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDeletionIdException) OrigErr() error { + return nil +} + +func (s InvalidDeletionIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDeletionIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDeletionIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified document does not exist. +type InvalidDocument struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The document does not exist or the document is not available to the user. + // This exception can be issued by CreateAssociation, CreateAssociationBatch, + // DeleteAssociation, DeleteDocument, DescribeAssociation, DescribeDocument, + // GetDocument, SendCommand, or UpdateAssociationStatus. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDocument) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDocument) GoString() string { + return s.String() +} + +func newErrorInvalidDocument(v protocol.ResponseMetadata) error { + return &InvalidDocument{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDocument) Code() string { + return "InvalidDocument" +} + +// Message returns the exception's message. +func (s InvalidDocument) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDocument) OrigErr() error { + return nil +} + +func (s InvalidDocument) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDocument) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDocument) RequestID() string { + return s.respMetadata.RequestID +} + +// The content for the document is not valid. +type InvalidDocumentContent struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description of the validation error. + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDocumentContent) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDocumentContent) GoString() string { + return s.String() +} + +func newErrorInvalidDocumentContent(v protocol.ResponseMetadata) error { + return &InvalidDocumentContent{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDocumentContent) Code() string { + return "InvalidDocumentContent" +} + +// Message returns the exception's message. +func (s InvalidDocumentContent) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDocumentContent) OrigErr() error { + return nil +} + +func (s InvalidDocumentContent) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDocumentContent) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDocumentContent) RequestID() string { + return s.respMetadata.RequestID +} + +// You attempted to delete a document while it is still shared. You must stop +// sharing the document before you can delete it. +type InvalidDocumentOperation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDocumentOperation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDocumentOperation) GoString() string { + return s.String() +} + +func newErrorInvalidDocumentOperation(v protocol.ResponseMetadata) error { + return &InvalidDocumentOperation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDocumentOperation) Code() string { + return "InvalidDocumentOperation" +} + +// Message returns the exception's message. +func (s InvalidDocumentOperation) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDocumentOperation) OrigErr() error { + return nil +} + +func (s InvalidDocumentOperation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDocumentOperation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDocumentOperation) RequestID() string { + return s.respMetadata.RequestID +} + +// The version of the document schema is not supported. +type InvalidDocumentSchemaVersion struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDocumentSchemaVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDocumentSchemaVersion) GoString() string { + return s.String() +} + +func newErrorInvalidDocumentSchemaVersion(v protocol.ResponseMetadata) error { + return &InvalidDocumentSchemaVersion{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDocumentSchemaVersion) Code() string { + return "InvalidDocumentSchemaVersion" +} + +// Message returns the exception's message. +func (s InvalidDocumentSchemaVersion) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDocumentSchemaVersion) OrigErr() error { + return nil +} + +func (s InvalidDocumentSchemaVersion) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDocumentSchemaVersion) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDocumentSchemaVersion) RequestID() string { + return s.respMetadata.RequestID +} + +// The document type is not valid. Valid document types are described in the +// DocumentType property. +type InvalidDocumentType struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDocumentType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDocumentType) GoString() string { + return s.String() +} + +func newErrorInvalidDocumentType(v protocol.ResponseMetadata) error { + return &InvalidDocumentType{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDocumentType) Code() string { + return "InvalidDocumentType" +} + +// Message returns the exception's message. +func (s InvalidDocumentType) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDocumentType) OrigErr() error { + return nil +} + +func (s InvalidDocumentType) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDocumentType) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDocumentType) RequestID() string { + return s.respMetadata.RequestID +} + +// The document version is not valid or does not exist. +type InvalidDocumentVersion struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidDocumentVersion) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidDocumentVersion) GoString() string { + return s.String() +} + +func newErrorInvalidDocumentVersion(v protocol.ResponseMetadata) error { + return &InvalidDocumentVersion{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidDocumentVersion) Code() string { + return "InvalidDocumentVersion" +} + +// Message returns the exception's message. +func (s InvalidDocumentVersion) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidDocumentVersion) OrigErr() error { + return nil +} + +func (s InvalidDocumentVersion) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidDocumentVersion) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidDocumentVersion) RequestID() string { + return s.respMetadata.RequestID +} + +// The filter name is not valid. Verify the you entered the correct name and +// try again. +type InvalidFilter struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidFilter) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFilter) GoString() string { + return s.String() +} + +func newErrorInvalidFilter(v protocol.ResponseMetadata) error { + return &InvalidFilter{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFilter) Code() string { + return "InvalidFilter" +} + +// Message returns the exception's message. +func (s InvalidFilter) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFilter) OrigErr() error { + return nil +} + +func (s InvalidFilter) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFilter) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFilter) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified key is not valid. +type InvalidFilterKey struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidFilterKey) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFilterKey) GoString() string { + return s.String() +} + +func newErrorInvalidFilterKey(v protocol.ResponseMetadata) error { + return &InvalidFilterKey{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFilterKey) Code() string { + return "InvalidFilterKey" +} + +// Message returns the exception's message. +func (s InvalidFilterKey) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFilterKey) OrigErr() error { + return nil +} + +func (s InvalidFilterKey) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFilterKey) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFilterKey) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified filter option is not valid. Valid options are Equals and BeginsWith. +// For Path filter, valid options are Recursive and OneLevel. +type InvalidFilterOption struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The specified filter option is not valid. Valid options are Equals and BeginsWith. + // For Path filter, valid options are Recursive and OneLevel. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidFilterOption) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFilterOption) GoString() string { + return s.String() +} + +func newErrorInvalidFilterOption(v protocol.ResponseMetadata) error { + return &InvalidFilterOption{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFilterOption) Code() string { + return "InvalidFilterOption" +} + +// Message returns the exception's message. +func (s InvalidFilterOption) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFilterOption) OrigErr() error { + return nil +} + +func (s InvalidFilterOption) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFilterOption) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFilterOption) RequestID() string { + return s.respMetadata.RequestID +} + +// The filter value is not valid. Verify the value and try again. +type InvalidFilterValue struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidFilterValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFilterValue) GoString() string { + return s.String() +} + +func newErrorInvalidFilterValue(v protocol.ResponseMetadata) error { + return &InvalidFilterValue{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFilterValue) Code() string { + return "InvalidFilterValue" +} + +// Message returns the exception's message. +func (s InvalidFilterValue) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFilterValue) OrigErr() error { + return nil +} + +func (s InvalidFilterValue) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFilterValue) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFilterValue) RequestID() string { + return s.respMetadata.RequestID +} + +// The following problems can cause this exception: +// +// You do not have permission to access the instance. +// +// SSM Agent is not running. Verify that SSM Agent is running. +// +// SSM Agent is not registered with the SSM endpoint. Try reinstalling SSM Agent. +// +// The instance is not in valid state. Valid states are: Running, Pending, Stopped, +// Stopping. Invalid states are: Shutting-down and Terminated. +type InvalidInstanceId struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInstanceId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInstanceId) GoString() string { + return s.String() +} + +func newErrorInvalidInstanceId(v protocol.ResponseMetadata) error { + return &InvalidInstanceId{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInstanceId) Code() string { + return "InvalidInstanceId" +} + +// Message returns the exception's message. +func (s InvalidInstanceId) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInstanceId) OrigErr() error { + return nil +} + +func (s InvalidInstanceId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInstanceId) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInstanceId) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified filter value is not valid. +type InvalidInstanceInformationFilterValue struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidInstanceInformationFilterValue) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInstanceInformationFilterValue) GoString() string { + return s.String() +} + +func newErrorInvalidInstanceInformationFilterValue(v protocol.ResponseMetadata) error { + return &InvalidInstanceInformationFilterValue{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInstanceInformationFilterValue) Code() string { + return "InvalidInstanceInformationFilterValue" +} + +// Message returns the exception's message. +func (s InvalidInstanceInformationFilterValue) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInstanceInformationFilterValue) OrigErr() error { + return nil +} + +func (s InvalidInstanceInformationFilterValue) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInstanceInformationFilterValue) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInstanceInformationFilterValue) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified inventory group is not valid. +type InvalidInventoryGroupException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInventoryGroupException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInventoryGroupException) GoString() string { + return s.String() +} + +func newErrorInvalidInventoryGroupException(v protocol.ResponseMetadata) error { + return &InvalidInventoryGroupException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInventoryGroupException) Code() string { + return "InvalidInventoryGroupException" +} + +// Message returns the exception's message. +func (s InvalidInventoryGroupException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInventoryGroupException) OrigErr() error { + return nil +} + +func (s InvalidInventoryGroupException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInventoryGroupException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInventoryGroupException) RequestID() string { + return s.respMetadata.RequestID +} + +// You specified invalid keys or values in the Context attribute for InventoryItem. +// Verify the keys and values, and try again. +type InvalidInventoryItemContextException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInventoryItemContextException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInventoryItemContextException) GoString() string { + return s.String() +} + +func newErrorInvalidInventoryItemContextException(v protocol.ResponseMetadata) error { + return &InvalidInventoryItemContextException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInventoryItemContextException) Code() string { + return "InvalidInventoryItemContextException" +} + +// Message returns the exception's message. +func (s InvalidInventoryItemContextException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInventoryItemContextException) OrigErr() error { + return nil +} + +func (s InvalidInventoryItemContextException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInventoryItemContextException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInventoryItemContextException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is not valid. +type InvalidInventoryRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidInventoryRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidInventoryRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidInventoryRequestException(v protocol.ResponseMetadata) error { + return &InvalidInventoryRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidInventoryRequestException) Code() string { + return "InvalidInventoryRequestException" +} + +// Message returns the exception's message. +func (s InvalidInventoryRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidInventoryRequestException) OrigErr() error { + return nil +} + +func (s InvalidInventoryRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidInventoryRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidInventoryRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more content items is not valid. +type InvalidItemContentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + TypeName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s InvalidItemContentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidItemContentException) GoString() string { + return s.String() +} + +func newErrorInvalidItemContentException(v protocol.ResponseMetadata) error { + return &InvalidItemContentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidItemContentException) Code() string { + return "InvalidItemContentException" +} + +// Message returns the exception's message. +func (s InvalidItemContentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidItemContentException) OrigErr() error { + return nil +} + +func (s InvalidItemContentException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidItemContentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidItemContentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The query key ID is not valid. +type InvalidKeyId struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidKeyId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidKeyId) GoString() string { + return s.String() +} + +func newErrorInvalidKeyId(v protocol.ResponseMetadata) error { + return &InvalidKeyId{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidKeyId) Code() string { + return "InvalidKeyId" +} + +// Message returns the exception's message. +func (s InvalidKeyId) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidKeyId) OrigErr() error { + return nil +} + +func (s InvalidKeyId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidKeyId) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidKeyId) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified token is not valid. +type InvalidNextToken struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextToken) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextToken) GoString() string { + return s.String() +} + +func newErrorInvalidNextToken(v protocol.ResponseMetadata) error { + return &InvalidNextToken{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextToken) Code() string { + return "InvalidNextToken" +} + +// Message returns the exception's message. +func (s InvalidNextToken) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextToken) OrigErr() error { + return nil +} + +func (s InvalidNextToken) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextToken) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextToken) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more configuration items is not valid. Verify that a valid Amazon +// Resource Name (ARN) was provided for an Amazon SNS topic. +type InvalidNotificationConfig struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNotificationConfig) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNotificationConfig) GoString() string { + return s.String() +} + +func newErrorInvalidNotificationConfig(v protocol.ResponseMetadata) error { + return &InvalidNotificationConfig{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNotificationConfig) Code() string { + return "InvalidNotificationConfig" +} + +// Message returns the exception's message. +func (s InvalidNotificationConfig) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNotificationConfig) OrigErr() error { + return nil +} + +func (s InvalidNotificationConfig) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNotificationConfig) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNotificationConfig) RequestID() string { + return s.respMetadata.RequestID +} + +// The delete inventory option specified is not valid. Verify the option and +// try again. +type InvalidOptionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidOptionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOptionException) GoString() string { + return s.String() +} + +func newErrorInvalidOptionException(v protocol.ResponseMetadata) error { + return &InvalidOptionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOptionException) Code() string { + return "InvalidOptionException" +} + +// Message returns the exception's message. +func (s InvalidOptionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOptionException) OrigErr() error { + return nil +} + +func (s InvalidOptionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOptionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOptionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The S3 bucket does not exist. +type InvalidOutputFolder struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidOutputFolder) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOutputFolder) GoString() string { + return s.String() +} + +func newErrorInvalidOutputFolder(v protocol.ResponseMetadata) error { + return &InvalidOutputFolder{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOutputFolder) Code() string { + return "InvalidOutputFolder" +} + +// Message returns the exception's message. +func (s InvalidOutputFolder) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOutputFolder) OrigErr() error { + return nil +} + +func (s InvalidOutputFolder) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOutputFolder) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOutputFolder) RequestID() string { + return s.respMetadata.RequestID +} + +// The output location is not valid or does not exist. +type InvalidOutputLocation struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidOutputLocation) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOutputLocation) GoString() string { + return s.String() +} + +func newErrorInvalidOutputLocation(v protocol.ResponseMetadata) error { + return &InvalidOutputLocation{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOutputLocation) Code() string { + return "InvalidOutputLocation" +} + +// Message returns the exception's message. +func (s InvalidOutputLocation) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOutputLocation) OrigErr() error { + return nil +} + +func (s InvalidOutputLocation) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOutputLocation) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOutputLocation) RequestID() string { + return s.respMetadata.RequestID +} + +// You must specify values for all required parameters in the Systems Manager +// document. You can only supply values to parameters defined in the Systems +// Manager document. +type InvalidParameters struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameters) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameters) GoString() string { + return s.String() +} + +func newErrorInvalidParameters(v protocol.ResponseMetadata) error { + return &InvalidParameters{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameters) Code() string { + return "InvalidParameters" +} + +// Message returns the exception's message. +func (s InvalidParameters) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameters) OrigErr() error { + return nil +} + +func (s InvalidParameters) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameters) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameters) RequestID() string { + return s.respMetadata.RequestID +} + +// The permission type is not supported. Share is the only supported permission +// type. +type InvalidPermissionType struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidPermissionType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPermissionType) GoString() string { + return s.String() +} + +func newErrorInvalidPermissionType(v protocol.ResponseMetadata) error { + return &InvalidPermissionType{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPermissionType) Code() string { + return "InvalidPermissionType" +} + +// Message returns the exception's message. +func (s InvalidPermissionType) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPermissionType) OrigErr() error { + return nil +} + +func (s InvalidPermissionType) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPermissionType) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPermissionType) RequestID() string { + return s.respMetadata.RequestID +} + +// The plugin name is not valid. +type InvalidPluginName struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidPluginName) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPluginName) GoString() string { + return s.String() +} + +func newErrorInvalidPluginName(v protocol.ResponseMetadata) error { + return &InvalidPluginName{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPluginName) Code() string { + return "InvalidPluginName" +} + +// Message returns the exception's message. +func (s InvalidPluginName) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPluginName) OrigErr() error { + return nil +} + +func (s InvalidPluginName) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPluginName) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPluginName) RequestID() string { + return s.respMetadata.RequestID +} + +// A policy attribute or its value is invalid. +type InvalidPolicyAttributeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPolicyAttributeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPolicyAttributeException) GoString() string { + return s.String() +} + +func newErrorInvalidPolicyAttributeException(v protocol.ResponseMetadata) error { + return &InvalidPolicyAttributeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPolicyAttributeException) Code() string { + return "InvalidPolicyAttributeException" +} + +// Message returns the exception's message. +func (s InvalidPolicyAttributeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPolicyAttributeException) OrigErr() error { + return nil +} + +func (s InvalidPolicyAttributeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPolicyAttributeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPolicyAttributeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The policy type is not supported. Parameter Store supports the following +// policy types: Expiration, ExpirationNotification, and NoChangeNotification. +type InvalidPolicyTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPolicyTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPolicyTypeException) GoString() string { + return s.String() +} + +func newErrorInvalidPolicyTypeException(v protocol.ResponseMetadata) error { + return &InvalidPolicyTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPolicyTypeException) Code() string { + return "InvalidPolicyTypeException" +} + +// Message returns the exception's message. +func (s InvalidPolicyTypeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPolicyTypeException) OrigErr() error { + return nil +} + +func (s InvalidPolicyTypeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPolicyTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPolicyTypeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource ID is not valid. Verify that you entered the correct ID and +// try again. +type InvalidResourceId struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidResourceId) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceId) GoString() string { + return s.String() +} + +func newErrorInvalidResourceId(v protocol.ResponseMetadata) error { + return &InvalidResourceId{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceId) Code() string { + return "InvalidResourceId" +} + +// Message returns the exception's message. +func (s InvalidResourceId) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceId) OrigErr() error { + return nil +} + +func (s InvalidResourceId) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceId) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceId) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource type is not valid. For example, if you are attempting to tag +// an instance, the instance must be a registered, managed instance. +type InvalidResourceType struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidResourceType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceType) GoString() string { + return s.String() +} + +func newErrorInvalidResourceType(v protocol.ResponseMetadata) error { + return &InvalidResourceType{ + respMetadata: v, + } } -// SetPlatformType sets the PlatformType field's value. -func (s *InstanceInformation) SetPlatformType(v string) *InstanceInformation { - s.PlatformType = &v - return s +// Code returns the exception type name. +func (s InvalidResourceType) Code() string { + return "InvalidResourceType" } -// SetPlatformVersion sets the PlatformVersion field's value. -func (s *InstanceInformation) SetPlatformVersion(v string) *InstanceInformation { - s.PlatformVersion = &v - return s +// Message returns the exception's message. +func (s InvalidResourceType) Message() string { + return "" } -// SetRegistrationDate sets the RegistrationDate field's value. -func (s *InstanceInformation) SetRegistrationDate(v time.Time) *InstanceInformation { - s.RegistrationDate = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceType) OrigErr() error { + return nil } -// SetResourceType sets the ResourceType field's value. -func (s *InstanceInformation) SetResourceType(v string) *InstanceInformation { - s.ResourceType = &v - return s +func (s InvalidResourceType) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// Describes a filter for a specific list of instances. You can filter instances -// information by using tags. You specify tags by using a key-value mapping. -// -// Use this action instead of the DescribeInstanceInformationRequest$InstanceInformationFilterList -// method. The InstanceInformationFilterList method is a legacy method and does -// not support tags. -type InstanceInformationFilter struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceType) StatusCode() int { + return s.respMetadata.StatusCode +} - // The name of the filter. - // - // Key is a required field - Key *string `locationName:"key" type:"string" required:"true" enum:"InstanceInformationFilterKey"` +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceType) RequestID() string { + return s.respMetadata.RequestID +} - // The filter values. - // - // ValueSet is a required field - ValueSet []*string `locationName:"valueSet" min:"1" type:"list" required:"true"` +// The specified inventory item result attribute is not valid. +type InvalidResultAttributeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s InstanceInformationFilter) String() string { +func (s InvalidResultAttributeException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceInformationFilter) GoString() string { +func (s InvalidResultAttributeException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InstanceInformationFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InstanceInformationFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.ValueSet == nil { - invalidParams.Add(request.NewErrParamRequired("ValueSet")) - } - if s.ValueSet != nil && len(s.ValueSet) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ValueSet", 1)) +func newErrorInvalidResultAttributeException(v protocol.ResponseMetadata) error { + return &InvalidResultAttributeException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s InvalidResultAttributeException) Code() string { + return "InvalidResultAttributeException" +} + +// Message returns the exception's message. +func (s InvalidResultAttributeException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResultAttributeException) OrigErr() error { return nil } -// SetKey sets the Key field's value. -func (s *InstanceInformationFilter) SetKey(v string) *InstanceInformationFilter { - s.Key = &v - return s +func (s InvalidResultAttributeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetValueSet sets the ValueSet field's value. -func (s *InstanceInformationFilter) SetValueSet(v []*string) *InstanceInformationFilter { - s.ValueSet = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResultAttributeException) StatusCode() int { + return s.respMetadata.StatusCode } -// The filters to describe or get information about your managed instances. -type InstanceInformationStringFilter struct { - _ struct{} `type:"structure"` +// RequestID returns the service's response RequestID for request. +func (s InvalidResultAttributeException) RequestID() string { + return s.respMetadata.RequestID +} - // The filter key name to describe your instances. For example: - // - // "InstanceIds"|"AgentVersion"|"PingStatus"|"PlatformTypes"|"ActivationIds"|"IamRole"|"ResourceType"|"AssociationStatus"|"Tag - // Key" - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` +// The role name can't contain invalid characters. Also verify that you specified +// an IAM role for notifications that includes the required trust policy. For +// information about configuring the IAM role for Run Command notifications, +// see Configuring Amazon SNS Notifications for Run Command (http://docs.aws.amazon.com/systems-manager/latest/userguide/rc-sns-notifications.html) +// in the AWS Systems Manager User Guide. +type InvalidRole struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The filter values. - // - // Values is a required field - Values []*string `min:"1" type:"list" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s InstanceInformationStringFilter) String() string { +func (s InvalidRole) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstanceInformationStringFilter) GoString() string { +func (s InvalidRole) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InstanceInformationStringFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InstanceInformationStringFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) - } - if s.Values != nil && len(s.Values) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Values", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInvalidRole(v protocol.ResponseMetadata) error { + return &InvalidRole{ + respMetadata: v, } - return nil } -// SetKey sets the Key field's value. -func (s *InstanceInformationStringFilter) SetKey(v string) *InstanceInformationStringFilter { - s.Key = &v - return s +// Code returns the exception type name. +func (s InvalidRole) Code() string { + return "InvalidRole" } -// SetValues sets the Values field's value. -func (s *InstanceInformationStringFilter) SetValues(v []*string) *InstanceInformationStringFilter { - s.Values = v - return s +// Message returns the exception's message. +func (s InvalidRole) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// Defines the high-level patch compliance state for a managed instance, providing -// information about the number of installed, missing, not applicable, and failed -// patches along with metadata about the operation when this information was -// gathered for the instance. -type InstancePatchState struct { - _ struct{} `type:"structure"` - - // The ID of the patch baseline used to patch the instance. - // - // BaselineId is a required field - BaselineId *string `min:"20" type:"string" required:"true"` - - // The number of patches from the patch baseline that were attempted to be installed - // during the last patching operation, but failed to install. - FailedCount *int64 `type:"integer"` - - // An https URL or an Amazon S3 path-style URL to a list of patches to be installed. - // This patch installation list, which you maintain in an Amazon S3 bucket in - // YAML format and specify in the SSM document AWS-RunPatchBaseline, overrides - // the patches specified by the default patch baseline. - // - // For more information about the InstallOverrideList parameter, see About the - // SSM Document AWS-RunPatchBaseline (http://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaseline.html) - // in the AWS Systems Manager User Guide. - InstallOverrideList *string `min:"1" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRole) OrigErr() error { + return nil +} - // The number of patches from the patch baseline that are installed on the instance. - InstalledCount *int64 `type:"integer"` +func (s InvalidRole) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The number of patches not specified in the patch baseline that are installed - // on the instance. - InstalledOtherCount *int64 `type:"integer"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRole) StatusCode() int { + return s.respMetadata.StatusCode +} - // Reserved for future use. - InstalledPendingRebootCount *int64 `type:"integer"` +// RequestID returns the service's response RequestID for request. +func (s InvalidRole) RequestID() string { + return s.respMetadata.RequestID +} - // The number of instances with patches installed that are specified in a RejectedPatches - // list. Patches with a status of InstalledRejected were typically installed - // before they were added to a RejectedPatches list. - // - // If ALLOW_AS_DEPENDENCY is the specified option for RejectedPatchesAction, - // the value of InstalledRejectedCount will always be 0 (zero). - InstalledRejectedCount *int64 `type:"integer"` +// The schedule is invalid. Verify your cron or rate expression and try again. +type InvalidSchedule struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The ID of the managed instance the high-level patch compliance information - // was collected for. - // - // InstanceId is a required field - InstanceId *string `type:"string" required:"true"` + Message_ *string `locationName:"Message" type:"string"` +} - // Reserved for future use. - LastNoRebootInstallOperationTime *time.Time `type:"timestamp"` +// String returns the string representation +func (s InvalidSchedule) String() string { + return awsutil.Prettify(s) +} - // The number of patches from the patch baseline that are applicable for the - // instance but aren't currently installed. - MissingCount *int64 `type:"integer"` +// GoString returns the string representation +func (s InvalidSchedule) GoString() string { + return s.String() +} - // The number of patches from the patch baseline that aren't applicable for - // the instance and therefore aren't installed on the instance. This number - // may be truncated if the list of patch names is very large. The number of - // patches beyond this limit are reported in UnreportedNotApplicableCount. - NotApplicableCount *int64 `type:"integer"` +func newErrorInvalidSchedule(v protocol.ResponseMetadata) error { + return &InvalidSchedule{ + respMetadata: v, + } +} - // The type of patching operation that was performed: SCAN (assess patch compliance - // state) or INSTALL (install missing patches). - // - // Operation is a required field - Operation *string `type:"string" required:"true" enum:"PatchOperationType"` +// Code returns the exception type name. +func (s InvalidSchedule) Code() string { + return "InvalidSchedule" +} - // The time the most recent patching operation completed on the instance. - // - // OperationEndTime is a required field - OperationEndTime *time.Time `type:"timestamp" required:"true"` +// Message returns the exception's message. +func (s InvalidSchedule) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // The time the most recent patching operation was started on the instance. - // - // OperationStartTime is a required field - OperationStartTime *time.Time `type:"timestamp" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidSchedule) OrigErr() error { + return nil +} - // Placeholder information. This field will always be empty in the current release - // of the service. - OwnerInformation *string `min:"1" type:"string" sensitive:"true"` +func (s InvalidSchedule) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The name of the patch group the managed instance belongs to. - // - // PatchGroup is a required field - PatchGroup *string `min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidSchedule) StatusCode() int { + return s.respMetadata.StatusCode +} - // Reserved for future use. - RebootOption *string `type:"string" enum:"RebootOption"` +// RequestID returns the service's response RequestID for request. +func (s InvalidSchedule) RequestID() string { + return s.respMetadata.RequestID +} - // The ID of the patch baseline snapshot used during the patching operation - // when this compliance data was collected. - SnapshotId *string `min:"36" type:"string"` +// The target is not valid or does not exist. It might not be configured for +// EC2 Systems Manager or you might not have permission to perform the operation. +type InvalidTarget struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The number of patches beyond the supported limit of NotApplicableCount that - // are not reported by name to Systems Manager Inventory. - UnreportedNotApplicableCount *int64 `type:"integer"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s InstancePatchState) String() string { +func (s InvalidTarget) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstancePatchState) GoString() string { +func (s InvalidTarget) GoString() string { return s.String() } -// SetBaselineId sets the BaselineId field's value. -func (s *InstancePatchState) SetBaselineId(v string) *InstancePatchState { - s.BaselineId = &v - return s -} - -// SetFailedCount sets the FailedCount field's value. -func (s *InstancePatchState) SetFailedCount(v int64) *InstancePatchState { - s.FailedCount = &v - return s +func newErrorInvalidTarget(v protocol.ResponseMetadata) error { + return &InvalidTarget{ + respMetadata: v, + } } -// SetInstallOverrideList sets the InstallOverrideList field's value. -func (s *InstancePatchState) SetInstallOverrideList(v string) *InstancePatchState { - s.InstallOverrideList = &v - return s +// Code returns the exception type name. +func (s InvalidTarget) Code() string { + return "InvalidTarget" } -// SetInstalledCount sets the InstalledCount field's value. -func (s *InstancePatchState) SetInstalledCount(v int64) *InstancePatchState { - s.InstalledCount = &v - return s +// Message returns the exception's message. +func (s InvalidTarget) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetInstalledOtherCount sets the InstalledOtherCount field's value. -func (s *InstancePatchState) SetInstalledOtherCount(v int64) *InstancePatchState { - s.InstalledOtherCount = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTarget) OrigErr() error { + return nil } -// SetInstalledPendingRebootCount sets the InstalledPendingRebootCount field's value. -func (s *InstancePatchState) SetInstalledPendingRebootCount(v int64) *InstancePatchState { - s.InstalledPendingRebootCount = &v - return s +func (s InvalidTarget) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetInstalledRejectedCount sets the InstalledRejectedCount field's value. -func (s *InstancePatchState) SetInstalledRejectedCount(v int64) *InstancePatchState { - s.InstalledRejectedCount = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTarget) StatusCode() int { + return s.respMetadata.StatusCode } -// SetInstanceId sets the InstanceId field's value. -func (s *InstancePatchState) SetInstanceId(v string) *InstancePatchState { - s.InstanceId = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidTarget) RequestID() string { + return s.respMetadata.RequestID } -// SetLastNoRebootInstallOperationTime sets the LastNoRebootInstallOperationTime field's value. -func (s *InstancePatchState) SetLastNoRebootInstallOperationTime(v time.Time) *InstancePatchState { - s.LastNoRebootInstallOperationTime = &v - return s -} +// The parameter type name is not valid. +type InvalidTypeNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata -// SetMissingCount sets the MissingCount field's value. -func (s *InstancePatchState) SetMissingCount(v int64) *InstancePatchState { - s.MissingCount = &v - return s + Message_ *string `locationName:"Message" type:"string"` } -// SetNotApplicableCount sets the NotApplicableCount field's value. -func (s *InstancePatchState) SetNotApplicableCount(v int64) *InstancePatchState { - s.NotApplicableCount = &v - return s +// String returns the string representation +func (s InvalidTypeNameException) String() string { + return awsutil.Prettify(s) } -// SetOperation sets the Operation field's value. -func (s *InstancePatchState) SetOperation(v string) *InstancePatchState { - s.Operation = &v - return s +// GoString returns the string representation +func (s InvalidTypeNameException) GoString() string { + return s.String() } -// SetOperationEndTime sets the OperationEndTime field's value. -func (s *InstancePatchState) SetOperationEndTime(v time.Time) *InstancePatchState { - s.OperationEndTime = &v - return s +func newErrorInvalidTypeNameException(v protocol.ResponseMetadata) error { + return &InvalidTypeNameException{ + respMetadata: v, + } } -// SetOperationStartTime sets the OperationStartTime field's value. -func (s *InstancePatchState) SetOperationStartTime(v time.Time) *InstancePatchState { - s.OperationStartTime = &v - return s +// Code returns the exception type name. +func (s InvalidTypeNameException) Code() string { + return "InvalidTypeNameException" } -// SetOwnerInformation sets the OwnerInformation field's value. -func (s *InstancePatchState) SetOwnerInformation(v string) *InstancePatchState { - s.OwnerInformation = &v - return s +// Message returns the exception's message. +func (s InvalidTypeNameException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetPatchGroup sets the PatchGroup field's value. -func (s *InstancePatchState) SetPatchGroup(v string) *InstancePatchState { - s.PatchGroup = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidTypeNameException) OrigErr() error { + return nil } -// SetRebootOption sets the RebootOption field's value. -func (s *InstancePatchState) SetRebootOption(v string) *InstancePatchState { - s.RebootOption = &v - return s +func (s InvalidTypeNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetSnapshotId sets the SnapshotId field's value. -func (s *InstancePatchState) SetSnapshotId(v string) *InstancePatchState { - s.SnapshotId = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidTypeNameException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetUnreportedNotApplicableCount sets the UnreportedNotApplicableCount field's value. -func (s *InstancePatchState) SetUnreportedNotApplicableCount(v int64) *InstancePatchState { - s.UnreportedNotApplicableCount = &v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidTypeNameException) RequestID() string { + return s.respMetadata.RequestID } -// Defines a filter used in DescribeInstancePatchStatesForPatchGroup used to -// scope down the information returned by the API. -type InstancePatchStateFilter struct { - _ struct{} `type:"structure"` - - // The key for the filter. Supported values are FailedCount, InstalledCount, - // InstalledOtherCount, MissingCount and NotApplicableCount. - // - // Key is a required field - Key *string `min:"1" type:"string" required:"true"` - - // The type of comparison that should be performed for the value: Equal, NotEqual, - // LessThan or GreaterThan. - // - // Type is a required field - Type *string `type:"string" required:"true" enum:"InstancePatchStateOperatorType"` +// The update is not valid. +type InvalidUpdate struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The value for the filter, must be an integer greater than or equal to 0. - // - // Values is a required field - Values []*string `min:"1" type:"list" required:"true"` + Message_ *string `locationName:"Message" type:"string"` } // String returns the string representation -func (s InstancePatchStateFilter) String() string { +func (s InvalidUpdate) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s InstancePatchStateFilter) GoString() string { +func (s InvalidUpdate) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *InstancePatchStateFilter) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "InstancePatchStateFilter"} - if s.Key == nil { - invalidParams.Add(request.NewErrParamRequired("Key")) - } - if s.Key != nil && len(*s.Key) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Key", 1)) - } - if s.Type == nil { - invalidParams.Add(request.NewErrParamRequired("Type")) - } - if s.Values == nil { - invalidParams.Add(request.NewErrParamRequired("Values")) - } - if s.Values != nil && len(s.Values) < 1 { - invalidParams.Add(request.NewErrParamMinLen("Values", 1)) +func newErrorInvalidUpdate(v protocol.ResponseMetadata) error { + return &InvalidUpdate{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s InvalidUpdate) Code() string { + return "InvalidUpdate" +} + +// Message returns the exception's message. +func (s InvalidUpdate) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidUpdate) OrigErr() error { return nil } -// SetKey sets the Key field's value. -func (s *InstancePatchStateFilter) SetKey(v string) *InstancePatchStateFilter { - s.Key = &v - return s +func (s InvalidUpdate) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetType sets the Type field's value. -func (s *InstancePatchStateFilter) SetType(v string) *InstancePatchStateFilter { - s.Type = &v - return s +// Status code returns the HTTP status code for the request's response error. +func (s InvalidUpdate) StatusCode() int { + return s.respMetadata.StatusCode } -// SetValues sets the Values field's value. -func (s *InstancePatchStateFilter) SetValues(v []*string) *InstancePatchStateFilter { - s.Values = v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidUpdate) RequestID() string { + return s.respMetadata.RequestID } // Specifies the inventory type and attribute for the aggregation execution. @@ -27046,6 +31268,174 @@ func (s *InventoryResultItem) SetTypeName(v string) *InventoryResultItem { return s } +// The command ID and instance ID you specified did not match any invocations. +// Verify the command ID and the instance ID and try again. +type InvocationDoesNotExist struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvocationDoesNotExist) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvocationDoesNotExist) GoString() string { + return s.String() +} + +func newErrorInvocationDoesNotExist(v protocol.ResponseMetadata) error { + return &InvocationDoesNotExist{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvocationDoesNotExist) Code() string { + return "InvocationDoesNotExist" +} + +// Message returns the exception's message. +func (s InvocationDoesNotExist) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvocationDoesNotExist) OrigErr() error { + return nil +} + +func (s InvocationDoesNotExist) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvocationDoesNotExist) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvocationDoesNotExist) RequestID() string { + return s.respMetadata.RequestID +} + +// The inventory item has invalid content. +type ItemContentMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + TypeName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ItemContentMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ItemContentMismatchException) GoString() string { + return s.String() +} + +func newErrorItemContentMismatchException(v protocol.ResponseMetadata) error { + return &ItemContentMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ItemContentMismatchException) Code() string { + return "ItemContentMismatchException" +} + +// Message returns the exception's message. +func (s ItemContentMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ItemContentMismatchException) OrigErr() error { + return nil +} + +func (s ItemContentMismatchException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ItemContentMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ItemContentMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// The inventory item size has exceeded the size limit. +type ItemSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + TypeName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ItemSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ItemSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorItemSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &ItemSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ItemSizeLimitExceededException) Code() string { + return "ItemSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s ItemSizeLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ItemSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s ItemSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ItemSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ItemSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type LabelParameterVersionInput struct { _ struct{} `type:"structure"` @@ -29764,6 +34154,62 @@ func (s *MaintenanceWindowTaskParameterValueExpression) SetValues(v []*string) * return s } +// The size limit of a document is 64 KB. +type MaxDocumentSizeExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MaxDocumentSizeExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MaxDocumentSizeExceeded) GoString() string { + return s.String() +} + +func newErrorMaxDocumentSizeExceeded(v protocol.ResponseMetadata) error { + return &MaxDocumentSizeExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MaxDocumentSizeExceeded) Code() string { + return "MaxDocumentSizeExceeded" +} + +// Message returns the exception's message. +func (s MaxDocumentSizeExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MaxDocumentSizeExceeded) OrigErr() error { + return nil +} + +func (s MaxDocumentSizeExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MaxDocumentSizeExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MaxDocumentSizeExceeded) RequestID() string { + return s.respMetadata.RequestID +} + type ModifyDocumentPermissionInput struct { _ struct{} `type:"structure"` @@ -30384,6 +34830,64 @@ func (s *OpsItem) SetVersion(v string) *OpsItem { return s } +// The OpsItem already exists. +type OpsItemAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + OpsItemId *string `type:"string"` +} + +// String returns the string representation +func (s OpsItemAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OpsItemAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorOpsItemAlreadyExistsException(v protocol.ResponseMetadata) error { + return &OpsItemAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OpsItemAlreadyExistsException) Code() string { + return "OpsItemAlreadyExistsException" +} + +// Message returns the exception's message. +func (s OpsItemAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OpsItemAlreadyExistsException) OrigErr() error { + return nil +} + +func (s OpsItemAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OpsItemAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OpsItemAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // An object that defines the value of the key and its type in the OperationalData // map. type OpsItemDataValue struct { @@ -30485,6 +34989,184 @@ func (s *OpsItemFilter) SetValues(v []*string) *OpsItemFilter { return s } +// A specified parameter argument isn't valid. Verify the available arguments +// and try again. +type OpsItemInvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + ParameterNames []*string `type:"list"` +} + +// String returns the string representation +func (s OpsItemInvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OpsItemInvalidParameterException) GoString() string { + return s.String() +} + +func newErrorOpsItemInvalidParameterException(v protocol.ResponseMetadata) error { + return &OpsItemInvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OpsItemInvalidParameterException) Code() string { + return "OpsItemInvalidParameterException" +} + +// Message returns the exception's message. +func (s OpsItemInvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OpsItemInvalidParameterException) OrigErr() error { + return nil +} + +func (s OpsItemInvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OpsItemInvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OpsItemInvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request caused OpsItems to exceed one or more quotas. For information +// about OpsItem quotas, see What are the resource limits for OpsCenter? (http://docs.aws.amazon.com/systems-manager/latest/userguide/OpsCenter-learn-more.html#OpsCenter-learn-more-limits). +type OpsItemLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Limit *int64 `type:"integer"` + + LimitType *string `type:"string"` + + Message_ *string `locationName:"Message" type:"string"` + + ResourceTypes []*string `type:"list"` +} + +// String returns the string representation +func (s OpsItemLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OpsItemLimitExceededException) GoString() string { + return s.String() +} + +func newErrorOpsItemLimitExceededException(v protocol.ResponseMetadata) error { + return &OpsItemLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OpsItemLimitExceededException) Code() string { + return "OpsItemLimitExceededException" +} + +// Message returns the exception's message. +func (s OpsItemLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OpsItemLimitExceededException) OrigErr() error { + return nil +} + +func (s OpsItemLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OpsItemLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OpsItemLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified OpsItem ID doesn't exist. Verify the ID and try again. +type OpsItemNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OpsItemNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OpsItemNotFoundException) GoString() string { + return s.String() +} + +func newErrorOpsItemNotFoundException(v protocol.ResponseMetadata) error { + return &OpsItemNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OpsItemNotFoundException) Code() string { + return "OpsItemNotFoundException" +} + +// Message returns the exception's message. +func (s OpsItemNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OpsItemNotFoundException) OrigErr() error { + return nil +} + +func (s OpsItemNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OpsItemNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OpsItemNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // A notification about the OpsItem. type OpsItemNotification struct { _ struct{} `type:"structure"` @@ -30808,6 +35490,62 @@ func (s *Parameter) SetVersion(v int64) *Parameter { return s } +// The parameter already exists. You can't create duplicate parameters. +type ParameterAlreadyExists struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ParameterAlreadyExists) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterAlreadyExists) GoString() string { + return s.String() +} + +func newErrorParameterAlreadyExists(v protocol.ResponseMetadata) error { + return &ParameterAlreadyExists{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterAlreadyExists) Code() string { + return "ParameterAlreadyExists" +} + +// Message returns the exception's message. +func (s ParameterAlreadyExists) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterAlreadyExists) OrigErr() error { + return nil +} + +func (s ParameterAlreadyExists) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterAlreadyExists) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterAlreadyExists) RequestID() string { + return s.respMetadata.RequestID +} + // Information about parameter usage. type ParameterHistory struct { _ struct{} `type:"structure"` @@ -30982,6 +35720,119 @@ func (s *ParameterInlinePolicy) SetPolicyType(v string) *ParameterInlinePolicy { return s } +// You have exceeded the number of parameters for this AWS account. Delete one +// or more parameters and try again. +type ParameterLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ParameterLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterLimitExceeded) GoString() string { + return s.String() +} + +func newErrorParameterLimitExceeded(v protocol.ResponseMetadata) error { + return &ParameterLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterLimitExceeded) Code() string { + return "ParameterLimitExceeded" +} + +// Message returns the exception's message. +func (s ParameterLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterLimitExceeded) OrigErr() error { + return nil +} + +func (s ParameterLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// The parameter exceeded the maximum number of allowed versions. +type ParameterMaxVersionLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ParameterMaxVersionLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterMaxVersionLimitExceeded) GoString() string { + return s.String() +} + +func newErrorParameterMaxVersionLimitExceeded(v protocol.ResponseMetadata) error { + return &ParameterMaxVersionLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterMaxVersionLimitExceeded) Code() string { + return "ParameterMaxVersionLimitExceeded" +} + +// Message returns the exception's message. +func (s ParameterMaxVersionLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterMaxVersionLimitExceeded) OrigErr() error { + return nil +} + +func (s ParameterMaxVersionLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterMaxVersionLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterMaxVersionLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // Metadata includes information like the ARN of the last user and the date/time // the parameter was last used. type ParameterMetadata struct { @@ -31091,6 +35942,119 @@ func (s *ParameterMetadata) SetVersion(v int64) *ParameterMetadata { return s } +// The parameter could not be found. Verify the name and try again. +type ParameterNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ParameterNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterNotFound) GoString() string { + return s.String() +} + +func newErrorParameterNotFound(v protocol.ResponseMetadata) error { + return &ParameterNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterNotFound) Code() string { + return "ParameterNotFound" +} + +// Message returns the exception's message. +func (s ParameterNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterNotFound) OrigErr() error { + return nil +} + +func (s ParameterNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterNotFound) RequestID() string { + return s.respMetadata.RequestID +} + +// The parameter name is not valid. +type ParameterPatternMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The parameter name is not valid. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ParameterPatternMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterPatternMismatchException) GoString() string { + return s.String() +} + +func newErrorParameterPatternMismatchException(v protocol.ResponseMetadata) error { + return &ParameterPatternMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterPatternMismatchException) Code() string { + return "ParameterPatternMismatchException" +} + +// Message returns the exception's message. +func (s ParameterPatternMismatchException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterPatternMismatchException) OrigErr() error { + return nil +} + +func (s ParameterPatternMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterPatternMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterPatternMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + // One or more filters. Use a filter to return a more specific list of results. // // The ParameterStringFilter object is used by the DescribeParameters and GetParametersByPath @@ -31178,6 +36142,119 @@ func (s *ParameterStringFilter) SetValues(v []*string) *ParameterStringFilter { return s } +// A parameter version can have a maximum of ten labels. +type ParameterVersionLabelLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ParameterVersionLabelLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterVersionLabelLimitExceeded) GoString() string { + return s.String() +} + +func newErrorParameterVersionLabelLimitExceeded(v protocol.ResponseMetadata) error { + return &ParameterVersionLabelLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterVersionLabelLimitExceeded) Code() string { + return "ParameterVersionLabelLimitExceeded" +} + +// Message returns the exception's message. +func (s ParameterVersionLabelLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterVersionLabelLimitExceeded) OrigErr() error { + return nil +} + +func (s ParameterVersionLabelLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterVersionLabelLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterVersionLabelLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified parameter version was not found. Verify the parameter name +// and version, and try again. +type ParameterVersionNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ParameterVersionNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ParameterVersionNotFound) GoString() string { + return s.String() +} + +func newErrorParameterVersionNotFound(v protocol.ResponseMetadata) error { + return &ParameterVersionNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ParameterVersionNotFound) Code() string { + return "ParameterVersionNotFound" +} + +// Message returns the exception's message. +func (s ParameterVersionNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ParameterVersionNotFound) OrigErr() error { + return nil +} + +func (s ParameterVersionNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ParameterVersionNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ParameterVersionNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // This data type is deprecated. Instead, use ParameterStringFilter. type ParametersFilter struct { _ struct{} `type:"structure"` @@ -31979,6 +37056,63 @@ func (s *PatchStatus) SetDeploymentStatus(v string) *PatchStatus { return s } +// You specified more than the maximum number of allowed policies for the parameter. +// The maximum is 10. +type PoliciesLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s PoliciesLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s PoliciesLimitExceededException) GoString() string { + return s.String() +} + +func newErrorPoliciesLimitExceededException(v protocol.ResponseMetadata) error { + return &PoliciesLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s PoliciesLimitExceededException) Code() string { + return "PoliciesLimitExceededException" +} + +// Message returns the exception's message. +func (s PoliciesLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s PoliciesLimitExceededException) OrigErr() error { + return nil +} + +func (s PoliciesLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s PoliciesLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s PoliciesLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // An aggregate of step execution statuses displayed in the AWS Console for // a multi-Region and multi-account Automation execution. type ProgressCounters struct { @@ -33560,6 +38694,59 @@ func (s *ResourceComplianceSummaryItem) SetStatus(v string) *ResourceComplianceS return s } +// A sync configuration with the same name already exists. +type ResourceDataSyncAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + SyncName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceDataSyncAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDataSyncAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceDataSyncAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceDataSyncAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceDataSyncAlreadyExistsException) Code() string { + return "ResourceDataSyncAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceDataSyncAlreadyExistsException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceDataSyncAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceDataSyncAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceDataSyncAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceDataSyncAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about the AwsOrganizationsSource resource data sync source. A // sync source of this type can synchronize data from AWS Organizations or, // if an AWS Organization is not present, from multiple AWS Regions. @@ -33629,6 +38816,175 @@ func (s *ResourceDataSyncAwsOrganizationsSource) SetOrganizationalUnits(v []*Res return s } +// Another UpdateResourceDataSync request is being processed. Wait a few minutes +// and try again. +type ResourceDataSyncConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceDataSyncConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDataSyncConflictException) GoString() string { + return s.String() +} + +func newErrorResourceDataSyncConflictException(v protocol.ResponseMetadata) error { + return &ResourceDataSyncConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceDataSyncConflictException) Code() string { + return "ResourceDataSyncConflictException" +} + +// Message returns the exception's message. +func (s ResourceDataSyncConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceDataSyncConflictException) OrigErr() error { + return nil +} + +func (s ResourceDataSyncConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceDataSyncConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceDataSyncConflictException) RequestID() string { + return s.respMetadata.RequestID +} + +// You have exceeded the allowed maximum sync configurations. +type ResourceDataSyncCountExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceDataSyncCountExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDataSyncCountExceededException) GoString() string { + return s.String() +} + +func newErrorResourceDataSyncCountExceededException(v protocol.ResponseMetadata) error { + return &ResourceDataSyncCountExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceDataSyncCountExceededException) Code() string { + return "ResourceDataSyncCountExceededException" +} + +// Message returns the exception's message. +func (s ResourceDataSyncCountExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceDataSyncCountExceededException) OrigErr() error { + return nil +} + +func (s ResourceDataSyncCountExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceDataSyncCountExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceDataSyncCountExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified sync configuration is invalid. +type ResourceDataSyncInvalidConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceDataSyncInvalidConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDataSyncInvalidConfigurationException) GoString() string { + return s.String() +} + +func newErrorResourceDataSyncInvalidConfigurationException(v protocol.ResponseMetadata) error { + return &ResourceDataSyncInvalidConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceDataSyncInvalidConfigurationException) Code() string { + return "ResourceDataSyncInvalidConfigurationException" +} + +// Message returns the exception's message. +func (s ResourceDataSyncInvalidConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceDataSyncInvalidConfigurationException) OrigErr() error { + return nil +} + +func (s ResourceDataSyncInvalidConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceDataSyncInvalidConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceDataSyncInvalidConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a Resource Data Sync configuration, including its current // status and last successful sync. type ResourceDataSyncItem struct { @@ -33738,6 +39094,66 @@ func (s *ResourceDataSyncItem) SetSyncType(v string) *ResourceDataSyncItem { return s } +// The specified sync name was not found. +type ResourceDataSyncNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + SyncName *string `min:"1" type:"string"` + + SyncType *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceDataSyncNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceDataSyncNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceDataSyncNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceDataSyncNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceDataSyncNotFoundException) Code() string { + return "ResourceDataSyncNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceDataSyncNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceDataSyncNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceDataSyncNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceDataSyncNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceDataSyncNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // The AWS Organizations organizational unit data source for the sync. type ResourceDataSyncOrganizationalUnit struct { _ struct{} `type:"structure"` @@ -34044,6 +39460,124 @@ func (s *ResourceDataSyncSourceWithState) SetState(v string) *ResourceDataSyncSo return s } +// Error returned if an attempt is made to delete a patch baseline that is registered +// for a patch group. +type ResourceInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceInUseException) GoString() string { + return s.String() +} + +func newErrorResourceInUseException(v protocol.ResponseMetadata) error { + return &ResourceInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceInUseException) Code() string { + return "ResourceInUseException" +} + +// Message returns the exception's message. +func (s ResourceInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceInUseException) OrigErr() error { + return nil +} + +func (s ResourceInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// Error returned when the caller has exceeded the default resource quotas. +// For example, too many maintenance windows or patch baselines have been created. +// +// For information about resource quotas in Systems Manager, see Systems Manager +// Service Quotas (http://docs.aws.amazon.com/general/latest/gr/ssm.html#limits_ssm) +// in the AWS General Reference. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The inventory item result attribute. type ResultAttribute struct { _ struct{} `type:"structure"` @@ -34775,6 +40309,63 @@ func (s *ServiceSetting) SetStatus(v string) *ServiceSetting { return s } +// The specified service setting was not found. Either the service name or the +// setting has not been provisioned by the AWS service team. +type ServiceSettingNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceSettingNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceSettingNotFound) GoString() string { + return s.String() +} + +func newErrorServiceSettingNotFound(v protocol.ResponseMetadata) error { + return &ServiceSettingNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceSettingNotFound) Code() string { + return "ServiceSettingNotFound" +} + +// Message returns the exception's message. +func (s ServiceSettingNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceSettingNotFound) OrigErr() error { + return nil +} + +func (s ServiceSettingNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceSettingNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceSettingNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // Information about a Session Manager connection to an instance. type Session struct { _ struct{} `type:"structure"` @@ -35469,6 +41060,57 @@ func (s *StartSessionOutput) SetTokenValue(v string) *StartSessionOutput { return s } +// The updated status is the same as the current status. +type StatusUnchanged struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s StatusUnchanged) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StatusUnchanged) GoString() string { + return s.String() +} + +func newErrorStatusUnchanged(v protocol.ResponseMetadata) error { + return &StatusUnchanged{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StatusUnchanged) Code() string { + return "StatusUnchanged" +} + +// Message returns the exception's message. +func (s StatusUnchanged) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StatusUnchanged) OrigErr() error { + return nil +} + +func (s StatusUnchanged) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StatusUnchanged) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StatusUnchanged) RequestID() string { + return s.respMetadata.RequestID +} + // Detailed information about an the execution state of an Automation step. type StepExecution struct { _ struct{} `type:"structure"` @@ -35818,6 +41460,62 @@ func (s StopAutomationExecutionOutput) GoString() string { return s.String() } +// The sub-type count exceeded the limit for the inventory type. +type SubTypeCountLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s SubTypeCountLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubTypeCountLimitExceededException) GoString() string { + return s.String() +} + +func newErrorSubTypeCountLimitExceededException(v protocol.ResponseMetadata) error { + return &SubTypeCountLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubTypeCountLimitExceededException) Code() string { + return "SubTypeCountLimitExceededException" +} + +// Message returns the exception's message. +func (s SubTypeCountLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubTypeCountLimitExceededException) OrigErr() error { + return nil +} + +func (s SubTypeCountLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubTypeCountLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubTypeCountLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Metadata that you assign to your AWS resources. Tags enable you to categorize // your resources in different ways, for example, by purpose, owner, or environment. // In Systems Manager, you can apply tags to documents, managed instances, maintenance @@ -35967,6 +41665,63 @@ func (s *Target) SetValues(v []*string) *Target { return s } +// You specified the Safe option for the DeregisterTargetFromMaintenanceWindow +// operation, but the target is still referenced in a task. +type TargetInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TargetInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetInUseException) GoString() string { + return s.String() +} + +func newErrorTargetInUseException(v protocol.ResponseMetadata) error { + return &TargetInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TargetInUseException) Code() string { + return "TargetInUseException" +} + +// Message returns the exception's message. +func (s TargetInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TargetInUseException) OrigErr() error { + return nil +} + +func (s TargetInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TargetInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TargetInUseException) RequestID() string { + return s.respMetadata.RequestID +} + // The combination of AWS Regions and accounts targeted by the current Automation // execution. type TargetLocation struct { @@ -36055,6 +41810,65 @@ func (s *TargetLocation) SetTargetLocationMaxErrors(v string) *TargetLocation { return s } +// The specified target instance for the session is not fully configured for +// use with Session Manager. For more information, see Getting Started with +// Session Manager (http://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html) +// in the AWS Systems Manager User Guide. +type TargetNotConnected struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TargetNotConnected) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TargetNotConnected) GoString() string { + return s.String() +} + +func newErrorTargetNotConnected(v protocol.ResponseMetadata) error { + return &TargetNotConnected{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TargetNotConnected) Code() string { + return "TargetNotConnected" +} + +// Message returns the exception's message. +func (s TargetNotConnected) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TargetNotConnected) OrigErr() error { + return nil +} + +func (s TargetNotConnected) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TargetNotConnected) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TargetNotConnected) RequestID() string { + return s.respMetadata.RequestID +} + type TerminateSessionInput struct { _ struct{} `type:"structure"` @@ -36119,6 +41933,577 @@ func (s *TerminateSessionOutput) SetSessionId(v string) *TerminateSessionOutput return s } +// The Targets parameter includes too many tags. Remove one or more tags and +// try the command again. +type TooManyTagsError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s TooManyTagsError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsError) GoString() string { + return s.String() +} + +func newErrorTooManyTagsError(v protocol.ResponseMetadata) error { + return &TooManyTagsError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsError) Code() string { + return "TooManyTagsError" +} + +// Message returns the exception's message. +func (s TooManyTagsError) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsError) OrigErr() error { + return nil +} + +func (s TooManyTagsError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsError) RequestID() string { + return s.respMetadata.RequestID +} + +// There are concurrent updates for a resource that supports one update at a +// time. +type TooManyUpdates struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyUpdates) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyUpdates) GoString() string { + return s.String() +} + +func newErrorTooManyUpdates(v protocol.ResponseMetadata) error { + return &TooManyUpdates{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyUpdates) Code() string { + return "TooManyUpdates" +} + +// Message returns the exception's message. +func (s TooManyUpdates) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyUpdates) OrigErr() error { + return nil +} + +func (s TooManyUpdates) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyUpdates) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyUpdates) RequestID() string { + return s.respMetadata.RequestID +} + +// The size of inventory data has exceeded the total size limit for the resource. +type TotalSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TotalSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TotalSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTotalSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &TotalSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TotalSizeLimitExceededException) Code() string { + return "TotalSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s TotalSizeLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TotalSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s TotalSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TotalSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TotalSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The calendar entry contained in the specified Systems Manager document is +// not supported. +type UnsupportedCalendarException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedCalendarException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedCalendarException) GoString() string { + return s.String() +} + +func newErrorUnsupportedCalendarException(v protocol.ResponseMetadata) error { + return &UnsupportedCalendarException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedCalendarException) Code() string { + return "UnsupportedCalendarException" +} + +// Message returns the exception's message. +func (s UnsupportedCalendarException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedCalendarException) OrigErr() error { + return nil +} + +func (s UnsupportedCalendarException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedCalendarException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedCalendarException) RequestID() string { + return s.respMetadata.RequestID +} + +// Microsoft application patching is only available on EC2 instances and Advanced +// Instances. To patch Microsoft applications on on-premises servers and VMs, +// you must enable Advanced Instances. For more information, see Using the Advanced-Instances +// Tier (http://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-managedinstances-advanced.html) +// in the AWS Systems Manager User Guide. +type UnsupportedFeatureRequiredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedFeatureRequiredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedFeatureRequiredException) GoString() string { + return s.String() +} + +func newErrorUnsupportedFeatureRequiredException(v protocol.ResponseMetadata) error { + return &UnsupportedFeatureRequiredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedFeatureRequiredException) Code() string { + return "UnsupportedFeatureRequiredException" +} + +// Message returns the exception's message. +func (s UnsupportedFeatureRequiredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedFeatureRequiredException) OrigErr() error { + return nil +} + +func (s UnsupportedFeatureRequiredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedFeatureRequiredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedFeatureRequiredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Context attribute that you specified for the InventoryItem is not allowed +// for this inventory type. You can only use the Context attribute with inventory +// types like AWS:ComplianceItem. +type UnsupportedInventoryItemContextException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + TypeName *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s UnsupportedInventoryItemContextException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedInventoryItemContextException) GoString() string { + return s.String() +} + +func newErrorUnsupportedInventoryItemContextException(v protocol.ResponseMetadata) error { + return &UnsupportedInventoryItemContextException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedInventoryItemContextException) Code() string { + return "UnsupportedInventoryItemContextException" +} + +// Message returns the exception's message. +func (s UnsupportedInventoryItemContextException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedInventoryItemContextException) OrigErr() error { + return nil +} + +func (s UnsupportedInventoryItemContextException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedInventoryItemContextException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedInventoryItemContextException) RequestID() string { + return s.respMetadata.RequestID +} + +// Inventory item type schema version has to match supported versions in the +// service. Check output of GetInventorySchema to see the available schema version +// for each type. +type UnsupportedInventorySchemaVersionException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedInventorySchemaVersionException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedInventorySchemaVersionException) GoString() string { + return s.String() +} + +func newErrorUnsupportedInventorySchemaVersionException(v protocol.ResponseMetadata) error { + return &UnsupportedInventorySchemaVersionException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedInventorySchemaVersionException) Code() string { + return "UnsupportedInventorySchemaVersionException" +} + +// Message returns the exception's message. +func (s UnsupportedInventorySchemaVersionException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedInventorySchemaVersionException) OrigErr() error { + return nil +} + +func (s UnsupportedInventorySchemaVersionException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedInventorySchemaVersionException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedInventorySchemaVersionException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operating systems you specified is not supported, or the operation is +// not supported for the operating system. Valid operating systems include: +// Windows, AmazonLinux, RedhatEnterpriseLinux, and Ubuntu. +type UnsupportedOperatingSystem struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperatingSystem) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperatingSystem) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperatingSystem(v protocol.ResponseMetadata) error { + return &UnsupportedOperatingSystem{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperatingSystem) Code() string { + return "UnsupportedOperatingSystem" +} + +// Message returns the exception's message. +func (s UnsupportedOperatingSystem) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperatingSystem) OrigErr() error { + return nil +} + +func (s UnsupportedOperatingSystem) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperatingSystem) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperatingSystem) RequestID() string { + return s.respMetadata.RequestID +} + +// The parameter type is not supported. +type UnsupportedParameterType struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedParameterType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedParameterType) GoString() string { + return s.String() +} + +func newErrorUnsupportedParameterType(v protocol.ResponseMetadata) error { + return &UnsupportedParameterType{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedParameterType) Code() string { + return "UnsupportedParameterType" +} + +// Message returns the exception's message. +func (s UnsupportedParameterType) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedParameterType) OrigErr() error { + return nil +} + +func (s UnsupportedParameterType) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedParameterType) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedParameterType) RequestID() string { + return s.respMetadata.RequestID +} + +// The document does not support the platform type of the given instance ID(s). +// For example, you sent an document for a Windows instance to a Linux instance. +type UnsupportedPlatformType struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedPlatformType) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedPlatformType) GoString() string { + return s.String() +} + +func newErrorUnsupportedPlatformType(v protocol.ResponseMetadata) error { + return &UnsupportedPlatformType{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedPlatformType) Code() string { + return "UnsupportedPlatformType" +} + +// Message returns the exception's message. +func (s UnsupportedPlatformType) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedPlatformType) OrigErr() error { + return nil +} + +func (s UnsupportedPlatformType) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedPlatformType) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedPlatformType) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateAssociationInput struct { _ struct{} `type:"structure"` diff --git a/service/ssm/errors.go b/service/ssm/errors.go index b0c38a909e9..8e3eb9ba34d 100644 --- a/service/ssm/errors.go +++ b/service/ssm/errors.go @@ -2,6 +2,10 @@ package ssm +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAlreadyExistsException for service response error code @@ -774,3 +778,119 @@ const ( // For example, you sent an document for a Windows instance to a Linux instance. ErrCodeUnsupportedPlatformType = "UnsupportedPlatformType" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AlreadyExistsException": newErrorAlreadyExistsException, + "AssociatedInstances": newErrorAssociatedInstances, + "AssociationAlreadyExists": newErrorAssociationAlreadyExists, + "AssociationDoesNotExist": newErrorAssociationDoesNotExist, + "AssociationExecutionDoesNotExist": newErrorAssociationExecutionDoesNotExist, + "AssociationLimitExceeded": newErrorAssociationLimitExceeded, + "AssociationVersionLimitExceeded": newErrorAssociationVersionLimitExceeded, + "AutomationDefinitionNotFoundException": newErrorAutomationDefinitionNotFoundException, + "AutomationDefinitionVersionNotFoundException": newErrorAutomationDefinitionVersionNotFoundException, + "AutomationExecutionLimitExceededException": newErrorAutomationExecutionLimitExceededException, + "AutomationExecutionNotFoundException": newErrorAutomationExecutionNotFoundException, + "AutomationStepNotFoundException": newErrorAutomationStepNotFoundException, + "ComplianceTypeCountLimitExceededException": newErrorComplianceTypeCountLimitExceededException, + "CustomSchemaCountLimitExceededException": newErrorCustomSchemaCountLimitExceededException, + "DocumentAlreadyExists": newErrorDocumentAlreadyExists, + "DocumentLimitExceeded": newErrorDocumentLimitExceeded, + "DocumentPermissionLimit": newErrorDocumentPermissionLimit, + "DocumentVersionLimitExceeded": newErrorDocumentVersionLimitExceeded, + "DoesNotExistException": newErrorDoesNotExistException, + "DuplicateDocumentContent": newErrorDuplicateDocumentContent, + "DuplicateDocumentVersionName": newErrorDuplicateDocumentVersionName, + "DuplicateInstanceId": newErrorDuplicateInstanceId, + "FeatureNotAvailableException": newErrorFeatureNotAvailableException, + "HierarchyLevelLimitExceededException": newErrorHierarchyLevelLimitExceededException, + "HierarchyTypeMismatchException": newErrorHierarchyTypeMismatchException, + "IdempotentParameterMismatch": newErrorIdempotentParameterMismatch, + "IncompatiblePolicyException": newErrorIncompatiblePolicyException, + "InternalServerError": newErrorInternalServerError, + "InvalidActivation": newErrorInvalidActivation, + "InvalidActivationId": newErrorInvalidActivationId, + "InvalidAggregatorException": newErrorInvalidAggregatorException, + "InvalidAllowedPatternException": newErrorInvalidAllowedPatternException, + "InvalidAssociation": newErrorInvalidAssociation, + "InvalidAssociationVersion": newErrorInvalidAssociationVersion, + "InvalidAutomationExecutionParametersException": newErrorInvalidAutomationExecutionParametersException, + "InvalidAutomationSignalException": newErrorInvalidAutomationSignalException, + "InvalidAutomationStatusUpdateException": newErrorInvalidAutomationStatusUpdateException, + "InvalidCommandId": newErrorInvalidCommandId, + "InvalidDeleteInventoryParametersException": newErrorInvalidDeleteInventoryParametersException, + "InvalidDeletionIdException": newErrorInvalidDeletionIdException, + "InvalidDocument": newErrorInvalidDocument, + "InvalidDocumentContent": newErrorInvalidDocumentContent, + "InvalidDocumentOperation": newErrorInvalidDocumentOperation, + "InvalidDocumentSchemaVersion": newErrorInvalidDocumentSchemaVersion, + "InvalidDocumentType": newErrorInvalidDocumentType, + "InvalidDocumentVersion": newErrorInvalidDocumentVersion, + "InvalidFilter": newErrorInvalidFilter, + "InvalidFilterKey": newErrorInvalidFilterKey, + "InvalidFilterOption": newErrorInvalidFilterOption, + "InvalidFilterValue": newErrorInvalidFilterValue, + "InvalidInstanceId": newErrorInvalidInstanceId, + "InvalidInstanceInformationFilterValue": newErrorInvalidInstanceInformationFilterValue, + "InvalidInventoryGroupException": newErrorInvalidInventoryGroupException, + "InvalidInventoryItemContextException": newErrorInvalidInventoryItemContextException, + "InvalidInventoryRequestException": newErrorInvalidInventoryRequestException, + "InvalidItemContentException": newErrorInvalidItemContentException, + "InvalidKeyId": newErrorInvalidKeyId, + "InvalidNextToken": newErrorInvalidNextToken, + "InvalidNotificationConfig": newErrorInvalidNotificationConfig, + "InvalidOptionException": newErrorInvalidOptionException, + "InvalidOutputFolder": newErrorInvalidOutputFolder, + "InvalidOutputLocation": newErrorInvalidOutputLocation, + "InvalidParameters": newErrorInvalidParameters, + "InvalidPermissionType": newErrorInvalidPermissionType, + "InvalidPluginName": newErrorInvalidPluginName, + "InvalidPolicyAttributeException": newErrorInvalidPolicyAttributeException, + "InvalidPolicyTypeException": newErrorInvalidPolicyTypeException, + "InvalidResourceId": newErrorInvalidResourceId, + "InvalidResourceType": newErrorInvalidResourceType, + "InvalidResultAttributeException": newErrorInvalidResultAttributeException, + "InvalidRole": newErrorInvalidRole, + "InvalidSchedule": newErrorInvalidSchedule, + "InvalidTarget": newErrorInvalidTarget, + "InvalidTypeNameException": newErrorInvalidTypeNameException, + "InvalidUpdate": newErrorInvalidUpdate, + "InvocationDoesNotExist": newErrorInvocationDoesNotExist, + "ItemContentMismatchException": newErrorItemContentMismatchException, + "ItemSizeLimitExceededException": newErrorItemSizeLimitExceededException, + "MaxDocumentSizeExceeded": newErrorMaxDocumentSizeExceeded, + "OpsItemAlreadyExistsException": newErrorOpsItemAlreadyExistsException, + "OpsItemInvalidParameterException": newErrorOpsItemInvalidParameterException, + "OpsItemLimitExceededException": newErrorOpsItemLimitExceededException, + "OpsItemNotFoundException": newErrorOpsItemNotFoundException, + "ParameterAlreadyExists": newErrorParameterAlreadyExists, + "ParameterLimitExceeded": newErrorParameterLimitExceeded, + "ParameterMaxVersionLimitExceeded": newErrorParameterMaxVersionLimitExceeded, + "ParameterNotFound": newErrorParameterNotFound, + "ParameterPatternMismatchException": newErrorParameterPatternMismatchException, + "ParameterVersionLabelLimitExceeded": newErrorParameterVersionLabelLimitExceeded, + "ParameterVersionNotFound": newErrorParameterVersionNotFound, + "PoliciesLimitExceededException": newErrorPoliciesLimitExceededException, + "ResourceDataSyncAlreadyExistsException": newErrorResourceDataSyncAlreadyExistsException, + "ResourceDataSyncConflictException": newErrorResourceDataSyncConflictException, + "ResourceDataSyncCountExceededException": newErrorResourceDataSyncCountExceededException, + "ResourceDataSyncInvalidConfigurationException": newErrorResourceDataSyncInvalidConfigurationException, + "ResourceDataSyncNotFoundException": newErrorResourceDataSyncNotFoundException, + "ResourceInUseException": newErrorResourceInUseException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ServiceSettingNotFound": newErrorServiceSettingNotFound, + "StatusUnchanged": newErrorStatusUnchanged, + "SubTypeCountLimitExceededException": newErrorSubTypeCountLimitExceededException, + "TargetInUseException": newErrorTargetInUseException, + "TargetNotConnected": newErrorTargetNotConnected, + "TooManyTagsError": newErrorTooManyTagsError, + "TooManyUpdates": newErrorTooManyUpdates, + "TotalSizeLimitExceededException": newErrorTotalSizeLimitExceededException, + "UnsupportedCalendarException": newErrorUnsupportedCalendarException, + "UnsupportedFeatureRequiredException": newErrorUnsupportedFeatureRequiredException, + "UnsupportedInventoryItemContextException": newErrorUnsupportedInventoryItemContextException, + "UnsupportedInventorySchemaVersionException": newErrorUnsupportedInventorySchemaVersionException, + "UnsupportedOperatingSystem": newErrorUnsupportedOperatingSystem, + "UnsupportedParameterType": newErrorUnsupportedParameterType, + "UnsupportedPlatformType": newErrorUnsupportedPlatformType, +} diff --git a/service/ssm/service.go b/service/ssm/service.go index 772a1466b3e..9d097020936 100644 --- a/service/ssm/service.go +++ b/service/ssm/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/sso/api.go b/service/sso/api.go index ead31e67dbb..5fc78387452 100644 --- a/service/sso/api.go +++ b/service/sso/api.go @@ -3,6 +3,8 @@ package sso import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/credentials" @@ -66,20 +68,20 @@ func (c *SSO) GetRoleCredentialsRequest(input *GetRoleCredentialsInput) (req *re // See the AWS API reference guide for AWS Single Sign-On's // API operation GetRoleCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Indicates that a problem occurred with the input to the request. For example, // a required parameter might be missing or out of range. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Indicates that the request is not authorized. This can happen due to an invalid // access token in the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Indicates that the request is being made too frequently and is more than // what the server can handle. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentials @@ -164,20 +166,20 @@ func (c *SSO) ListAccountRolesRequest(input *ListAccountRolesInput) (req *reques // See the AWS API reference guide for AWS Single Sign-On's // API operation ListAccountRoles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Indicates that a problem occurred with the input to the request. For example, // a required parameter might be missing or out of range. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Indicates that the request is not authorized. This can happen due to an invalid // access token in the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Indicates that the request is being made too frequently and is more than // what the server can handle. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRoles @@ -317,20 +319,20 @@ func (c *SSO) ListAccountsRequest(input *ListAccountsInput) (req *request.Reques // See the AWS API reference guide for AWS Single Sign-On's // API operation ListAccounts for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Indicates that a problem occurred with the input to the request. For example, // a required parameter might be missing or out of range. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Indicates that the request is not authorized. This can happen due to an invalid // access token in the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Indicates that the request is being made too frequently and is more than // what the server can handle. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The specified resource doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccounts @@ -462,16 +464,16 @@ func (c *SSO) LogoutRequest(input *LogoutInput) (req *request.Request, output *L // See the AWS API reference guide for AWS Single Sign-On's // API operation Logout for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Indicates that a problem occurred with the input to the request. For example, // a required parameter might be missing or out of range. // -// * ErrCodeUnauthorizedException "UnauthorizedException" +// * UnauthorizedException // Indicates that the request is not authorized. This can happen due to an invalid // access token in the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // Indicates that the request is being made too frequently and is more than // what the server can handle. // @@ -630,6 +632,63 @@ func (s *GetRoleCredentialsOutput) SetRoleCredentials(v *RoleCredentials) *GetRo return s } +// Indicates that a problem occurred with the input to the request. For example, +// a required parameter might be missing or out of range. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAccountRolesInput struct { _ struct{} `type:"structure"` @@ -888,6 +947,62 @@ func (s LogoutOutput) GoString() string { return s.String() } +// The specified resource doesn't exist. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information about the role credentials that are assigned to the // user. type RoleCredentials struct { @@ -979,3 +1094,117 @@ func (s *RoleInfo) SetRoleName(v string) *RoleInfo { s.RoleName = &v return s } + +// Indicates that the request is being made too frequently and is more than +// what the server can handle. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the request is not authorized. This can happen due to an invalid +// access token in the request. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/sso/errors.go b/service/sso/errors.go index ea50e701fc4..77a6792e352 100644 --- a/service/sso/errors.go +++ b/service/sso/errors.go @@ -2,6 +2,10 @@ package sso +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidRequestException for service response error code @@ -31,3 +35,10 @@ const ( // access token in the request. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/sso/service.go b/service/sso/service.go index 5c88a67ff82..35175331fc7 100644 --- a/service/sso/service.go +++ b/service/sso/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/ssooidc/api.go b/service/ssooidc/api.go index b1ea3e2ba50..978bc23d3f2 100644 --- a/service/ssooidc/api.go +++ b/service/ssooidc/api.go @@ -3,10 +3,13 @@ package ssooidc import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/credentials" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opCreateToken = "CreateToken" @@ -65,46 +68,46 @@ func (c *SSOOIDC) CreateTokenRequest(input *CreateTokenInput) (req *request.Requ // See the AWS API reference guide for AWS SSO OIDC's // API operation CreateToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter might be missing or out of range. // -// * ErrCodeInvalidClientException "InvalidClientException" +// * InvalidClientException // Indicates that the clientId or clientSecret in the request is invalid. For // example, this can occur when a client sends an incorrect clientId or an expired // clientSecret. // -// * ErrCodeInvalidGrantException "InvalidGrantException" +// * InvalidGrantException // Indicates that a request contains an invalid grant. This can occur if a client // makes a CreateToken request with an invalid grant type. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // Indicates that the client is not currently authorized to make the request. // This can happen when a clientId is not issued for a public client. // -// * ErrCodeUnsupportedGrantTypeException "UnsupportedGrantTypeException" +// * UnsupportedGrantTypeException // Indicates that the grant type in the request is not supported by the service. // -// * ErrCodeInvalidScopeException "InvalidScopeException" +// * InvalidScopeException // Indicates that the scope provided in the request is invalid. // -// * ErrCodeAuthorizationPendingException "AuthorizationPendingException" +// * AuthorizationPendingException // Indicates that a request to authorize a client with an access user session // token is pending. // -// * ErrCodeSlowDownException "SlowDownException" +// * SlowDownException // Indicates that the client is making the request too frequently and is more // than the service can handle. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You do not have sufficient access to perform this action. // -// * ErrCodeExpiredTokenException "ExpiredTokenException" +// * ExpiredTokenException // Indicates that the token issued by the service is expired and is no longer // valid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Indicates that an error from the service occurred while trying to process // a request. // @@ -185,19 +188,19 @@ func (c *SSOOIDC) RegisterClientRequest(input *RegisterClientInput) (req *reques // See the AWS API reference guide for AWS SSO OIDC's // API operation RegisterClient for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter might be missing or out of range. // -// * ErrCodeInvalidScopeException "InvalidScopeException" +// * InvalidScopeException // Indicates that the scope provided in the request is invalid. // -// * ErrCodeInvalidClientMetadataException "InvalidClientMetadataException" +// * InvalidClientMetadataException // Indicates that the client information sent in the request during registration // is invalid. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Indicates that an error from the service occurred while trying to process // a request. // @@ -278,25 +281,25 @@ func (c *SSOOIDC) StartDeviceAuthorizationRequest(input *StartDeviceAuthorizatio // See the AWS API reference guide for AWS SSO OIDC's // API operation StartDeviceAuthorization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // Indicates that something is wrong with the input to the request. For example, // a required parameter might be missing or out of range. // -// * ErrCodeInvalidClientException "InvalidClientException" +// * InvalidClientException // Indicates that the clientId or clientSecret in the request is invalid. For // example, this can occur when a client sends an incorrect clientId or an expired // clientSecret. // -// * ErrCodeUnauthorizedClientException "UnauthorizedClientException" +// * UnauthorizedClientException // Indicates that the client is not currently authorized to make the request. // This can happen when a clientId is not issued for a public client. // -// * ErrCodeSlowDownException "SlowDownException" +// * SlowDownException // Indicates that the client is making the request too frequently and is more // than the service can handle. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // Indicates that an error from the service occurred while trying to process // a request. // @@ -322,6 +325,117 @@ func (c *SSOOIDC) StartDeviceAuthorizationWithContext(ctx aws.Context, input *St return out, req.Send() } +// You do not have sufficient access to perform this action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that a request to authorize a client with an access user session +// token is pending. +type AuthorizationPendingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s AuthorizationPendingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AuthorizationPendingException) GoString() string { + return s.String() +} + +func newErrorAuthorizationPendingException(v protocol.ResponseMetadata) error { + return &AuthorizationPendingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AuthorizationPendingException) Code() string { + return "AuthorizationPendingException" +} + +// Message returns the exception's message. +func (s AuthorizationPendingException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AuthorizationPendingException) OrigErr() error { + return nil +} + +func (s AuthorizationPendingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AuthorizationPendingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AuthorizationPendingException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateTokenInput struct { _ struct{} `type:"structure"` @@ -509,6 +623,398 @@ func (s *CreateTokenOutput) SetTokenType(v string) *CreateTokenOutput { return s } +// Indicates that the token issued by the service is expired and is no longer +// valid. +type ExpiredTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s ExpiredTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ExpiredTokenException) GoString() string { + return s.String() +} + +func newErrorExpiredTokenException(v protocol.ResponseMetadata) error { + return &ExpiredTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ExpiredTokenException) Code() string { + return "ExpiredTokenException" +} + +// Message returns the exception's message. +func (s ExpiredTokenException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ExpiredTokenException) OrigErr() error { + return nil +} + +func (s ExpiredTokenException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ExpiredTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ExpiredTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that an error from the service occurred while trying to process +// a request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the clientId or clientSecret in the request is invalid. For +// example, this can occur when a client sends an incorrect clientId or an expired +// clientSecret. +type InvalidClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s InvalidClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidClientException) GoString() string { + return s.String() +} + +func newErrorInvalidClientException(v protocol.ResponseMetadata) error { + return &InvalidClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidClientException) Code() string { + return "InvalidClientException" +} + +// Message returns the exception's message. +func (s InvalidClientException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidClientException) OrigErr() error { + return nil +} + +func (s InvalidClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidClientException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the client information sent in the request during registration +// is invalid. +type InvalidClientMetadataException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s InvalidClientMetadataException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidClientMetadataException) GoString() string { + return s.String() +} + +func newErrorInvalidClientMetadataException(v protocol.ResponseMetadata) error { + return &InvalidClientMetadataException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidClientMetadataException) Code() string { + return "InvalidClientMetadataException" +} + +// Message returns the exception's message. +func (s InvalidClientMetadataException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidClientMetadataException) OrigErr() error { + return nil +} + +func (s InvalidClientMetadataException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidClientMetadataException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidClientMetadataException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that a request contains an invalid grant. This can occur if a client +// makes a CreateToken request with an invalid grant type. +type InvalidGrantException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s InvalidGrantException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidGrantException) GoString() string { + return s.String() +} + +func newErrorInvalidGrantException(v protocol.ResponseMetadata) error { + return &InvalidGrantException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidGrantException) Code() string { + return "InvalidGrantException" +} + +// Message returns the exception's message. +func (s InvalidGrantException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidGrantException) OrigErr() error { + return nil +} + +func (s InvalidGrantException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidGrantException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidGrantException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that something is wrong with the input to the request. For example, +// a required parameter might be missing or out of range. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the scope provided in the request is invalid. +type InvalidScopeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s InvalidScopeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidScopeException) GoString() string { + return s.String() +} + +func newErrorInvalidScopeException(v protocol.ResponseMetadata) error { + return &InvalidScopeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidScopeException) Code() string { + return "InvalidScopeException" +} + +// Message returns the exception's message. +func (s InvalidScopeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidScopeException) OrigErr() error { + return nil +} + +func (s InvalidScopeException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidScopeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidScopeException) RequestID() string { + return s.respMetadata.RequestID +} + type RegisterClientInput struct { _ struct{} `type:"structure"` @@ -642,6 +1148,62 @@ func (s *RegisterClientOutput) SetTokenEndpoint(v string) *RegisterClientOutput return s } +// Indicates that the client is making the request too frequently and is more +// than the service can handle. +type SlowDownException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s SlowDownException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SlowDownException) GoString() string { + return s.String() +} + +func newErrorSlowDownException(v protocol.ResponseMetadata) error { + return &SlowDownException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SlowDownException) Code() string { + return "SlowDownException" +} + +// Message returns the exception's message. +func (s SlowDownException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SlowDownException) OrigErr() error { + return nil +} + +func (s SlowDownException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SlowDownException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SlowDownException) RequestID() string { + return s.respMetadata.RequestID +} + type StartDeviceAuthorizationInput struct { _ struct{} `type:"structure"` @@ -787,3 +1349,114 @@ func (s *StartDeviceAuthorizationOutput) SetVerificationUriComplete(v string) *S s.VerificationUriComplete = &v return s } + +// Indicates that the client is not currently authorized to make the request. +// This can happen when a clientId is not issued for a public client. +type UnauthorizedClientException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedClientException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedClientException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { + return &UnauthorizedClientException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedClientException) Code() string { + return "UnauthorizedClientException" +} + +// Message returns the exception's message. +func (s UnauthorizedClientException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedClientException) OrigErr() error { + return nil +} + +func (s UnauthorizedClientException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedClientException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedClientException) RequestID() string { + return s.respMetadata.RequestID +} + +// Indicates that the grant type in the request is not supported by the service. +type UnsupportedGrantTypeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Error_ *string `locationName:"error" type:"string"` + + Error_description *string `locationName:"error_description" type:"string"` +} + +// String returns the string representation +func (s UnsupportedGrantTypeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedGrantTypeException) GoString() string { + return s.String() +} + +func newErrorUnsupportedGrantTypeException(v protocol.ResponseMetadata) error { + return &UnsupportedGrantTypeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedGrantTypeException) Code() string { + return "UnsupportedGrantTypeException" +} + +// Message returns the exception's message. +func (s UnsupportedGrantTypeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedGrantTypeException) OrigErr() error { + return nil +} + +func (s UnsupportedGrantTypeException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedGrantTypeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedGrantTypeException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/ssooidc/errors.go b/service/ssooidc/errors.go index deae3c3b16e..69837701268 100644 --- a/service/ssooidc/errors.go +++ b/service/ssooidc/errors.go @@ -2,6 +2,10 @@ package ssooidc +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -86,3 +90,18 @@ const ( // Indicates that the grant type in the request is not supported by the service. ErrCodeUnsupportedGrantTypeException = "UnsupportedGrantTypeException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "AuthorizationPendingException": newErrorAuthorizationPendingException, + "ExpiredTokenException": newErrorExpiredTokenException, + "InternalServerException": newErrorInternalServerException, + "InvalidClientException": newErrorInvalidClientException, + "InvalidClientMetadataException": newErrorInvalidClientMetadataException, + "InvalidGrantException": newErrorInvalidGrantException, + "InvalidRequestException": newErrorInvalidRequestException, + "InvalidScopeException": newErrorInvalidScopeException, + "SlowDownException": newErrorSlowDownException, + "UnauthorizedClientException": newErrorUnauthorizedClientException, + "UnsupportedGrantTypeException": newErrorUnsupportedGrantTypeException, +} diff --git a/service/ssooidc/service.go b/service/ssooidc/service.go index c7c5fc256a1..cde1fe3f0cf 100644 --- a/service/ssooidc/service.go +++ b/service/ssooidc/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/storagegateway/api.go b/service/storagegateway/api.go index 3f5918cd1fd..52480a1ba5a 100644 --- a/service/storagegateway/api.go +++ b/service/storagegateway/api.go @@ -9,6 +9,7 @@ import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opActivateGateway = "ActivateGateway" @@ -71,12 +72,12 @@ func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (re // See the AWS API reference guide for AWS Storage Gateway's // API operation ActivateGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -161,12 +162,12 @@ func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Req // See the AWS API reference guide for AWS Storage Gateway's // API operation AddCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -260,12 +261,12 @@ func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) // See the AWS API reference guide for AWS Storage Gateway's // API operation AddTagsToResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -350,12 +351,12 @@ func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (re // See the AWS API reference guide for AWS Storage Gateway's // API operation AddUploadBuffer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -444,12 +445,12 @@ func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) // See the AWS API reference guide for AWS Storage Gateway's // API operation AddWorkingStorage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -534,12 +535,12 @@ func (c *StorageGateway) AssignTapePoolRequest(input *AssignTapePoolInput) (req // See the AWS API reference guide for AWS Storage Gateway's // API operation AssignTapePool for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -622,12 +623,12 @@ func (c *StorageGateway) AttachVolumeRequest(input *AttachVolumeInput) (req *req // See the AWS API reference guide for AWS Storage Gateway's // API operation AttachVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -708,12 +709,12 @@ func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req // See the AWS API reference guide for AWS Storage Gateway's // API operation CancelArchival for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -794,12 +795,12 @@ func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (re // See the AWS API reference guide for AWS Storage Gateway's // API operation CancelRetrieval for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -894,12 +895,12 @@ func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSI // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateCachediSCSIVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -990,12 +991,12 @@ func (c *StorageGateway) CreateNFSFileShareRequest(input *CreateNFSFileShareInpu // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateNFSFileShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1086,12 +1087,12 @@ func (c *StorageGateway) CreateSMBFileShareRequest(input *CreateSMBFileShareInpu // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateSMBFileShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1193,16 +1194,16 @@ func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateSnapshot for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // An internal server error has occurred because the service is unavailable. // For more information, see the error and message fields. // @@ -1297,16 +1298,16 @@ func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *Cre // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateSnapshotFromVolumeRecoveryPoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // -// * ErrCodeServiceUnavailableError "ServiceUnavailableError" +// * ServiceUnavailableError // An internal server error has occurred because the service is unavailable. // For more information, see the error and message fields. // @@ -1397,12 +1398,12 @@ func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSI // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateStorediSCSIVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1487,12 +1488,12 @@ func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarco // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateTapeWithBarcode for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1576,12 +1577,12 @@ func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *reque // See the AWS API reference guide for AWS Storage Gateway's // API operation CreateTapes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1665,12 +1666,12 @@ func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthR // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteBandwidthRateLimit for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1751,12 +1752,12 @@ func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentia // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteChapCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1836,12 +1837,12 @@ func (c *StorageGateway) DeleteFileShareRequest(input *DeleteFileShareInput) (re // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteFileShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -1935,12 +1936,12 @@ func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *r // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2029,12 +2030,12 @@ func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotSche // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteSnapshotSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2114,12 +2115,12 @@ func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteTape for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2199,12 +2200,12 @@ func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteTapeArchive for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2297,12 +2298,12 @@ func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *req // See the AWS API reference guide for AWS Storage Gateway's // API operation DeleteVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2383,12 +2384,12 @@ func (c *StorageGateway) DescribeAvailabilityMonitorTestRequest(input *DescribeA // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeAvailabilityMonitorTest for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2474,12 +2475,12 @@ func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwi // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeBandwidthRateLimit for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2562,12 +2563,12 @@ func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *r // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2651,12 +2652,12 @@ func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCached // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeCachediSCSIVolumes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2737,12 +2738,12 @@ func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCrede // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeChapCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2824,12 +2825,12 @@ func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewa // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeGatewayInformation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2909,12 +2910,12 @@ func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMain // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeMaintenanceStartTime for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -2994,12 +2995,12 @@ func (c *StorageGateway) DescribeNFSFileSharesRequest(input *DescribeNFSFileShar // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeNFSFileShares for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3079,12 +3080,12 @@ func (c *StorageGateway) DescribeSMBFileSharesRequest(input *DescribeSMBFileShar // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeSMBFileShares for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3164,12 +3165,12 @@ func (c *StorageGateway) DescribeSMBSettingsRequest(input *DescribeSMBSettingsIn // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeSMBSettings for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3251,12 +3252,12 @@ func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshot // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeSnapshotSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3338,12 +3339,12 @@ func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStored // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeStorediSCSIVolumes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3432,12 +3433,12 @@ func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchives // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeTapeArchives for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3580,12 +3581,12 @@ func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRe // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeTapeRecoveryPoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3725,12 +3726,12 @@ func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *r // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeTapes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3865,12 +3866,12 @@ func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBuffer // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeUploadBuffer for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -3958,12 +3959,12 @@ func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInpu // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeVTLDevices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4102,12 +4103,12 @@ func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingSto // See the AWS API reference guide for AWS Storage Gateway's // API operation DescribeWorkingStorage for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4191,12 +4192,12 @@ func (c *StorageGateway) DetachVolumeRequest(input *DetachVolumeInput) (req *req // See the AWS API reference guide for AWS Storage Gateway's // API operation DetachVolume for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4282,12 +4283,12 @@ func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req // See the AWS API reference guide for AWS Storage Gateway's // API operation DisableGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4367,12 +4368,12 @@ func (c *StorageGateway) JoinDomainRequest(input *JoinDomainInput) (req *request // See the AWS API reference guide for AWS Storage Gateway's // API operation JoinDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4459,12 +4460,12 @@ func (c *StorageGateway) ListFileSharesRequest(input *ListFileSharesInput) (req // See the AWS API reference guide for AWS Storage Gateway's // API operation ListFileShares for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4611,12 +4612,12 @@ func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *req // See the AWS API reference guide for AWS Storage Gateway's // API operation ListGateways for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4756,12 +4757,12 @@ func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req // See the AWS API reference guide for AWS Storage Gateway's // API operation ListLocalDisks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4847,12 +4848,12 @@ func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceIn // See the AWS API reference guide for AWS Storage Gateway's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -4999,12 +5000,12 @@ func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.R // See the AWS API reference guide for AWS Storage Gateway's // API operation ListTapes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5137,12 +5138,12 @@ func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiators // See the AWS API reference guide for AWS Storage Gateway's // API operation ListVolumeInitiators for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5228,12 +5229,12 @@ func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecove // See the AWS API reference guide for AWS Storage Gateway's // API operation ListVolumeRecoveryPoints for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5329,12 +5330,12 @@ func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *reque // See the AWS API reference guide for AWS Storage Gateway's // API operation ListVolumes for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5478,12 +5479,12 @@ func (c *StorageGateway) NotifyWhenUploadedRequest(input *NotifyWhenUploadedInpu // See the AWS API reference guide for AWS Storage Gateway's // API operation NotifyWhenUploaded for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5585,12 +5586,12 @@ func (c *StorageGateway) RefreshCacheRequest(input *RefreshCacheInput) (req *req // See the AWS API reference guide for AWS Storage Gateway's // API operation RefreshCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5670,12 +5671,12 @@ func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromReso // See the AWS API reference guide for AWS Storage Gateway's // API operation RemoveTagsFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5765,12 +5766,12 @@ func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request // See the AWS API reference guide for AWS Storage Gateway's // API operation ResetCache for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5858,12 +5859,12 @@ func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveIn // See the AWS API reference guide for AWS Storage Gateway's // API operation RetrieveTapeArchive for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -5951,12 +5952,12 @@ func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRec // See the AWS API reference guide for AWS Storage Gateway's // API operation RetrieveTapeRecoveryPoint for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6038,12 +6039,12 @@ func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePa // See the AWS API reference guide for AWS Storage Gateway's // API operation SetLocalConsolePassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6123,12 +6124,12 @@ func (c *StorageGateway) SetSMBGuestPasswordRequest(input *SetSMBGuestPasswordIn // See the AWS API reference guide for AWS Storage Gateway's // API operation SetSMBGuestPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6227,12 +6228,12 @@ func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (re // See the AWS API reference guide for AWS Storage Gateway's // API operation ShutdownGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6317,12 +6318,12 @@ func (c *StorageGateway) StartAvailabilityMonitorTestRequest(input *StartAvailab // See the AWS API reference guide for AWS Storage Gateway's // API operation StartAvailabilityMonitorTest for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6412,12 +6413,12 @@ func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *req // See the AWS API reference guide for AWS Storage Gateway's // API operation StartGateway for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6506,12 +6507,12 @@ func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthR // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateBandwidthRateLimit for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6596,12 +6597,12 @@ func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentia // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateChapCredentials for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6686,12 +6687,12 @@ func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInf // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateGatewayInformation for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6784,12 +6785,12 @@ func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySof // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateGatewaySoftwareNow for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6870,12 +6871,12 @@ func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintena // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateMaintenanceStartTime for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -6973,12 +6974,12 @@ func (c *StorageGateway) UpdateNFSFileShareRequest(input *UpdateNFSFileShareInpu // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateNFSFileShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -7069,12 +7070,12 @@ func (c *StorageGateway) UpdateSMBFileShareRequest(input *UpdateSMBFileShareInpu // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateSMBFileShare for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -7158,12 +7159,12 @@ func (c *StorageGateway) UpdateSMBSecurityStrategyRequest(input *UpdateSMBSecuri // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateSMBSecurityStrategy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -7251,12 +7252,12 @@ func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotSche // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateSnapshotSchedule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -7339,12 +7340,12 @@ func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeIn // See the AWS API reference guide for AWS Storage Gateway's // API operation UpdateVTLDeviceType for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException" +// Returned Error Types: +// * InvalidGatewayRequestException // An exception occurred because an invalid gateway request was issued to the // service. For more information, see the error and message fields. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // An internal server error has occurred during the request. For more information, // see the error and message fields. // @@ -13258,6 +13259,129 @@ func (s *GatewayInfo) SetGatewayType(v string) *GatewayInfo { return s } +// An internal server error has occurred during the request. For more information, +// see the error and message fields. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A StorageGatewayError that provides more information about the cause of the + // error. + Error_ *Error `locationName:"error" type:"structure"` + + // A human-readable message describing the error that occurred. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// An exception occurred because an invalid gateway request was issued to the +// service. For more information, see the error and message fields. +type InvalidGatewayRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A StorageGatewayError that provides more detail about the cause of the error. + Error_ *Error `locationName:"error" type:"structure"` + + // A human-readable message describing the error that occurred. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidGatewayRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidGatewayRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidGatewayRequestException(v protocol.ResponseMetadata) error { + return &InvalidGatewayRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidGatewayRequestException) Code() string { + return "InvalidGatewayRequestException" +} + +// Message returns the exception's message. +func (s InvalidGatewayRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidGatewayRequestException) OrigErr() error { + return nil +} + +func (s InvalidGatewayRequestException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidGatewayRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidGatewayRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // JoinDomainInput type JoinDomainInput struct { _ struct{} `type:"structure"` @@ -15271,6 +15395,68 @@ func (s *SMBFileShareInfo) SetValidUserList(v []*string) *SMBFileShareInfo { return s } +// An internal server error has occurred because the service is unavailable. +// For more information, see the error and message fields. +type ServiceUnavailableError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A StorageGatewayError that provides more information about the cause of the + // error. + Error_ *Error `locationName:"error" type:"structure"` + + // A human-readable message describing the error that occurred. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableError) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableError(v protocol.ResponseMetadata) error { + return &ServiceUnavailableError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableError) Code() string { + return "ServiceUnavailableError" +} + +// Message returns the exception's message. +func (s ServiceUnavailableError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableError) OrigErr() error { + return nil +} + +func (s ServiceUnavailableError) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableError) RequestID() string { + return s.respMetadata.RequestID +} + // SetLocalConsolePasswordInput type SetLocalConsolePasswordInput struct { _ struct{} `type:"structure"` diff --git a/service/storagegateway/errors.go b/service/storagegateway/errors.go index 01b9816e3aa..ec8cb455d0a 100644 --- a/service/storagegateway/errors.go +++ b/service/storagegateway/errors.go @@ -2,6 +2,10 @@ package storagegateway +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerError for service response error code @@ -25,3 +29,9 @@ const ( // For more information, see the error and message fields. ErrCodeServiceUnavailableError = "ServiceUnavailableError" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerError": newErrorInternalServerError, + "InvalidGatewayRequestException": newErrorInvalidGatewayRequestException, + "ServiceUnavailableError": newErrorServiceUnavailableError, +} diff --git a/service/storagegateway/service.go b/service/storagegateway/service.go index 3af4276c304..0e86cd1836a 100644 --- a/service/storagegateway/service.go +++ b/service/storagegateway/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/support/api.go b/service/support/api.go index 9f5699228b4..39704cd08ac 100644 --- a/service/support/api.go +++ b/service/support/api.go @@ -3,9 +3,12 @@ package support import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opAddAttachmentsToSet = "AddAttachmentsToSet" @@ -70,22 +73,22 @@ func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (r // See the AWS API reference guide for AWS Support's // API operation AddAttachmentsToSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // -// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound" +// * AttachmentSetIdNotFound // An attachment set with the specified ID could not be found. // -// * ErrCodeAttachmentSetExpired "AttachmentSetExpired" +// * AttachmentSetExpired // The expiration time of the attachment set has passed. The set expires 1 hour // after it is created. // -// * ErrCodeAttachmentSetSizeLimitExceeded "AttachmentSetSizeLimitExceeded" +// * AttachmentSetSizeLimitExceeded // A limit for the size of an attachment set has been exceeded. The limits are // 3 attachments and 5 MB per attachment. // -// * ErrCodeAttachmentLimitExceeded "AttachmentLimitExceeded" +// * AttachmentLimitExceeded // The limit for the number of attachment sets created in a short period of // time has been exceeded. // @@ -171,17 +174,17 @@ func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInp // See the AWS API reference guide for AWS Support's // API operation AddCommunicationToCase for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // -// * ErrCodeCaseIdNotFound "CaseIdNotFound" +// * CaseIdNotFound // The requested caseId could not be located. // -// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound" +// * AttachmentSetIdNotFound // An attachment set with the specified ID could not be found. // -// * ErrCodeAttachmentSetExpired "AttachmentSetExpired" +// * AttachmentSetExpired // The expiration time of the attachment set has passed. The set expires 1 hour // after it is created. // @@ -307,17 +310,17 @@ func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Reques // See the AWS API reference guide for AWS Support's // API operation CreateCase for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // -// * ErrCodeCaseCreationLimitExceeded "CaseCreationLimitExceeded" +// * CaseCreationLimitExceeded // The case creation limit for the account has been exceeded. // -// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound" +// * AttachmentSetIdNotFound // An attachment set with the specified ID could not be found. // -// * ErrCodeAttachmentSetExpired "AttachmentSetExpired" +// * AttachmentSetExpired // The expiration time of the attachment set has passed. The set expires 1 hour // after it is created. // @@ -399,15 +402,15 @@ func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req // See the AWS API reference guide for AWS Support's // API operation DescribeAttachment for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // -// * ErrCodeDescribeAttachmentLimitExceeded "DescribeAttachmentLimitExceeded" +// * DescribeAttachmentLimitExceeded // The limit for the number of DescribeAttachment requests in a short period // of time has been exceeded. // -// * ErrCodeAttachmentIdNotFound "AttachmentIdNotFound" +// * AttachmentIdNotFound // An attachment with the specified ID could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment @@ -505,11 +508,11 @@ func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request. // See the AWS API reference guide for AWS Support's // API operation DescribeCases for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // -// * ErrCodeCaseIdNotFound "CaseIdNotFound" +// * CaseIdNotFound // The requested caseId could not be located. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases @@ -654,11 +657,11 @@ func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInp // See the AWS API reference guide for AWS Support's // API operation DescribeCommunications for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // -// * ErrCodeCaseIdNotFound "CaseIdNotFound" +// * CaseIdNotFound // The requested caseId could not be located. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications @@ -798,8 +801,8 @@ func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *re // See the AWS API reference guide for AWS Support's // API operation DescribeServices for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices @@ -879,8 +882,8 @@ func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInp // See the AWS API reference guide for AWS Support's // API operation DescribeSeverityLevels for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels @@ -963,8 +966,8 @@ func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *Descr // See the AWS API reference guide for AWS Support's // API operation DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses @@ -1061,8 +1064,8 @@ func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTruste // See the AWS API reference guide for AWS Support's // API operation DescribeTrustedAdvisorCheckResult for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult @@ -1143,8 +1146,8 @@ func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTru // See the AWS API reference guide for AWS Support's // API operation DescribeTrustedAdvisorCheckSummaries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries @@ -1226,8 +1229,8 @@ func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvi // See the AWS API reference guide for AWS Support's // API operation DescribeTrustedAdvisorChecks for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks @@ -1324,8 +1327,8 @@ func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisor // See the AWS API reference guide for AWS Support's // API operation RefreshTrustedAdvisorCheck for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck @@ -1404,11 +1407,11 @@ func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Requ // See the AWS API reference guide for AWS Support's // API operation ResolveCase for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalServerError "InternalServerError" +// Returned Error Types: +// * InternalServerError // An internal server error occurred. // -// * ErrCodeCaseIdNotFound "CaseIdNotFound" +// * CaseIdNotFound // The requested caseId could not be located. // // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase @@ -1687,6 +1690,355 @@ func (s *AttachmentDetails) SetFileName(v string) *AttachmentDetails { return s } +// An attachment with the specified ID could not be found. +type AttachmentIdNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // An attachment with the specified ID could not be found. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AttachmentIdNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentIdNotFound) GoString() string { + return s.String() +} + +func newErrorAttachmentIdNotFound(v protocol.ResponseMetadata) error { + return &AttachmentIdNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AttachmentIdNotFound) Code() string { + return "AttachmentIdNotFound" +} + +// Message returns the exception's message. +func (s AttachmentIdNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AttachmentIdNotFound) OrigErr() error { + return nil +} + +func (s AttachmentIdNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AttachmentIdNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AttachmentIdNotFound) RequestID() string { + return s.respMetadata.RequestID +} + +// The limit for the number of attachment sets created in a short period of +// time has been exceeded. +type AttachmentLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The limit for the number of attachment sets created in a short period of + // time has been exceeded. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AttachmentLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentLimitExceeded) GoString() string { + return s.String() +} + +func newErrorAttachmentLimitExceeded(v protocol.ResponseMetadata) error { + return &AttachmentLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AttachmentLimitExceeded) Code() string { + return "AttachmentLimitExceeded" +} + +// Message returns the exception's message. +func (s AttachmentLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AttachmentLimitExceeded) OrigErr() error { + return nil +} + +func (s AttachmentLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AttachmentLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AttachmentLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// The expiration time of the attachment set has passed. The set expires 1 hour +// after it is created. +type AttachmentSetExpired struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The expiration time of the attachment set has passed. The set expires 1 hour + // after it is created. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AttachmentSetExpired) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentSetExpired) GoString() string { + return s.String() +} + +func newErrorAttachmentSetExpired(v protocol.ResponseMetadata) error { + return &AttachmentSetExpired{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AttachmentSetExpired) Code() string { + return "AttachmentSetExpired" +} + +// Message returns the exception's message. +func (s AttachmentSetExpired) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AttachmentSetExpired) OrigErr() error { + return nil +} + +func (s AttachmentSetExpired) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AttachmentSetExpired) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AttachmentSetExpired) RequestID() string { + return s.respMetadata.RequestID +} + +// An attachment set with the specified ID could not be found. +type AttachmentSetIdNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // An attachment set with the specified ID could not be found. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AttachmentSetIdNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentSetIdNotFound) GoString() string { + return s.String() +} + +func newErrorAttachmentSetIdNotFound(v protocol.ResponseMetadata) error { + return &AttachmentSetIdNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AttachmentSetIdNotFound) Code() string { + return "AttachmentSetIdNotFound" +} + +// Message returns the exception's message. +func (s AttachmentSetIdNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AttachmentSetIdNotFound) OrigErr() error { + return nil +} + +func (s AttachmentSetIdNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AttachmentSetIdNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AttachmentSetIdNotFound) RequestID() string { + return s.respMetadata.RequestID +} + +// A limit for the size of an attachment set has been exceeded. The limits are +// 3 attachments and 5 MB per attachment. +type AttachmentSetSizeLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A limit for the size of an attachment set has been exceeded. The limits are + // 3 attachments and 5 MB per attachment. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AttachmentSetSizeLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AttachmentSetSizeLimitExceeded) GoString() string { + return s.String() +} + +func newErrorAttachmentSetSizeLimitExceeded(v protocol.ResponseMetadata) error { + return &AttachmentSetSizeLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AttachmentSetSizeLimitExceeded) Code() string { + return "AttachmentSetSizeLimitExceeded" +} + +// Message returns the exception's message. +func (s AttachmentSetSizeLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AttachmentSetSizeLimitExceeded) OrigErr() error { + return nil +} + +func (s AttachmentSetSizeLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AttachmentSetSizeLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AttachmentSetSizeLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + +// The case creation limit for the account has been exceeded. +type CaseCreationLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // An error message that indicates that you have exceeded the number of cases + // you can have open. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CaseCreationLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CaseCreationLimitExceeded) GoString() string { + return s.String() +} + +func newErrorCaseCreationLimitExceeded(v protocol.ResponseMetadata) error { + return &CaseCreationLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CaseCreationLimitExceeded) Code() string { + return "CaseCreationLimitExceeded" +} + +// Message returns the exception's message. +func (s CaseCreationLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CaseCreationLimitExceeded) OrigErr() error { + return nil +} + +func (s CaseCreationLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CaseCreationLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CaseCreationLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // A JSON-formatted object that contains the metadata for a support case. It // is contained the response from a DescribeCases request. CaseDetails contains // the following fields: @@ -1856,6 +2208,63 @@ func (s *CaseDetails) SetTimeCreated(v string) *CaseDetails { return s } +// The requested caseId could not be located. +type CaseIdNotFound struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The requested CaseId could not be located. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s CaseIdNotFound) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CaseIdNotFound) GoString() string { + return s.String() +} + +func newErrorCaseIdNotFound(v protocol.ResponseMetadata) error { + return &CaseIdNotFound{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CaseIdNotFound) Code() string { + return "CaseIdNotFound" +} + +// Message returns the exception's message. +func (s CaseIdNotFound) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CaseIdNotFound) OrigErr() error { + return nil +} + +func (s CaseIdNotFound) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CaseIdNotFound) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CaseIdNotFound) RequestID() string { + return s.respMetadata.RequestID +} + // A JSON-formatted name/value pair that represents the category name and category // code of the problem, selected from the DescribeServices response for each // AWS service. @@ -2151,6 +2560,65 @@ func (s *DescribeAttachmentInput) SetAttachmentId(v string) *DescribeAttachmentI return s } +// The limit for the number of DescribeAttachment requests in a short period +// of time has been exceeded. +type DescribeAttachmentLimitExceeded struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The limit for the number of DescribeAttachment requests in a short period + // of time has been exceeded. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DescribeAttachmentLimitExceeded) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DescribeAttachmentLimitExceeded) GoString() string { + return s.String() +} + +func newErrorDescribeAttachmentLimitExceeded(v protocol.ResponseMetadata) error { + return &DescribeAttachmentLimitExceeded{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DescribeAttachmentLimitExceeded) Code() string { + return "DescribeAttachmentLimitExceeded" +} + +// Message returns the exception's message. +func (s DescribeAttachmentLimitExceeded) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DescribeAttachmentLimitExceeded) OrigErr() error { + return nil +} + +func (s DescribeAttachmentLimitExceeded) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DescribeAttachmentLimitExceeded) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DescribeAttachmentLimitExceeded) RequestID() string { + return s.respMetadata.RequestID +} + // The content and file name of the attachment returned by the DescribeAttachment // operation. type DescribeAttachmentOutput struct { @@ -2819,6 +3287,63 @@ func (s *DescribeTrustedAdvisorChecksOutput) SetChecks(v []*TrustedAdvisorCheckD return s } +// An internal server error occurred. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // An internal server error occurred. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + // The five most recent communications associated with the case. type RecentCaseCommunications struct { _ struct{} `type:"structure"` diff --git a/service/support/errors.go b/service/support/errors.go index ad4f97a04ed..7b425e85ed8 100644 --- a/service/support/errors.go +++ b/service/support/errors.go @@ -2,6 +2,10 @@ package support +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAttachmentIdNotFound for service response error code @@ -62,3 +66,15 @@ const ( // An internal server error occurred. ErrCodeInternalServerError = "InternalServerError" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AttachmentIdNotFound": newErrorAttachmentIdNotFound, + "AttachmentLimitExceeded": newErrorAttachmentLimitExceeded, + "AttachmentSetExpired": newErrorAttachmentSetExpired, + "AttachmentSetIdNotFound": newErrorAttachmentSetIdNotFound, + "AttachmentSetSizeLimitExceeded": newErrorAttachmentSetSizeLimitExceeded, + "CaseCreationLimitExceeded": newErrorCaseCreationLimitExceeded, + "CaseIdNotFound": newErrorCaseIdNotFound, + "DescribeAttachmentLimitExceeded": newErrorDescribeAttachmentLimitExceeded, + "InternalServerError": newErrorInternalServerError, +} diff --git a/service/support/service.go b/service/support/service.go index 209517bb700..3088a0cb6de 100644 --- a/service/support/service.go +++ b/service/support/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/swf/api.go b/service/swf/api.go index 864d2401090..b2e19132d7f 100644 --- a/service/swf/api.go +++ b/service/swf/api.go @@ -90,13 +90,13 @@ func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExe // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation CountClosedWorkflowExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -198,13 +198,13 @@ func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecuti // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation CountOpenWorkflowExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -304,13 +304,13 @@ func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksI // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation CountPendingActivityTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -410,13 +410,13 @@ func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksI // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation CountPendingDecisionTasks for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -520,16 +520,16 @@ func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (r // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation DeprecateActivityType for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeTypeDeprecatedFault "TypeDeprecatedFault" +// * TypeDeprecatedFault // Returned when the specified activity or workflow type was already deprecated. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -633,16 +633,16 @@ func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request. // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation DeprecateDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeDomainDeprecatedFault "DomainDeprecatedFault" +// * DomainDeprecatedFault // Returned when the specified domain has been deprecated. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -747,16 +747,16 @@ func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (r // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation DeprecateWorkflowType for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeTypeDeprecatedFault "TypeDeprecatedFault" +// * TypeDeprecatedFault // Returned when the specified activity or workflow type was already deprecated. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -856,13 +856,13 @@ func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation DescribeActivityType for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -958,13 +958,13 @@ func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Re // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation DescribeDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -1063,13 +1063,13 @@ func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionI // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation DescribeWorkflowExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -1169,13 +1169,13 @@ func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation DescribeWorkflowType for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -1281,13 +1281,13 @@ func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHist // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation GetWorkflowExecutionHistory for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -1444,12 +1444,12 @@ func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *requ // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation ListActivityTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// Returned Error Types: +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. @@ -1612,13 +1612,13 @@ func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecu // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation ListClosedWorkflowExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -1777,8 +1777,8 @@ func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation ListDomains for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// Returned Error Types: +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -1940,13 +1940,13 @@ func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecution // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation ListOpenWorkflowExecutions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -2074,18 +2074,18 @@ func (c *SWF) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -2188,12 +2188,12 @@ func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *requ // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation ListWorkflowTypes for usage and error information. // -// Returned Error Codes: -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// Returned Error Types: +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. @@ -2353,17 +2353,17 @@ func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req * // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation PollForActivityTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. @@ -2487,17 +2487,17 @@ func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req * // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation PollForDecisionTask for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. @@ -2670,13 +2670,13 @@ func (c *SWF) RecordActivityTaskHeartbeatRequest(input *RecordActivityTaskHeartb // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RecordActivityTaskHeartbeat for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -2780,23 +2780,23 @@ func (c *SWF) RegisterActivityTypeRequest(input *RegisterActivityTypeInput) (req // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RegisterActivityType for usage and error information. // -// Returned Error Codes: -// * ErrCodeTypeAlreadyExistsFault "TypeAlreadyExistsFault" +// Returned Error Types: +// * TypeAlreadyExistsFault // Returned if the type already exists in the specified domain. You may get // this fault if you are registering a type that is either already registered // or deprecated, or if you undeprecate a type that is currently registered. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -2893,22 +2893,22 @@ func (c *SWF) RegisterDomainRequest(input *RegisterDomainInput) (req *request.Re // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RegisterDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeDomainAlreadyExistsFault "DomainAlreadyExistsFault" +// Returned Error Types: +// * DomainAlreadyExistsFault // Returned if the domain already exists. You may get this fault if you are // registering a domain that is either already registered or deprecated, or // if you undeprecate a domain that is currently registered. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // -// * ErrCodeTooManyTagsFault "TooManyTagsFault" +// * TooManyTagsFault // You've exceeded the number of tags allowed for a domain. // func (c *SWF) RegisterDomain(input *RegisterDomainInput) (*RegisterDomainOutput, error) { @@ -3014,23 +3014,23 @@ func (c *SWF) RegisterWorkflowTypeRequest(input *RegisterWorkflowTypeInput) (req // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RegisterWorkflowType for usage and error information. // -// Returned Error Codes: -// * ErrCodeTypeAlreadyExistsFault "TypeAlreadyExistsFault" +// Returned Error Types: +// * TypeAlreadyExistsFault // Returned if the type already exists in the specified domain. You may get // this fault if you are registering a type that is either already registered // or deprecated, or if you undeprecate a type that is currently registered. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -3137,13 +3137,13 @@ func (c *SWF) RequestCancelWorkflowExecutionRequest(input *RequestCancelWorkflow // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RequestCancelWorkflowExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -3253,13 +3253,13 @@ func (c *SWF) RespondActivityTaskCanceledRequest(input *RespondActivityTaskCance // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RespondActivityTaskCanceled for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -3368,13 +3368,13 @@ func (c *SWF) RespondActivityTaskCompletedRequest(input *RespondActivityTaskComp // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RespondActivityTaskCompleted for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -3478,13 +3478,13 @@ func (c *SWF) RespondActivityTaskFailedRequest(input *RespondActivityTaskFailedI // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RespondActivityTaskFailed for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -3577,13 +3577,13 @@ func (c *SWF) RespondDecisionTaskCompletedRequest(input *RespondDecisionTaskComp // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation RespondDecisionTaskCompleted for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -3688,13 +3688,13 @@ func (c *SWF) SignalWorkflowExecutionRequest(input *SignalWorkflowExecutionInput // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation SignalWorkflowExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -3799,29 +3799,29 @@ func (c *SWF) StartWorkflowExecutionRequest(input *StartWorkflowExecutionInput) // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation StartWorkflowExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeTypeDeprecatedFault "TypeDeprecatedFault" +// * TypeDeprecatedFault // Returned when the specified activity or workflow type was already deprecated. // -// * ErrCodeWorkflowExecutionAlreadyStartedFault "WorkflowExecutionAlreadyStartedFault" +// * WorkflowExecutionAlreadyStartedFault // Returned by StartWorkflowExecution when an open execution with the same workflowId // is already running in the specified domain. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // -// * ErrCodeDefaultUndefinedFault "DefaultUndefinedFault" +// * DefaultUndefinedFault // The StartWorkflowExecution API action was called without the required parameters // set. // @@ -3909,21 +3909,21 @@ func (c *SWF) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeTooManyTagsFault "TooManyTagsFault" +// * TooManyTagsFault // You've exceeded the number of tags allowed for a domain. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -4033,13 +4033,13 @@ func (c *SWF) TerminateWorkflowExecutionRequest(input *TerminateWorkflowExecutio // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation TerminateWorkflowExecution for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -4142,18 +4142,18 @@ func (c *SWF) UndeprecateActivityTypeRequest(input *UndeprecateActivityTypeInput // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation UndeprecateActivityType for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeTypeAlreadyExistsFault "TypeAlreadyExistsFault" +// * TypeAlreadyExistsFault // Returned if the type already exists in the specified domain. You may get // this fault if you are registering a type that is either already registered // or deprecated, or if you undeprecate a type that is currently registered. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -4253,18 +4253,18 @@ func (c *SWF) UndeprecateDomainRequest(input *UndeprecateDomainInput) (req *requ // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation UndeprecateDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeDomainAlreadyExistsFault "DomainAlreadyExistsFault" +// * DomainAlreadyExistsFault // Returned if the domain already exists. You may get this fault if you are // registering a domain that is either already registered or deprecated, or // if you undeprecate a domain that is currently registered. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -4367,18 +4367,18 @@ func (c *SWF) UndeprecateWorkflowTypeRequest(input *UndeprecateWorkflowTypeInput // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation UndeprecateWorkflowType for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeTypeAlreadyExistsFault "TypeAlreadyExistsFault" +// * TypeAlreadyExistsFault // Returned if the type already exists in the specified domain. You may get // this fault if you are registering a type that is either already registered // or deprecated, or if you undeprecate a type that is currently registered. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -4455,18 +4455,18 @@ func (c *SWF) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for Amazon Simple Workflow Service's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnknownResourceFault "UnknownResourceFault" +// Returned Error Types: +// * UnknownResourceFault // Returned when the named resource cannot be found with in the scope of this // operation (region or domain). This could happen if the named resource was // never created or is no longer available for this operation. // -// * ErrCodeLimitExceededFault "LimitExceededFault" +// * LimitExceededFault // Returned by any operation if a system imposed limitation has been reached. // To address this fault you should either clean up unused resources or increase // the limit by contacting AWS. // -// * ErrCodeOperationNotPermittedFault "OperationNotPermittedFault" +// * OperationNotPermittedFault // Returned when the caller doesn't have sufficient permissions to invoke the // action. // @@ -7131,6 +7131,72 @@ func (s *DecisionTaskTimedOutEventAttributes) SetTimeoutType(v string) *Decision return s } +// The StartWorkflowExecution API action was called without the required parameters +// set. +// +// Some workflow execution parameters, such as the decision taskList, must be +// set to start the execution. However, these parameters might have been set +// as defaults when the workflow type was registered. In this case, you can +// omit these parameters from the StartWorkflowExecution call and Amazon SWF +// uses the values defined in the workflow type. +// +// If these parameters aren't set and no default parameters were defined in +// the workflow type, this error is displayed. +type DefaultUndefinedFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DefaultUndefinedFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DefaultUndefinedFault) GoString() string { + return s.String() +} + +func newErrorDefaultUndefinedFault(v protocol.ResponseMetadata) error { + return &DefaultUndefinedFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DefaultUndefinedFault) Code() string { + return "DefaultUndefinedFault" +} + +// Message returns the exception's message. +func (s DefaultUndefinedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DefaultUndefinedFault) OrigErr() error { + return nil +} + +func (s DefaultUndefinedFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DefaultUndefinedFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DefaultUndefinedFault) RequestID() string { + return s.respMetadata.RequestID +} + type DeprecateActivityTypeInput struct { _ struct{} `type:"structure"` @@ -7760,6 +7826,65 @@ func (s *DescribeWorkflowTypeOutput) SetTypeInfo(v *WorkflowTypeInfo) *DescribeW return s } +// Returned if the domain already exists. You may get this fault if you are +// registering a domain that is either already registered or deprecated, or +// if you undeprecate a domain that is currently registered. +type DomainAlreadyExistsFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DomainAlreadyExistsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainAlreadyExistsFault) GoString() string { + return s.String() +} + +func newErrorDomainAlreadyExistsFault(v protocol.ResponseMetadata) error { + return &DomainAlreadyExistsFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DomainAlreadyExistsFault) Code() string { + return "DomainAlreadyExistsFault" +} + +// Message returns the exception's message. +func (s DomainAlreadyExistsFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DomainAlreadyExistsFault) OrigErr() error { + return nil +} + +func (s DomainAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DomainAlreadyExistsFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DomainAlreadyExistsFault) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the configuration settings of a domain. type DomainConfiguration struct { _ struct{} `type:"structure"` @@ -7786,6 +7911,63 @@ func (s *DomainConfiguration) SetWorkflowExecutionRetentionPeriodInDays(v string return s } +// Returned when the specified domain has been deprecated. +type DomainDeprecatedFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DomainDeprecatedFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DomainDeprecatedFault) GoString() string { + return s.String() +} + +func newErrorDomainDeprecatedFault(v protocol.ResponseMetadata) error { + return &DomainDeprecatedFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DomainDeprecatedFault) Code() string { + return "DomainDeprecatedFault" +} + +// Message returns the exception's message. +func (s DomainDeprecatedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DomainDeprecatedFault) OrigErr() error { + return nil +} + +func (s DomainDeprecatedFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DomainDeprecatedFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DomainDeprecatedFault) RequestID() string { + return s.respMetadata.RequestID +} + // Contains general information about a domain. type DomainInfo struct { _ struct{} `type:"structure"` @@ -9252,6 +9434,65 @@ func (s *LambdaFunctionTimedOutEventAttributes) SetTimeoutType(v string) *Lambda return s } +// Returned by any operation if a system imposed limitation has been reached. +// To address this fault you should either clean up unused resources or increase +// the limit by contacting AWS. +type LimitExceededFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededFault) GoString() string { + return s.String() +} + +func newErrorLimitExceededFault(v protocol.ResponseMetadata) error { + return &LimitExceededFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededFault) Code() string { + return "LimitExceededFault" +} + +// Message returns the exception's message. +func (s LimitExceededFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededFault) OrigErr() error { + return nil +} + +func (s LimitExceededFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededFault) RequestID() string { + return s.respMetadata.RequestID +} + type ListActivityTypesInput struct { _ struct{} `type:"structure"` @@ -10108,6 +10349,64 @@ func (s *MarkerRecordedEventAttributes) SetMarkerName(v string) *MarkerRecordedE return s } +// Returned when the caller doesn't have sufficient permissions to invoke the +// action. +type OperationNotPermittedFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OperationNotPermittedFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotPermittedFault) GoString() string { + return s.String() +} + +func newErrorOperationNotPermittedFault(v protocol.ResponseMetadata) error { + return &OperationNotPermittedFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotPermittedFault) Code() string { + return "OperationNotPermittedFault" +} + +// Message returns the exception's message. +func (s OperationNotPermittedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotPermittedFault) OrigErr() error { + return nil +} + +func (s OperationNotPermittedFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotPermittedFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotPermittedFault) RequestID() string { + return s.respMetadata.RequestID +} + // Contains the count of tasks in a task list. type PendingTaskCount struct { _ struct{} `type:"structure"` @@ -14302,6 +14601,178 @@ func (s *TimerStartedEventAttributes) SetTimerId(v string) *TimerStartedEventAtt return s } +// You've exceeded the number of tags allowed for a domain. +type TooManyTagsFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TooManyTagsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyTagsFault) GoString() string { + return s.String() +} + +func newErrorTooManyTagsFault(v protocol.ResponseMetadata) error { + return &TooManyTagsFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyTagsFault) Code() string { + return "TooManyTagsFault" +} + +// Message returns the exception's message. +func (s TooManyTagsFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyTagsFault) OrigErr() error { + return nil +} + +func (s TooManyTagsFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyTagsFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyTagsFault) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned if the type already exists in the specified domain. You may get +// this fault if you are registering a type that is either already registered +// or deprecated, or if you undeprecate a type that is currently registered. +type TypeAlreadyExistsFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TypeAlreadyExistsFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TypeAlreadyExistsFault) GoString() string { + return s.String() +} + +func newErrorTypeAlreadyExistsFault(v protocol.ResponseMetadata) error { + return &TypeAlreadyExistsFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TypeAlreadyExistsFault) Code() string { + return "TypeAlreadyExistsFault" +} + +// Message returns the exception's message. +func (s TypeAlreadyExistsFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TypeAlreadyExistsFault) OrigErr() error { + return nil +} + +func (s TypeAlreadyExistsFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TypeAlreadyExistsFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TypeAlreadyExistsFault) RequestID() string { + return s.respMetadata.RequestID +} + +// Returned when the specified activity or workflow type was already deprecated. +type TypeDeprecatedFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TypeDeprecatedFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TypeDeprecatedFault) GoString() string { + return s.String() +} + +func newErrorTypeDeprecatedFault(v protocol.ResponseMetadata) error { + return &TypeDeprecatedFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TypeDeprecatedFault) Code() string { + return "TypeDeprecatedFault" +} + +// Message returns the exception's message. +func (s TypeDeprecatedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TypeDeprecatedFault) OrigErr() error { + return nil +} + +func (s TypeDeprecatedFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TypeDeprecatedFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TypeDeprecatedFault) RequestID() string { + return s.respMetadata.RequestID +} + type UndeprecateActivityTypeInput struct { _ struct{} `type:"structure"` @@ -14505,6 +14976,65 @@ func (s UndeprecateWorkflowTypeOutput) GoString() string { return s.String() } +// Returned when the named resource cannot be found with in the scope of this +// operation (region or domain). This could happen if the named resource was +// never created or is no longer available for this operation. +type UnknownResourceFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnknownResourceFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnknownResourceFault) GoString() string { + return s.String() +} + +func newErrorUnknownResourceFault(v protocol.ResponseMetadata) error { + return &UnknownResourceFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnknownResourceFault) Code() string { + return "UnknownResourceFault" +} + +// Message returns the exception's message. +func (s UnknownResourceFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnknownResourceFault) OrigErr() error { + return nil +} + +func (s UnknownResourceFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnknownResourceFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnknownResourceFault) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` @@ -14633,6 +15163,64 @@ func (s *WorkflowExecution) SetWorkflowId(v string) *WorkflowExecution { return s } +// Returned by StartWorkflowExecution when an open execution with the same workflowId +// is already running in the specified domain. +type WorkflowExecutionAlreadyStartedFault struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // A description that may help with diagnosing the cause of the fault. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WorkflowExecutionAlreadyStartedFault) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WorkflowExecutionAlreadyStartedFault) GoString() string { + return s.String() +} + +func newErrorWorkflowExecutionAlreadyStartedFault(v protocol.ResponseMetadata) error { + return &WorkflowExecutionAlreadyStartedFault{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WorkflowExecutionAlreadyStartedFault) Code() string { + return "WorkflowExecutionAlreadyStartedFault" +} + +// Message returns the exception's message. +func (s WorkflowExecutionAlreadyStartedFault) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WorkflowExecutionAlreadyStartedFault) OrigErr() error { + return nil +} + +func (s WorkflowExecutionAlreadyStartedFault) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WorkflowExecutionAlreadyStartedFault) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WorkflowExecutionAlreadyStartedFault) RequestID() string { + return s.respMetadata.RequestID +} + // Provides the details of the WorkflowExecutionCancelRequested event. type WorkflowExecutionCancelRequestedEventAttributes struct { _ struct{} `type:"structure"` diff --git a/service/swf/errors.go b/service/swf/errors.go index 95e3d26ef00..5f9f3a35351 100644 --- a/service/swf/errors.go +++ b/service/swf/errors.go @@ -2,6 +2,10 @@ package swf +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDefaultUndefinedFault for service response error code @@ -84,3 +88,16 @@ const ( // is already running in the specified domain. ErrCodeWorkflowExecutionAlreadyStartedFault = "WorkflowExecutionAlreadyStartedFault" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DefaultUndefinedFault": newErrorDefaultUndefinedFault, + "DomainAlreadyExistsFault": newErrorDomainAlreadyExistsFault, + "DomainDeprecatedFault": newErrorDomainDeprecatedFault, + "LimitExceededFault": newErrorLimitExceededFault, + "OperationNotPermittedFault": newErrorOperationNotPermittedFault, + "TooManyTagsFault": newErrorTooManyTagsFault, + "TypeAlreadyExistsFault": newErrorTypeAlreadyExistsFault, + "TypeDeprecatedFault": newErrorTypeDeprecatedFault, + "UnknownResourceFault": newErrorUnknownResourceFault, + "WorkflowExecutionAlreadyStartedFault": newErrorWorkflowExecutionAlreadyStartedFault, +} diff --git a/service/swf/service.go b/service/swf/service.go index 557bcc18917..a6ee9188d16 100644 --- a/service/swf/service.go +++ b/service/swf/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/textract/api.go b/service/textract/api.go index 14dba7a5036..2c15af52d44 100644 --- a/service/textract/api.go +++ b/service/textract/api.go @@ -3,9 +3,12 @@ package textract import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opAnalyzeDocument = "AnalyzeDocument" @@ -91,45 +94,45 @@ func (c *Textract) AnalyzeDocumentRequest(input *AnalyzeDocumentInput) (req *req // See the AWS API reference guide for Amazon Textract's // API operation AnalyzeDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An input parameter violated a constraint. For example, in synchronous operations, // an InvalidParameterException exception occurs when neither of the S3Object // or Bytes values are supplied in the Document request parameter. Validate // your parameter before calling the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the // request. // -// * ErrCodeUnsupportedDocumentException "UnsupportedDocumentException" +// * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous // operations can be in PNG or JPEG format. Documents for asynchronous operations // can also be in PDF format. // -// * ErrCodeDocumentTooLargeException "DocumentTooLargeException" +// * DocumentTooLargeException // The document can't be processed because it's too large. The maximum document // size for synchronous operations 5 MB. The maximum document size for asynchronous // operations is 500 MB for PDF files. // -// * ErrCodeBadDocumentException "BadDocumentException" +// * BadDocumentException // Amazon Textract isn't able to read the document. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You aren't authorized to perform the action. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Textract. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Textract experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Textract is temporarily unable to process the request. Try your call // again. // -// * ErrCodeHumanLoopQuotaExceededException "HumanLoopQuotaExceededException" +// * HumanLoopQuotaExceededException // Indicates you have exceeded the maximum number of active human in the loop // workflows available // @@ -221,41 +224,41 @@ func (c *Textract) DetectDocumentTextRequest(input *DetectDocumentTextInput) (re // See the AWS API reference guide for Amazon Textract's // API operation DetectDocumentText for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An input parameter violated a constraint. For example, in synchronous operations, // an InvalidParameterException exception occurs when neither of the S3Object // or Bytes values are supplied in the Document request parameter. Validate // your parameter before calling the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the // request. // -// * ErrCodeUnsupportedDocumentException "UnsupportedDocumentException" +// * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous // operations can be in PNG or JPEG format. Documents for asynchronous operations // can also be in PDF format. // -// * ErrCodeDocumentTooLargeException "DocumentTooLargeException" +// * DocumentTooLargeException // The document can't be processed because it's too large. The maximum document // size for synchronous operations 5 MB. The maximum document size for asynchronous // operations is 500 MB for PDF files. // -// * ErrCodeBadDocumentException "BadDocumentException" +// * BadDocumentException // Amazon Textract isn't able to read the document. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You aren't authorized to perform the action. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Textract. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Textract experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Textract is temporarily unable to process the request. Try your call // again. // @@ -374,27 +377,27 @@ func (c *Textract) GetDocumentAnalysisRequest(input *GetDocumentAnalysisInput) ( // See the AWS API reference guide for Amazon Textract's // API operation GetDocumentAnalysis for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An input parameter violated a constraint. For example, in synchronous operations, // an InvalidParameterException exception occurs when neither of the S3Object // or Bytes values are supplied in the Document request parameter. Validate // your parameter before calling the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You aren't authorized to perform the action. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Textract. // -// * ErrCodeInvalidJobIdException "InvalidJobIdException" +// * InvalidJobIdException // An invalid job identifier was passed to GetDocumentAnalysis or to GetDocumentAnalysis. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Textract experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Textract is temporarily unable to process the request. Try your call // again. // @@ -500,27 +503,27 @@ func (c *Textract) GetDocumentTextDetectionRequest(input *GetDocumentTextDetecti // See the AWS API reference guide for Amazon Textract's // API operation GetDocumentTextDetection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An input parameter violated a constraint. For example, in synchronous operations, // an InvalidParameterException exception occurs when neither of the S3Object // or Bytes values are supplied in the Document request parameter. Validate // your parameter before calling the API operation again. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You aren't authorized to perform the action. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Textract. // -// * ErrCodeInvalidJobIdException "InvalidJobIdException" +// * InvalidJobIdException // An invalid job identifier was passed to GetDocumentAnalysis or to GetDocumentAnalysis. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Textract experienced a service issue. Try your call again. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Textract is temporarily unable to process the request. Try your call // again. // @@ -614,50 +617,50 @@ func (c *Textract) StartDocumentAnalysisRequest(input *StartDocumentAnalysisInpu // See the AWS API reference guide for Amazon Textract's // API operation StartDocumentAnalysis for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An input parameter violated a constraint. For example, in synchronous operations, // an InvalidParameterException exception occurs when neither of the S3Object // or Bytes values are supplied in the Document request parameter. Validate // your parameter before calling the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the // request. // -// * ErrCodeUnsupportedDocumentException "UnsupportedDocumentException" +// * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous // operations can be in PNG or JPEG format. Documents for asynchronous operations // can also be in PDF format. // -// * ErrCodeDocumentTooLargeException "DocumentTooLargeException" +// * DocumentTooLargeException // The document can't be processed because it's too large. The maximum document // size for synchronous operations 5 MB. The maximum document size for asynchronous // operations is 500 MB for PDF files. // -// * ErrCodeBadDocumentException "BadDocumentException" +// * BadDocumentException // Amazon Textract isn't able to read the document. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You aren't authorized to perform the action. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Textract. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Textract experienced a service issue. Try your call again. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Textract is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Textract service limit was exceeded. For example, if you start // too many asynchronous jobs concurrently, calls to start operations (StartDocumentTextDetection, // for example) raise a LimitExceededException exception (HTTP status code: @@ -754,50 +757,50 @@ func (c *Textract) StartDocumentTextDetectionRequest(input *StartDocumentTextDet // See the AWS API reference guide for Amazon Textract's // API operation StartDocumentTextDetection for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // An input parameter violated a constraint. For example, in synchronous operations, // an InvalidParameterException exception occurs when neither of the S3Object // or Bytes values are supplied in the Document request parameter. Validate // your parameter before calling the API operation again. // -// * ErrCodeInvalidS3ObjectException "InvalidS3ObjectException" +// * InvalidS3ObjectException // Amazon Textract is unable to access the S3 object that's specified in the // request. // -// * ErrCodeUnsupportedDocumentException "UnsupportedDocumentException" +// * UnsupportedDocumentException // The format of the input document isn't supported. Documents for synchronous // operations can be in PNG or JPEG format. Documents for asynchronous operations // can also be in PDF format. // -// * ErrCodeDocumentTooLargeException "DocumentTooLargeException" +// * DocumentTooLargeException // The document can't be processed because it's too large. The maximum document // size for synchronous operations 5 MB. The maximum document size for asynchronous // operations is 500 MB for PDF files. // -// * ErrCodeBadDocumentException "BadDocumentException" +// * BadDocumentException // Amazon Textract isn't able to read the document. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // You aren't authorized to perform the action. // -// * ErrCodeProvisionedThroughputExceededException "ProvisionedThroughputExceededException" +// * ProvisionedThroughputExceededException // The number of requests exceeded your throughput limit. If you want to increase // this limit, contact Amazon Textract. // -// * ErrCodeInternalServerError "InternalServerError" +// * InternalServerError // Amazon Textract experienced a service issue. Try your call again. // -// * ErrCodeIdempotentParameterMismatchException "IdempotentParameterMismatchException" +// * IdempotentParameterMismatchException // A ClientRequestToken input parameter was reused with an operation, but at // least one of the other input parameters is different from the previous call // to the operation. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // Amazon Textract is temporarily unable to process the request. Try your call // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // An Amazon Textract service limit was exceeded. For example, if you start // too many asynchronous jobs concurrently, calls to start operations (StartDocumentTextDetection, // for example) raise a LimitExceededException exception (HTTP status code: @@ -826,6 +829,57 @@ func (c *Textract) StartDocumentTextDetectionWithContext(ctx aws.Context, input return out, req.Send() } +// You aren't authorized to perform the action. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + type AnalyzeDocumentInput struct { _ struct{} `type:"structure"` @@ -957,6 +1011,57 @@ func (s *AnalyzeDocumentOutput) SetHumanLoopActivationOutput(v *HumanLoopActivat return s } +// Amazon Textract isn't able to read the document. +type BadDocumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s BadDocumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadDocumentException) GoString() string { + return s.String() +} + +func newErrorBadDocumentException(v protocol.ResponseMetadata) error { + return &BadDocumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadDocumentException) Code() string { + return "BadDocumentException" +} + +// Message returns the exception's message. +func (s BadDocumentException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadDocumentException) OrigErr() error { + return nil +} + +func (s BadDocumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadDocumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadDocumentException) RequestID() string { + return s.respMetadata.RequestID +} + // A Block represents items that are recognized in a document within a group // of pixels close to each other. The information returned in a Block object // depends on the type of operation. In text detection for documents (for example @@ -1470,6 +1575,59 @@ func (s *DocumentMetadata) SetPages(v int64) *DocumentMetadata { return s } +// The document can't be processed because it's too large. The maximum document +// size for synchronous operations 5 MB. The maximum document size for asynchronous +// operations is 500 MB for PDF files. +type DocumentTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DocumentTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentTooLargeException) GoString() string { + return s.String() +} + +func newErrorDocumentTooLargeException(v protocol.ResponseMetadata) error { + return &DocumentTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DocumentTooLargeException) Code() string { + return "DocumentTooLargeException" +} + +// Message returns the exception's message. +func (s DocumentTooLargeException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DocumentTooLargeException) OrigErr() error { + return nil +} + +func (s DocumentTooLargeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DocumentTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DocumentTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about where the following items are located on a document page: // detected page, text, key-value pairs, tables, table cells, and selection // elements. @@ -1945,6 +2103,380 @@ func (s *HumanLoopDataAttributes) SetContentClassifiers(v []*string) *HumanLoopD return s } +// Indicates you have exceeded the maximum number of active human in the loop +// workflows available +type HumanLoopQuotaExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + QuotaCode *string `type:"string"` + + ResourceType *string `type:"string"` + + ServiceCode *string `type:"string"` +} + +// String returns the string representation +func (s HumanLoopQuotaExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s HumanLoopQuotaExceededException) GoString() string { + return s.String() +} + +func newErrorHumanLoopQuotaExceededException(v protocol.ResponseMetadata) error { + return &HumanLoopQuotaExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s HumanLoopQuotaExceededException) Code() string { + return "HumanLoopQuotaExceededException" +} + +// Message returns the exception's message. +func (s HumanLoopQuotaExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s HumanLoopQuotaExceededException) OrigErr() error { + return nil +} + +func (s HumanLoopQuotaExceededException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s HumanLoopQuotaExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s HumanLoopQuotaExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// A ClientRequestToken input parameter was reused with an operation, but at +// least one of the other input parameters is different from the previous call +// to the operation. +type IdempotentParameterMismatchException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s IdempotentParameterMismatchException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IdempotentParameterMismatchException) GoString() string { + return s.String() +} + +func newErrorIdempotentParameterMismatchException(v protocol.ResponseMetadata) error { + return &IdempotentParameterMismatchException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IdempotentParameterMismatchException) Code() string { + return "IdempotentParameterMismatchException" +} + +// Message returns the exception's message. +func (s IdempotentParameterMismatchException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IdempotentParameterMismatchException) OrigErr() error { + return nil +} + +func (s IdempotentParameterMismatchException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IdempotentParameterMismatchException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IdempotentParameterMismatchException) RequestID() string { + return s.respMetadata.RequestID +} + +// Amazon Textract experienced a service issue. Try your call again. +type InternalServerError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InternalServerError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerError) GoString() string { + return s.String() +} + +func newErrorInternalServerError(v protocol.ResponseMetadata) error { + return &InternalServerError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerError) Code() string { + return "InternalServerError" +} + +// Message returns the exception's message. +func (s InternalServerError) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerError) OrigErr() error { + return nil +} + +func (s InternalServerError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerError) RequestID() string { + return s.respMetadata.RequestID +} + +// An invalid job identifier was passed to GetDocumentAnalysis or to GetDocumentAnalysis. +type InvalidJobIdException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidJobIdException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidJobIdException) GoString() string { + return s.String() +} + +func newErrorInvalidJobIdException(v protocol.ResponseMetadata) error { + return &InvalidJobIdException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidJobIdException) Code() string { + return "InvalidJobIdException" +} + +// Message returns the exception's message. +func (s InvalidJobIdException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidJobIdException) OrigErr() error { + return nil +} + +func (s InvalidJobIdException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidJobIdException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidJobIdException) RequestID() string { + return s.respMetadata.RequestID +} + +// An input parameter violated a constraint. For example, in synchronous operations, +// an InvalidParameterException exception occurs when neither of the S3Object +// or Bytes values are supplied in the Document request parameter. Validate +// your parameter before calling the API operation again. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// Amazon Textract is unable to access the S3 object that's specified in the +// request. +type InvalidS3ObjectException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s InvalidS3ObjectException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidS3ObjectException) GoString() string { + return s.String() +} + +func newErrorInvalidS3ObjectException(v protocol.ResponseMetadata) error { + return &InvalidS3ObjectException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidS3ObjectException) Code() string { + return "InvalidS3ObjectException" +} + +// Message returns the exception's message. +func (s InvalidS3ObjectException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidS3ObjectException) OrigErr() error { + return nil +} + +func (s InvalidS3ObjectException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidS3ObjectException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidS3ObjectException) RequestID() string { + return s.respMetadata.RequestID +} + +// An Amazon Textract service limit was exceeded. For example, if you start +// too many asynchronous jobs concurrently, calls to start operations (StartDocumentTextDetection, +// for example) raise a LimitExceededException exception (HTTP status code: +// 400) until the number of concurrently running jobs is below the Amazon Textract +// service limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The Amazon Simple Notification Service (Amazon SNS) topic to which Amazon // Textract publishes the completion status of an asynchronous document operation, // such as StartDocumentTextDetection. @@ -2047,6 +2579,58 @@ func (s *Point) SetY(v float64) *Point { return s } +// The number of requests exceeded your throughput limit. If you want to increase +// this limit, contact Amazon Textract. +type ProvisionedThroughputExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ProvisionedThroughputExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProvisionedThroughputExceededException) GoString() string { + return s.String() +} + +func newErrorProvisionedThroughputExceededException(v protocol.ResponseMetadata) error { + return &ProvisionedThroughputExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProvisionedThroughputExceededException) Code() string { + return "ProvisionedThroughputExceededException" +} + +// Message returns the exception's message. +func (s ProvisionedThroughputExceededException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProvisionedThroughputExceededException) OrigErr() error { + return nil +} + +func (s ProvisionedThroughputExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProvisionedThroughputExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProvisionedThroughputExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Information about how blocks are related to each other. A Block object contains // 0 or more Relation objects in a list, Relationships. For more information, // see Block. @@ -2406,6 +2990,111 @@ func (s *StartDocumentTextDetectionOutput) SetJobId(v string) *StartDocumentText return s } +// Amazon Textract is temporarily unable to process the request. Try your call +// again. +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + +// The format of the input document isn't supported. Documents for synchronous +// operations can be in PNG or JPEG format. Documents for asynchronous operations +// can also be in PDF format. +type UnsupportedDocumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UnsupportedDocumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedDocumentException) GoString() string { + return s.String() +} + +func newErrorUnsupportedDocumentException(v protocol.ResponseMetadata) error { + return &UnsupportedDocumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedDocumentException) Code() string { + return "UnsupportedDocumentException" +} + +// Message returns the exception's message. +func (s UnsupportedDocumentException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedDocumentException) OrigErr() error { + return nil +} + +func (s UnsupportedDocumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedDocumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedDocumentException) RequestID() string { + return s.respMetadata.RequestID +} + // A warning about an issue that occurred during asynchronous text analysis // (StartDocumentAnalysis) or asynchronous document text detection (StartDocumentTextDetection). type Warning struct { diff --git a/service/textract/errors.go b/service/textract/errors.go index e7c5eef97e4..ef66ad02512 100644 --- a/service/textract/errors.go +++ b/service/textract/errors.go @@ -2,6 +2,10 @@ package textract +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -99,3 +103,19 @@ const ( // can also be in PDF format. ErrCodeUnsupportedDocumentException = "UnsupportedDocumentException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "BadDocumentException": newErrorBadDocumentException, + "DocumentTooLargeException": newErrorDocumentTooLargeException, + "HumanLoopQuotaExceededException": newErrorHumanLoopQuotaExceededException, + "IdempotentParameterMismatchException": newErrorIdempotentParameterMismatchException, + "InternalServerError": newErrorInternalServerError, + "InvalidJobIdException": newErrorInvalidJobIdException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidS3ObjectException": newErrorInvalidS3ObjectException, + "LimitExceededException": newErrorLimitExceededException, + "ProvisionedThroughputExceededException": newErrorProvisionedThroughputExceededException, + "ThrottlingException": newErrorThrottlingException, + "UnsupportedDocumentException": newErrorUnsupportedDocumentException, +} diff --git a/service/textract/service.go b/service/textract/service.go index 1d76047c46c..c921c9be202 100644 --- a/service/textract/service.go +++ b/service/textract/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/transcribeservice/api.go b/service/transcribeservice/api.go index e8b495851f6..474cf9186d2 100644 --- a/service/transcribeservice/api.go +++ b/service/transcribeservice/api.go @@ -3,6 +3,7 @@ package transcribeservice import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,22 +67,22 @@ func (c *TranscribeService) CreateVocabularyRequest(input *CreateVocabularyInput // See the AWS API reference guide for Amazon Transcribe Service's // API operation CreateVocabulary for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // When you are using the CreateVocabulary operation, the JobName field is a // duplicate of a previously entered job name. Resend your request with a different // name. @@ -165,22 +166,22 @@ func (c *TranscribeService) CreateVocabularyFilterRequest(input *CreateVocabular // See the AWS API reference guide for Amazon Transcribe Service's // API operation CreateVocabularyFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // When you are using the CreateVocabulary operation, the JobName field is a // duplicate of a previously entered job name. Resend your request with a different // name. @@ -265,18 +266,18 @@ func (c *TranscribeService) DeleteTranscriptionJobRequest(input *DeleteTranscrip // See the AWS API reference guide for Amazon Transcribe Service's // API operation DeleteTranscriptionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeLimitExceededException "LimitExceededException" +// Returned Error Types: +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // @@ -356,22 +357,22 @@ func (c *TranscribeService) DeleteVocabularyRequest(input *DeleteVocabularyInput // See the AWS API reference guide for Amazon Transcribe Service's // API operation DeleteVocabulary for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // We can't find the requested resource. Check the name and try your request // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // @@ -451,22 +452,22 @@ func (c *TranscribeService) DeleteVocabularyFilterRequest(input *DeleteVocabular // See the AWS API reference guide for Amazon Transcribe Service's // API operation DeleteVocabularyFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // We can't find the requested resource. Check the name and try your request // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // @@ -548,22 +549,22 @@ func (c *TranscribeService) GetTranscriptionJobRequest(input *GetTranscriptionJo // See the AWS API reference guide for Amazon Transcribe Service's // API operation GetTranscriptionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can't find the requested resource. Check the name and try your request // again. // @@ -642,20 +643,20 @@ func (c *TranscribeService) GetVocabularyRequest(input *GetVocabularyInput) (req // See the AWS API reference guide for Amazon Transcribe Service's // API operation GetVocabulary for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // We can't find the requested resource. Check the name and try your request // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field @@ -736,20 +737,20 @@ func (c *TranscribeService) GetVocabularyFilterRequest(input *GetVocabularyFilte // See the AWS API reference guide for Amazon Transcribe Service's // API operation GetVocabularyFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeNotFoundException "NotFoundException" +// Returned Error Types: +// * NotFoundException // We can't find the requested resource. Check the name and try your request // again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeBadRequestException "BadRequestException" +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field @@ -836,18 +837,18 @@ func (c *TranscribeService) ListTranscriptionJobsRequest(input *ListTranscriptio // See the AWS API reference guide for Amazon Transcribe Service's // API operation ListTranscriptionJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // @@ -985,18 +986,18 @@ func (c *TranscribeService) ListVocabulariesRequest(input *ListVocabulariesInput // See the AWS API reference guide for Amazon Transcribe Service's // API operation ListVocabularies for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // @@ -1133,18 +1134,18 @@ func (c *TranscribeService) ListVocabularyFiltersRequest(input *ListVocabularyFi // See the AWS API reference guide for Amazon Transcribe Service's // API operation ListVocabularyFilters for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // @@ -1275,22 +1276,22 @@ func (c *TranscribeService) StartTranscriptionJobRequest(input *StartTranscripti // See the AWS API reference guide for Amazon Transcribe Service's // API operation StartTranscriptionJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // When you are using the CreateVocabulary operation, the JobName field is a // duplicate of a previously entered job name. Resend your request with a different // name. @@ -1375,26 +1376,26 @@ func (c *TranscribeService) UpdateVocabularyRequest(input *UpdateVocabularyInput // See the AWS API reference guide for Amazon Transcribe Service's // API operation UpdateVocabulary for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can't find the requested resource. Check the name and try your request // again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // When you are using the CreateVocabulary operation, the JobName field is a // duplicate of a previously entered job name. Resend your request with a different // name. @@ -1477,22 +1478,22 @@ func (c *TranscribeService) UpdateVocabularyFilterRequest(input *UpdateVocabular // See the AWS API reference guide for Amazon Transcribe Service's // API operation UpdateVocabularyFilter for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // Your request didn't pass one or more validation tests. For example, if the // transcription you're trying to delete doesn't exist or if it is in a non-terminal // state (for example, it's "in progress"). See the exception Message field // for more information. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // Either you have sent too many requests or your input file is too long. Wait // before you resend your request, or use a smaller file and resend the request. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // There was an internal error. Check the error message and try your request // again. // -// * ErrCodeNotFoundException "NotFoundException" +// * NotFoundException // We can't find the requested resource. Check the name and try your request // again. // @@ -1518,6 +1519,126 @@ func (c *TranscribeService) UpdateVocabularyFilterWithContext(ctx aws.Context, i return out, req.Send() } +// Your request didn't pass one or more validation tests. For example, if the +// transcription you're trying to delete doesn't exist or if it is in a non-terminal +// state (for example, it's "in progress"). See the exception Message field +// for more information. +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "BadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// When you are using the CreateVocabulary operation, the JobName field is a +// duplicate of a previously entered job name. Resend your request with a different +// name. +// +// When you are using the UpdateVocabulary operation, there are two jobs running +// at the same time. Resend the second request later. +type ConflictException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictException) GoString() string { + return s.String() +} + +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictException) Code() string { + return "ConflictException" +} + +// Message returns the exception's message. +func (s ConflictException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictException) OrigErr() error { + return nil +} + +func (s ConflictException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateVocabularyFilterInput struct { _ struct{} `type:"structure"` @@ -2237,6 +2358,63 @@ func (s *GetVocabularyOutput) SetVocabularyState(v string) *GetVocabularyOutput return s } +// There was an internal error. Check the error message and try your request +// again. +type InternalFailureException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalFailureException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalFailureException) GoString() string { + return s.String() +} + +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalFailureException) Code() string { + return "InternalFailureException" +} + +// Message returns the exception's message. +func (s InternalFailureException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalFailureException) OrigErr() error { + return nil +} + +func (s InternalFailureException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information about when a transcription job should be executed. type JobExecutionSettings struct { _ struct{} `type:"structure"` @@ -2284,6 +2462,63 @@ func (s *JobExecutionSettings) SetDataAccessRoleArn(v string) *JobExecutionSetti return s } +// Either you have sent too many requests or your input file is too long. Wait +// before you resend your request, or use a smaller file and resend the request. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTranscriptionJobsInput struct { _ struct{} `type:"structure"` @@ -2667,6 +2902,63 @@ func (s *Media) SetMediaFileUri(v string) *Media { return s } +// We can't find the requested resource. Check the name and try your request +// again. +type NotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NotFoundException) GoString() string { + return s.String() +} + +func newErrorNotFoundException(v protocol.ResponseMetadata) error { + return &NotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NotFoundException) Code() string { + return "NotFoundException" +} + +// Message returns the exception's message. +func (s NotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NotFoundException) OrigErr() error { + return nil +} + +func (s NotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides optional settings for the StartTranscriptionJob operation. type Settings struct { _ struct{} `type:"structure"` diff --git a/service/transcribeservice/errors.go b/service/transcribeservice/errors.go index 02d2da4e8de..b716c0af8b0 100644 --- a/service/transcribeservice/errors.go +++ b/service/transcribeservice/errors.go @@ -2,6 +2,10 @@ package transcribeservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -45,3 +49,11 @@ const ( // again. ErrCodeNotFoundException = "NotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "InternalFailureException": newErrorInternalFailureException, + "LimitExceededException": newErrorLimitExceededException, + "NotFoundException": newErrorNotFoundException, +} diff --git a/service/transcribeservice/service.go b/service/transcribeservice/service.go index f217c335f7e..8273933cf5a 100644 --- a/service/transcribeservice/service.go +++ b/service/transcribeservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/transcribestreamingservice/api.go b/service/transcribestreamingservice/api.go index cadfdfcafd9..51d19c92d12 100644 --- a/service/transcribestreamingservice/api.go +++ b/service/transcribestreamingservice/api.go @@ -106,23 +106,23 @@ func (c *TranscribeStreamingService) StartStreamTranscriptionRequest(input *Star // See the AWS API reference guide for Amazon Transcribe Streaming Service's // API operation StartStreamTranscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeBadRequestException "BadRequestException" +// Returned Error Types: +// * BadRequestException // One or more arguments to the StartStreamTranscription operation was invalid. // For example, MediaEncoding was not set to pcm or LanguageCode was not set // to a valid code. Check the parameters and try your request again. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // You have exceeded the maximum number of concurrent transcription streams, // are starting transcription streams too quickly, or the maximum audio length // of 4 hours. Wait until a stream has finished processing, or break your audio // stream into smaller chunks and try your request again. // -// * ErrCodeInternalFailureException "InternalFailureException" +// * InternalFailureException // A problem occurred while processing the audio. Amazon Transcribe terminated // processing. Try your request again. // -// * ErrCodeConflictException "ConflictException" +// * ConflictException // A new stream started with the same session ID. The current stream has been // terminated. // @@ -287,12 +287,19 @@ func (es *StartStreamTranscriptionEventStream) runOutputStream(r *request.Reques opts = append(opts, eventstream.DecodeWithLogger(r.Config.Logger)) } + unmarshalerForEvent := unmarshalerForTranscriptResultStreamEvent{ + metadata: protocol.ResponseMetadata{ + StatusCode: r.HTTPResponse.StatusCode, + RequestID: r.RequestID, + }, + }.UnmarshalerForEventName + decoder := eventstream.NewDecoder(r.HTTPResponse.Body, opts...) eventReader := eventstreamapi.NewEventReader(decoder, protocol.HandlerPayloadUnmarshal{ Unmarshalers: r.Handlers.UnmarshalStream, }, - unmarshalerForTranscriptResultStreamEvent, + unmarshalerForEvent, ) es.outputReader = r.HTTPResponse.Body @@ -495,7 +502,8 @@ func eventTypeForAudioStreamEvent(event eventstreamapi.Marshaler) (string, error // For example, MediaEncoding was not set to pcm or LanguageCode was not set // to a valid code. Check the parameters and try your request again. type BadRequestException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata Message_ *string `locationName:"Message" type:"string"` } @@ -537,6 +545,12 @@ func (s *BadRequestException) MarshalEvent(pm protocol.PayloadMarshaler) (msg ev return msg, err } +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s BadRequestException) Code() string { return "BadRequestException" @@ -544,7 +558,10 @@ func (s BadRequestException) Code() string { // Message returns the exception's message. func (s BadRequestException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -556,10 +573,21 @@ func (s BadRequestException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // A new stream started with the same session ID. The current stream has been // terminated. type ConflictException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata Message_ *string `locationName:"Message" type:"string"` } @@ -601,6 +629,12 @@ func (s *ConflictException) MarshalEvent(pm protocol.PayloadMarshaler) (msg even return msg, err } +func newErrorConflictException(v protocol.ResponseMetadata) error { + return &ConflictException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s ConflictException) Code() string { return "ConflictException" @@ -608,7 +642,10 @@ func (s ConflictException) Code() string { // Message returns the exception's message. func (s ConflictException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -620,10 +657,21 @@ func (s ConflictException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s ConflictException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictException) RequestID() string { + return s.respMetadata.RequestID +} + // A problem occurred while processing the audio. Amazon Transcribe terminated // processing. Try your request again. type InternalFailureException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata Message_ *string `locationName:"Message" type:"string"` } @@ -665,6 +713,12 @@ func (s *InternalFailureException) MarshalEvent(pm protocol.PayloadMarshaler) (m return msg, err } +func newErrorInternalFailureException(v protocol.ResponseMetadata) error { + return &InternalFailureException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s InternalFailureException) Code() string { return "InternalFailureException" @@ -672,7 +726,10 @@ func (s InternalFailureException) Code() string { // Message returns the exception's message. func (s InternalFailureException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -684,6 +741,16 @@ func (s InternalFailureException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s InternalFailureException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalFailureException) RequestID() string { + return s.respMetadata.RequestID +} + // A word or phrase transcribed from the input audio. type Item struct { _ struct{} `type:"structure"` @@ -744,7 +811,8 @@ func (s *Item) SetType(v string) *Item { // of 4 hours. Wait until a stream has finished processing, or break your audio // stream into smaller chunks and try your request again. type LimitExceededException struct { - _ struct{} `type:"structure"` + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata Message_ *string `locationName:"Message" type:"string"` } @@ -786,6 +854,12 @@ func (s *LimitExceededException) MarshalEvent(pm protocol.PayloadMarshaler) (msg return msg, err } +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + // Code returns the exception type name. func (s LimitExceededException) Code() string { return "LimitExceededException" @@ -793,7 +867,10 @@ func (s LimitExceededException) Code() string { // Message returns the exception's message. func (s LimitExceededException) Message() string { - return *s.Message_ + if s.Message_ != nil { + return *s.Message_ + } + return "" } // OrigErr always returns nil, satisfies awserr.Error interface. @@ -805,6 +882,16 @@ func (s LimitExceededException) Error() string { return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // The result of transcribing a portion of the input audio stream. type Result struct { _ struct{} `type:"structure"` @@ -1226,18 +1313,22 @@ func (r *readTranscriptResultStream) readEventStream() { } } -func unmarshalerForTranscriptResultStreamEvent(eventType string) (eventstreamapi.Unmarshaler, error) { +type unmarshalerForTranscriptResultStreamEvent struct { + metadata protocol.ResponseMetadata +} + +func (u unmarshalerForTranscriptResultStreamEvent) UnmarshalerForEventName(eventType string) (eventstreamapi.Unmarshaler, error) { switch eventType { case "TranscriptEvent": return &TranscriptEvent{}, nil case "BadRequestException": - return &BadRequestException{}, nil + return newErrorBadRequestException(u.metadata).(eventstreamapi.Unmarshaler), nil case "ConflictException": - return &ConflictException{}, nil + return newErrorConflictException(u.metadata).(eventstreamapi.Unmarshaler), nil case "InternalFailureException": - return &InternalFailureException{}, nil + return newErrorInternalFailureException(u.metadata).(eventstreamapi.Unmarshaler), nil case "LimitExceededException": - return &LimitExceededException{}, nil + return newErrorLimitExceededException(u.metadata).(eventstreamapi.Unmarshaler), nil default: return nil, awserr.New( request.ErrCodeSerialization, diff --git a/service/transcribestreamingservice/errors.go b/service/transcribestreamingservice/errors.go index 5c31cbf63bb..443bf283e82 100644 --- a/service/transcribestreamingservice/errors.go +++ b/service/transcribestreamingservice/errors.go @@ -2,6 +2,10 @@ package transcribestreamingservice +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -35,3 +39,10 @@ const ( // stream into smaller chunks and try your request again. ErrCodeLimitExceededException = "LimitExceededException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "BadRequestException": newErrorBadRequestException, + "ConflictException": newErrorConflictException, + "InternalFailureException": newErrorInternalFailureException, + "LimitExceededException": newErrorLimitExceededException, +} diff --git a/service/transcribestreamingservice/eventstream_test.go b/service/transcribestreamingservice/eventstream_test.go index 70e7cb55f7e..442bb0c9d46 100644 --- a/service/transcribestreamingservice/eventstream_test.go +++ b/service/transcribestreamingservice/eventstream_test.go @@ -424,6 +424,9 @@ func mockStartStreamTranscriptionReadEvents() ( func TestStartStreamTranscription_ReadException(t *testing.T) { expectEvents := []TranscriptResultStreamEvent{ &BadRequestException{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, Message_: aws.String("string value goes here"), }, } @@ -475,6 +478,9 @@ func TestStartStreamTranscription_ReadException(t *testing.T) { } expectErr := &BadRequestException{ + respMetadata: protocol.ResponseMetadata{ + StatusCode: 200, + }, Message_: aws.String("string value goes here"), } aerr, ok := err.(awserr.Error) @@ -489,7 +495,7 @@ func TestStartStreamTranscription_ReadException(t *testing.T) { } if e, a := expectErr, aerr; !reflect.DeepEqual(e, a) { - t.Errorf("expect %#v, got %#v", e, a) + t.Errorf("expect error %+#v, got %+#v", e, a) } } diff --git a/service/transcribestreamingservice/service.go b/service/transcribestreamingservice/service.go index ead7bf41a98..3f031ba102c 100644 --- a/service/transcribestreamingservice/service.go +++ b/service/transcribestreamingservice/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) svc.Handlers.BuildStream.PushBackNamed(restjson.BuildHandler) svc.Handlers.UnmarshalStream.PushBackNamed(restjson.UnmarshalHandler) diff --git a/service/transfer/api.go b/service/transfer/api.go index 8f5c78af454..6f67b95cba1 100644 --- a/service/transfer/api.go +++ b/service/transfer/api.go @@ -69,18 +69,18 @@ func (c *Transfer) CreateServerRequest(input *CreateServerInput) (req *request.R // See the AWS API reference guide for AWS Transfer for SFTP's // API operation CreateServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The requested resource does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/CreateServer @@ -164,21 +164,21 @@ func (c *Transfer) CreateUserRequest(input *CreateUserInput) (req *request.Reque // See the AWS API reference guide for AWS Transfer for SFTP's // API operation CreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The requested resource does not exist. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -260,18 +260,18 @@ func (c *Transfer) DeleteServerRequest(input *DeleteServerInput) (req *request.R // See the AWS API reference guide for AWS Transfer for SFTP's // API operation DeleteServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -353,22 +353,22 @@ func (c *Transfer) DeleteSshPublicKeyRequest(input *DeleteSshPublicKeyInput) (re // See the AWS API reference guide for AWS Transfer for SFTP's // API operation DeleteSshPublicKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // HTTP Status Code: 400 @@ -453,18 +453,18 @@ func (c *Transfer) DeleteUserRequest(input *DeleteUserInput) (req *request.Reque // See the AWS API reference guide for AWS Transfer for SFTP's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -545,18 +545,18 @@ func (c *Transfer) DescribeServerRequest(input *DescribeServerInput) (req *reque // See the AWS API reference guide for AWS Transfer for SFTP's // API operation DescribeServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -639,18 +639,18 @@ func (c *Transfer) DescribeUserRequest(input *DescribeUserInput) (req *request.R // See the AWS API reference guide for AWS Transfer for SFTP's // API operation DescribeUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -733,25 +733,25 @@ func (c *Transfer) ImportSshPublicKeyRequest(input *ImportSshPublicKeyInput) (re // See the AWS API reference guide for AWS Transfer for SFTP's // API operation ImportSshPublicKey for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The requested resource does not exist. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // HTTP Status Code: 400 @@ -838,18 +838,18 @@ func (c *Transfer) ListServersRequest(input *ListServersInput) (req *request.Req // See the AWS API reference guide for AWS Transfer for SFTP's // API operation ListServers for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken parameter that was passed is invalid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListServers @@ -986,18 +986,18 @@ func (c *Transfer) ListTagsForResourceRequest(input *ListTagsForResourceInput) ( // See the AWS API reference guide for AWS Transfer for SFTP's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken parameter that was passed is invalid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/ListTagsForResource @@ -1133,21 +1133,21 @@ func (c *Transfer) ListUsersRequest(input *ListUsersInput) (req *request.Request // See the AWS API reference guide for AWS Transfer for SFTP's // API operation ListUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidNextTokenException "InvalidNextTokenException" +// * InvalidNextTokenException // The NextToken parameter that was passed is invalid. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -1287,22 +1287,22 @@ func (c *Transfer) StartServerRequest(input *StartServerInput) (req *request.Req // See the AWS API reference guide for AWS Transfer for SFTP's // API operation StartServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // HTTP Status Code: 400 @@ -1393,22 +1393,22 @@ func (c *Transfer) StopServerRequest(input *StopServerInput) (req *request.Reque // See the AWS API reference guide for AWS Transfer for SFTP's // API operation StopServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // HTTP Status Code: 400 @@ -1492,18 +1492,18 @@ func (c *Transfer) TagResourceRequest(input *TagResourceInput) (req *request.Req // See the AWS API reference guide for AWS Transfer for SFTP's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -1586,18 +1586,18 @@ func (c *Transfer) TestIdentityProviderRequest(input *TestIdentityProviderInput) // See the AWS API reference guide for AWS Transfer for SFTP's // API operation TestIdentityProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -1680,18 +1680,18 @@ func (c *Transfer) UntagResourceRequest(input *UntagResourceInput) (req *request // See the AWS API reference guide for AWS Transfer for SFTP's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // @@ -1773,25 +1773,25 @@ func (c *Transfer) UpdateServerRequest(input *UpdateServerInput) (req *request.R // See the AWS API reference guide for AWS Transfer for SFTP's // API operation UpdateServer for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceExistsException "ResourceExistsException" +// * ResourceExistsException // The requested resource does not exist. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // HTTP Status Code: 400 @@ -1875,22 +1875,22 @@ func (c *Transfer) UpdateUserRequest(input *UpdateUserInput) (req *request.Reque // See the AWS API reference guide for AWS Transfer for SFTP's // API operation UpdateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// Returned Error Types: +// * ServiceUnavailableException // The request has failed because the AWS Transfer for SFTP service is not available. // -// * ErrCodeInternalServiceError "InternalServiceError" +// * InternalServiceError // This exception is thrown when an error occurs in the AWS Transfer for SFTP // service. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // This exception is thrown when the client submits a malformed request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // This exception is thrown when a resource is not found by the AWS Transfer // for SFTP service. // -// * ErrCodeThrottlingException "ThrottlingException" +// * ThrottlingException // The request was denied due to request throttling. // // HTTP Status Code: 400 @@ -3224,6 +3224,175 @@ func (s *ImportSshPublicKeyOutput) SetUserName(v string) *ImportSshPublicKeyOutp return s } +// This exception is thrown when an error occurs in the AWS Transfer for SFTP +// service. +type InternalServiceError struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServiceError) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServiceError) GoString() string { + return s.String() +} + +func newErrorInternalServiceError(v protocol.ResponseMetadata) error { + return &InternalServiceError{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServiceError) Code() string { + return "InternalServiceError" +} + +// Message returns the exception's message. +func (s InternalServiceError) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServiceError) OrigErr() error { + return nil +} + +func (s InternalServiceError) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServiceError) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServiceError) RequestID() string { + return s.respMetadata.RequestID +} + +// The NextToken parameter that was passed is invalid. +type InvalidNextTokenException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidNextTokenException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidNextTokenException) GoString() string { + return s.String() +} + +func newErrorInvalidNextTokenException(v protocol.ResponseMetadata) error { + return &InvalidNextTokenException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidNextTokenException) Code() string { + return "InvalidNextTokenException" +} + +// Message returns the exception's message. +func (s InvalidNextTokenException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidNextTokenException) OrigErr() error { + return nil +} + +func (s InvalidNextTokenException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidNextTokenException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidNextTokenException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when the client submits a malformed request. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type ListServersInput struct { _ struct{} `type:"structure"` @@ -3718,6 +3887,187 @@ func (s *ListedUser) SetUserName(v string) *ListedUser { return s } +// The requested resource does not exist. +type ResourceExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // Resource is a required field + Resource *string `type:"string" required:"true"` + + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceExistsException) GoString() string { + return s.String() +} + +func newErrorResourceExistsException(v protocol.ResponseMetadata) error { + return &ResourceExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceExistsException) Code() string { + return "ResourceExistsException" +} + +// Message returns the exception's message. +func (s ResourceExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceExistsException) OrigErr() error { + return nil +} + +func (s ResourceExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// This exception is thrown when a resource is not found by the AWS Transfer +// for SFTP service. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // Resource is a required field + Resource *string `type:"string" required:"true"` + + // ResourceType is a required field + ResourceType *string `type:"string" required:"true"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request has failed because the AWS Transfer for SFTP service is not available. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information about the public Secure Shell (SSH) key that is associated // with a user account for a specific server (as identified by ServerId). The // information returned includes the date the key was imported, the public key @@ -4146,6 +4496,61 @@ func (s *TestIdentityProviderOutput) SetUrl(v string) *TestIdentityProviderOutpu return s } +// The request was denied due to request throttling. +// +// HTTP Status Code: 400 +type ThrottlingException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + RetryAfterSeconds *string `type:"string"` +} + +// String returns the string representation +func (s ThrottlingException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottlingException) GoString() string { + return s.String() +} + +func newErrorThrottlingException(v protocol.ResponseMetadata) error { + return &ThrottlingException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottlingException) Code() string { + return "ThrottlingException" +} + +// Message returns the exception's message. +func (s ThrottlingException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottlingException) OrigErr() error { + return nil +} + +func (s ThrottlingException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottlingException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottlingException) RequestID() string { + return s.respMetadata.RequestID +} + type UntagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/transfer/errors.go b/service/transfer/errors.go index 60b6a6269fb..6001f80d93f 100644 --- a/service/transfer/errors.go +++ b/service/transfer/errors.go @@ -2,6 +2,10 @@ package transfer +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServiceError for service response error code @@ -50,3 +54,13 @@ const ( // HTTP Status Code: 400 ErrCodeThrottlingException = "ThrottlingException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServiceError": newErrorInternalServiceError, + "InvalidNextTokenException": newErrorInvalidNextTokenException, + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceExistsException": newErrorResourceExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "ThrottlingException": newErrorThrottlingException, +} diff --git a/service/transfer/service.go b/service/transfer/service.go index 414dedb1af4..639b4da4dc2 100644 --- a/service/transfer/service.go +++ b/service/transfer/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/translate/api.go b/service/translate/api.go index 3b9f8d71285..398d374f863 100644 --- a/service/translate/api.go +++ b/service/translate/api.go @@ -3,6 +3,7 @@ package translate import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,17 +67,17 @@ func (c *Translate) DeleteTerminologyRequest(input *DeleteTerminologyInput) (req // See the AWS API reference guide for Amazon Translate's // API operation DeleteTerminology for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource you are looking for has not been found. Review the resource // you're looking for and see if a different resource will accomplish your needs // before retrying the revised request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DeleteTerminology @@ -156,17 +157,17 @@ func (c *Translate) DescribeTextTranslationJobRequest(input *DescribeTextTransla // See the AWS API reference guide for Amazon Translate's // API operation DescribeTextTranslationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource you are looking for has not been found. Review the resource // you're looking for and see if a different resource will accomplish your needs // before retrying the revised request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/DescribeTextTranslationJob @@ -244,21 +245,21 @@ func (c *Translate) GetTerminologyRequest(input *GetTerminologyInput) (req *requ // See the AWS API reference guide for Amazon Translate's // API operation GetTerminology for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource you are looking for has not been found. Review the resource // you're looking for and see if a different resource will accomplish your needs // before retrying the revised request. // -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// * InvalidParameterValueException // The value of the parameter is invalid. Review the value of the parameter // you are using to correct it, and then retry your operation. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/GetTerminology @@ -345,20 +346,20 @@ func (c *Translate) ImportTerminologyRequest(input *ImportTerminologyInput) (req // See the AWS API reference guide for Amazon Translate's // API operation ImportTerminology for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // The value of the parameter is invalid. Review the value of the parameter // you are using to correct it, and then retry your operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The specified limit has been exceeded. Review your request and retry it with // a quantity below the stated limit. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ImportTerminology @@ -442,16 +443,16 @@ func (c *Translate) ListTerminologiesRequest(input *ListTerminologiesInput) (req // See the AWS API reference guide for Amazon Translate's // API operation ListTerminologies for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValueException "InvalidParameterValueException" +// Returned Error Types: +// * InvalidParameterValueException // The value of the parameter is invalid. Review the value of the parameter // you are using to correct it, and then retry your operation. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTerminologies @@ -587,19 +588,19 @@ func (c *Translate) ListTextTranslationJobsRequest(input *ListTextTranslationJob // See the AWS API reference guide for Amazon Translate's // API operation ListTextTranslationJobs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeInvalidFilterException "InvalidFilterException" +// * InvalidFilterException // The filter specified for the operation is invalid. Specify a different filter. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListTextTranslationJobs @@ -738,25 +739,25 @@ func (c *Translate) StartTextTranslationJobRequest(input *StartTextTranslationJo // See the AWS API reference guide for Amazon Translate's // API operation StartTextTranslationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// Returned Error Types: +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeUnsupportedLanguagePairException "UnsupportedLanguagePairException" +// * UnsupportedLanguagePairException // Amazon Translate does not support translation from the language of the source // text into the requested target language. For more information, see how-to-error-msg. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource you are looking for has not been found. Review the resource // you're looking for and see if a different resource will accomplish your needs // before retrying the revised request. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StartTextTranslationJob @@ -843,17 +844,17 @@ func (c *Translate) StopTextTranslationJobRequest(input *StopTextTranslationJobI // See the AWS API reference guide for Amazon Translate's // API operation StopTextTranslationJob for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource you are looking for has not been found. Review the resource // you're looking for and see if a different resource will accomplish your needs // before retrying the revised request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/StopTextTranslationJob @@ -932,39 +933,39 @@ func (c *Translate) TextRequest(input *TextInput) (req *request.Request, output // See the AWS API reference guide for Amazon Translate's // API operation Text for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request that you made is invalid. Check your request to determine why // it's invalid and then retry the request. // -// * ErrCodeTextSizeLimitExceededException "TextSizeLimitExceededException" +// * TextSizeLimitExceededException // The size of the text you submitted exceeds the size limit. Reduce the size // of the text or use a smaller document and then retry your request. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // You have made too many requests within a short period of time. Wait for a // short time and then try your request again. // -// * ErrCodeUnsupportedLanguagePairException "UnsupportedLanguagePairException" +// * UnsupportedLanguagePairException // Amazon Translate does not support translation from the language of the source // text into the requested target language. For more information, see how-to-error-msg. // -// * ErrCodeDetectedLanguageLowConfidenceException "DetectedLanguageLowConfidenceException" +// * DetectedLanguageLowConfidenceException // The confidence that Amazon Comprehend accurately detected the source language // is low. If a low confidence level is acceptable for your application, you // can use the language in the exception to call Amazon Translate again. For // more information, see the DetectDominantLanguage (https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html) // operation in the Amazon Comprehend Developer Guide. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource you are looking for has not been found. Review the resource // you're looking for and see if a different resource will accomplish your needs // before retrying the revised request. // -// * ErrCodeInternalServerException "InternalServerException" +// * InternalServerException // An internal server error occurred. Retry your request. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // The Amazon Translate service is temporarily unavailable. Please wait a bit // and then retry your request. // @@ -1151,6 +1152,69 @@ func (s *DescribeTextTranslationJobOutput) SetTextTranslationJobProperties(v *Te return s } +// The confidence that Amazon Comprehend accurately detected the source language +// is low. If a low confidence level is acceptable for your application, you +// can use the language in the exception to call Amazon Translate again. For +// more information, see the DetectDominantLanguage (https://docs.aws.amazon.com/comprehend/latest/dg/API_DetectDominantLanguage.html) +// operation in the Amazon Comprehend Developer Guide. +type DetectedLanguageLowConfidenceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The language code of the auto-detected language from Amazon Comprehend. + DetectedLanguageCode *string `min:"2" type:"string"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DetectedLanguageLowConfidenceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DetectedLanguageLowConfidenceException) GoString() string { + return s.String() +} + +func newErrorDetectedLanguageLowConfidenceException(v protocol.ResponseMetadata) error { + return &DetectedLanguageLowConfidenceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DetectedLanguageLowConfidenceException) Code() string { + return "DetectedLanguageLowConfidenceException" +} + +// Message returns the exception's message. +func (s DetectedLanguageLowConfidenceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DetectedLanguageLowConfidenceException) OrigErr() error { + return nil +} + +func (s DetectedLanguageLowConfidenceException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DetectedLanguageLowConfidenceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DetectedLanguageLowConfidenceException) RequestID() string { + return s.respMetadata.RequestID +} + // The encryption key used to encrypt the custom terminologies used by Amazon // Translate. type EncryptionKey struct { @@ -1475,6 +1539,232 @@ func (s *InputDataConfig) SetS3Uri(v string) *InputDataConfig { return s } +// An internal server error occurred. Retry your request. +type InternalServerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerException) GoString() string { + return s.String() +} + +func newErrorInternalServerException(v protocol.ResponseMetadata) error { + return &InternalServerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerException) Code() string { + return "InternalServerException" +} + +// Message returns the exception's message. +func (s InternalServerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerException) OrigErr() error { + return nil +} + +func (s InternalServerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The filter specified for the operation is invalid. Specify a different filter. +type InvalidFilterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidFilterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidFilterException) GoString() string { + return s.String() +} + +func newErrorInvalidFilterException(v protocol.ResponseMetadata) error { + return &InvalidFilterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidFilterException) Code() string { + return "InvalidFilterException" +} + +// Message returns the exception's message. +func (s InvalidFilterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidFilterException) OrigErr() error { + return nil +} + +func (s InvalidFilterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidFilterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidFilterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The value of the parameter is invalid. Review the value of the parameter +// you are using to correct it, and then retry your operation. +type InvalidParameterValueException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValueException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValueException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValueException(v protocol.ResponseMetadata) error { + return &InvalidParameterValueException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValueException) Code() string { + return "InvalidParameterValueException" +} + +// Message returns the exception's message. +func (s InvalidParameterValueException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValueException) OrigErr() error { + return nil +} + +func (s InvalidParameterValueException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValueException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValueException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request that you made is invalid. Check your request to determine why +// it's invalid and then retry the request. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // The number of documents successfully and unsuccessfully processed during // a translation job. type JobDetails struct { @@ -1519,6 +1809,63 @@ func (s *JobDetails) SetTranslatedDocumentsCount(v int64) *JobDetails { return s } +// The specified limit has been exceeded. Review your request and retry it with +// a quantity below the stated limit. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type ListTerminologiesInput struct { _ struct{} `type:"structure"` @@ -1733,6 +2080,121 @@ func (s *OutputDataConfig) SetS3Uri(v string) *OutputDataConfig { return s } +// The resource you are looking for has not been found. Review the resource +// you're looking for and see if a different resource will accomplish your needs +// before retrying the revised request. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The Amazon Translate service is temporarily unavailable. Please wait a bit +// and then retry your request. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type StartTextTranslationJobInput struct { _ struct{} `type:"structure"` @@ -2402,6 +2864,63 @@ func (s *TextOutput) SetTranslatedText(v string) *TextOutput { return s } +// The size of the text you submitted exceeds the size limit. Reduce the size +// of the text or use a smaller document and then retry your request. +type TextSizeLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TextSizeLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TextSizeLimitExceededException) GoString() string { + return s.String() +} + +func newErrorTextSizeLimitExceededException(v protocol.ResponseMetadata) error { + return &TextSizeLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TextSizeLimitExceededException) Code() string { + return "TextSizeLimitExceededException" +} + +// Message returns the exception's message. +func (s TextSizeLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TextSizeLimitExceededException) OrigErr() error { + return nil +} + +func (s TextSizeLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TextSizeLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TextSizeLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Provides information for filtering a list of translation jobs. For more information, // see ListTextTranslationJobs. type TextTranslationJobFilter struct { @@ -2611,6 +3130,126 @@ func (s *TextTranslationJobProperties) SetTerminologyNames(v []*string) *TextTra return s } +// You have made too many requests within a short period of time. Wait for a +// short time and then try your request again. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// Amazon Translate does not support translation from the language of the source +// text into the requested target language. For more information, see how-to-error-msg. +type UnsupportedLanguagePairException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` + + // The language code for the language of the input text. + SourceLanguageCode *string `min:"2" type:"string"` + + // The language code for the language of the translated text. + TargetLanguageCode *string `min:"2" type:"string"` +} + +// String returns the string representation +func (s UnsupportedLanguagePairException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedLanguagePairException) GoString() string { + return s.String() +} + +func newErrorUnsupportedLanguagePairException(v protocol.ResponseMetadata) error { + return &UnsupportedLanguagePairException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedLanguagePairException) Code() string { + return "UnsupportedLanguagePairException" +} + +// Message returns the exception's message. +func (s UnsupportedLanguagePairException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedLanguagePairException) OrigErr() error { + return nil +} + +func (s UnsupportedLanguagePairException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedLanguagePairException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedLanguagePairException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // EncryptionKeyTypeKms is a EncryptionKeyType enum value EncryptionKeyTypeKms = "KMS" diff --git a/service/translate/errors.go b/service/translate/errors.go index 24972c5a217..340ae1ed3fa 100644 --- a/service/translate/errors.go +++ b/service/translate/errors.go @@ -2,6 +2,10 @@ package translate +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDetectedLanguageLowConfidenceException for service response error code @@ -83,3 +87,17 @@ const ( // text into the requested target language. For more information, see how-to-error-msg. ErrCodeUnsupportedLanguagePairException = "UnsupportedLanguagePairException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DetectedLanguageLowConfidenceException": newErrorDetectedLanguageLowConfidenceException, + "InternalServerException": newErrorInternalServerException, + "InvalidFilterException": newErrorInvalidFilterException, + "InvalidParameterValueException": newErrorInvalidParameterValueException, + "InvalidRequestException": newErrorInvalidRequestException, + "LimitExceededException": newErrorLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "TextSizeLimitExceededException": newErrorTextSizeLimitExceededException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnsupportedLanguagePairException": newErrorUnsupportedLanguagePairException, +} diff --git a/service/translate/service.go b/service/translate/service.go index df84fa52df1..e32861de271 100644 --- a/service/translate/service.go +++ b/service/translate/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -79,7 +80,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/waf/api.go b/service/waf/api.go index 7dc45ecc8fc..e03d66e8ea5 100644 --- a/service/waf/api.go +++ b/service/waf/api.go @@ -87,19 +87,19 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re // See the AWS API reference guide for AWS WAF's // API operation CreateByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// Returned Error Types: +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -128,11 +128,11 @@ func (c *WAF) CreateByteMatchSetRequest(input *CreateByteMatchSetInput) (req *re // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -233,23 +233,23 @@ func (c *WAF) CreateGeoMatchSetRequest(input *CreateGeoMatchSetInput) (req *requ // See the AWS API reference guide for AWS WAF's // API operation CreateGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -278,7 +278,7 @@ func (c *WAF) CreateGeoMatchSetRequest(input *CreateGeoMatchSetInput) (req *requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -380,23 +380,23 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, // See the AWS API reference guide for AWS WAF's // API operation CreateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -425,7 +425,7 @@ func (c *WAF) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Request, // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -566,19 +566,19 @@ func (c *WAF) CreateRateBasedRuleRequest(input *CreateRateBasedRuleInput) (req * // See the AWS API reference guide for AWS WAF's // API operation CreateRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -607,17 +607,17 @@ func (c *WAF) CreateRateBasedRuleRequest(input *CreateRateBasedRuleInput) (req * // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // -// * ErrCodeBadRequestException "WAFBadRequestException" +// * BadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRateBasedRule func (c *WAF) CreateRateBasedRule(input *CreateRateBasedRuleInput) (*CreateRateBasedRuleOutput, error) { @@ -716,19 +716,19 @@ func (c *WAF) CreateRegexMatchSetRequest(input *CreateRegexMatchSetInput) (req * // See the AWS API reference guide for AWS WAF's // API operation CreateRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -827,19 +827,19 @@ func (c *WAF) CreateRegexPatternSetRequest(input *CreateRegexPatternSetInput) (r // See the AWS API reference guide for AWS WAF's // API operation CreateRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -955,19 +955,19 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o // See the AWS API reference guide for AWS WAF's // API operation CreateRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -996,17 +996,17 @@ func (c *WAF) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, o // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // -// * ErrCodeBadRequestException "WAFBadRequestException" +// * BadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRule func (c *WAF) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error) { @@ -1096,29 +1096,29 @@ func (c *WAF) CreateRuleGroupRequest(input *CreateRuleGroupInput) (req *request. // See the AWS API reference guide for AWS WAF's // API operation CreateRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // -// * ErrCodeBadRequestException "WAFBadRequestException" +// * BadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRuleGroup func (c *WAF) CreateRuleGroup(input *CreateRuleGroupInput) (*CreateRuleGroupOutput, error) { @@ -1217,23 +1217,23 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput // See the AWS API reference guide for AWS WAF's // API operation CreateSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1262,7 +1262,7 @@ func (c *WAF) CreateSizeConstraintSetRequest(input *CreateSizeConstraintSetInput // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -1361,19 +1361,19 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe // See the AWS API reference guide for AWS WAF's // API operation CreateSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// Returned Error Types: +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1402,11 +1402,11 @@ func (c *WAF) CreateSqlInjectionMatchSetRequest(input *CreateSqlInjectionMatchSe // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -1517,23 +1517,23 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques // See the AWS API reference guide for AWS WAF's // API operation CreateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1562,17 +1562,17 @@ func (c *WAF) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // -// * ErrCodeBadRequestException "WAFBadRequestException" +// * BadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACL func (c *WAF) CreateWebACL(input *CreateWebACLInput) (*CreateWebACLOutput, error) { @@ -1668,19 +1668,19 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ // See the AWS API reference guide for AWS WAF's // API operation CreateXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// Returned Error Types: +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1709,11 +1709,11 @@ func (c *WAF) CreateXssMatchSetRequest(input *CreateXssMatchSetInput) (req *requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -1808,19 +1808,19 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // See the AWS API reference guide for AWS WAF's // API operation DeleteByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -1828,11 +1828,11 @@ func (c *WAF) DeleteByteMatchSetRequest(input *DeleteByteMatchSetInput) (req *re // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -1934,23 +1934,23 @@ func (c *WAF) DeleteGeoMatchSetRequest(input *DeleteGeoMatchSetInput) (req *requ // See the AWS API reference guide for AWS WAF's // API operation DeleteGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -1958,7 +1958,7 @@ func (c *WAF) DeleteGeoMatchSetRequest(input *DeleteGeoMatchSetInput) (req *requ // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2060,23 +2060,23 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // See the AWS API reference guide for AWS WAF's // API operation DeleteIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2084,7 +2084,7 @@ func (c *WAF) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Request, // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2174,15 +2174,15 @@ func (c *WAF) DeleteLoggingConfigurationRequest(input *DeleteLoggingConfiguratio // See the AWS API reference guide for AWS WAF's // API operation DeleteLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // @@ -2264,16 +2264,16 @@ func (c *WAF) DeletePermissionPolicyRequest(input *DeletePermissionPolicyInput) // See the AWS API reference guide for AWS WAF's // API operation DeletePermissionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeletePermissionPolicy @@ -2366,23 +2366,23 @@ func (c *WAF) DeleteRateBasedRuleRequest(input *DeleteRateBasedRuleInput) (req * // See the AWS API reference guide for AWS WAF's // API operation DeleteRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2390,7 +2390,7 @@ func (c *WAF) DeleteRateBasedRuleRequest(input *DeleteRateBasedRuleInput) (req * // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2404,9 +2404,9 @@ func (c *WAF) DeleteRateBasedRuleRequest(input *DeleteRateBasedRuleInput) (req * // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRateBasedRule func (c *WAF) DeleteRateBasedRule(input *DeleteRateBasedRuleInput) (*DeleteRateBasedRuleOutput, error) { @@ -2497,19 +2497,19 @@ func (c *WAF) DeleteRegexMatchSetRequest(input *DeleteRegexMatchSetInput) (req * // See the AWS API reference guide for AWS WAF's // API operation DeleteRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2517,11 +2517,11 @@ func (c *WAF) DeleteRegexMatchSetRequest(input *DeleteRegexMatchSetInput) (req * // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2612,19 +2612,19 @@ func (c *WAF) DeleteRegexPatternSetRequest(input *DeleteRegexPatternSetInput) (r // See the AWS API reference guide for AWS WAF's // API operation DeleteRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2632,11 +2632,11 @@ func (c *WAF) DeleteRegexPatternSetRequest(input *DeleteRegexPatternSetInput) (r // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2738,23 +2738,23 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // See the AWS API reference guide for AWS WAF's // API operation DeleteRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2762,7 +2762,7 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2776,9 +2776,9 @@ func (c *WAF) DeleteRuleRequest(input *DeleteRuleInput) (req *request.Request, o // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRule func (c *WAF) DeleteRule(input *DeleteRuleInput) (*DeleteRuleOutput, error) { @@ -2867,19 +2867,19 @@ func (c *WAF) DeleteRuleGroupRequest(input *DeleteRuleGroupInput) (req *request. // See the AWS API reference guide for AWS WAF's // API operation DeleteRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2887,7 +2887,7 @@ func (c *WAF) DeleteRuleGroupRequest(input *DeleteRuleGroupInput) (req *request. // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2901,7 +2901,7 @@ func (c *WAF) DeleteRuleGroupRequest(input *DeleteRuleGroupInput) (req *request. // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -2919,9 +2919,9 @@ func (c *WAF) DeleteRuleGroupRequest(input *DeleteRuleGroupInput) (req *request. // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRuleGroup func (c *WAF) DeleteRuleGroup(input *DeleteRuleGroupInput) (*DeleteRuleGroupOutput, error) { @@ -3012,23 +3012,23 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // See the AWS API reference guide for AWS WAF's // API operation DeleteSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3036,7 +3036,7 @@ func (c *WAF) DeleteSizeConstraintSetRequest(input *DeleteSizeConstraintSetInput // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3140,19 +3140,19 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // See the AWS API reference guide for AWS WAF's // API operation DeleteSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3160,11 +3160,11 @@ func (c *WAF) DeleteSqlInjectionMatchSetRequest(input *DeleteSqlInjectionMatchSe // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3263,23 +3263,23 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // See the AWS API reference guide for AWS WAF's // API operation DeleteWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3287,7 +3287,7 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3301,9 +3301,9 @@ func (c *WAF) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Reques // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteWebACL func (c *WAF) DeleteWebACL(input *DeleteWebACLInput) (*DeleteWebACLOutput, error) { @@ -3394,19 +3394,19 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // See the AWS API reference guide for AWS WAF's // API operation DeleteXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3414,11 +3414,11 @@ func (c *WAF) DeleteXssMatchSetRequest(input *DeleteXssMatchSetInput) (req *requ // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeNonEmptyEntityException "WAFNonEmptyEntityException" +// * NonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3507,16 +3507,16 @@ func (c *WAF) GetByteMatchSetRequest(input *GetByteMatchSetInput) (req *request. // See the AWS API reference guide for AWS WAF's // API operation GetByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetByteMatchSet @@ -3608,8 +3608,8 @@ func (c *WAF) GetChangeTokenRequest(input *GetChangeTokenInput) (req *request.Re // See the AWS API reference guide for AWS WAF's // API operation GetChangeToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -3698,11 +3698,11 @@ func (c *WAF) GetChangeTokenStatusRequest(input *GetChangeTokenStatusInput) (req // See the AWS API reference guide for AWS WAF's // API operation GetChangeTokenStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// Returned Error Types: +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -3781,16 +3781,16 @@ func (c *WAF) GetGeoMatchSetRequest(input *GetGeoMatchSetInput) (req *request.Re // See the AWS API reference guide for AWS WAF's // API operation GetGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetGeoMatchSet @@ -3868,16 +3868,16 @@ func (c *WAF) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, outpu // See the AWS API reference guide for AWS WAF's // API operation GetIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSet @@ -3955,12 +3955,12 @@ func (c *WAF) GetLoggingConfigurationRequest(input *GetLoggingConfigurationInput // See the AWS API reference guide for AWS WAF's // API operation GetLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetLoggingConfiguration @@ -4038,12 +4038,12 @@ func (c *WAF) GetPermissionPolicyRequest(input *GetPermissionPolicyInput) (req * // See the AWS API reference guide for AWS WAF's // API operation GetPermissionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetPermissionPolicy @@ -4122,16 +4122,16 @@ func (c *WAF) GetRateBasedRuleRequest(input *GetRateBasedRuleInput) (req *reques // See the AWS API reference guide for AWS WAF's // API operation GetRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRateBasedRule @@ -4212,19 +4212,19 @@ func (c *WAF) GetRateBasedRuleManagedKeysRequest(input *GetRateBasedRuleManagedK // See the AWS API reference guide for AWS WAF's // API operation GetRateBasedRuleManagedKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -4328,16 +4328,16 @@ func (c *WAF) GetRegexMatchSetRequest(input *GetRegexMatchSetInput) (req *reques // See the AWS API reference guide for AWS WAF's // API operation GetRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRegexMatchSet @@ -4415,16 +4415,16 @@ func (c *WAF) GetRegexPatternSetRequest(input *GetRegexPatternSetInput) (req *re // See the AWS API reference guide for AWS WAF's // API operation GetRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRegexPatternSet @@ -4503,16 +4503,16 @@ func (c *WAF) GetRuleRequest(input *GetRuleInput) (req *request.Request, output // See the AWS API reference guide for AWS WAF's // API operation GetRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRule @@ -4593,12 +4593,12 @@ func (c *WAF) GetRuleGroupRequest(input *GetRuleGroupInput) (req *request.Reques // See the AWS API reference guide for AWS WAF's // API operation GetRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRuleGroup @@ -4686,11 +4686,11 @@ func (c *WAF) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req *re // See the AWS API reference guide for AWS WAF's // API operation GetSampledRequests for usage and error information. // -// Returned Error Codes: -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// Returned Error Types: +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -4769,16 +4769,16 @@ func (c *WAF) GetSizeConstraintSetRequest(input *GetSizeConstraintSetInput) (req // See the AWS API reference guide for AWS WAF's // API operation GetSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSizeConstraintSet @@ -4856,16 +4856,16 @@ func (c *WAF) GetSqlInjectionMatchSetRequest(input *GetSqlInjectionMatchSetInput // See the AWS API reference guide for AWS WAF's // API operation GetSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSqlInjectionMatchSet @@ -4943,16 +4943,16 @@ func (c *WAF) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, out // See the AWS API reference guide for AWS WAF's // API operation GetWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACL @@ -5030,16 +5030,16 @@ func (c *WAF) GetXssMatchSetRequest(input *GetXssMatchSetInput) (req *request.Re // See the AWS API reference guide for AWS WAF's // API operation GetXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetXssMatchSet @@ -5117,15 +5117,15 @@ func (c *WAF) ListActivatedRulesInRuleGroupRequest(input *ListActivatedRulesInRu // See the AWS API reference guide for AWS WAF's // API operation ListActivatedRulesInRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -5229,12 +5229,12 @@ func (c *WAF) ListByteMatchSetsRequest(input *ListByteMatchSetsInput) (req *requ // See the AWS API reference guide for AWS WAF's // API operation ListByteMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5313,12 +5313,12 @@ func (c *WAF) ListGeoMatchSetsRequest(input *ListGeoMatchSetsInput) (req *reques // See the AWS API reference guide for AWS WAF's // API operation ListGeoMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5397,12 +5397,12 @@ func (c *WAF) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request, o // See the AWS API reference guide for AWS WAF's // API operation ListIPSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5481,15 +5481,15 @@ func (c *WAF) ListLoggingConfigurationsRequest(input *ListLoggingConfigurationsI // See the AWS API reference guide for AWS WAF's // API operation ListLoggingConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -5593,12 +5593,12 @@ func (c *WAF) ListRateBasedRulesRequest(input *ListRateBasedRulesInput) (req *re // See the AWS API reference guide for AWS WAF's // API operation ListRateBasedRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5677,12 +5677,12 @@ func (c *WAF) ListRegexMatchSetsRequest(input *ListRegexMatchSetsInput) (req *re // See the AWS API reference guide for AWS WAF's // API operation ListRegexMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5761,12 +5761,12 @@ func (c *WAF) ListRegexPatternSetsRequest(input *ListRegexPatternSetsInput) (req // See the AWS API reference guide for AWS WAF's // API operation ListRegexPatternSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5845,8 +5845,8 @@ func (c *WAF) ListRuleGroupsRequest(input *ListRuleGroupsInput) (req *request.Re // See the AWS API reference guide for AWS WAF's // API operation ListRuleGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -5925,12 +5925,12 @@ func (c *WAF) ListRulesRequest(input *ListRulesInput) (req *request.Request, out // See the AWS API reference guide for AWS WAF's // API operation ListRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6009,12 +6009,12 @@ func (c *WAF) ListSizeConstraintSetsRequest(input *ListSizeConstraintSetsInput) // See the AWS API reference guide for AWS WAF's // API operation ListSizeConstraintSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6093,12 +6093,12 @@ func (c *WAF) ListSqlInjectionMatchSetsRequest(input *ListSqlInjectionMatchSetsI // See the AWS API reference guide for AWS WAF's // API operation ListSqlInjectionMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6177,11 +6177,11 @@ func (c *WAF) ListSubscribedRuleGroupsRequest(input *ListSubscribedRuleGroupsInp // See the AWS API reference guide for AWS WAF's // API operation ListSubscribedRuleGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// Returned Error Types: +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -6258,12 +6258,12 @@ func (c *WAF) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // See the AWS API reference guide for AWS WAF's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -6292,14 +6292,14 @@ func (c *WAF) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req * // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeBadRequestException "WAFBadRequestException" +// * BadRequestException // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListTagsForResource func (c *WAF) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { @@ -6376,12 +6376,12 @@ func (c *WAF) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Request, // See the AWS API reference guide for AWS WAF's // API operation ListWebACLs for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6460,12 +6460,12 @@ func (c *WAF) ListXssMatchSetsRequest(input *ListXssMatchSetsInput) (req *reques // See the AWS API reference guide for AWS WAF's // API operation ListXssMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6563,19 +6563,19 @@ func (c *WAF) PutLoggingConfigurationRequest(input *PutLoggingConfigurationInput // See the AWS API reference guide for AWS WAF's // API operation PutLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeServiceLinkedRoleErrorException "WAFServiceLinkedRoleErrorException" +// * ServiceLinkedRoleErrorException // AWS WAF is not able to access the service linked role. This can be caused // by a previous PutLoggingConfiguration request, which can lock the service // linked role for about 20 seconds. Please try your request again. The service @@ -6687,19 +6687,19 @@ func (c *WAF) PutPermissionPolicyRequest(input *PutPermissionPolicyInput) (req * // See the AWS API reference guide for AWS WAF's // API operation PutPermissionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInvalidPermissionPolicyException "WAFInvalidPermissionPolicyException" +// * InvalidPermissionPolicyException // The operation failed because the specified policy is not in the proper format. // // The policy is subject to the following restrictions: @@ -6797,12 +6797,12 @@ func (c *WAF) TagResourceRequest(input *TagResourceInput) (req *request.Request, // See the AWS API reference guide for AWS WAF's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -6831,20 +6831,20 @@ func (c *WAF) TagResourceRequest(input *TagResourceInput) (req *request.Request, // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeBadRequestException "WAFBadRequestException" +// * BadRequestException // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/TagResource func (c *WAF) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { @@ -6920,12 +6920,12 @@ func (c *WAF) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // See the AWS API reference guide for AWS WAF's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -6954,14 +6954,14 @@ func (c *WAF) UntagResourceRequest(input *UntagResourceInput) (req *request.Requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeBadRequestException "WAFBadRequestException" +// * BadRequestException // -// * ErrCodeTagOperationException "WAFTagOperationException" +// * TagOperationException // -// * ErrCodeTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * TagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UntagResource func (c *WAF) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { @@ -7074,16 +7074,16 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // See the AWS API reference guide for AWS WAF's // API operation UpdateByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7101,7 +7101,7 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7130,7 +7130,7 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -7146,14 +7146,14 @@ func (c *WAF) UpdateByteMatchSetRequest(input *UpdateByteMatchSetInput) (req *re // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -7261,20 +7261,20 @@ func (c *WAF) UpdateGeoMatchSetRequest(input *UpdateGeoMatchSetInput) (req *requ // See the AWS API reference guide for AWS WAF's // API operation UpdateGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7292,7 +7292,7 @@ func (c *WAF) UpdateGeoMatchSetRequest(input *UpdateGeoMatchSetInput) (req *requ // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7321,7 +7321,7 @@ func (c *WAF) UpdateGeoMatchSetRequest(input *UpdateGeoMatchSetInput) (req *requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -7337,10 +7337,10 @@ func (c *WAF) UpdateGeoMatchSetRequest(input *UpdateGeoMatchSetInput) (req *requ // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -7348,7 +7348,7 @@ func (c *WAF) UpdateGeoMatchSetRequest(input *UpdateGeoMatchSetInput) (req *requ // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -7480,20 +7480,20 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // See the AWS API reference guide for AWS WAF's // API operation UpdateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7511,7 +7511,7 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7540,7 +7540,7 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -7556,10 +7556,10 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -7567,7 +7567,7 @@ func (c *WAF) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Request, // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -7685,20 +7685,20 @@ func (c *WAF) UpdateRateBasedRuleRequest(input *UpdateRateBasedRuleInput) (req * // See the AWS API reference guide for AWS WAF's // API operation UpdateRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7716,7 +7716,7 @@ func (c *WAF) UpdateRateBasedRuleRequest(input *UpdateRateBasedRuleInput) (req * // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7745,7 +7745,7 @@ func (c *WAF) UpdateRateBasedRuleRequest(input *UpdateRateBasedRuleInput) (req * // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -7761,10 +7761,10 @@ func (c *WAF) UpdateRateBasedRuleRequest(input *UpdateRateBasedRuleInput) (req * // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -7772,7 +7772,7 @@ func (c *WAF) UpdateRateBasedRuleRequest(input *UpdateRateBasedRuleInput) (req * // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -7886,28 +7886,28 @@ func (c *WAF) UpdateRegexMatchSetRequest(input *UpdateRegexMatchSetInput) (req * // See the AWS API reference guide for AWS WAF's // API operation UpdateRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeDisallowedNameException "WAFDisallowedNameException" +// * DisallowedNameException // The name specified is invalid. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -7923,7 +7923,7 @@ func (c *WAF) UpdateRegexMatchSetRequest(input *UpdateRegexMatchSetInput) (req * // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7941,7 +7941,7 @@ func (c *WAF) UpdateRegexMatchSetRequest(input *UpdateRegexMatchSetInput) (req * // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -8050,25 +8050,25 @@ func (c *WAF) UpdateRegexPatternSetRequest(input *UpdateRegexPatternSetInput) (r // See the AWS API reference guide for AWS WAF's // API operation UpdateRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8084,7 +8084,7 @@ func (c *WAF) UpdateRegexPatternSetRequest(input *UpdateRegexPatternSetInput) (r // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8102,11 +8102,11 @@ func (c *WAF) UpdateRegexPatternSetRequest(input *UpdateRegexPatternSetInput) (r // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidRegexPatternException "WAFInvalidRegexPatternException" +// * InvalidRegexPatternException // The regular expression (regex) you specified in RegexPatternString is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRegexPatternSet @@ -8217,20 +8217,20 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // See the AWS API reference guide for AWS WAF's // API operation UpdateRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8248,7 +8248,7 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -8277,7 +8277,7 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8293,10 +8293,10 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -8304,7 +8304,7 @@ func (c *WAF) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, o // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -8407,16 +8407,16 @@ func (c *WAF) UpdateRuleGroupRequest(input *UpdateRuleGroupInput) (req *request. // See the AWS API reference guide for AWS WAF's // API operation UpdateRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8432,10 +8432,10 @@ func (c *WAF) UpdateRuleGroupRequest(input *UpdateRuleGroupInput) (req *request. // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8453,13 +8453,13 @@ func (c *WAF) UpdateRuleGroupRequest(input *UpdateRuleGroupInput) (req *request. // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -8602,20 +8602,20 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // See the AWS API reference guide for AWS WAF's // API operation UpdateSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8633,7 +8633,7 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -8662,7 +8662,7 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8678,10 +8678,10 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -8689,7 +8689,7 @@ func (c *WAF) UpdateSizeConstraintSetRequest(input *UpdateSizeConstraintSetInput // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -8802,16 +8802,16 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // See the AWS API reference guide for AWS WAF's // API operation UpdateSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8829,7 +8829,7 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -8858,7 +8858,7 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8874,14 +8874,14 @@ func (c *WAF) UpdateSqlInjectionMatchSetRequest(input *UpdateSqlInjectionMatchSe // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -9017,20 +9017,20 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // See the AWS API reference guide for AWS WAF's // API operation UpdateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -9048,7 +9048,7 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -9077,7 +9077,7 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -9093,10 +9093,10 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeReferencedItemException "WAFReferencedItemException" +// * ReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -9104,13 +9104,13 @@ func (c *WAF) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Reques // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeSubscriptionNotFoundException "WAFSubscriptionNotFoundException" +// * SubscriptionNotFoundException // The specified subscription does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateWebACL @@ -9220,16 +9220,16 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // See the AWS API reference guide for AWS WAF's // API operation UpdateXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * InternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeInvalidAccountException "WAFInvalidAccountException" +// * InvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeInvalidOperationException "WAFInvalidOperationException" +// * InvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -9247,7 +9247,7 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeInvalidParameterException "WAFInvalidParameterException" +// * InvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -9276,7 +9276,7 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeNonexistentContainerException "WAFNonexistentContainerException" +// * NonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -9292,14 +9292,14 @@ func (c *WAF) UpdateXssMatchSetRequest(input *UpdateXssMatchSetInput) (req *requ // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeNonexistentItemException "WAFNonexistentItemException" +// * NonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeStaleDataException "WAFStaleDataException" +// * StaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeLimitsExceededException "WAFLimitsExceededException" +// * LimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -9516,6 +9516,61 @@ func (s *ActivatedRule) SetType(v string) *ActivatedRule { return s } +type BadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s BadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s BadRequestException) GoString() string { + return s.String() +} + +func newErrorBadRequestException(v protocol.ResponseMetadata) error { + return &BadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s BadRequestException) Code() string { + return "WAFBadRequestException" +} + +// Message returns the exception's message. +func (s BadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s BadRequestException) OrigErr() error { + return nil +} + +func (s BadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s BadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s BadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + // In a GetByteMatchSet request, ByteMatchSet is a complex type that contains // the ByteMatchSetId and Name of a ByteMatchSet, and the values that you specified // when you updated the ByteMatchSet. @@ -12405,6 +12460,62 @@ func (s *DeleteXssMatchSetOutput) SetChangeToken(v string) *DeleteXssMatchSetOut return s } +// The name specified is invalid. +type DisallowedNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s DisallowedNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DisallowedNameException) GoString() string { + return s.String() +} + +func newErrorDisallowedNameException(v protocol.ResponseMetadata) error { + return &DisallowedNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DisallowedNameException) Code() string { + return "WAFDisallowedNameException" +} + +// Message returns the exception's message. +func (s DisallowedNameException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DisallowedNameException) OrigErr() error { + return nil +} + +func (s DisallowedNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DisallowedNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DisallowedNameException) RequestID() string { + return s.respMetadata.RequestID +} + // The rule to exclude from a rule group. This is applicable only when the ActivatedRule // refers to a RuleGroup. The rule must belong to the RuleGroup that is specified // by the ActivatedRule. @@ -14418,257 +14529,712 @@ func (s *IPSetUpdate) SetIPSetDescriptor(v *IPSetDescriptor) *IPSetUpdate { return s } -type ListActivatedRulesInRuleGroupInput struct { - _ struct{} `type:"structure"` - - // Specifies the number of ActivatedRules that you want AWS WAF to return for - // this request. If you have more ActivatedRules than the number that you specify - // for Limit, the response includes a NextMarker value that you can use to get - // another batch of ActivatedRules. - Limit *int64 `type:"integer"` - - // If you specify a value for Limit and you have more ActivatedRules than the - // value of Limit, AWS WAF returns a NextMarker value in the response that allows - // you to list another group of ActivatedRules. For the second and subsequent - // ListActivatedRulesInRuleGroup requests, specify the value of NextMarker from - // the previous response to get information about another batch of ActivatedRules. - NextMarker *string `min:"1" type:"string"` +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +type InternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // The RuleGroupId of the RuleGroup for which you want to get a list of ActivatedRule - // objects. - RuleGroupId *string `min:"1" type:"string"` + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ListActivatedRulesInRuleGroupInput) String() string { +func (s InternalErrorException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListActivatedRulesInRuleGroupInput) GoString() string { +func (s InternalErrorException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListActivatedRulesInRuleGroupInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListActivatedRulesInRuleGroupInput"} - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - if s.RuleGroupId != nil && len(*s.RuleGroupId) < 1 { - invalidParams.Add(request.NewErrParamMinLen("RuleGroupId", 1)) +func newErrorInternalErrorException(v protocol.ResponseMetadata) error { + return &InternalErrorException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InternalErrorException) Code() string { + return "WAFInternalErrorException" } -// SetLimit sets the Limit field's value. -func (s *ListActivatedRulesInRuleGroupInput) SetLimit(v int64) *ListActivatedRulesInRuleGroupInput { - s.Limit = &v - return s +// Message returns the exception's message. +func (s InternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -// SetNextMarker sets the NextMarker field's value. -func (s *ListActivatedRulesInRuleGroupInput) SetNextMarker(v string) *ListActivatedRulesInRuleGroupInput { - s.NextMarker = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalErrorException) OrigErr() error { + return nil } -// SetRuleGroupId sets the RuleGroupId field's value. -func (s *ListActivatedRulesInRuleGroupInput) SetRuleGroupId(v string) *ListActivatedRulesInRuleGroupInput { - s.RuleGroupId = &v - return s +func (s InternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -type ListActivatedRulesInRuleGroupOutput struct { - _ struct{} `type:"structure"` +// Status code returns the HTTP status code for the request's response error. +func (s InternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} - // An array of ActivatedRules objects. - ActivatedRules []*ActivatedRule `type:"list"` +// RequestID returns the service's response RequestID for request. +func (s InternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} - // If you have more ActivatedRules than the number that you specified for Limit - // in the request, the response includes a NextMarker value. To list more ActivatedRules, - // submit another ListActivatedRulesInRuleGroup request, and specify the NextMarker - // value from the response in the NextMarker value in the next request. - NextMarker *string `min:"1" type:"string"` +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +type InvalidAccountException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata } // String returns the string representation -func (s ListActivatedRulesInRuleGroupOutput) String() string { +func (s InvalidAccountException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListActivatedRulesInRuleGroupOutput) GoString() string { +func (s InvalidAccountException) GoString() string { return s.String() } -// SetActivatedRules sets the ActivatedRules field's value. -func (s *ListActivatedRulesInRuleGroupOutput) SetActivatedRules(v []*ActivatedRule) *ListActivatedRulesInRuleGroupOutput { - s.ActivatedRules = v - return s +func newErrorInvalidAccountException(v protocol.ResponseMetadata) error { + return &InvalidAccountException{ + respMetadata: v, + } } -// SetNextMarker sets the NextMarker field's value. -func (s *ListActivatedRulesInRuleGroupOutput) SetNextMarker(v string) *ListActivatedRulesInRuleGroupOutput { - s.NextMarker = &v - return s +// Code returns the exception type name. +func (s InvalidAccountException) Code() string { + return "WAFInvalidAccountException" } -type ListByteMatchSetsInput struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s InvalidAccountException) Message() string { + return "" +} - // Specifies the number of ByteMatchSet objects that you want AWS WAF to return - // for this request. If you have more ByteMatchSets objects than the number - // you specify for Limit, the response includes a NextMarker value that you - // can use to get another batch of ByteMatchSet objects. - Limit *int64 `type:"integer"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidAccountException) OrigErr() error { + return nil +} - // If you specify a value for Limit and you have more ByteMatchSets than the - // value of Limit, AWS WAF returns a NextMarker value in the response that allows - // you to list another group of ByteMatchSets. For the second and subsequent - // ListByteMatchSets requests, specify the value of NextMarker from the previous - // response to get information about another batch of ByteMatchSets. - NextMarker *string `min:"1" type:"string"` +func (s InvalidAccountException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidAccountException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidAccountException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +type InvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ListByteMatchSetsInput) String() string { +func (s InvalidOperationException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListByteMatchSetsInput) GoString() string { +func (s InvalidOperationException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListByteMatchSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListByteMatchSetsInput"} - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) - } - - if invalidParams.Len() > 0 { - return invalidParams +func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { + return &InvalidOperationException{ + respMetadata: v, } - return nil } -// SetLimit sets the Limit field's value. -func (s *ListByteMatchSetsInput) SetLimit(v int64) *ListByteMatchSetsInput { - s.Limit = &v - return s +// Code returns the exception type name. +func (s InvalidOperationException) Code() string { + return "WAFInvalidOperationException" } -// SetNextMarker sets the NextMarker field's value. -func (s *ListByteMatchSetsInput) SetNextMarker(v string) *ListByteMatchSetsInput { - s.NextMarker = &v - return s +// Message returns the exception's message. +func (s InvalidOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" } -type ListByteMatchSetsOutput struct { - _ struct{} `type:"structure"` - - // An array of ByteMatchSetSummary objects. - ByteMatchSets []*ByteMatchSetSummary `type:"list"` - - // If you have more ByteMatchSet objects than the number that you specified - // for Limit in the request, the response includes a NextMarker value. To list - // more ByteMatchSet objects, submit another ListByteMatchSets request, and - // specify the NextMarker value from the response in the NextMarker value in - // the next request. - NextMarker *string `min:"1" type:"string"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOperationException) OrigErr() error { + return nil } -// String returns the string representation -func (s ListByteMatchSetsOutput) String() string { - return awsutil.Prettify(s) +func (s InvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// GoString returns the string representation -func (s ListByteMatchSetsOutput) GoString() string { - return s.String() +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetByteMatchSets sets the ByteMatchSets field's value. -func (s *ListByteMatchSetsOutput) SetByteMatchSets(v []*ByteMatchSetSummary) *ListByteMatchSetsOutput { - s.ByteMatchSets = v - return s +// RequestID returns the service's response RequestID for request. +func (s InvalidOperationException) RequestID() string { + return s.respMetadata.RequestID } -// SetNextMarker sets the NextMarker field's value. -func (s *ListByteMatchSetsOutput) SetNextMarker(v string) *ListByteMatchSetsOutput { - s.NextMarker = &v - return s -} +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to create a RateBasedRule with a RateKey value other than +// IP. +// +// * You tried to update a WebACL with a WafAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, METHOD, QUERY_STRING, URI, or BODY. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata -type ListGeoMatchSetsInput struct { - _ struct{} `type:"structure"` + Field *string `locationName:"field" type:"string" enum:"ParameterExceptionField"` - // Specifies the number of GeoMatchSet objects that you want AWS WAF to return - // for this request. If you have more GeoMatchSet objects than the number you - // specify for Limit, the response includes a NextMarker value that you can - // use to get another batch of GeoMatchSet objects. - Limit *int64 `type:"integer"` + Parameter *string `locationName:"parameter" min:"1" type:"string"` - // If you specify a value for Limit and you have more GeoMatchSets than the - // value of Limit, AWS WAF returns a NextMarker value in the response that allows - // you to list another group of GeoMatchSet objects. For the second and subsequent - // ListGeoMatchSets requests, specify the value of NextMarker from the previous - // response to get information about another batch of GeoMatchSet objects. - NextMarker *string `min:"1" type:"string"` + Reason *string `locationName:"reason" type:"string" enum:"ParameterExceptionReason"` } // String returns the string representation -func (s ListGeoMatchSetsInput) String() string { +func (s InvalidParameterException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListGeoMatchSetsInput) GoString() string { +func (s InvalidParameterException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *ListGeoMatchSetsInput) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "ListGeoMatchSetsInput"} - if s.NextMarker != nil && len(*s.NextMarker) < 1 { - invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams - } - return nil +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "WAFInvalidParameterException" } -// SetLimit sets the Limit field's value. -func (s *ListGeoMatchSetsInput) SetLimit(v int64) *ListGeoMatchSetsInput { - s.Limit = &v - return s +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + return "" } -// SetNextMarker sets the NextMarker field's value. -func (s *ListGeoMatchSetsInput) SetNextMarker(v string) *ListGeoMatchSetsInput { - s.NextMarker = &v - return s +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil } -type ListGeoMatchSetsOutput struct { - _ struct{} `type:"structure"` +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} - // An array of GeoMatchSetSummary objects. - GeoMatchSets []*GeoMatchSetSummary `type:"list"` +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} - // If you have more GeoMatchSet objects than the number that you specified for - // Limit in the request, the response includes a NextMarker value. To list more - // GeoMatchSet objects, submit another ListGeoMatchSets request, and specify - // the NextMarker value from the response in the NextMarker value in the next - // request. +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because the specified policy is not in the proper format. +// +// The policy is subject to the following restrictions: +// +// * You can attach only one policy with each PutPermissionPolicy request. +// +// * The policy must include an Effect, Action and Principal. +// +// * Effect must specify Allow. +// +// * The Action in the policy must be waf:UpdateWebACL, waf-regional:UpdateWebACL, +// waf:GetRuleGroup and waf-regional:GetRuleGroup . Any extra or wildcard +// actions in the policy will be rejected. +// +// * The policy cannot include a Resource parameter. +// +// * The ARN in the request must be a valid WAF RuleGroup ARN and the RuleGroup +// must exist in the same region. +// +// * The user making the request must be the owner of the RuleGroup. +// +// * Your policy must be composed using IAM Policy version 2012-10-17. +type InvalidPermissionPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidPermissionPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPermissionPolicyException) GoString() string { + return s.String() +} + +func newErrorInvalidPermissionPolicyException(v protocol.ResponseMetadata) error { + return &InvalidPermissionPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPermissionPolicyException) Code() string { + return "WAFInvalidPermissionPolicyException" +} + +// Message returns the exception's message. +func (s InvalidPermissionPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPermissionPolicyException) OrigErr() error { + return nil +} + +func (s InvalidPermissionPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPermissionPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPermissionPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The regular expression (regex) you specified in RegexPatternString is invalid. +type InvalidRegexPatternException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidRegexPatternException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRegexPatternException) GoString() string { + return s.String() +} + +func newErrorInvalidRegexPatternException(v protocol.ResponseMetadata) error { + return &InvalidRegexPatternException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRegexPatternException) Code() string { + return "WAFInvalidRegexPatternException" +} + +// Message returns the exception's message. +func (s InvalidRegexPatternException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRegexPatternException) OrigErr() error { + return nil +} + +func (s InvalidRegexPatternException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRegexPatternException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRegexPatternException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +type LimitsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s LimitsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitsExceededException) GoString() string { + return s.String() +} + +func newErrorLimitsExceededException(v protocol.ResponseMetadata) error { + return &LimitsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitsExceededException) Code() string { + return "WAFLimitsExceededException" +} + +// Message returns the exception's message. +func (s LimitsExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitsExceededException) OrigErr() error { + return nil +} + +func (s LimitsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +type ListActivatedRulesInRuleGroupInput struct { + _ struct{} `type:"structure"` + + // Specifies the number of ActivatedRules that you want AWS WAF to return for + // this request. If you have more ActivatedRules than the number that you specify + // for Limit, the response includes a NextMarker value that you can use to get + // another batch of ActivatedRules. + Limit *int64 `type:"integer"` + + // If you specify a value for Limit and you have more ActivatedRules than the + // value of Limit, AWS WAF returns a NextMarker value in the response that allows + // you to list another group of ActivatedRules. For the second and subsequent + // ListActivatedRulesInRuleGroup requests, specify the value of NextMarker from + // the previous response to get information about another batch of ActivatedRules. + NextMarker *string `min:"1" type:"string"` + + // The RuleGroupId of the RuleGroup for which you want to get a list of ActivatedRule + // objects. + RuleGroupId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListActivatedRulesInRuleGroupInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListActivatedRulesInRuleGroupInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListActivatedRulesInRuleGroupInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListActivatedRulesInRuleGroupInput"} + if s.NextMarker != nil && len(*s.NextMarker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) + } + if s.RuleGroupId != nil && len(*s.RuleGroupId) < 1 { + invalidParams.Add(request.NewErrParamMinLen("RuleGroupId", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListActivatedRulesInRuleGroupInput) SetLimit(v int64) *ListActivatedRulesInRuleGroupInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListActivatedRulesInRuleGroupInput) SetNextMarker(v string) *ListActivatedRulesInRuleGroupInput { + s.NextMarker = &v + return s +} + +// SetRuleGroupId sets the RuleGroupId field's value. +func (s *ListActivatedRulesInRuleGroupInput) SetRuleGroupId(v string) *ListActivatedRulesInRuleGroupInput { + s.RuleGroupId = &v + return s +} + +type ListActivatedRulesInRuleGroupOutput struct { + _ struct{} `type:"structure"` + + // An array of ActivatedRules objects. + ActivatedRules []*ActivatedRule `type:"list"` + + // If you have more ActivatedRules than the number that you specified for Limit + // in the request, the response includes a NextMarker value. To list more ActivatedRules, + // submit another ListActivatedRulesInRuleGroup request, and specify the NextMarker + // value from the response in the NextMarker value in the next request. + NextMarker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListActivatedRulesInRuleGroupOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListActivatedRulesInRuleGroupOutput) GoString() string { + return s.String() +} + +// SetActivatedRules sets the ActivatedRules field's value. +func (s *ListActivatedRulesInRuleGroupOutput) SetActivatedRules(v []*ActivatedRule) *ListActivatedRulesInRuleGroupOutput { + s.ActivatedRules = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListActivatedRulesInRuleGroupOutput) SetNextMarker(v string) *ListActivatedRulesInRuleGroupOutput { + s.NextMarker = &v + return s +} + +type ListByteMatchSetsInput struct { + _ struct{} `type:"structure"` + + // Specifies the number of ByteMatchSet objects that you want AWS WAF to return + // for this request. If you have more ByteMatchSets objects than the number + // you specify for Limit, the response includes a NextMarker value that you + // can use to get another batch of ByteMatchSet objects. + Limit *int64 `type:"integer"` + + // If you specify a value for Limit and you have more ByteMatchSets than the + // value of Limit, AWS WAF returns a NextMarker value in the response that allows + // you to list another group of ByteMatchSets. For the second and subsequent + // ListByteMatchSets requests, specify the value of NextMarker from the previous + // response to get information about another batch of ByteMatchSets. + NextMarker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListByteMatchSetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListByteMatchSetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListByteMatchSetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListByteMatchSetsInput"} + if s.NextMarker != nil && len(*s.NextMarker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListByteMatchSetsInput) SetLimit(v int64) *ListByteMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListByteMatchSetsInput) SetNextMarker(v string) *ListByteMatchSetsInput { + s.NextMarker = &v + return s +} + +type ListByteMatchSetsOutput struct { + _ struct{} `type:"structure"` + + // An array of ByteMatchSetSummary objects. + ByteMatchSets []*ByteMatchSetSummary `type:"list"` + + // If you have more ByteMatchSet objects than the number that you specified + // for Limit in the request, the response includes a NextMarker value. To list + // more ByteMatchSet objects, submit another ListByteMatchSets request, and + // specify the NextMarker value from the response in the NextMarker value in + // the next request. + NextMarker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListByteMatchSetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListByteMatchSetsOutput) GoString() string { + return s.String() +} + +// SetByteMatchSets sets the ByteMatchSets field's value. +func (s *ListByteMatchSetsOutput) SetByteMatchSets(v []*ByteMatchSetSummary) *ListByteMatchSetsOutput { + s.ByteMatchSets = v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListByteMatchSetsOutput) SetNextMarker(v string) *ListByteMatchSetsOutput { + s.NextMarker = &v + return s +} + +type ListGeoMatchSetsInput struct { + _ struct{} `type:"structure"` + + // Specifies the number of GeoMatchSet objects that you want AWS WAF to return + // for this request. If you have more GeoMatchSet objects than the number you + // specify for Limit, the response includes a NextMarker value that you can + // use to get another batch of GeoMatchSet objects. + Limit *int64 `type:"integer"` + + // If you specify a value for Limit and you have more GeoMatchSets than the + // value of Limit, AWS WAF returns a NextMarker value in the response that allows + // you to list another group of GeoMatchSet objects. For the second and subsequent + // ListGeoMatchSets requests, specify the value of NextMarker from the previous + // response to get information about another batch of GeoMatchSet objects. + NextMarker *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ListGeoMatchSetsInput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListGeoMatchSetsInput) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *ListGeoMatchSetsInput) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "ListGeoMatchSetsInput"} + if s.NextMarker != nil && len(*s.NextMarker) < 1 { + invalidParams.Add(request.NewErrParamMinLen("NextMarker", 1)) + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLimit sets the Limit field's value. +func (s *ListGeoMatchSetsInput) SetLimit(v int64) *ListGeoMatchSetsInput { + s.Limit = &v + return s +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListGeoMatchSetsInput) SetNextMarker(v string) *ListGeoMatchSetsInput { + s.NextMarker = &v + return s +} + +type ListGeoMatchSetsOutput struct { + _ struct{} `type:"structure"` + + // An array of GeoMatchSetSummary objects. + GeoMatchSets []*GeoMatchSetSummary `type:"list"` + + // If you have more GeoMatchSet objects than the number that you specified for + // Limit in the request, the response includes a NextMarker value. To list more + // GeoMatchSet objects, submit another ListGeoMatchSets request, and specify + // the NextMarker value from the response in the NextMarker value in the next + // request. NextMarker *string `min:"1" type:"string"` } @@ -15810,112 +16376,304 @@ type ListXssMatchSetsOutput struct { // request. NextMarker *string `min:"1" type:"string"` - // An array of XssMatchSetSummary objects. - XssMatchSets []*XssMatchSetSummary `type:"list"` + // An array of XssMatchSetSummary objects. + XssMatchSets []*XssMatchSetSummary `type:"list"` +} + +// String returns the string representation +func (s ListXssMatchSetsOutput) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ListXssMatchSetsOutput) GoString() string { + return s.String() +} + +// SetNextMarker sets the NextMarker field's value. +func (s *ListXssMatchSetsOutput) SetNextMarker(v string) *ListXssMatchSetsOutput { + s.NextMarker = &v + return s +} + +// SetXssMatchSets sets the XssMatchSets field's value. +func (s *ListXssMatchSetsOutput) SetXssMatchSets(v []*XssMatchSetSummary) *ListXssMatchSetsOutput { + s.XssMatchSets = v + return s +} + +// The Amazon Kinesis Data Firehose, RedactedFields information, and the web +// ACL Amazon Resource Name (ARN). +type LoggingConfiguration struct { + _ struct{} `type:"structure"` + + // An array of Amazon Kinesis Data Firehose ARNs. + // + // LogDestinationConfigs is a required field + LogDestinationConfigs []*string `min:"1" type:"list" required:"true"` + + // The parts of the request that you want redacted from the logs. For example, + // if you redact the cookie field, the cookie field in the firehose will be + // xxx. + RedactedFields []*FieldToMatch `type:"list"` + + // The Amazon Resource Name (ARN) of the web ACL that you want to associate + // with LogDestinationConfigs. + // + // ResourceArn is a required field + ResourceArn *string `min:"1" type:"string" required:"true"` +} + +// String returns the string representation +func (s LoggingConfiguration) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LoggingConfiguration) GoString() string { + return s.String() +} + +// Validate inspects the fields of the type to determine if they are valid. +func (s *LoggingConfiguration) Validate() error { + invalidParams := request.ErrInvalidParams{Context: "LoggingConfiguration"} + if s.LogDestinationConfigs == nil { + invalidParams.Add(request.NewErrParamRequired("LogDestinationConfigs")) + } + if s.LogDestinationConfigs != nil && len(s.LogDestinationConfigs) < 1 { + invalidParams.Add(request.NewErrParamMinLen("LogDestinationConfigs", 1)) + } + if s.ResourceArn == nil { + invalidParams.Add(request.NewErrParamRequired("ResourceArn")) + } + if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { + invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) + } + if s.RedactedFields != nil { + for i, v := range s.RedactedFields { + if v == nil { + continue + } + if err := v.Validate(); err != nil { + invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RedactedFields", i), err.(request.ErrInvalidParams)) + } + } + } + + if invalidParams.Len() > 0 { + return invalidParams + } + return nil +} + +// SetLogDestinationConfigs sets the LogDestinationConfigs field's value. +func (s *LoggingConfiguration) SetLogDestinationConfigs(v []*string) *LoggingConfiguration { + s.LogDestinationConfigs = v + return s +} + +// SetRedactedFields sets the RedactedFields field's value. +func (s *LoggingConfiguration) SetRedactedFields(v []*FieldToMatch) *LoggingConfiguration { + s.RedactedFields = v + return s +} + +// SetResourceArn sets the ResourceArn field's value. +func (s *LoggingConfiguration) SetResourceArn(v string) *LoggingConfiguration { + s.ResourceArn = &v + return s +} + +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +type NonEmptyEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s NonEmptyEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NonEmptyEntityException) GoString() string { + return s.String() +} + +func newErrorNonEmptyEntityException(v protocol.ResponseMetadata) error { + return &NonEmptyEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NonEmptyEntityException) Code() string { + return "WAFNonEmptyEntityException" +} + +// Message returns the exception's message. +func (s NonEmptyEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NonEmptyEntityException) OrigErr() error { + return nil +} + +func (s NonEmptyEntityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NonEmptyEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NonEmptyEntityException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +type NonexistentContainerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s ListXssMatchSetsOutput) String() string { +func (s NonexistentContainerException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s ListXssMatchSetsOutput) GoString() string { +func (s NonexistentContainerException) GoString() string { return s.String() } -// SetNextMarker sets the NextMarker field's value. -func (s *ListXssMatchSetsOutput) SetNextMarker(v string) *ListXssMatchSetsOutput { - s.NextMarker = &v - return s +func newErrorNonexistentContainerException(v protocol.ResponseMetadata) error { + return &NonexistentContainerException{ + respMetadata: v, + } } -// SetXssMatchSets sets the XssMatchSets field's value. -func (s *ListXssMatchSetsOutput) SetXssMatchSets(v []*XssMatchSetSummary) *ListXssMatchSetsOutput { - s.XssMatchSets = v - return s +// Code returns the exception type name. +func (s NonexistentContainerException) Code() string { + return "WAFNonexistentContainerException" } -// The Amazon Kinesis Data Firehose, RedactedFields information, and the web -// ACL Amazon Resource Name (ARN). -type LoggingConfiguration struct { - _ struct{} `type:"structure"` +// Message returns the exception's message. +func (s NonexistentContainerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} - // An array of Amazon Kinesis Data Firehose ARNs. - // - // LogDestinationConfigs is a required field - LogDestinationConfigs []*string `min:"1" type:"list" required:"true"` +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NonexistentContainerException) OrigErr() error { + return nil +} - // The parts of the request that you want redacted from the logs. For example, - // if you redact the cookie field, the cookie field in the firehose will be - // xxx. - RedactedFields []*FieldToMatch `type:"list"` +func (s NonexistentContainerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} - // The Amazon Resource Name (ARN) of the web ACL that you want to associate - // with LogDestinationConfigs. - // - // ResourceArn is a required field - ResourceArn *string `min:"1" type:"string" required:"true"` +// Status code returns the HTTP status code for the request's response error. +func (s NonexistentContainerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NonexistentContainerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because the referenced object doesn't exist. +type NonexistentItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` } // String returns the string representation -func (s LoggingConfiguration) String() string { +func (s NonexistentItemException) String() string { return awsutil.Prettify(s) } // GoString returns the string representation -func (s LoggingConfiguration) GoString() string { +func (s NonexistentItemException) GoString() string { return s.String() } -// Validate inspects the fields of the type to determine if they are valid. -func (s *LoggingConfiguration) Validate() error { - invalidParams := request.ErrInvalidParams{Context: "LoggingConfiguration"} - if s.LogDestinationConfigs == nil { - invalidParams.Add(request.NewErrParamRequired("LogDestinationConfigs")) - } - if s.LogDestinationConfigs != nil && len(s.LogDestinationConfigs) < 1 { - invalidParams.Add(request.NewErrParamMinLen("LogDestinationConfigs", 1)) - } - if s.ResourceArn == nil { - invalidParams.Add(request.NewErrParamRequired("ResourceArn")) - } - if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { - invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) - } - if s.RedactedFields != nil { - for i, v := range s.RedactedFields { - if v == nil { - continue - } - if err := v.Validate(); err != nil { - invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RedactedFields", i), err.(request.ErrInvalidParams)) - } - } +func newErrorNonexistentItemException(v protocol.ResponseMetadata) error { + return &NonexistentItemException{ + respMetadata: v, } +} - if invalidParams.Len() > 0 { - return invalidParams +// Code returns the exception type name. +func (s NonexistentItemException) Code() string { + return "WAFNonexistentItemException" +} + +// Message returns the exception's message. +func (s NonexistentItemException) Message() string { + if s.Message_ != nil { + return *s.Message_ } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NonexistentItemException) OrigErr() error { return nil } -// SetLogDestinationConfigs sets the LogDestinationConfigs field's value. -func (s *LoggingConfiguration) SetLogDestinationConfigs(v []*string) *LoggingConfiguration { - s.LogDestinationConfigs = v - return s +func (s NonexistentItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) } -// SetRedactedFields sets the RedactedFields field's value. -func (s *LoggingConfiguration) SetRedactedFields(v []*FieldToMatch) *LoggingConfiguration { - s.RedactedFields = v - return s +// Status code returns the HTTP status code for the request's response error. +func (s NonexistentItemException) StatusCode() int { + return s.respMetadata.StatusCode } -// SetResourceArn sets the ResourceArn field's value. -func (s *LoggingConfiguration) SetResourceArn(v string) *LoggingConfiguration { - s.ResourceArn = &v - return s +// RequestID returns the service's response RequestID for request. +func (s NonexistentItemException) RequestID() string { + return s.respMetadata.RequestID } // Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, @@ -16254,6 +17012,67 @@ func (s *RateBasedRule) SetRuleId(v string) *RateBasedRule { return s } +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +type ReferencedItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ReferencedItemException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReferencedItemException) GoString() string { + return s.String() +} + +func newErrorReferencedItemException(v protocol.ResponseMetadata) error { + return &ReferencedItemException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReferencedItemException) Code() string { + return "WAFReferencedItemException" +} + +// Message returns the exception's message. +func (s ReferencedItemException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReferencedItemException) OrigErr() error { + return nil +} + +func (s ReferencedItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReferencedItemException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReferencedItemException) RequestID() string { + return s.respMetadata.RequestID +} + // In a GetRegexMatchSet request, RegexMatchSet is a complex type that contains // the RegexMatchSetId and Name of a RegexMatchSet, and the values that you // specified when you updated the RegexMatchSet. @@ -17168,6 +17987,69 @@ func (s *SampledHTTPRequest) SetWeight(v int64) *SampledHTTPRequest { return s } +// AWS WAF is not able to access the service linked role. This can be caused +// by a previous PutLoggingConfiguration request, which can lock the service +// linked role for about 20 seconds. Please try your request again. The service +// linked role can also be locked by a previous DeleteServiceLinkedRole request, +// which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, +// wait at least 15 minutes and try the request again. If you receive this same +// exception again, you will have to wait additional time until the role is +// unlocked. +type ServiceLinkedRoleErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ServiceLinkedRoleErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceLinkedRoleErrorException) GoString() string { + return s.String() +} + +func newErrorServiceLinkedRoleErrorException(v protocol.ResponseMetadata) error { + return &ServiceLinkedRoleErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceLinkedRoleErrorException) Code() string { + return "WAFServiceLinkedRoleErrorException" +} + +// Message returns the exception's message. +func (s ServiceLinkedRoleErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceLinkedRoleErrorException) OrigErr() error { + return nil +} + +func (s ServiceLinkedRoleErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceLinkedRoleErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceLinkedRoleErrorException) RequestID() string { + return s.respMetadata.RequestID +} + // Specifies a constraint on the size of a part of the web request. AWS WAF // uses the Size, ComparisonOperator, and FieldToMatch to build an expression // in the form of "Size ComparisonOperator size in bytes of FieldToMatch". If @@ -17814,6 +18696,63 @@ func (s *SqlInjectionMatchTuple) SetTextTransformation(v string) *SqlInjectionMa return s } +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +type StaleDataException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s StaleDataException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StaleDataException) GoString() string { + return s.String() +} + +func newErrorStaleDataException(v protocol.ResponseMetadata) error { + return &StaleDataException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StaleDataException) Code() string { + return "WAFStaleDataException" +} + +// Message returns the exception's message. +func (s StaleDataException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StaleDataException) OrigErr() error { + return nil +} + +func (s StaleDataException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StaleDataException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StaleDataException) RequestID() string { + return s.respMetadata.RequestID +} + // A summary of the rule groups you are subscribed to. type SubscribedRuleGroupSummary struct { _ struct{} `type:"structure"` @@ -17867,6 +18806,62 @@ func (s *SubscribedRuleGroupSummary) SetRuleGroupId(v string) *SubscribedRuleGro return s } +// The specified subscription does not exist. +type SubscriptionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s SubscriptionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s SubscriptionNotFoundException) GoString() string { + return s.String() +} + +func newErrorSubscriptionNotFoundException(v protocol.ResponseMetadata) error { + return &SubscriptionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s SubscriptionNotFoundException) Code() string { + return "WAFSubscriptionNotFoundException" +} + +// Message returns the exception's message. +func (s SubscriptionNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s SubscriptionNotFoundException) OrigErr() error { + return nil +} + +func (s SubscriptionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s SubscriptionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s SubscriptionNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type Tag struct { _ struct{} `type:"structure"` @@ -17940,6 +18935,116 @@ func (s *TagInfoForResource) SetTagList(v []*Tag) *TagInfoForResource { return s } +type TagOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TagOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagOperationException) GoString() string { + return s.String() +} + +func newErrorTagOperationException(v protocol.ResponseMetadata) error { + return &TagOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagOperationException) Code() string { + return "WAFTagOperationException" +} + +// Message returns the exception's message. +func (s TagOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagOperationException) OrigErr() error { + return nil +} + +func (s TagOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +type TagOperationInternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s TagOperationInternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TagOperationInternalErrorException) GoString() string { + return s.String() +} + +func newErrorTagOperationInternalErrorException(v protocol.ResponseMetadata) error { + return &TagOperationInternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TagOperationInternalErrorException) Code() string { + return "WAFTagOperationInternalErrorException" +} + +// Message returns the exception's message. +func (s TagOperationInternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TagOperationInternalErrorException) OrigErr() error { + return nil +} + +func (s TagOperationInternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TagOperationInternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TagOperationInternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + type TagResourceInput struct { _ struct{} `type:"structure"` diff --git a/service/waf/errors.go b/service/waf/errors.go index 32407c2a087..9a71b5b9bd9 100644 --- a/service/waf/errors.go +++ b/service/waf/errors.go @@ -2,6 +2,10 @@ package waf +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeBadRequestException for service response error code @@ -210,3 +214,24 @@ const ( // "WAFTagOperationInternalErrorException". ErrCodeTagOperationInternalErrorException = "WAFTagOperationInternalErrorException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "WAFBadRequestException": newErrorBadRequestException, + "WAFDisallowedNameException": newErrorDisallowedNameException, + "WAFInternalErrorException": newErrorInternalErrorException, + "WAFInvalidAccountException": newErrorInvalidAccountException, + "WAFInvalidOperationException": newErrorInvalidOperationException, + "WAFInvalidParameterException": newErrorInvalidParameterException, + "WAFInvalidPermissionPolicyException": newErrorInvalidPermissionPolicyException, + "WAFInvalidRegexPatternException": newErrorInvalidRegexPatternException, + "WAFLimitsExceededException": newErrorLimitsExceededException, + "WAFNonEmptyEntityException": newErrorNonEmptyEntityException, + "WAFNonexistentContainerException": newErrorNonexistentContainerException, + "WAFNonexistentItemException": newErrorNonexistentItemException, + "WAFReferencedItemException": newErrorReferencedItemException, + "WAFServiceLinkedRoleErrorException": newErrorServiceLinkedRoleErrorException, + "WAFStaleDataException": newErrorStaleDataException, + "WAFSubscriptionNotFoundException": newErrorSubscriptionNotFoundException, + "WAFTagOperationException": newErrorTagOperationException, + "WAFTagOperationInternalErrorException": newErrorTagOperationInternalErrorException, +} diff --git a/service/waf/service.go b/service/waf/service.go index 2b5c055d045..0271c68fdb5 100644 --- a/service/waf/service.go +++ b/service/waf/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/wafregional/api.go b/service/wafregional/api.go index f3ff4114127..5d403661ff0 100644 --- a/service/wafregional/api.go +++ b/service/wafregional/api.go @@ -3,6 +3,8 @@ package wafregional import ( + "fmt" + "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" @@ -66,16 +68,16 @@ func (c *WAFRegional) AssociateWebACLRequest(input *AssociateWebACLInput) (req * // See the AWS API reference guide for AWS WAF Regional's // API operation AssociateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -104,10 +106,10 @@ func (c *WAFRegional) AssociateWebACLRequest(input *AssociateWebACLInput) (req * // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // The operation failed because the entity referenced is temporarily unavailable. // Retry your request. // @@ -207,19 +209,19 @@ func (c *WAFRegional) CreateByteMatchSetRequest(input *waf.CreateByteMatchSetInp // See the AWS API reference guide for AWS WAF Regional's // API operation CreateByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// Returned Error Types: +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -248,11 +250,11 @@ func (c *WAFRegional) CreateByteMatchSetRequest(input *waf.CreateByteMatchSetInp // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -353,23 +355,23 @@ func (c *WAFRegional) CreateGeoMatchSetRequest(input *waf.CreateGeoMatchSetInput // See the AWS API reference guide for AWS WAF Regional's // API operation CreateGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -398,7 +400,7 @@ func (c *WAFRegional) CreateGeoMatchSetRequest(input *waf.CreateGeoMatchSetInput // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -500,23 +502,23 @@ func (c *WAFRegional) CreateIPSetRequest(input *waf.CreateIPSetInput) (req *requ // See the AWS API reference guide for AWS WAF Regional's // API operation CreateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -545,7 +547,7 @@ func (c *WAFRegional) CreateIPSetRequest(input *waf.CreateIPSetInput) (req *requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -686,19 +688,19 @@ func (c *WAFRegional) CreateRateBasedRuleRequest(input *waf.CreateRateBasedRuleI // See the AWS API reference guide for AWS WAF Regional's // API operation CreateRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -727,17 +729,17 @@ func (c *WAFRegional) CreateRateBasedRuleRequest(input *waf.CreateRateBasedRuleI // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // -// * ErrCodeWAFBadRequestException "WAFBadRequestException" +// * WAFBadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateRateBasedRule func (c *WAFRegional) CreateRateBasedRule(input *waf.CreateRateBasedRuleInput) (*waf.CreateRateBasedRuleOutput, error) { @@ -836,19 +838,19 @@ func (c *WAFRegional) CreateRegexMatchSetRequest(input *waf.CreateRegexMatchSetI // See the AWS API reference guide for AWS WAF Regional's // API operation CreateRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -947,19 +949,19 @@ func (c *WAFRegional) CreateRegexPatternSetRequest(input *waf.CreateRegexPattern // See the AWS API reference guide for AWS WAF Regional's // API operation CreateRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -1075,19 +1077,19 @@ func (c *WAFRegional) CreateRuleRequest(input *waf.CreateRuleInput) (req *reques // See the AWS API reference guide for AWS WAF Regional's // API operation CreateRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1116,17 +1118,17 @@ func (c *WAFRegional) CreateRuleRequest(input *waf.CreateRuleInput) (req *reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // -// * ErrCodeWAFBadRequestException "WAFBadRequestException" +// * WAFBadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateRule func (c *WAFRegional) CreateRule(input *waf.CreateRuleInput) (*waf.CreateRuleOutput, error) { @@ -1216,29 +1218,29 @@ func (c *WAFRegional) CreateRuleGroupRequest(input *waf.CreateRuleGroupInput) (r // See the AWS API reference guide for AWS WAF Regional's // API operation CreateRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // -// * ErrCodeWAFBadRequestException "WAFBadRequestException" +// * WAFBadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateRuleGroup func (c *WAFRegional) CreateRuleGroup(input *waf.CreateRuleGroupInput) (*waf.CreateRuleGroupOutput, error) { @@ -1337,23 +1339,23 @@ func (c *WAFRegional) CreateSizeConstraintSetRequest(input *waf.CreateSizeConstr // See the AWS API reference guide for AWS WAF Regional's // API operation CreateSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1382,7 +1384,7 @@ func (c *WAFRegional) CreateSizeConstraintSetRequest(input *waf.CreateSizeConstr // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -1481,19 +1483,19 @@ func (c *WAFRegional) CreateSqlInjectionMatchSetRequest(input *waf.CreateSqlInje // See the AWS API reference guide for AWS WAF Regional's // API operation CreateSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// Returned Error Types: +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1522,11 +1524,11 @@ func (c *WAFRegional) CreateSqlInjectionMatchSetRequest(input *waf.CreateSqlInje // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -1637,23 +1639,23 @@ func (c *WAFRegional) CreateWebACLRequest(input *waf.CreateWebACLInput) (req *re // See the AWS API reference guide for AWS WAF Regional's // API operation CreateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1682,17 +1684,17 @@ func (c *WAFRegional) CreateWebACLRequest(input *waf.CreateWebACLInput) (req *re // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // -// * ErrCodeWAFBadRequestException "WAFBadRequestException" +// * WAFBadRequestException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/CreateWebACL func (c *WAFRegional) CreateWebACL(input *waf.CreateWebACLInput) (*waf.CreateWebACLOutput, error) { @@ -1788,19 +1790,19 @@ func (c *WAFRegional) CreateXssMatchSetRequest(input *waf.CreateXssMatchSetInput // See the AWS API reference guide for AWS WAF Regional's // API operation CreateXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// Returned Error Types: +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1829,11 +1831,11 @@ func (c *WAFRegional) CreateXssMatchSetRequest(input *waf.CreateXssMatchSetInput // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -1928,19 +1930,19 @@ func (c *WAFRegional) DeleteByteMatchSetRequest(input *waf.DeleteByteMatchSetInp // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -1948,11 +1950,11 @@ func (c *WAFRegional) DeleteByteMatchSetRequest(input *waf.DeleteByteMatchSetInp // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2054,23 +2056,23 @@ func (c *WAFRegional) DeleteGeoMatchSetRequest(input *waf.DeleteGeoMatchSetInput // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2078,7 +2080,7 @@ func (c *WAFRegional) DeleteGeoMatchSetRequest(input *waf.DeleteGeoMatchSetInput // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2180,23 +2182,23 @@ func (c *WAFRegional) DeleteIPSetRequest(input *waf.DeleteIPSetInput) (req *requ // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2204,7 +2206,7 @@ func (c *WAFRegional) DeleteIPSetRequest(input *waf.DeleteIPSetInput) (req *requ // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2294,15 +2296,15 @@ func (c *WAFRegional) DeleteLoggingConfigurationRequest(input *waf.DeleteLogging // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // @@ -2384,16 +2386,16 @@ func (c *WAFRegional) DeletePermissionPolicyRequest(input *waf.DeletePermissionP // See the AWS API reference guide for AWS WAF Regional's // API operation DeletePermissionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeletePermissionPolicy @@ -2486,23 +2488,23 @@ func (c *WAFRegional) DeleteRateBasedRuleRequest(input *waf.DeleteRateBasedRuleI // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2510,7 +2512,7 @@ func (c *WAFRegional) DeleteRateBasedRuleRequest(input *waf.DeleteRateBasedRuleI // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2524,9 +2526,9 @@ func (c *WAFRegional) DeleteRateBasedRuleRequest(input *waf.DeleteRateBasedRuleI // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteRateBasedRule func (c *WAFRegional) DeleteRateBasedRule(input *waf.DeleteRateBasedRuleInput) (*waf.DeleteRateBasedRuleOutput, error) { @@ -2617,19 +2619,19 @@ func (c *WAFRegional) DeleteRegexMatchSetRequest(input *waf.DeleteRegexMatchSetI // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2637,11 +2639,11 @@ func (c *WAFRegional) DeleteRegexMatchSetRequest(input *waf.DeleteRegexMatchSetI // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2732,19 +2734,19 @@ func (c *WAFRegional) DeleteRegexPatternSetRequest(input *waf.DeleteRegexPattern // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2752,11 +2754,11 @@ func (c *WAFRegional) DeleteRegexPatternSetRequest(input *waf.DeleteRegexPattern // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2858,23 +2860,23 @@ func (c *WAFRegional) DeleteRuleRequest(input *waf.DeleteRuleInput) (req *reques // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -2882,7 +2884,7 @@ func (c *WAFRegional) DeleteRuleRequest(input *waf.DeleteRuleInput) (req *reques // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -2896,9 +2898,9 @@ func (c *WAFRegional) DeleteRuleRequest(input *waf.DeleteRuleInput) (req *reques // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteRule func (c *WAFRegional) DeleteRule(input *waf.DeleteRuleInput) (*waf.DeleteRuleOutput, error) { @@ -2987,19 +2989,19 @@ func (c *WAFRegional) DeleteRuleGroupRequest(input *waf.DeleteRuleGroupInput) (r // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3007,7 +3009,7 @@ func (c *WAFRegional) DeleteRuleGroupRequest(input *waf.DeleteRuleGroupInput) (r // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3021,7 +3023,7 @@ func (c *WAFRegional) DeleteRuleGroupRequest(input *waf.DeleteRuleGroupInput) (r // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -3039,9 +3041,9 @@ func (c *WAFRegional) DeleteRuleGroupRequest(input *waf.DeleteRuleGroupInput) (r // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteRuleGroup func (c *WAFRegional) DeleteRuleGroup(input *waf.DeleteRuleGroupInput) (*waf.DeleteRuleGroupOutput, error) { @@ -3132,23 +3134,23 @@ func (c *WAFRegional) DeleteSizeConstraintSetRequest(input *waf.DeleteSizeConstr // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3156,7 +3158,7 @@ func (c *WAFRegional) DeleteSizeConstraintSetRequest(input *waf.DeleteSizeConstr // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3260,19 +3262,19 @@ func (c *WAFRegional) DeleteSqlInjectionMatchSetRequest(input *waf.DeleteSqlInje // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3280,11 +3282,11 @@ func (c *WAFRegional) DeleteSqlInjectionMatchSetRequest(input *waf.DeleteSqlInje // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3383,23 +3385,23 @@ func (c *WAFRegional) DeleteWebACLRequest(input *waf.DeleteWebACLInput) (req *re // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3407,7 +3409,7 @@ func (c *WAFRegional) DeleteWebACLRequest(input *waf.DeleteWebACLInput) (req *re // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3421,9 +3423,9 @@ func (c *WAFRegional) DeleteWebACLRequest(input *waf.DeleteWebACLInput) (req *re // // * You tried to delete an IPSet that references one or more IP addresses. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DeleteWebACL func (c *WAFRegional) DeleteWebACL(input *waf.DeleteWebACLInput) (*waf.DeleteWebACLOutput, error) { @@ -3514,19 +3516,19 @@ func (c *WAFRegional) DeleteXssMatchSetRequest(input *waf.DeleteXssMatchSetInput // See the AWS API reference guide for AWS WAF Regional's // API operation DeleteXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -3534,11 +3536,11 @@ func (c *WAFRegional) DeleteXssMatchSetRequest(input *waf.DeleteXssMatchSetInput // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFNonEmptyEntityException "WAFNonEmptyEntityException" +// * WAFNonEmptyEntityException // The operation failed because you tried to delete an object that isn't empty. // For example: // @@ -3629,16 +3631,16 @@ func (c *WAFRegional) DisassociateWebACLRequest(input *DisassociateWebACLInput) // See the AWS API reference guide for AWS WAF Regional's // API operation DisassociateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3667,7 +3669,7 @@ func (c *WAFRegional) DisassociateWebACLRequest(input *DisassociateWebACLInput) // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/DisassociateWebACL @@ -3745,16 +3747,16 @@ func (c *WAFRegional) GetByteMatchSetRequest(input *waf.GetByteMatchSetInput) (r // See the AWS API reference guide for AWS WAF Regional's // API operation GetByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetByteMatchSet @@ -3846,8 +3848,8 @@ func (c *WAFRegional) GetChangeTokenRequest(input *waf.GetChangeTokenInput) (req // See the AWS API reference guide for AWS WAF Regional's // API operation GetChangeToken for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -3936,11 +3938,11 @@ func (c *WAFRegional) GetChangeTokenStatusRequest(input *waf.GetChangeTokenStatu // See the AWS API reference guide for AWS WAF Regional's // API operation GetChangeTokenStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// Returned Error Types: +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -4019,16 +4021,16 @@ func (c *WAFRegional) GetGeoMatchSetRequest(input *waf.GetGeoMatchSetInput) (req // See the AWS API reference guide for AWS WAF Regional's // API operation GetGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetGeoMatchSet @@ -4106,16 +4108,16 @@ func (c *WAFRegional) GetIPSetRequest(input *waf.GetIPSetInput) (req *request.Re // See the AWS API reference guide for AWS WAF Regional's // API operation GetIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetIPSet @@ -4193,12 +4195,12 @@ func (c *WAFRegional) GetLoggingConfigurationRequest(input *waf.GetLoggingConfig // See the AWS API reference guide for AWS WAF Regional's // API operation GetLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetLoggingConfiguration @@ -4276,12 +4278,12 @@ func (c *WAFRegional) GetPermissionPolicyRequest(input *waf.GetPermissionPolicyI // See the AWS API reference guide for AWS WAF Regional's // API operation GetPermissionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetPermissionPolicy @@ -4360,16 +4362,16 @@ func (c *WAFRegional) GetRateBasedRuleRequest(input *waf.GetRateBasedRuleInput) // See the AWS API reference guide for AWS WAF Regional's // API operation GetRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRateBasedRule @@ -4450,19 +4452,19 @@ func (c *WAFRegional) GetRateBasedRuleManagedKeysRequest(input *waf.GetRateBased // See the AWS API reference guide for AWS WAF Regional's // API operation GetRateBasedRuleManagedKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -4566,16 +4568,16 @@ func (c *WAFRegional) GetRegexMatchSetRequest(input *waf.GetRegexMatchSetInput) // See the AWS API reference guide for AWS WAF Regional's // API operation GetRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRegexMatchSet @@ -4653,16 +4655,16 @@ func (c *WAFRegional) GetRegexPatternSetRequest(input *waf.GetRegexPatternSetInp // See the AWS API reference guide for AWS WAF Regional's // API operation GetRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRegexPatternSet @@ -4741,16 +4743,16 @@ func (c *WAFRegional) GetRuleRequest(input *waf.GetRuleInput) (req *request.Requ // See the AWS API reference guide for AWS WAF Regional's // API operation GetRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRule @@ -4831,12 +4833,12 @@ func (c *WAFRegional) GetRuleGroupRequest(input *waf.GetRuleGroupInput) (req *re // See the AWS API reference guide for AWS WAF Regional's // API operation GetRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetRuleGroup @@ -4924,11 +4926,11 @@ func (c *WAFRegional) GetSampledRequestsRequest(input *waf.GetSampledRequestsInp // See the AWS API reference guide for AWS WAF Regional's // API operation GetSampledRequests for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// Returned Error Types: +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -5007,16 +5009,16 @@ func (c *WAFRegional) GetSizeConstraintSetRequest(input *waf.GetSizeConstraintSe // See the AWS API reference guide for AWS WAF Regional's // API operation GetSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSizeConstraintSet @@ -5094,16 +5096,16 @@ func (c *WAFRegional) GetSqlInjectionMatchSetRequest(input *waf.GetSqlInjectionM // See the AWS API reference guide for AWS WAF Regional's // API operation GetSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetSqlInjectionMatchSet @@ -5181,16 +5183,16 @@ func (c *WAFRegional) GetWebACLRequest(input *waf.GetWebACLInput) (req *request. // See the AWS API reference guide for AWS WAF Regional's // API operation GetWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetWebACL @@ -5269,19 +5271,19 @@ func (c *WAFRegional) GetWebACLForResourceRequest(input *GetWebACLForResourceInp // See the AWS API reference guide for AWS WAF Regional's // API operation GetWebACLForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -5310,7 +5312,7 @@ func (c *WAFRegional) GetWebACLForResourceRequest(input *GetWebACLForResourceInp // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // The operation failed because the entity referenced is temporarily unavailable. // Retry your request. // @@ -5389,16 +5391,16 @@ func (c *WAFRegional) GetXssMatchSetRequest(input *waf.GetXssMatchSetInput) (req // See the AWS API reference guide for AWS WAF Regional's // API operation GetXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/GetXssMatchSet @@ -5476,15 +5478,15 @@ func (c *WAFRegional) ListActivatedRulesInRuleGroupRequest(input *waf.ListActiva // See the AWS API reference guide for AWS WAF Regional's // API operation ListActivatedRulesInRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -5588,12 +5590,12 @@ func (c *WAFRegional) ListByteMatchSetsRequest(input *waf.ListByteMatchSetsInput // See the AWS API reference guide for AWS WAF Regional's // API operation ListByteMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5672,12 +5674,12 @@ func (c *WAFRegional) ListGeoMatchSetsRequest(input *waf.ListGeoMatchSetsInput) // See the AWS API reference guide for AWS WAF Regional's // API operation ListGeoMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5756,12 +5758,12 @@ func (c *WAFRegional) ListIPSetsRequest(input *waf.ListIPSetsInput) (req *reques // See the AWS API reference guide for AWS WAF Regional's // API operation ListIPSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -5840,15 +5842,15 @@ func (c *WAFRegional) ListLoggingConfigurationsRequest(input *waf.ListLoggingCon // See the AWS API reference guide for AWS WAF Regional's // API operation ListLoggingConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -5952,12 +5954,12 @@ func (c *WAFRegional) ListRateBasedRulesRequest(input *waf.ListRateBasedRulesInp // See the AWS API reference guide for AWS WAF Regional's // API operation ListRateBasedRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6036,12 +6038,12 @@ func (c *WAFRegional) ListRegexMatchSetsRequest(input *waf.ListRegexMatchSetsInp // See the AWS API reference guide for AWS WAF Regional's // API operation ListRegexMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6120,12 +6122,12 @@ func (c *WAFRegional) ListRegexPatternSetsRequest(input *waf.ListRegexPatternSet // See the AWS API reference guide for AWS WAF Regional's // API operation ListRegexPatternSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6204,19 +6206,19 @@ func (c *WAFRegional) ListResourcesForWebACLRequest(input *ListResourcesForWebAC // See the AWS API reference guide for AWS WAF Regional's // API operation ListResourcesForWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -6320,8 +6322,8 @@ func (c *WAFRegional) ListRuleGroupsRequest(input *waf.ListRuleGroupsInput) (req // See the AWS API reference guide for AWS WAF Regional's // API operation ListRuleGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -6400,12 +6402,12 @@ func (c *WAFRegional) ListRulesRequest(input *waf.ListRulesInput) (req *request. // See the AWS API reference guide for AWS WAF Regional's // API operation ListRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6484,12 +6486,12 @@ func (c *WAFRegional) ListSizeConstraintSetsRequest(input *waf.ListSizeConstrain // See the AWS API reference guide for AWS WAF Regional's // API operation ListSizeConstraintSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6568,12 +6570,12 @@ func (c *WAFRegional) ListSqlInjectionMatchSetsRequest(input *waf.ListSqlInjecti // See the AWS API reference guide for AWS WAF Regional's // API operation ListSqlInjectionMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6652,11 +6654,11 @@ func (c *WAFRegional) ListSubscribedRuleGroupsRequest(input *waf.ListSubscribedR // See the AWS API reference guide for AWS WAF Regional's // API operation ListSubscribedRuleGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// Returned Error Types: +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // @@ -6733,12 +6735,12 @@ func (c *WAFRegional) ListTagsForResourceRequest(input *waf.ListTagsForResourceI // See the AWS API reference guide for AWS WAF Regional's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -6767,14 +6769,14 @@ func (c *WAFRegional) ListTagsForResourceRequest(input *waf.ListTagsForResourceI // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFBadRequestException "WAFBadRequestException" +// * WAFBadRequestException // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/ListTagsForResource func (c *WAFRegional) ListTagsForResource(input *waf.ListTagsForResourceInput) (*waf.ListTagsForResourceOutput, error) { @@ -6851,12 +6853,12 @@ func (c *WAFRegional) ListWebACLsRequest(input *waf.ListWebACLsInput) (req *requ // See the AWS API reference guide for AWS WAF Regional's // API operation ListWebACLs for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -6935,12 +6937,12 @@ func (c *WAFRegional) ListXssMatchSetsRequest(input *waf.ListXssMatchSetsInput) // See the AWS API reference guide for AWS WAF Regional's // API operation ListXssMatchSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -7038,19 +7040,19 @@ func (c *WAFRegional) PutLoggingConfigurationRequest(input *waf.PutLoggingConfig // See the AWS API reference guide for AWS WAF Regional's // API operation PutLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFServiceLinkedRoleErrorException "WAFServiceLinkedRoleErrorException" +// * WAFServiceLinkedRoleErrorException // AWS WAF is not able to access the service linked role. This can be caused // by a previous PutLoggingConfiguration request, which can lock the service // linked role for about 20 seconds. Please try your request again. The service @@ -7162,19 +7164,19 @@ func (c *WAFRegional) PutPermissionPolicyRequest(input *waf.PutPermissionPolicyI // See the AWS API reference guide for AWS WAF Regional's // API operation PutPermissionPolicy for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInvalidPermissionPolicyException "WAFInvalidPermissionPolicyException" +// * WAFInvalidPermissionPolicyException // The operation failed because the specified policy is not in the proper format. // // The policy is subject to the following restrictions: @@ -7272,12 +7274,12 @@ func (c *WAFRegional) TagResourceRequest(input *waf.TagResourceInput) (req *requ // See the AWS API reference guide for AWS WAF Regional's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7306,20 +7308,20 @@ func (c *WAFRegional) TagResourceRequest(input *waf.TagResourceInput) (req *requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFBadRequestException "WAFBadRequestException" +// * WAFBadRequestException // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/TagResource func (c *WAFRegional) TagResource(input *waf.TagResourceInput) (*waf.TagResourceOutput, error) { @@ -7395,12 +7397,12 @@ func (c *WAFRegional) UntagResourceRequest(input *waf.UntagResourceInput) (req * // See the AWS API reference guide for AWS WAF Regional's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7429,14 +7431,14 @@ func (c *WAFRegional) UntagResourceRequest(input *waf.UntagResourceInput) (req * // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFBadRequestException "WAFBadRequestException" +// * WAFBadRequestException // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UntagResource func (c *WAFRegional) UntagResource(input *waf.UntagResourceInput) (*waf.UntagResourceOutput, error) { @@ -7549,16 +7551,16 @@ func (c *WAFRegional) UpdateByteMatchSetRequest(input *waf.UpdateByteMatchSetInp // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateByteMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7576,7 +7578,7 @@ func (c *WAFRegional) UpdateByteMatchSetRequest(input *waf.UpdateByteMatchSetInp // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7605,7 +7607,7 @@ func (c *WAFRegional) UpdateByteMatchSetRequest(input *waf.UpdateByteMatchSetInp // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -7621,14 +7623,14 @@ func (c *WAFRegional) UpdateByteMatchSetRequest(input *waf.UpdateByteMatchSetInp // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -7736,20 +7738,20 @@ func (c *WAFRegional) UpdateGeoMatchSetRequest(input *waf.UpdateGeoMatchSetInput // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateGeoMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7767,7 +7769,7 @@ func (c *WAFRegional) UpdateGeoMatchSetRequest(input *waf.UpdateGeoMatchSetInput // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -7796,7 +7798,7 @@ func (c *WAFRegional) UpdateGeoMatchSetRequest(input *waf.UpdateGeoMatchSetInput // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -7812,10 +7814,10 @@ func (c *WAFRegional) UpdateGeoMatchSetRequest(input *waf.UpdateGeoMatchSetInput // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -7823,7 +7825,7 @@ func (c *WAFRegional) UpdateGeoMatchSetRequest(input *waf.UpdateGeoMatchSetInput // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -7955,20 +7957,20 @@ func (c *WAFRegional) UpdateIPSetRequest(input *waf.UpdateIPSetInput) (req *requ // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -7986,7 +7988,7 @@ func (c *WAFRegional) UpdateIPSetRequest(input *waf.UpdateIPSetInput) (req *requ // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -8015,7 +8017,7 @@ func (c *WAFRegional) UpdateIPSetRequest(input *waf.UpdateIPSetInput) (req *requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8031,10 +8033,10 @@ func (c *WAFRegional) UpdateIPSetRequest(input *waf.UpdateIPSetInput) (req *requ // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -8042,7 +8044,7 @@ func (c *WAFRegional) UpdateIPSetRequest(input *waf.UpdateIPSetInput) (req *requ // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -8160,20 +8162,20 @@ func (c *WAFRegional) UpdateRateBasedRuleRequest(input *waf.UpdateRateBasedRuleI // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateRateBasedRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8191,7 +8193,7 @@ func (c *WAFRegional) UpdateRateBasedRuleRequest(input *waf.UpdateRateBasedRuleI // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -8220,7 +8222,7 @@ func (c *WAFRegional) UpdateRateBasedRuleRequest(input *waf.UpdateRateBasedRuleI // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8236,10 +8238,10 @@ func (c *WAFRegional) UpdateRateBasedRuleRequest(input *waf.UpdateRateBasedRuleI // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -8247,7 +8249,7 @@ func (c *WAFRegional) UpdateRateBasedRuleRequest(input *waf.UpdateRateBasedRuleI // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -8361,28 +8363,28 @@ func (c *WAFRegional) UpdateRegexMatchSetRequest(input *waf.UpdateRegexMatchSetI // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateRegexMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFDisallowedNameException "WAFDisallowedNameException" +// * WAFDisallowedNameException // The name specified is invalid. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8398,7 +8400,7 @@ func (c *WAFRegional) UpdateRegexMatchSetRequest(input *waf.UpdateRegexMatchSetI // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8416,7 +8418,7 @@ func (c *WAFRegional) UpdateRegexMatchSetRequest(input *waf.UpdateRegexMatchSetI // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // @@ -8525,25 +8527,25 @@ func (c *WAFRegional) UpdateRegexPatternSetRequest(input *waf.UpdateRegexPattern // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8559,7 +8561,7 @@ func (c *WAFRegional) UpdateRegexPatternSetRequest(input *waf.UpdateRegexPattern // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8577,11 +8579,11 @@ func (c *WAFRegional) UpdateRegexPatternSetRequest(input *waf.UpdateRegexPattern // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidRegexPatternException "WAFInvalidRegexPatternException" +// * WAFInvalidRegexPatternException // The regular expression (regex) you specified in RegexPatternString is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateRegexPatternSet @@ -8692,20 +8694,20 @@ func (c *WAFRegional) UpdateRuleRequest(input *waf.UpdateRuleInput) (req *reques // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8723,7 +8725,7 @@ func (c *WAFRegional) UpdateRuleRequest(input *waf.UpdateRuleInput) (req *reques // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -8752,7 +8754,7 @@ func (c *WAFRegional) UpdateRuleRequest(input *waf.UpdateRuleInput) (req *reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8768,10 +8770,10 @@ func (c *WAFRegional) UpdateRuleRequest(input *waf.UpdateRuleInput) (req *reques // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -8779,7 +8781,7 @@ func (c *WAFRegional) UpdateRuleRequest(input *waf.UpdateRuleInput) (req *reques // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -8882,16 +8884,16 @@ func (c *WAFRegional) UpdateRuleGroupRequest(input *waf.UpdateRuleGroupInput) (r // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -8907,10 +8909,10 @@ func (c *WAFRegional) UpdateRuleGroupRequest(input *waf.UpdateRuleGroupInput) (r // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -8928,13 +8930,13 @@ func (c *WAFRegional) UpdateRuleGroupRequest(input *waf.UpdateRuleGroupInput) (r // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -9077,20 +9079,20 @@ func (c *WAFRegional) UpdateSizeConstraintSetRequest(input *waf.UpdateSizeConstr // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateSizeConstraintSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -9108,7 +9110,7 @@ func (c *WAFRegional) UpdateSizeConstraintSetRequest(input *waf.UpdateSizeConstr // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -9137,7 +9139,7 @@ func (c *WAFRegional) UpdateSizeConstraintSetRequest(input *waf.UpdateSizeConstr // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -9153,10 +9155,10 @@ func (c *WAFRegional) UpdateSizeConstraintSetRequest(input *waf.UpdateSizeConstr // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -9164,7 +9166,7 @@ func (c *WAFRegional) UpdateSizeConstraintSetRequest(input *waf.UpdateSizeConstr // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -9277,16 +9279,16 @@ func (c *WAFRegional) UpdateSqlInjectionMatchSetRequest(input *waf.UpdateSqlInje // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateSqlInjectionMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -9304,7 +9306,7 @@ func (c *WAFRegional) UpdateSqlInjectionMatchSetRequest(input *waf.UpdateSqlInje // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -9333,7 +9335,7 @@ func (c *WAFRegional) UpdateSqlInjectionMatchSetRequest(input *waf.UpdateSqlInje // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -9349,14 +9351,14 @@ func (c *WAFRegional) UpdateSqlInjectionMatchSetRequest(input *waf.UpdateSqlInje // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -9492,20 +9494,20 @@ func (c *WAFRegional) UpdateWebACLRequest(input *waf.UpdateWebACLInput) (req *re // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// Returned Error Types: +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -9523,7 +9525,7 @@ func (c *WAFRegional) UpdateWebACLRequest(input *waf.UpdateWebACLInput) (req *re // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -9552,7 +9554,7 @@ func (c *WAFRegional) UpdateWebACLRequest(input *waf.UpdateWebACLInput) (req *re // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -9568,10 +9570,10 @@ func (c *WAFRegional) UpdateWebACLRequest(input *waf.UpdateWebACLInput) (req *re // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFReferencedItemException "WAFReferencedItemException" +// * WAFReferencedItemException // The operation failed because you tried to delete an object that is still // in use. For example: // @@ -9579,13 +9581,13 @@ func (c *WAFRegional) UpdateWebACLRequest(input *waf.UpdateWebACLInput) (req *re // // * You tried to delete a Rule that is still referenced by a WebACL. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFSubscriptionNotFoundException "WAFSubscriptionNotFoundException" +// * WAFSubscriptionNotFoundException // The specified subscription does not exist. // // See also, https://docs.aws.amazon.com/goto/WebAPI/waf-regional-2016-11-28/UpdateWebACL @@ -9695,16 +9697,16 @@ func (c *WAFRegional) UpdateXssMatchSetRequest(input *waf.UpdateXssMatchSetInput // See the AWS API reference guide for AWS WAF Regional's // API operation UpdateXssMatchSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // The operation failed because of a system problem, even though the request // was valid. Retry your request. // -// * ErrCodeWAFInvalidAccountException "WAFInvalidAccountException" +// * WAFInvalidAccountException // The operation failed because you tried to create, update, or delete an object // by using an invalid account identifier. // -// * ErrCodeWAFInvalidOperationException "WAFInvalidOperationException" +// * WAFInvalidOperationException // The operation failed because there was nothing to do. For example: // // * You tried to remove a Rule from a WebACL, but the Rule isn't in the @@ -9722,7 +9724,7 @@ func (c *WAFRegional) UpdateXssMatchSetRequest(input *waf.UpdateXssMatchSetInput // * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple // already exists in the specified WebACL. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -9751,7 +9753,7 @@ func (c *WAFRegional) UpdateXssMatchSetRequest(input *waf.UpdateXssMatchSetInput // * Your request references an ARN that is malformed, or corresponds to // a resource with which a web ACL cannot be associated. // -// * ErrCodeWAFNonexistentContainerException "WAFNonexistentContainerException" +// * WAFNonexistentContainerException // The operation failed because you tried to add an object to or delete an object // from another object that doesn't exist. For example: // @@ -9767,14 +9769,14 @@ func (c *WAFRegional) UpdateXssMatchSetRequest(input *waf.UpdateXssMatchSetInput // * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from // a ByteMatchSet that doesn't exist. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // The operation failed because the referenced object doesn't exist. // -// * ErrCodeWAFStaleDataException "WAFStaleDataException" +// * WAFStaleDataException // The operation failed because you tried to create, update, or delete an object // by using a change token that has already been used. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // The operation exceeds a resource limit, for example, the maximum number of // WebACL objects that you can create for an AWS account. For more information, // see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -10093,6 +10095,1168 @@ func (s *ListResourcesForWebACLOutput) SetResourceArns(v []*string) *ListResourc return s } +type WAFBadRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFBadRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFBadRequestException) GoString() string { + return s.String() +} + +func newErrorWAFBadRequestException(v protocol.ResponseMetadata) error { + return &WAFBadRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFBadRequestException) Code() string { + return "WAFBadRequestException" +} + +// Message returns the exception's message. +func (s WAFBadRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFBadRequestException) OrigErr() error { + return nil +} + +func (s WAFBadRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFBadRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFBadRequestException) RequestID() string { + return s.respMetadata.RequestID +} + +// The name specified is invalid. +type WAFDisallowedNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFDisallowedNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFDisallowedNameException) GoString() string { + return s.String() +} + +func newErrorWAFDisallowedNameException(v protocol.ResponseMetadata) error { + return &WAFDisallowedNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFDisallowedNameException) Code() string { + return "WAFDisallowedNameException" +} + +// Message returns the exception's message. +func (s WAFDisallowedNameException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFDisallowedNameException) OrigErr() error { + return nil +} + +func (s WAFDisallowedNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFDisallowedNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFDisallowedNameException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because of a system problem, even though the request +// was valid. Retry your request. +type WAFInternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFInternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInternalErrorException) GoString() string { + return s.String() +} + +func newErrorWAFInternalErrorException(v protocol.ResponseMetadata) error { + return &WAFInternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInternalErrorException) Code() string { + return "WAFInternalErrorException" +} + +// Message returns the exception's message. +func (s WAFInternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInternalErrorException) OrigErr() error { + return nil +} + +func (s WAFInternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because you tried to create, update, or delete an object +// by using an invalid account identifier. +type WAFInvalidAccountException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s WAFInvalidAccountException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInvalidAccountException) GoString() string { + return s.String() +} + +func newErrorWAFInvalidAccountException(v protocol.ResponseMetadata) error { + return &WAFInvalidAccountException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInvalidAccountException) Code() string { + return "WAFInvalidAccountException" +} + +// Message returns the exception's message. +func (s WAFInvalidAccountException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInvalidAccountException) OrigErr() error { + return nil +} + +func (s WAFInvalidAccountException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInvalidAccountException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInvalidAccountException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because there was nothing to do. For example: +// +// * You tried to remove a Rule from a WebACL, but the Rule isn't in the +// specified WebACL. +// +// * You tried to remove an IP address from an IPSet, but the IP address +// isn't in the specified IPSet. +// +// * You tried to remove a ByteMatchTuple from a ByteMatchSet, but the ByteMatchTuple +// isn't in the specified WebACL. +// +// * You tried to add a Rule to a WebACL, but the Rule already exists in +// the specified WebACL. +// +// * You tried to add a ByteMatchTuple to a ByteMatchSet, but the ByteMatchTuple +// already exists in the specified WebACL. +type WAFInvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFInvalidOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInvalidOperationException) GoString() string { + return s.String() +} + +func newErrorWAFInvalidOperationException(v protocol.ResponseMetadata) error { + return &WAFInvalidOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInvalidOperationException) Code() string { + return "WAFInvalidOperationException" +} + +// Message returns the exception's message. +func (s WAFInvalidOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInvalidOperationException) OrigErr() error { + return nil +} + +func (s WAFInvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInvalidOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name. +// +// * You specified an invalid value. +// +// * You tried to update an object (ByteMatchSet, IPSet, Rule, or WebACL) +// using an action other than INSERT or DELETE. +// +// * You tried to create a WebACL with a DefaultAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to create a RateBasedRule with a RateKey value other than +// IP. +// +// * You tried to update a WebACL with a WafAction Type other than ALLOW, +// BLOCK, or COUNT. +// +// * You tried to update a ByteMatchSet with a FieldToMatch Type other than +// HEADER, METHOD, QUERY_STRING, URI, or BODY. +// +// * You tried to update a ByteMatchSet with a Field of HEADER but no value +// for Data. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a web ACL cannot be associated. +type WAFInvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Field *string `locationName:"field" type:"string" enum:"ParameterExceptionField"` + + Parameter *string `locationName:"parameter" min:"1" type:"string"` + + Reason *string `locationName:"reason" type:"string" enum:"ParameterExceptionReason"` +} + +// String returns the string representation +func (s WAFInvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInvalidParameterException) GoString() string { + return s.String() +} + +func newErrorWAFInvalidParameterException(v protocol.ResponseMetadata) error { + return &WAFInvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInvalidParameterException) Code() string { + return "WAFInvalidParameterException" +} + +// Message returns the exception's message. +func (s WAFInvalidParameterException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInvalidParameterException) OrigErr() error { + return nil +} + +func (s WAFInvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because the specified policy is not in the proper format. +// +// The policy is subject to the following restrictions: +// +// * You can attach only one policy with each PutPermissionPolicy request. +// +// * The policy must include an Effect, Action and Principal. +// +// * Effect must specify Allow. +// +// * The Action in the policy must be waf:UpdateWebACL, waf-regional:UpdateWebACL, +// waf:GetRuleGroup and waf-regional:GetRuleGroup . Any extra or wildcard +// actions in the policy will be rejected. +// +// * The policy cannot include a Resource parameter. +// +// * The ARN in the request must be a valid WAF RuleGroup ARN and the RuleGroup +// must exist in the same region. +// +// * The user making the request must be the owner of the RuleGroup. +// +// * Your policy must be composed using IAM Policy version 2012-10-17. +type WAFInvalidPermissionPolicyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFInvalidPermissionPolicyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInvalidPermissionPolicyException) GoString() string { + return s.String() +} + +func newErrorWAFInvalidPermissionPolicyException(v protocol.ResponseMetadata) error { + return &WAFInvalidPermissionPolicyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInvalidPermissionPolicyException) Code() string { + return "WAFInvalidPermissionPolicyException" +} + +// Message returns the exception's message. +func (s WAFInvalidPermissionPolicyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInvalidPermissionPolicyException) OrigErr() error { + return nil +} + +func (s WAFInvalidPermissionPolicyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInvalidPermissionPolicyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInvalidPermissionPolicyException) RequestID() string { + return s.respMetadata.RequestID +} + +// The regular expression (regex) you specified in RegexPatternString is invalid. +type WAFInvalidRegexPatternException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFInvalidRegexPatternException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInvalidRegexPatternException) GoString() string { + return s.String() +} + +func newErrorWAFInvalidRegexPatternException(v protocol.ResponseMetadata) error { + return &WAFInvalidRegexPatternException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInvalidRegexPatternException) Code() string { + return "WAFInvalidRegexPatternException" +} + +// Message returns the exception's message. +func (s WAFInvalidRegexPatternException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInvalidRegexPatternException) OrigErr() error { + return nil +} + +func (s WAFInvalidRegexPatternException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInvalidRegexPatternException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInvalidRegexPatternException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation exceeds a resource limit, for example, the maximum number of +// WebACL objects that you can create for an AWS account. For more information, +// see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +type WAFLimitsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFLimitsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFLimitsExceededException) GoString() string { + return s.String() +} + +func newErrorWAFLimitsExceededException(v protocol.ResponseMetadata) error { + return &WAFLimitsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFLimitsExceededException) Code() string { + return "WAFLimitsExceededException" +} + +// Message returns the exception's message. +func (s WAFLimitsExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFLimitsExceededException) OrigErr() error { + return nil +} + +func (s WAFLimitsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFLimitsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFLimitsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because you tried to delete an object that isn't empty. +// For example: +// +// * You tried to delete a WebACL that still contains one or more Rule objects. +// +// * You tried to delete a Rule that still contains one or more ByteMatchSet +// objects or other predicates. +// +// * You tried to delete a ByteMatchSet that contains one or more ByteMatchTuple +// objects. +// +// * You tried to delete an IPSet that references one or more IP addresses. +type WAFNonEmptyEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFNonEmptyEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFNonEmptyEntityException) GoString() string { + return s.String() +} + +func newErrorWAFNonEmptyEntityException(v protocol.ResponseMetadata) error { + return &WAFNonEmptyEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFNonEmptyEntityException) Code() string { + return "WAFNonEmptyEntityException" +} + +// Message returns the exception's message. +func (s WAFNonEmptyEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFNonEmptyEntityException) OrigErr() error { + return nil +} + +func (s WAFNonEmptyEntityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFNonEmptyEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFNonEmptyEntityException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because you tried to add an object to or delete an object +// from another object that doesn't exist. For example: +// +// * You tried to add a Rule to or delete a Rule from a WebACL that doesn't +// exist. +// +// * You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule +// that doesn't exist. +// +// * You tried to add an IP address to or delete an IP address from an IPSet +// that doesn't exist. +// +// * You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from +// a ByteMatchSet that doesn't exist. +type WAFNonexistentContainerException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFNonexistentContainerException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFNonexistentContainerException) GoString() string { + return s.String() +} + +func newErrorWAFNonexistentContainerException(v protocol.ResponseMetadata) error { + return &WAFNonexistentContainerException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFNonexistentContainerException) Code() string { + return "WAFNonexistentContainerException" +} + +// Message returns the exception's message. +func (s WAFNonexistentContainerException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFNonexistentContainerException) OrigErr() error { + return nil +} + +func (s WAFNonexistentContainerException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFNonexistentContainerException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFNonexistentContainerException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because the referenced object doesn't exist. +type WAFNonexistentItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFNonexistentItemException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFNonexistentItemException) GoString() string { + return s.String() +} + +func newErrorWAFNonexistentItemException(v protocol.ResponseMetadata) error { + return &WAFNonexistentItemException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFNonexistentItemException) Code() string { + return "WAFNonexistentItemException" +} + +// Message returns the exception's message. +func (s WAFNonexistentItemException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFNonexistentItemException) OrigErr() error { + return nil +} + +func (s WAFNonexistentItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFNonexistentItemException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFNonexistentItemException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because you tried to delete an object that is still +// in use. For example: +// +// * You tried to delete a ByteMatchSet that is still referenced by a Rule. +// +// * You tried to delete a Rule that is still referenced by a WebACL. +type WAFReferencedItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFReferencedItemException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFReferencedItemException) GoString() string { + return s.String() +} + +func newErrorWAFReferencedItemException(v protocol.ResponseMetadata) error { + return &WAFReferencedItemException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFReferencedItemException) Code() string { + return "WAFReferencedItemException" +} + +// Message returns the exception's message. +func (s WAFReferencedItemException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFReferencedItemException) OrigErr() error { + return nil +} + +func (s WAFReferencedItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFReferencedItemException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFReferencedItemException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF is not able to access the service linked role. This can be caused +// by a previous PutLoggingConfiguration request, which can lock the service +// linked role for about 20 seconds. Please try your request again. The service +// linked role can also be locked by a previous DeleteServiceLinkedRole request, +// which can lock the role for 15 minutes or more. If you recently made a DeleteServiceLinkedRole, +// wait at least 15 minutes and try the request again. If you receive this same +// exception again, you will have to wait additional time until the role is +// unlocked. +type WAFServiceLinkedRoleErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFServiceLinkedRoleErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFServiceLinkedRoleErrorException) GoString() string { + return s.String() +} + +func newErrorWAFServiceLinkedRoleErrorException(v protocol.ResponseMetadata) error { + return &WAFServiceLinkedRoleErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFServiceLinkedRoleErrorException) Code() string { + return "WAFServiceLinkedRoleErrorException" +} + +// Message returns the exception's message. +func (s WAFServiceLinkedRoleErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFServiceLinkedRoleErrorException) OrigErr() error { + return nil +} + +func (s WAFServiceLinkedRoleErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFServiceLinkedRoleErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFServiceLinkedRoleErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because you tried to create, update, or delete an object +// by using a change token that has already been used. +type WAFStaleDataException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFStaleDataException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFStaleDataException) GoString() string { + return s.String() +} + +func newErrorWAFStaleDataException(v protocol.ResponseMetadata) error { + return &WAFStaleDataException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFStaleDataException) Code() string { + return "WAFStaleDataException" +} + +// Message returns the exception's message. +func (s WAFStaleDataException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFStaleDataException) OrigErr() error { + return nil +} + +func (s WAFStaleDataException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFStaleDataException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFStaleDataException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified subscription does not exist. +type WAFSubscriptionNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFSubscriptionNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFSubscriptionNotFoundException) GoString() string { + return s.String() +} + +func newErrorWAFSubscriptionNotFoundException(v protocol.ResponseMetadata) error { + return &WAFSubscriptionNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFSubscriptionNotFoundException) Code() string { + return "WAFSubscriptionNotFoundException" +} + +// Message returns the exception's message. +func (s WAFSubscriptionNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFSubscriptionNotFoundException) OrigErr() error { + return nil +} + +func (s WAFSubscriptionNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFSubscriptionNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFSubscriptionNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +type WAFTagOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFTagOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFTagOperationException) GoString() string { + return s.String() +} + +func newErrorWAFTagOperationException(v protocol.ResponseMetadata) error { + return &WAFTagOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFTagOperationException) Code() string { + return "WAFTagOperationException" +} + +// Message returns the exception's message. +func (s WAFTagOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFTagOperationException) OrigErr() error { + return nil +} + +func (s WAFTagOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFTagOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFTagOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +type WAFTagOperationInternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFTagOperationInternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFTagOperationInternalErrorException) GoString() string { + return s.String() +} + +func newErrorWAFTagOperationInternalErrorException(v protocol.ResponseMetadata) error { + return &WAFTagOperationInternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFTagOperationInternalErrorException) Code() string { + return "WAFTagOperationInternalErrorException" +} + +// Message returns the exception's message. +func (s WAFTagOperationInternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFTagOperationInternalErrorException) OrigErr() error { + return nil +} + +func (s WAFTagOperationInternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFTagOperationInternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFTagOperationInternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because the entity referenced is temporarily unavailable. +// Retry your request. +type WAFUnavailableEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFUnavailableEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFUnavailableEntityException) GoString() string { + return s.String() +} + +func newErrorWAFUnavailableEntityException(v protocol.ResponseMetadata) error { + return &WAFUnavailableEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFUnavailableEntityException) Code() string { + return "WAFUnavailableEntityException" +} + +// Message returns the exception's message. +func (s WAFUnavailableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFUnavailableEntityException) OrigErr() error { + return nil +} + +func (s WAFUnavailableEntityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFUnavailableEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFUnavailableEntityException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // ChangeActionInsert is a ChangeAction enum value ChangeActionInsert = "INSERT" diff --git a/service/wafregional/errors.go b/service/wafregional/errors.go index 76315ecfbba..e0220535780 100644 --- a/service/wafregional/errors.go +++ b/service/wafregional/errors.go @@ -2,6 +2,10 @@ package wafregional +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeWAFBadRequestException for service response error code @@ -217,3 +221,25 @@ const ( // Retry your request. ErrCodeWAFUnavailableEntityException = "WAFUnavailableEntityException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "WAFBadRequestException": newErrorWAFBadRequestException, + "WAFDisallowedNameException": newErrorWAFDisallowedNameException, + "WAFInternalErrorException": newErrorWAFInternalErrorException, + "WAFInvalidAccountException": newErrorWAFInvalidAccountException, + "WAFInvalidOperationException": newErrorWAFInvalidOperationException, + "WAFInvalidParameterException": newErrorWAFInvalidParameterException, + "WAFInvalidPermissionPolicyException": newErrorWAFInvalidPermissionPolicyException, + "WAFInvalidRegexPatternException": newErrorWAFInvalidRegexPatternException, + "WAFLimitsExceededException": newErrorWAFLimitsExceededException, + "WAFNonEmptyEntityException": newErrorWAFNonEmptyEntityException, + "WAFNonexistentContainerException": newErrorWAFNonexistentContainerException, + "WAFNonexistentItemException": newErrorWAFNonexistentItemException, + "WAFReferencedItemException": newErrorWAFReferencedItemException, + "WAFServiceLinkedRoleErrorException": newErrorWAFServiceLinkedRoleErrorException, + "WAFStaleDataException": newErrorWAFStaleDataException, + "WAFSubscriptionNotFoundException": newErrorWAFSubscriptionNotFoundException, + "WAFTagOperationException": newErrorWAFTagOperationException, + "WAFTagOperationInternalErrorException": newErrorWAFTagOperationInternalErrorException, + "WAFUnavailableEntityException": newErrorWAFUnavailableEntityException, +} diff --git a/service/wafregional/service.go b/service/wafregional/service.go index d78d84d13e2..769e4176756 100644 --- a/service/wafregional/service.go +++ b/service/wafregional/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/wafv2/api.go b/service/wafv2/api.go index fa84c1096ce..9f21941e555 100644 --- a/service/wafv2/api.go +++ b/service/wafv2/api.go @@ -78,12 +78,12 @@ func (c *WAFV2) AssociateWebACLRequest(input *AssociateWebACLInput) (req *reques // See the AWS API reference guide for AWS WAFV2's // API operation AssociateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -98,11 +98,11 @@ func (c *WAFV2) AssociateWebACLRequest(input *AssociateWebACLInput) (req *reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/AssociateWebACL @@ -195,12 +195,12 @@ func (c *WAFV2) CheckCapacityRequest(input *CheckCapacityInput) (req *request.Re // See the AWS API reference guide for AWS WAFV2's // API operation CheckCapacity for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -215,21 +215,21 @@ func (c *WAFV2) CheckCapacityRequest(input *CheckCapacityInput) (req *request.Re // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFInvalidResourceException "WAFInvalidResourceException" +// * WAFInvalidResourceException // AWS WAF couldn’t perform the operation because the resource that you requested // isn’t valid. Check the resource, and try again. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/CheckCapacity @@ -315,12 +315,12 @@ func (c *WAFV2) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Reques // See the AWS API reference guide for AWS WAFV2's // API operation CreateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -335,26 +335,26 @@ func (c *WAFV2) CreateIPSetRequest(input *CreateIPSetInput) (req *request.Reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -438,12 +438,12 @@ func (c *WAFV2) CreateRegexPatternSetRequest(input *CreateRegexPatternSetInput) // See the AWS API reference guide for AWS WAFV2's // API operation CreateRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -458,26 +458,26 @@ func (c *WAFV2) CreateRegexPatternSetRequest(input *CreateRegexPatternSetInput) // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -567,12 +567,12 @@ func (c *WAFV2) CreateRuleGroupRequest(input *CreateRuleGroupInput) (req *reques // See the AWS API reference guide for AWS WAFV2's // API operation CreateRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -587,29 +587,29 @@ func (c *WAFV2) CreateRuleGroupRequest(input *CreateRuleGroupInput) (req *reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -702,12 +702,12 @@ func (c *WAFV2) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Requ // See the AWS API reference guide for AWS WAFV2's // API operation CreateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -722,37 +722,37 @@ func (c *WAFV2) CreateWebACLRequest(input *CreateWebACLInput) (req *request.Requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFInvalidResourceException "WAFInvalidResourceException" +// * WAFInvalidResourceException // AWS WAF couldn’t perform the operation because the resource that you requested // isn’t valid. Check the resource, and try again. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -837,12 +837,12 @@ func (c *WAFV2) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Reques // See the AWS API reference guide for AWS WAFV2's // API operation DeleteIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -857,20 +857,20 @@ func (c *WAFV2) DeleteIPSetRequest(input *DeleteIPSetInput) (req *request.Reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -955,16 +955,16 @@ func (c *WAFV2) DeleteLoggingConfigurationRequest(input *DeleteLoggingConfigurat // See the AWS API reference guide for AWS WAFV2's // API operation DeleteLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your @@ -1051,12 +1051,12 @@ func (c *WAFV2) DeleteRegexPatternSetRequest(input *DeleteRegexPatternSetInput) // See the AWS API reference guide for AWS WAFV2's // API operation DeleteRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1071,20 +1071,20 @@ func (c *WAFV2) DeleteRegexPatternSetRequest(input *DeleteRegexPatternSetInput) // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -1169,12 +1169,12 @@ func (c *WAFV2) DeleteRuleGroupRequest(input *DeleteRuleGroupInput) (req *reques // See the AWS API reference guide for AWS WAFV2's // API operation DeleteRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1189,20 +1189,20 @@ func (c *WAFV2) DeleteRuleGroupRequest(input *DeleteRuleGroupInput) (req *reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -1287,12 +1287,12 @@ func (c *WAFV2) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Requ // See the AWS API reference guide for AWS WAFV2's // API operation DeleteWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1307,24 +1307,24 @@ func (c *WAFV2) DeleteWebACLRequest(input *DeleteWebACLInput) (req *request.Requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFAssociatedItemException "WAFAssociatedItemException" +// * WAFAssociatedItemException // AWS WAF couldn’t perform the operation because your resource is being used // by another resource or it’s associated with another resource. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -1409,12 +1409,12 @@ func (c *WAFV2) DescribeManagedRuleGroupRequest(input *DescribeManagedRuleGroupI // See the AWS API reference guide for AWS WAFV2's // API operation DescribeManagedRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1429,11 +1429,11 @@ func (c *WAFV2) DescribeManagedRuleGroupRequest(input *DescribeManagedRuleGroupI // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFInvalidResourceException "WAFInvalidResourceException" +// * WAFInvalidResourceException // AWS WAF couldn’t perform the operation because the resource that you requested // isn’t valid. Check the resource, and try again. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -1523,12 +1523,12 @@ func (c *WAFV2) DisassociateWebACLRequest(input *DisassociateWebACLInput) (req * // See the AWS API reference guide for AWS WAFV2's // API operation DisassociateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1543,7 +1543,7 @@ func (c *WAFV2) DisassociateWebACLRequest(input *DisassociateWebACLInput) (req * // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -1627,12 +1627,12 @@ func (c *WAFV2) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, out // See the AWS API reference guide for AWS WAFV2's // API operation GetIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1647,7 +1647,7 @@ func (c *WAFV2) GetIPSetRequest(input *GetIPSetInput) (req *request.Request, out // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -1731,12 +1731,12 @@ func (c *WAFV2) GetLoggingConfigurationRequest(input *GetLoggingConfigurationInp // See the AWS API reference guide for AWS WAFV2's // API operation GetLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -1823,12 +1823,12 @@ func (c *WAFV2) GetRateBasedStatementManagedKeysRequest(input *GetRateBasedState // See the AWS API reference guide for AWS WAFV2's // API operation GetRateBasedStatementManagedKeys for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1843,7 +1843,7 @@ func (c *WAFV2) GetRateBasedStatementManagedKeysRequest(input *GetRateBasedState // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -1927,12 +1927,12 @@ func (c *WAFV2) GetRegexPatternSetRequest(input *GetRegexPatternSetInput) (req * // See the AWS API reference guide for AWS WAFV2's // API operation GetRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -1947,7 +1947,7 @@ func (c *WAFV2) GetRegexPatternSetRequest(input *GetRegexPatternSetInput) (req * // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -2031,12 +2031,12 @@ func (c *WAFV2) GetRuleGroupRequest(input *GetRuleGroupInput) (req *request.Requ // See the AWS API reference guide for AWS WAFV2's // API operation GetRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2051,7 +2051,7 @@ func (c *WAFV2) GetRuleGroupRequest(input *GetRuleGroupInput) (req *request.Requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -2145,16 +2145,16 @@ func (c *WAFV2) GetSampledRequestsRequest(input *GetSampledRequestsInput) (req * // See the AWS API reference guide for AWS WAFV2's // API operation GetSampledRequests for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// Returned Error Types: +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2249,12 +2249,12 @@ func (c *WAFV2) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, o // See the AWS API reference guide for AWS WAFV2's // API operation GetWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2269,7 +2269,7 @@ func (c *WAFV2) GetWebACLRequest(input *GetWebACLInput) (req *request.Request, o // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // @@ -2353,16 +2353,16 @@ func (c *WAFV2) GetWebACLForResourceRequest(input *GetWebACLForResourceInput) (r // See the AWS API reference guide for AWS WAFV2's // API operation GetWebACLForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2377,7 +2377,7 @@ func (c *WAFV2) GetWebACLForResourceRequest(input *GetWebACLForResourceInput) (r // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/GetWebACLForResource @@ -2462,12 +2462,12 @@ func (c *WAFV2) ListAvailableManagedRuleGroupsRequest(input *ListAvailableManage // See the AWS API reference guide for AWS WAFV2's // API operation ListAvailableManagedRuleGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2562,12 +2562,12 @@ func (c *WAFV2) ListIPSetsRequest(input *ListIPSetsInput) (req *request.Request, // See the AWS API reference guide for AWS WAFV2's // API operation ListIPSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2662,12 +2662,12 @@ func (c *WAFV2) ListLoggingConfigurationsRequest(input *ListLoggingConfiguration // See the AWS API reference guide for AWS WAFV2's // API operation ListLoggingConfigurations for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2763,12 +2763,12 @@ func (c *WAFV2) ListRegexPatternSetsRequest(input *ListRegexPatternSetsInput) (r // See the AWS API reference guide for AWS WAFV2's // API operation ListRegexPatternSets for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2865,16 +2865,16 @@ func (c *WAFV2) ListResourcesForWebACLRequest(input *ListResourcesForWebACLInput // See the AWS API reference guide for AWS WAFV2's // API operation ListResourcesForWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -2970,12 +2970,12 @@ func (c *WAFV2) ListRuleGroupsRequest(input *ListRuleGroupsInput) (req *request. // See the AWS API reference guide for AWS WAFV2's // API operation ListRuleGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3070,12 +3070,12 @@ func (c *WAFV2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req // See the AWS API reference guide for AWS WAFV2's // API operation ListTagsForResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3090,14 +3090,14 @@ func (c *WAFV2) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -3181,12 +3181,12 @@ func (c *WAFV2) ListWebACLsRequest(input *ListWebACLsInput) (req *request.Reques // See the AWS API reference guide for AWS WAFV2's // API operation ListWebACLs for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3301,22 +3301,22 @@ func (c *WAFV2) PutLoggingConfigurationRequest(input *PutLoggingConfigurationInp // See the AWS API reference guide for AWS WAFV2's // API operation PutLoggingConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFServiceLinkedRoleErrorException "WAFServiceLinkedRoleErrorException" +// * WAFServiceLinkedRoleErrorException // AWS WAF is not able to access the service linked role. This can be caused // by a previous PutLoggingConfiguration request, which can lock the service // linked role for about 20 seconds. Please try your request again. The service @@ -3326,7 +3326,7 @@ func (c *WAFV2) PutLoggingConfigurationRequest(input *PutLoggingConfigurationInp // again. If you receive this same exception again, you will have to wait additional // time until the role is unlocked. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3426,12 +3426,12 @@ func (c *WAFV2) TagResourceRequest(input *TagResourceInput) (req *request.Reques // See the AWS API reference guide for AWS WAFV2's // API operation TagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3446,20 +3446,20 @@ func (c *WAFV2) TagResourceRequest(input *TagResourceInput) (req *request.Reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -3547,12 +3547,12 @@ func (c *WAFV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Re // See the AWS API reference guide for AWS WAFV2's // API operation UntagResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3567,14 +3567,14 @@ func (c *WAFV2) UntagResourceRequest(input *UntagResourceInput) (req *request.Re // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFTagOperationException "WAFTagOperationException" +// * WAFTagOperationException // An error occurred during the tagging operation. Retry your request. // -// * ErrCodeWAFTagOperationInternalErrorException "WAFTagOperationInternalErrorException" +// * WAFTagOperationInternalErrorException // AWS WAF couldn’t perform your tagging operation because of an internal // error. Retry your request. // @@ -3658,12 +3658,12 @@ func (c *WAFV2) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Reques // See the AWS API reference guide for AWS WAFV2's // API operation UpdateIPSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3678,21 +3678,21 @@ func (c *WAFV2) UpdateIPSetRequest(input *UpdateIPSetInput) (req *request.Reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -3778,12 +3778,12 @@ func (c *WAFV2) UpdateRegexPatternSetRequest(input *UpdateRegexPatternSetInput) // See the AWS API reference guide for AWS WAFV2's // API operation UpdateRegexPatternSet for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3798,21 +3798,21 @@ func (c *WAFV2) UpdateRegexPatternSetRequest(input *UpdateRegexPatternSetInput) // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) @@ -3904,12 +3904,12 @@ func (c *WAFV2) UpdateRuleGroupRequest(input *UpdateRuleGroupInput) (req *reques // See the AWS API reference guide for AWS WAFV2's // API operation UpdateRuleGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -3924,27 +3924,27 @@ func (c *WAFV2) UpdateRuleGroupRequest(input *UpdateRuleGroupInput) (req *reques // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/UpdateRuleGroup @@ -4036,12 +4036,12 @@ func (c *WAFV2) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Requ // See the AWS API reference guide for AWS WAFV2's // API operation UpdateWebACL for usage and error information. // -// Returned Error Codes: -// * ErrCodeWAFInternalErrorException "WAFInternalErrorException" +// Returned Error Types: +// * WAFInternalErrorException // Your request is valid, but AWS WAF couldn’t perform the operation because // of a system problem. Retry your request. // -// * ErrCodeWAFInvalidParameterException "WAFInvalidParameterException" +// * WAFInvalidParameterException // The operation failed because AWS WAF didn't recognize a parameter in the // request. For example: // @@ -4056,31 +4056,31 @@ func (c *WAFV2) UpdateWebACLRequest(input *UpdateWebACLInput) (req *request.Requ // * Your request references an ARN that is malformed, or corresponds to // a resource with which a Web ACL cannot be associated. // -// * ErrCodeWAFNonexistentItemException "WAFNonexistentItemException" +// * WAFNonexistentItemException // AWS WAF couldn’t perform the operation because your resource doesn’t // exist. // -// * ErrCodeWAFDuplicateItemException "WAFDuplicateItemException" +// * WAFDuplicateItemException // AWS WAF couldn’t perform the operation because the resource that you tried // to save is a duplicate of an existing one. // -// * ErrCodeWAFOptimisticLockException "WAFOptimisticLockException" +// * WAFOptimisticLockException // AWS WAF couldn’t save your changes because you tried to update or delete // a resource that has changed since you last retrieved it. Get the resource // again, make any changes you need to make to the new copy, and retry your // operation. // -// * ErrCodeWAFLimitsExceededException "WAFLimitsExceededException" +// * WAFLimitsExceededException // AWS WAF couldn’t perform the operation because you exceeded your resource // limit. For example, the maximum number of WebACL objects that you can create // for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) // in the AWS WAF Developer Guide. // -// * ErrCodeWAFInvalidResourceException "WAFInvalidResourceException" +// * WAFInvalidResourceException // AWS WAF couldn’t perform the operation because the resource that you requested // isn’t valid. Check the resource, and try again. // -// * ErrCodeWAFUnavailableEntityException "WAFUnavailableEntityException" +// * WAFUnavailableEntityException // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. // // See also, https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/UpdateWebACL @@ -11929,6 +11929,715 @@ func (s *VisibilityConfig) SetSampledRequestsEnabled(v bool) *VisibilityConfig { return s } +// AWS WAF couldn’t perform the operation because your resource is being used +// by another resource or it’s associated with another resource. +type WAFAssociatedItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFAssociatedItemException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFAssociatedItemException) GoString() string { + return s.String() +} + +func newErrorWAFAssociatedItemException(v protocol.ResponseMetadata) error { + return &WAFAssociatedItemException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFAssociatedItemException) Code() string { + return "WAFAssociatedItemException" +} + +// Message returns the exception's message. +func (s WAFAssociatedItemException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFAssociatedItemException) OrigErr() error { + return nil +} + +func (s WAFAssociatedItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFAssociatedItemException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFAssociatedItemException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF couldn’t perform the operation because the resource that you tried +// to save is a duplicate of an existing one. +type WAFDuplicateItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFDuplicateItemException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFDuplicateItemException) GoString() string { + return s.String() +} + +func newErrorWAFDuplicateItemException(v protocol.ResponseMetadata) error { + return &WAFDuplicateItemException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFDuplicateItemException) Code() string { + return "WAFDuplicateItemException" +} + +// Message returns the exception's message. +func (s WAFDuplicateItemException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFDuplicateItemException) OrigErr() error { + return nil +} + +func (s WAFDuplicateItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFDuplicateItemException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFDuplicateItemException) RequestID() string { + return s.respMetadata.RequestID +} + +// Your request is valid, but AWS WAF couldn’t perform the operation because +// of a system problem. Retry your request. +type WAFInternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFInternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInternalErrorException) GoString() string { + return s.String() +} + +func newErrorWAFInternalErrorException(v protocol.ResponseMetadata) error { + return &WAFInternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInternalErrorException) Code() string { + return "WAFInternalErrorException" +} + +// Message returns the exception's message. +func (s WAFInternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInternalErrorException) OrigErr() error { + return nil +} + +func (s WAFInternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation failed because AWS WAF didn't recognize a parameter in the +// request. For example: +// +// * You specified an invalid parameter name or value. +// +// * Your nested statement isn't valid. You might have tried to nest a statement +// that can’t be nested. +// +// * You tried to update a WebACL with a DefaultAction that isn't among the +// types available at DefaultAction. +// +// * Your request references an ARN that is malformed, or corresponds to +// a resource with which a Web ACL cannot be associated. +type WAFInvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Field *string `type:"string" enum:"ParameterExceptionField"` + + Message_ *string `locationName:"message" type:"string"` + + Parameter *string `min:"1" type:"string"` + + Reason *string `type:"string"` +} + +// String returns the string representation +func (s WAFInvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInvalidParameterException) GoString() string { + return s.String() +} + +func newErrorWAFInvalidParameterException(v protocol.ResponseMetadata) error { + return &WAFInvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInvalidParameterException) Code() string { + return "WAFInvalidParameterException" +} + +// Message returns the exception's message. +func (s WAFInvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInvalidParameterException) OrigErr() error { + return nil +} + +func (s WAFInvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF couldn’t perform the operation because the resource that you requested +// isn’t valid. Check the resource, and try again. +type WAFInvalidResourceException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFInvalidResourceException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFInvalidResourceException) GoString() string { + return s.String() +} + +func newErrorWAFInvalidResourceException(v protocol.ResponseMetadata) error { + return &WAFInvalidResourceException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFInvalidResourceException) Code() string { + return "WAFInvalidResourceException" +} + +// Message returns the exception's message. +func (s WAFInvalidResourceException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFInvalidResourceException) OrigErr() error { + return nil +} + +func (s WAFInvalidResourceException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFInvalidResourceException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFInvalidResourceException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF couldn’t perform the operation because you exceeded your resource +// limit. For example, the maximum number of WebACL objects that you can create +// for an AWS account. For more information, see Limits (https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) +// in the AWS WAF Developer Guide. +type WAFLimitsExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFLimitsExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFLimitsExceededException) GoString() string { + return s.String() +} + +func newErrorWAFLimitsExceededException(v protocol.ResponseMetadata) error { + return &WAFLimitsExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFLimitsExceededException) Code() string { + return "WAFLimitsExceededException" +} + +// Message returns the exception's message. +func (s WAFLimitsExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFLimitsExceededException) OrigErr() error { + return nil +} + +func (s WAFLimitsExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFLimitsExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFLimitsExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF couldn’t perform the operation because your resource doesn’t +// exist. +type WAFNonexistentItemException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFNonexistentItemException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFNonexistentItemException) GoString() string { + return s.String() +} + +func newErrorWAFNonexistentItemException(v protocol.ResponseMetadata) error { + return &WAFNonexistentItemException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFNonexistentItemException) Code() string { + return "WAFNonexistentItemException" +} + +// Message returns the exception's message. +func (s WAFNonexistentItemException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFNonexistentItemException) OrigErr() error { + return nil +} + +func (s WAFNonexistentItemException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFNonexistentItemException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFNonexistentItemException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF couldn’t save your changes because you tried to update or delete +// a resource that has changed since you last retrieved it. Get the resource +// again, make any changes you need to make to the new copy, and retry your +// operation. +type WAFOptimisticLockException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFOptimisticLockException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFOptimisticLockException) GoString() string { + return s.String() +} + +func newErrorWAFOptimisticLockException(v protocol.ResponseMetadata) error { + return &WAFOptimisticLockException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFOptimisticLockException) Code() string { + return "WAFOptimisticLockException" +} + +// Message returns the exception's message. +func (s WAFOptimisticLockException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFOptimisticLockException) OrigErr() error { + return nil +} + +func (s WAFOptimisticLockException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFOptimisticLockException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFOptimisticLockException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF is not able to access the service linked role. This can be caused +// by a previous PutLoggingConfiguration request, which can lock the service +// linked role for about 20 seconds. Please try your request again. The service +// linked role can also be locked by a previous DeleteServiceLinkedRole request, +// which can lock the role for 15 minutes or more. If you recently made a call +// to DeleteServiceLinkedRole, wait at least 15 minutes and try the request +// again. If you receive this same exception again, you will have to wait additional +// time until the role is unlocked. +type WAFServiceLinkedRoleErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WAFServiceLinkedRoleErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFServiceLinkedRoleErrorException) GoString() string { + return s.String() +} + +func newErrorWAFServiceLinkedRoleErrorException(v protocol.ResponseMetadata) error { + return &WAFServiceLinkedRoleErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFServiceLinkedRoleErrorException) Code() string { + return "WAFServiceLinkedRoleErrorException" +} + +// Message returns the exception's message. +func (s WAFServiceLinkedRoleErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFServiceLinkedRoleErrorException) OrigErr() error { + return nil +} + +func (s WAFServiceLinkedRoleErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFServiceLinkedRoleErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFServiceLinkedRoleErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// An error occurred during the tagging operation. Retry your request. +type WAFTagOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFTagOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFTagOperationException) GoString() string { + return s.String() +} + +func newErrorWAFTagOperationException(v protocol.ResponseMetadata) error { + return &WAFTagOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFTagOperationException) Code() string { + return "WAFTagOperationException" +} + +// Message returns the exception's message. +func (s WAFTagOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFTagOperationException) OrigErr() error { + return nil +} + +func (s WAFTagOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFTagOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFTagOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF couldn’t perform your tagging operation because of an internal +// error. Retry your request. +type WAFTagOperationInternalErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFTagOperationInternalErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFTagOperationInternalErrorException) GoString() string { + return s.String() +} + +func newErrorWAFTagOperationInternalErrorException(v protocol.ResponseMetadata) error { + return &WAFTagOperationInternalErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFTagOperationInternalErrorException) Code() string { + return "WAFTagOperationInternalErrorException" +} + +// Message returns the exception's message. +func (s WAFTagOperationInternalErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFTagOperationInternalErrorException) OrigErr() error { + return nil +} + +func (s WAFTagOperationInternalErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFTagOperationInternalErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFTagOperationInternalErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// AWS WAF couldn’t retrieve the resource that you requested. Retry your request. +type WAFUnavailableEntityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s WAFUnavailableEntityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WAFUnavailableEntityException) GoString() string { + return s.String() +} + +func newErrorWAFUnavailableEntityException(v protocol.ResponseMetadata) error { + return &WAFUnavailableEntityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WAFUnavailableEntityException) Code() string { + return "WAFUnavailableEntityException" +} + +// Message returns the exception's message. +func (s WAFUnavailableEntityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WAFUnavailableEntityException) OrigErr() error { + return nil +} + +func (s WAFUnavailableEntityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WAFUnavailableEntityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WAFUnavailableEntityException) RequestID() string { + return s.respMetadata.RequestID +} + // // This is the latest version of AWS WAF, named AWS WAFV2, released in November, // 2019. For information, including how to migrate your AWS WAF resources from diff --git a/service/wafv2/errors.go b/service/wafv2/errors.go index fe1cbafc3c4..0e2499c566d 100644 --- a/service/wafv2/errors.go +++ b/service/wafv2/errors.go @@ -2,6 +2,10 @@ package wafv2 +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeWAFAssociatedItemException for service response error code @@ -107,3 +111,18 @@ const ( // AWS WAF couldn’t retrieve the resource that you requested. Retry your request. ErrCodeWAFUnavailableEntityException = "WAFUnavailableEntityException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "WAFAssociatedItemException": newErrorWAFAssociatedItemException, + "WAFDuplicateItemException": newErrorWAFDuplicateItemException, + "WAFInternalErrorException": newErrorWAFInternalErrorException, + "WAFInvalidParameterException": newErrorWAFInvalidParameterException, + "WAFInvalidResourceException": newErrorWAFInvalidResourceException, + "WAFLimitsExceededException": newErrorWAFLimitsExceededException, + "WAFNonexistentItemException": newErrorWAFNonexistentItemException, + "WAFOptimisticLockException": newErrorWAFOptimisticLockException, + "WAFServiceLinkedRoleErrorException": newErrorWAFServiceLinkedRoleErrorException, + "WAFTagOperationException": newErrorWAFTagOperationException, + "WAFTagOperationInternalErrorException": newErrorWAFTagOperationInternalErrorException, + "WAFUnavailableEntityException": newErrorWAFUnavailableEntityException, +} diff --git a/service/wafv2/service.go b/service/wafv2/service.go index 3ccc8e251e1..26dda56194c 100644 --- a/service/wafv2/service.go +++ b/service/wafv2/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/workdocs/api.go b/service/workdocs/api.go index c2625faf8db..e4bd65c7ee2 100644 --- a/service/workdocs/api.go +++ b/service/workdocs/api.go @@ -69,25 +69,25 @@ func (c *WorkDocs) AbortDocumentVersionUploadRequest(input *AbortDocumentVersion // See the AWS API reference guide for Amazon WorkDocs's // API operation AbortDocumentVersionUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AbortDocumentVersionUpload @@ -165,22 +165,22 @@ func (c *WorkDocs) ActivateUserRequest(input *ActivateUserInput) (req *request.R // See the AWS API reference guide for Amazon WorkDocs's // API operation ActivateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/ActivateUser @@ -259,19 +259,19 @@ func (c *WorkDocs) AddResourcePermissionsRequest(input *AddResourcePermissionsIn // See the AWS API reference guide for Amazon WorkDocs's // API operation AddResourcePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/AddResourcePermissions @@ -349,32 +349,32 @@ func (c *WorkDocs) CreateCommentRequest(input *CreateCommentInput) (req *request // See the AWS API reference guide for Amazon WorkDocs's // API operation CreateComment for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeDocumentLockedForCommentsException "DocumentLockedForCommentsException" +// * DocumentLockedForCommentsException // This exception is thrown when the document is locked for comments and user // tries to create or delete a comment on that document. // -// * ErrCodeInvalidCommentOperationException "InvalidCommentOperationException" +// * InvalidCommentOperationException // The requested operation is not allowed on the specified comment object. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateComment @@ -454,29 +454,29 @@ func (c *WorkDocs) CreateCustomMetadataRequest(input *CreateCustomMetadataInput) // See the AWS API reference guide for Amazon WorkDocs's // API operation CreateCustomMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeCustomMetadataLimitExceededException "CustomMetadataLimitExceededException" +// * CustomMetadataLimitExceededException // The limit has been reached on the number of custom properties for the specified // resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateCustomMetadata @@ -554,35 +554,35 @@ func (c *WorkDocs) CreateFolderRequest(input *CreateFolderInput) (req *request.R // See the AWS API reference guide for Amazon WorkDocs's // API operation CreateFolder for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// * EntityAlreadyExistsException // The resource already exists. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeConflictingOperationException "ConflictingOperationException" +// * ConflictingOperationException // Another operation is in progress on the resource that conflicts with the // current operation. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The maximum of 100,000 folders under the parent folder has been exceeded. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateFolder @@ -661,25 +661,25 @@ func (c *WorkDocs) CreateLabelsRequest(input *CreateLabelsInput) (req *request.R // See the AWS API reference guide for Amazon WorkDocs's // API operation CreateLabels for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeTooManyLabelsException "TooManyLabelsException" +// * TooManyLabelsException // The limit has been reached on the number of labels for the specified resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateLabels @@ -761,15 +761,15 @@ func (c *WorkDocs) CreateNotificationSubscriptionRequest(input *CreateNotificati // See the AWS API reference guide for Amazon WorkDocs's // API operation CreateNotificationSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// Returned Error Types: +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeTooManySubscriptionsException "TooManySubscriptionsException" +// * TooManySubscriptionsException // You've reached the limit on the number of subscriptions for the WorkDocs // instance. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateNotificationSubscription @@ -848,22 +848,22 @@ func (c *WorkDocs) CreateUserRequest(input *CreateUserInput) (req *request.Reque // See the AWS API reference guide for Amazon WorkDocs's // API operation CreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// Returned Error Types: +// * EntityAlreadyExistsException // The resource already exists. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/CreateUser @@ -943,22 +943,22 @@ func (c *WorkDocs) DeactivateUserRequest(input *DeactivateUserInput) (req *reque // See the AWS API reference guide for Amazon WorkDocs's // API operation DeactivateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeactivateUser @@ -1037,28 +1037,28 @@ func (c *WorkDocs) DeleteCommentRequest(input *DeleteCommentInput) (req *request // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteComment for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeDocumentLockedForCommentsException "DocumentLockedForCommentsException" +// * DocumentLockedForCommentsException // This exception is thrown when the document is locked for comments and user // tries to create or delete a comment on that document. // @@ -1138,25 +1138,25 @@ func (c *WorkDocs) DeleteCustomMetadataRequest(input *DeleteCustomMetadataInput) // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteCustomMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteCustomMetadata @@ -1235,32 +1235,32 @@ func (c *WorkDocs) DeleteDocumentRequest(input *DeleteDocumentInput) (req *reque // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeConflictingOperationException "ConflictingOperationException" +// * ConflictingOperationException // Another operation is in progress on the resource that conflicts with the // current operation. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource hierarchy is changing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteDocument @@ -1339,32 +1339,32 @@ func (c *WorkDocs) DeleteFolderRequest(input *DeleteFolderInput) (req *request.R // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteFolder for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeConflictingOperationException "ConflictingOperationException" +// * ConflictingOperationException // Another operation is in progress on the resource that conflicts with the // current operation. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource hierarchy is changing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolder @@ -1443,29 +1443,29 @@ func (c *WorkDocs) DeleteFolderContentsRequest(input *DeleteFolderContentsInput) // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteFolderContents for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeConflictingOperationException "ConflictingOperationException" +// * ConflictingOperationException // Another operation is in progress on the resource that conflicts with the // current operation. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteFolderContents @@ -1544,22 +1544,22 @@ func (c *WorkDocs) DeleteLabelsRequest(input *DeleteLabelsInput) (req *request.R // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteLabels for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteLabels @@ -1638,17 +1638,17 @@ func (c *WorkDocs) DeleteNotificationSubscriptionRequest(input *DeleteNotificati // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteNotificationSubscription for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// Returned Error Types: +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteNotificationSubscription @@ -1727,22 +1727,22 @@ func (c *WorkDocs) DeleteUserRequest(input *DeleteUserInput) (req *request.Reque // See the AWS API reference guide for Amazon WorkDocs's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUser @@ -1820,22 +1820,22 @@ func (c *WorkDocs) DescribeActivitiesRequest(input *DescribeActivitiesInput) (re // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeActivities for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeActivities @@ -1913,25 +1913,25 @@ func (c *WorkDocs) DescribeCommentsRequest(input *DescribeCommentsInput) (req *r // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeComments for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeComments @@ -2017,28 +2017,28 @@ func (c *WorkDocs) DescribeDocumentVersionsRequest(input *DescribeDocumentVersio // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeDocumentVersions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeDocumentVersions @@ -2180,25 +2180,25 @@ func (c *WorkDocs) DescribeFolderContentsRequest(input *DescribeFolderContentsIn // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeFolderContents for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeFolderContents @@ -2329,19 +2329,19 @@ func (c *WorkDocs) DescribeGroupsRequest(input *DescribeGroupsInput) (req *reque // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeGroups @@ -2419,14 +2419,14 @@ func (c *WorkDocs) DescribeNotificationSubscriptionsRequest(input *DescribeNotif // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeNotificationSubscriptions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// Returned Error Types: +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeNotificationSubscriptions @@ -2504,19 +2504,19 @@ func (c *WorkDocs) DescribeResourcePermissionsRequest(input *DescribeResourcePer // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeResourcePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeResourcePermissions @@ -2602,22 +2602,22 @@ func (c *WorkDocs) DescribeRootFoldersRequest(input *DescribeRootFoldersInput) ( // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeRootFolders for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DescribeRootFolders @@ -2706,28 +2706,28 @@ func (c *WorkDocs) DescribeUsersRequest(input *DescribeUsersInput) (req *request // See the AWS API reference guide for Amazon WorkDocs's // API operation DescribeUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeRequestedEntityTooLargeException "RequestedEntityTooLargeException" +// * RequestedEntityTooLargeException // The response is too large to return. The request must include a filter to // reduce the size of the response. // @@ -2859,22 +2859,22 @@ func (c *WorkDocs) GetCurrentUserRequest(input *GetCurrentUserInput) (req *reque // See the AWS API reference guide for Amazon WorkDocs's // API operation GetCurrentUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetCurrentUser @@ -2952,28 +2952,28 @@ func (c *WorkDocs) GetDocumentRequest(input *GetDocumentInput) (req *request.Req // See the AWS API reference guide for Amazon WorkDocs's // API operation GetDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // The password is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocument @@ -3057,22 +3057,22 @@ func (c *WorkDocs) GetDocumentPathRequest(input *GetDocumentPathInput) (req *req // See the AWS API reference guide for Amazon WorkDocs's // API operation GetDocumentPath for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentPath @@ -3150,28 +3150,28 @@ func (c *WorkDocs) GetDocumentVersionRequest(input *GetDocumentVersionInput) (re // See the AWS API reference guide for Amazon WorkDocs's // API operation GetDocumentVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // The password is invalid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetDocumentVersion @@ -3249,28 +3249,28 @@ func (c *WorkDocs) GetFolderRequest(input *GetFolderInput) (req *request.Request // See the AWS API reference guide for Amazon WorkDocs's // API operation GetFolder for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolder @@ -3354,22 +3354,22 @@ func (c *WorkDocs) GetFolderPathRequest(input *GetFolderPathInput) (req *request // See the AWS API reference guide for Amazon WorkDocs's // API operation GetFolderPath for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetFolderPath @@ -3448,22 +3448,22 @@ func (c *WorkDocs) GetResourcesRequest(input *GetResourcesInput) (req *request.R // See the AWS API reference guide for Amazon WorkDocs's // API operation GetResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// Returned Error Types: +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/GetResources @@ -3548,41 +3548,41 @@ func (c *WorkDocs) InitiateDocumentVersionUploadRequest(input *InitiateDocumentV // See the AWS API reference guide for Amazon WorkDocs's // API operation InitiateDocumentVersionUpload for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// * EntityAlreadyExistsException // The resource already exists. // -// * ErrCodeStorageLimitExceededException "StorageLimitExceededException" +// * StorageLimitExceededException // The storage limit has been exceeded. // -// * ErrCodeStorageLimitWillExceedException "StorageLimitWillExceedException" +// * StorageLimitWillExceedException // The storage limit will be exceeded. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeDraftUploadOutOfSyncException "DraftUploadOutOfSyncException" +// * DraftUploadOutOfSyncException // This exception is thrown when a valid checkout ID is not presented on document // version upload calls for a document that has been checked out from Web client. // -// * ErrCodeResourceAlreadyCheckedOutException "ResourceAlreadyCheckedOutException" +// * ResourceAlreadyCheckedOutException // The resource is already checked out. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/InitiateDocumentVersionUpload @@ -3661,19 +3661,19 @@ func (c *WorkDocs) RemoveAllResourcePermissionsRequest(input *RemoveAllResourceP // See the AWS API reference guide for Amazon WorkDocs's // API operation RemoveAllResourcePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveAllResourcePermissions @@ -3752,19 +3752,19 @@ func (c *WorkDocs) RemoveResourcePermissionRequest(input *RemoveResourcePermissi // See the AWS API reference guide for Amazon WorkDocs's // API operation RemoveResourcePermission for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// Returned Error Types: +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/RemoveResourcePermission @@ -3844,38 +3844,38 @@ func (c *WorkDocs) UpdateDocumentRequest(input *UpdateDocumentInput) (req *reque // See the AWS API reference guide for Amazon WorkDocs's // API operation UpdateDocument for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// * EntityAlreadyExistsException // The resource already exists. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The maximum of 100,000 folders under the parent folder has been exceeded. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeConflictingOperationException "ConflictingOperationException" +// * ConflictingOperationException // Another operation is in progress on the resource that conflicts with the // current operation. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource hierarchy is changing. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocument @@ -3958,31 +3958,31 @@ func (c *WorkDocs) UpdateDocumentVersionRequest(input *UpdateDocumentVersionInpu // See the AWS API reference guide for Amazon WorkDocs's // API operation UpdateDocumentVersion for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource hierarchy is changing. // -// * ErrCodeInvalidOperationException "InvalidOperationException" +// * InvalidOperationException // The operation is invalid. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateDocumentVersion @@ -4062,38 +4062,38 @@ func (c *WorkDocs) UpdateFolderRequest(input *UpdateFolderInput) (req *request.R // See the AWS API reference guide for Amazon WorkDocs's // API operation UpdateFolder for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeEntityAlreadyExistsException "EntityAlreadyExistsException" +// * EntityAlreadyExistsException // The resource already exists. // -// * ErrCodeProhibitedStateException "ProhibitedStateException" +// * ProhibitedStateException // The specified document version is not in the INITIALIZED state. // -// * ErrCodeConflictingOperationException "ConflictingOperationException" +// * ConflictingOperationException // Another operation is in progress on the resource that conflicts with the // current operation. // -// * ErrCodeConcurrentModificationException "ConcurrentModificationException" +// * ConcurrentModificationException // The resource hierarchy is changing. // -// * ErrCodeLimitExceededException "LimitExceededException" +// * LimitExceededException // The maximum of 100,000 folders under the parent folder has been exceeded. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateFolder @@ -4172,31 +4172,31 @@ func (c *WorkDocs) UpdateUserRequest(input *UpdateUserInput) (req *request.Reque // See the AWS API reference guide for Amazon WorkDocs's // API operation UpdateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotExistsException "EntityNotExistsException" +// Returned Error Types: +// * EntityNotExistsException // The resource does not exist. // -// * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException" +// * UnauthorizedOperationException // The operation is not permitted. // -// * ErrCodeUnauthorizedResourceAccessException "UnauthorizedResourceAccessException" +// * UnauthorizedResourceAccessException // The caller does not have access to perform the action on the resource. // -// * ErrCodeIllegalUserStateException "IllegalUserStateException" +// * IllegalUserStateException // The user is undergoing transfer of ownership. // -// * ErrCodeFailedDependencyException "FailedDependencyException" +// * FailedDependencyException // The AWS Directory Service cannot reach an on-premises instance. Or a dependency // under the control of the organization is failing, such as a connected Active // Directory. // -// * ErrCodeServiceUnavailableException "ServiceUnavailableException" +// * ServiceUnavailableException // One or more of the dependencies is unavailable. // -// * ErrCodeDeactivatingLastSystemUserException "DeactivatingLastSystemUserException" +// * DeactivatingLastSystemUserException // The last user in the organization is being deactivated. // -// * ErrCodeInvalidArgumentException "InvalidArgumentException" +// * InvalidArgumentException // The pagination marker or limit fields are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/UpdateUser @@ -4757,6 +4757,119 @@ func (s *CommentMetadata) SetRecipientId(v string) *CommentMetadata { return s } +// The resource hierarchy is changing. +type ConcurrentModificationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConcurrentModificationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConcurrentModificationException) GoString() string { + return s.String() +} + +func newErrorConcurrentModificationException(v protocol.ResponseMetadata) error { + return &ConcurrentModificationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConcurrentModificationException) Code() string { + return "ConcurrentModificationException" +} + +// Message returns the exception's message. +func (s ConcurrentModificationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConcurrentModificationException) OrigErr() error { + return nil +} + +func (s ConcurrentModificationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConcurrentModificationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConcurrentModificationException) RequestID() string { + return s.respMetadata.RequestID +} + +// Another operation is in progress on the resource that conflicts with the +// current operation. +type ConflictingOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ConflictingOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ConflictingOperationException) GoString() string { + return s.String() +} + +func newErrorConflictingOperationException(v protocol.ResponseMetadata) error { + return &ConflictingOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ConflictingOperationException) Code() string { + return "ConflictingOperationException" +} + +// Message returns the exception's message. +func (s ConflictingOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ConflictingOperationException) OrigErr() error { + return nil +} + +func (s ConflictingOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ConflictingOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ConflictingOperationException) RequestID() string { + return s.respMetadata.RequestID +} + type CreateCommentInput struct { _ struct{} `type:"structure"` @@ -5466,6 +5579,63 @@ func (s *CreateUserOutput) SetUser(v *User) *CreateUserOutput { return s } +// The limit has been reached on the number of custom properties for the specified +// resource. +type CustomMetadataLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s CustomMetadataLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s CustomMetadataLimitExceededException) GoString() string { + return s.String() +} + +func newErrorCustomMetadataLimitExceededException(v protocol.ResponseMetadata) error { + return &CustomMetadataLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s CustomMetadataLimitExceededException) Code() string { + return "CustomMetadataLimitExceededException" +} + +// Message returns the exception's message. +func (s CustomMetadataLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s CustomMetadataLimitExceededException) OrigErr() error { + return nil +} + +func (s CustomMetadataLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s CustomMetadataLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s CustomMetadataLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + type DeactivateUserInput struct { _ struct{} `type:"structure"` @@ -5534,6 +5704,57 @@ func (s DeactivateUserOutput) GoString() string { return s.String() } +// The last user in the organization is being deactivated. +type DeactivatingLastSystemUserException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s DeactivatingLastSystemUserException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DeactivatingLastSystemUserException) GoString() string { + return s.String() +} + +func newErrorDeactivatingLastSystemUserException(v protocol.ResponseMetadata) error { + return &DeactivatingLastSystemUserException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DeactivatingLastSystemUserException) Code() string { + return "DeactivatingLastSystemUserException" +} + +// Message returns the exception's message. +func (s DeactivatingLastSystemUserException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DeactivatingLastSystemUserException) OrigErr() error { + return nil +} + +func (s DeactivatingLastSystemUserException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DeactivatingLastSystemUserException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DeactivatingLastSystemUserException) RequestID() string { + return s.respMetadata.RequestID +} + type DeleteCommentInput struct { _ struct{} `type:"structure"` @@ -7398,6 +7619,63 @@ func (s *DescribeUsersOutput) SetUsers(v []*User) *DescribeUsersOutput { return s } +// This exception is thrown when the document is locked for comments and user +// tries to create or delete a comment on that document. +type DocumentLockedForCommentsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DocumentLockedForCommentsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DocumentLockedForCommentsException) GoString() string { + return s.String() +} + +func newErrorDocumentLockedForCommentsException(v protocol.ResponseMetadata) error { + return &DocumentLockedForCommentsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DocumentLockedForCommentsException) Code() string { + return "DocumentLockedForCommentsException" +} + +// Message returns the exception's message. +func (s DocumentLockedForCommentsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DocumentLockedForCommentsException) OrigErr() error { + return nil +} + +func (s DocumentLockedForCommentsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DocumentLockedForCommentsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DocumentLockedForCommentsException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the document. type DocumentMetadata struct { _ struct{} `type:"structure"` @@ -7617,6 +7895,235 @@ func (s *DocumentVersionMetadata) SetThumbnail(v map[string]*string) *DocumentVe return s } +// This exception is thrown when a valid checkout ID is not presented on document +// version upload calls for a document that has been checked out from Web client. +type DraftUploadOutOfSyncException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DraftUploadOutOfSyncException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DraftUploadOutOfSyncException) GoString() string { + return s.String() +} + +func newErrorDraftUploadOutOfSyncException(v protocol.ResponseMetadata) error { + return &DraftUploadOutOfSyncException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DraftUploadOutOfSyncException) Code() string { + return "DraftUploadOutOfSyncException" +} + +// Message returns the exception's message. +func (s DraftUploadOutOfSyncException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DraftUploadOutOfSyncException) OrigErr() error { + return nil +} + +func (s DraftUploadOutOfSyncException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DraftUploadOutOfSyncException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DraftUploadOutOfSyncException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource already exists. +type EntityAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EntityAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorEntityAlreadyExistsException(v protocol.ResponseMetadata) error { + return &EntityAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityAlreadyExistsException) Code() string { + return "EntityAlreadyExistsException" +} + +// Message returns the exception's message. +func (s EntityAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityAlreadyExistsException) OrigErr() error { + return nil +} + +func (s EntityAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource does not exist. +type EntityNotExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + EntityIds []*string `type:"list"` + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EntityNotExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityNotExistsException) GoString() string { + return s.String() +} + +func newErrorEntityNotExistsException(v protocol.ResponseMetadata) error { + return &EntityNotExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityNotExistsException) Code() string { + return "EntityNotExistsException" +} + +// Message returns the exception's message. +func (s EntityNotExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityNotExistsException) OrigErr() error { + return nil +} + +func (s EntityNotExistsException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityNotExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityNotExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The AWS Directory Service cannot reach an on-premises instance. Or a dependency +// under the control of the organization is failing, such as a connected Active +// Directory. +type FailedDependencyException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s FailedDependencyException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s FailedDependencyException) GoString() string { + return s.String() +} + +func newErrorFailedDependencyException(v protocol.ResponseMetadata) error { + return &FailedDependencyException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s FailedDependencyException) Code() string { + return "FailedDependencyException" +} + +// Message returns the exception's message. +func (s FailedDependencyException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s FailedDependencyException) OrigErr() error { + return nil +} + +func (s FailedDependencyException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s FailedDependencyException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s FailedDependencyException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a folder. type FolderMetadata struct { _ struct{} `type:"structure"` @@ -8498,12 +9005,68 @@ func (s *GroupMetadata) SetName(v string) *GroupMetadata { return s } -type InitiateDocumentVersionUploadInput struct { - _ struct{} `type:"structure"` +// The user is undergoing transfer of ownership. +type IllegalUserStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata - // Amazon WorkDocs authentication token. Do not set this field when using administrative - // API actions, as in accessing the API using AWS credentials. - AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s IllegalUserStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s IllegalUserStateException) GoString() string { + return s.String() +} + +func newErrorIllegalUserStateException(v protocol.ResponseMetadata) error { + return &IllegalUserStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s IllegalUserStateException) Code() string { + return "IllegalUserStateException" +} + +// Message returns the exception's message. +func (s IllegalUserStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s IllegalUserStateException) OrigErr() error { + return nil +} + +func (s IllegalUserStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s IllegalUserStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s IllegalUserStateException) RequestID() string { + return s.respMetadata.RequestID +} + +type InitiateDocumentVersionUploadInput struct { + _ struct{} `type:"structure"` + + // Amazon WorkDocs authentication token. Do not set this field when using administrative + // API actions, as in accessing the API using AWS credentials. + AuthenticationToken *string `location:"header" locationName:"Authentication" min:"1" type:"string" sensitive:"true"` // The timestamp when the content of the document was originally created. ContentCreatedTimestamp *time.Time `type:"timestamp"` @@ -8647,6 +9210,286 @@ func (s *InitiateDocumentVersionUploadOutput) SetUploadMetadata(v *UploadMetadat return s } +// The pagination marker or limit fields are not valid. +type InvalidArgumentException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidArgumentException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidArgumentException) GoString() string { + return s.String() +} + +func newErrorInvalidArgumentException(v protocol.ResponseMetadata) error { + return &InvalidArgumentException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidArgumentException) Code() string { + return "InvalidArgumentException" +} + +// Message returns the exception's message. +func (s InvalidArgumentException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidArgumentException) OrigErr() error { + return nil +} + +func (s InvalidArgumentException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidArgumentException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidArgumentException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested operation is not allowed on the specified comment object. +type InvalidCommentOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidCommentOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidCommentOperationException) GoString() string { + return s.String() +} + +func newErrorInvalidCommentOperationException(v protocol.ResponseMetadata) error { + return &InvalidCommentOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidCommentOperationException) Code() string { + return "InvalidCommentOperationException" +} + +// Message returns the exception's message. +func (s InvalidCommentOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidCommentOperationException) OrigErr() error { + return nil +} + +func (s InvalidCommentOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidCommentOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidCommentOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation is invalid. +type InvalidOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidOperationException) GoString() string { + return s.String() +} + +func newErrorInvalidOperationException(v protocol.ResponseMetadata) error { + return &InvalidOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidOperationException) Code() string { + return "InvalidOperationException" +} + +// Message returns the exception's message. +func (s InvalidOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidOperationException) OrigErr() error { + return nil +} + +func (s InvalidOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The password is invalid. +type InvalidPasswordException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidPasswordException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPasswordException) GoString() string { + return s.String() +} + +func newErrorInvalidPasswordException(v protocol.ResponseMetadata) error { + return &InvalidPasswordException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPasswordException) Code() string { + return "InvalidPasswordException" +} + +// Message returns the exception's message. +func (s InvalidPasswordException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPasswordException) OrigErr() error { + return nil +} + +func (s InvalidPasswordException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPasswordException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPasswordException) RequestID() string { + return s.respMetadata.RequestID +} + +// The maximum of 100,000 folders under the parent folder has been exceeded. +type LimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s LimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s LimitExceededException) GoString() string { + return s.String() +} + +func newErrorLimitExceededException(v protocol.ResponseMetadata) error { + return &LimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s LimitExceededException) Code() string { + return "LimitExceededException" +} + +// Message returns the exception's message. +func (s LimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s LimitExceededException) OrigErr() error { + return nil +} + +func (s LimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s LimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s LimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // Set of options which defines notification preferences of given action. type NotificationOptions struct { _ struct{} `type:"structure"` @@ -8788,6 +9631,62 @@ func (s *Principal) SetType(v string) *Principal { return s } +// The specified document version is not in the INITIALIZED state. +type ProhibitedStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ProhibitedStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ProhibitedStateException) GoString() string { + return s.String() +} + +func newErrorProhibitedStateException(v protocol.ResponseMetadata) error { + return &ProhibitedStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ProhibitedStateException) Code() string { + return "ProhibitedStateException" +} + +// Message returns the exception's message. +func (s ProhibitedStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ProhibitedStateException) OrigErr() error { + return nil +} + +func (s ProhibitedStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ProhibitedStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ProhibitedStateException) RequestID() string { + return s.respMetadata.RequestID +} + type RemoveAllResourcePermissionsInput struct { _ struct{} `type:"structure"` @@ -8950,6 +9849,119 @@ func (s RemoveResourcePermissionOutput) GoString() string { return s.String() } +// The response is too large to return. The request must include a filter to +// reduce the size of the response. +type RequestedEntityTooLargeException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s RequestedEntityTooLargeException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RequestedEntityTooLargeException) GoString() string { + return s.String() +} + +func newErrorRequestedEntityTooLargeException(v protocol.ResponseMetadata) error { + return &RequestedEntityTooLargeException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RequestedEntityTooLargeException) Code() string { + return "RequestedEntityTooLargeException" +} + +// Message returns the exception's message. +func (s RequestedEntityTooLargeException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RequestedEntityTooLargeException) OrigErr() error { + return nil +} + +func (s RequestedEntityTooLargeException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RequestedEntityTooLargeException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RequestedEntityTooLargeException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource is already checked out. +type ResourceAlreadyCheckedOutException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyCheckedOutException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyCheckedOutException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyCheckedOutException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyCheckedOutException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyCheckedOutException) Code() string { + return "ResourceAlreadyCheckedOutException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyCheckedOutException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyCheckedOutException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyCheckedOutException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyCheckedOutException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyCheckedOutException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the metadata of a resource. type ResourceMetadata struct { _ struct{} `type:"structure"` @@ -9086,6 +10098,62 @@ func (s *ResourcePathComponent) SetName(v string) *ResourcePathComponent { return s } +// One or more of the dependencies is unavailable. +type ServiceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ServiceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ServiceUnavailableException) GoString() string { + return s.String() +} + +func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { + return &ServiceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ServiceUnavailableException) Code() string { + return "ServiceUnavailableException" +} + +// Message returns the exception's message. +func (s ServiceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ServiceUnavailableException) OrigErr() error { + return nil +} + +func (s ServiceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ServiceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ServiceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the recipient type and ID, if available. type SharePrincipal struct { _ struct{} `type:"structure"` @@ -9225,6 +10293,118 @@ func (s *ShareResult) SetStatusMessage(v string) *ShareResult { return s } +// The storage limit has been exceeded. +type StorageLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s StorageLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageLimitExceededException) GoString() string { + return s.String() +} + +func newErrorStorageLimitExceededException(v protocol.ResponseMetadata) error { + return &StorageLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StorageLimitExceededException) Code() string { + return "StorageLimitExceededException" +} + +// Message returns the exception's message. +func (s StorageLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StorageLimitExceededException) OrigErr() error { + return nil +} + +func (s StorageLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StorageLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StorageLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The storage limit will be exceeded. +type StorageLimitWillExceedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s StorageLimitWillExceedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s StorageLimitWillExceedException) GoString() string { + return s.String() +} + +func newErrorStorageLimitWillExceedException(v protocol.ResponseMetadata) error { + return &StorageLimitWillExceedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s StorageLimitWillExceedException) Code() string { + return "StorageLimitWillExceedException" +} + +// Message returns the exception's message. +func (s StorageLimitWillExceedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s StorageLimitWillExceedException) OrigErr() error { + return nil +} + +func (s StorageLimitWillExceedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s StorageLimitWillExceedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s StorageLimitWillExceedException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the storage for a user. type StorageRuleType struct { _ struct{} `type:"structure"` @@ -9300,6 +10480,226 @@ func (s *Subscription) SetSubscriptionId(v string) *Subscription { return s } +// The limit has been reached on the number of labels for the specified resource. +type TooManyLabelsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyLabelsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyLabelsException) GoString() string { + return s.String() +} + +func newErrorTooManyLabelsException(v protocol.ResponseMetadata) error { + return &TooManyLabelsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyLabelsException) Code() string { + return "TooManyLabelsException" +} + +// Message returns the exception's message. +func (s TooManyLabelsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyLabelsException) OrigErr() error { + return nil +} + +func (s TooManyLabelsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyLabelsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyLabelsException) RequestID() string { + return s.respMetadata.RequestID +} + +// You've reached the limit on the number of subscriptions for the WorkDocs +// instance. +type TooManySubscriptionsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManySubscriptionsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManySubscriptionsException) GoString() string { + return s.String() +} + +func newErrorTooManySubscriptionsException(v protocol.ResponseMetadata) error { + return &TooManySubscriptionsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManySubscriptionsException) Code() string { + return "TooManySubscriptionsException" +} + +// Message returns the exception's message. +func (s TooManySubscriptionsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManySubscriptionsException) OrigErr() error { + return nil +} + +func (s TooManySubscriptionsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManySubscriptionsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManySubscriptionsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The operation is not permitted. +type UnauthorizedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata +} + +// String returns the string representation +func (s UnauthorizedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedOperationException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedOperationException(v protocol.ResponseMetadata) error { + return &UnauthorizedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedOperationException) Code() string { + return "UnauthorizedOperationException" +} + +// Message returns the exception's message. +func (s UnauthorizedOperationException) Message() string { + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedOperationException) OrigErr() error { + return nil +} + +func (s UnauthorizedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The caller does not have access to perform the action on the resource. +type UnauthorizedResourceAccessException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedResourceAccessException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedResourceAccessException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedResourceAccessException(v protocol.ResponseMetadata) error { + return &UnauthorizedResourceAccessException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedResourceAccessException) Code() string { + return "UnauthorizedResourceAccessException" +} + +// Message returns the exception's message. +func (s UnauthorizedResourceAccessException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedResourceAccessException) OrigErr() error { + return nil +} + +func (s UnauthorizedResourceAccessException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedResourceAccessException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedResourceAccessException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateDocumentInput struct { _ struct{} `type:"structure"` diff --git a/service/workdocs/errors.go b/service/workdocs/errors.go index b1d4af59e53..18b3a34b46a 100644 --- a/service/workdocs/errors.go +++ b/service/workdocs/errors.go @@ -2,6 +2,10 @@ package workdocs +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeConcurrentModificationException for service response error code @@ -162,3 +166,31 @@ const ( // The caller does not have access to perform the action on the resource. ErrCodeUnauthorizedResourceAccessException = "UnauthorizedResourceAccessException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ConcurrentModificationException": newErrorConcurrentModificationException, + "ConflictingOperationException": newErrorConflictingOperationException, + "CustomMetadataLimitExceededException": newErrorCustomMetadataLimitExceededException, + "DeactivatingLastSystemUserException": newErrorDeactivatingLastSystemUserException, + "DocumentLockedForCommentsException": newErrorDocumentLockedForCommentsException, + "DraftUploadOutOfSyncException": newErrorDraftUploadOutOfSyncException, + "EntityAlreadyExistsException": newErrorEntityAlreadyExistsException, + "EntityNotExistsException": newErrorEntityNotExistsException, + "FailedDependencyException": newErrorFailedDependencyException, + "IllegalUserStateException": newErrorIllegalUserStateException, + "InvalidArgumentException": newErrorInvalidArgumentException, + "InvalidCommentOperationException": newErrorInvalidCommentOperationException, + "InvalidOperationException": newErrorInvalidOperationException, + "InvalidPasswordException": newErrorInvalidPasswordException, + "LimitExceededException": newErrorLimitExceededException, + "ProhibitedStateException": newErrorProhibitedStateException, + "RequestedEntityTooLargeException": newErrorRequestedEntityTooLargeException, + "ResourceAlreadyCheckedOutException": newErrorResourceAlreadyCheckedOutException, + "ServiceUnavailableException": newErrorServiceUnavailableException, + "StorageLimitExceededException": newErrorStorageLimitExceededException, + "StorageLimitWillExceedException": newErrorStorageLimitWillExceedException, + "TooManyLabelsException": newErrorTooManyLabelsException, + "TooManySubscriptionsException": newErrorTooManySubscriptionsException, + "UnauthorizedOperationException": newErrorUnauthorizedOperationException, + "UnauthorizedResourceAccessException": newErrorUnauthorizedResourceAccessException, +} diff --git a/service/workdocs/service.go b/service/workdocs/service.go index 2d33036370f..f276d5dc2b2 100644 --- a/service/workdocs/service.go +++ b/service/workdocs/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/worklink/api.go b/service/worklink/api.go index 337f6a89afc..201091da1f5 100644 --- a/service/worklink/api.go +++ b/service/worklink/api.go @@ -3,6 +3,7 @@ package worklink import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,23 +67,23 @@ func (c *WorkLink) AssociateDomainRequest(input *AssociateDomainInput) (req *req // See the AWS API reference guide for Amazon WorkLink's // API operation AssociateDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateDomain @@ -161,23 +162,23 @@ func (c *WorkLink) AssociateWebsiteAuthorizationProviderRequest(input *Associate // See the AWS API reference guide for Amazon WorkLink's // API operation AssociateWebsiteAuthorizationProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateWebsiteAuthorizationProvider @@ -256,23 +257,23 @@ func (c *WorkLink) AssociateWebsiteCertificateAuthorityRequest(input *AssociateW // See the AWS API reference guide for Amazon WorkLink's // API operation AssociateWebsiteCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/AssociateWebsiteCertificateAuthority @@ -352,23 +353,23 @@ func (c *WorkLink) CreateFleetRequest(input *CreateFleetInput) (req *request.Req // See the AWS API reference guide for Amazon WorkLink's // API operation CreateFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/CreateFleet @@ -447,20 +448,20 @@ func (c *WorkLink) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Req // See the AWS API reference guide for Amazon WorkLink's // API operation DeleteFleet for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DeleteFleet @@ -539,20 +540,20 @@ func (c *WorkLink) DescribeAuditStreamConfigurationRequest(input *DescribeAuditS // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeAuditStreamConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeAuditStreamConfiguration @@ -631,20 +632,20 @@ func (c *WorkLink) DescribeCompanyNetworkConfigurationRequest(input *DescribeCom // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeCompanyNetworkConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeCompanyNetworkConfiguration @@ -722,20 +723,20 @@ func (c *WorkLink) DescribeDeviceRequest(input *DescribeDeviceInput) (req *reque // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeDevice for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevice @@ -813,20 +814,20 @@ func (c *WorkLink) DescribeDevicePolicyConfigurationRequest(input *DescribeDevic // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeDevicePolicyConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDevicePolicyConfiguration @@ -904,20 +905,20 @@ func (c *WorkLink) DescribeDomainRequest(input *DescribeDomainInput) (req *reque // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeDomain @@ -996,20 +997,20 @@ func (c *WorkLink) DescribeFleetMetadataRequest(input *DescribeFleetMetadataInpu // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeFleetMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeFleetMetadata @@ -1087,20 +1088,20 @@ func (c *WorkLink) DescribeIdentityProviderConfigurationRequest(input *DescribeI // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeIdentityProviderConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeIdentityProviderConfiguration @@ -1178,20 +1179,20 @@ func (c *WorkLink) DescribeWebsiteCertificateAuthorityRequest(input *DescribeWeb // See the AWS API reference guide for Amazon WorkLink's // API operation DescribeWebsiteCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DescribeWebsiteCertificateAuthority @@ -1271,20 +1272,20 @@ func (c *WorkLink) DisassociateDomainRequest(input *DisassociateDomainInput) (re // See the AWS API reference guide for Amazon WorkLink's // API operation DisassociateDomain for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateDomain @@ -1365,23 +1366,23 @@ func (c *WorkLink) DisassociateWebsiteAuthorizationProviderRequest(input *Disass // See the AWS API reference guide for Amazon WorkLink's // API operation DisassociateWebsiteAuthorizationProvider for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The resource already exists. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateWebsiteAuthorizationProvider @@ -1460,20 +1461,20 @@ func (c *WorkLink) DisassociateWebsiteCertificateAuthorityRequest(input *Disasso // See the AWS API reference guide for Amazon WorkLink's // API operation DisassociateWebsiteCertificateAuthority for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/DisassociateWebsiteCertificateAuthority @@ -1557,20 +1558,20 @@ func (c *WorkLink) ListDevicesRequest(input *ListDevicesInput) (req *request.Req // See the AWS API reference guide for Amazon WorkLink's // API operation ListDevices for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDevices @@ -1706,17 +1707,17 @@ func (c *WorkLink) ListDomainsRequest(input *ListDomainsInput) (req *request.Req // See the AWS API reference guide for Amazon WorkLink's // API operation ListDomains for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListDomains @@ -1852,17 +1853,17 @@ func (c *WorkLink) ListFleetsRequest(input *ListFleetsInput) (req *request.Reque // See the AWS API reference guide for Amazon WorkLink's // API operation ListFleets for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListFleets @@ -1999,20 +2000,20 @@ func (c *WorkLink) ListWebsiteAuthorizationProvidersRequest(input *ListWebsiteAu // See the AWS API reference guide for Amazon WorkLink's // API operation ListWebsiteAuthorizationProviders for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListWebsiteAuthorizationProviders @@ -2149,17 +2150,17 @@ func (c *WorkLink) ListWebsiteCertificateAuthoritiesRequest(input *ListWebsiteCe // See the AWS API reference guide for Amazon WorkLink's // API operation ListWebsiteCertificateAuthorities for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/ListWebsiteCertificateAuthorities @@ -2290,20 +2291,20 @@ func (c *WorkLink) RestoreDomainAccessRequest(input *RestoreDomainAccessInput) ( // See the AWS API reference guide for Amazon WorkLink's // API operation RestoreDomainAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/RestoreDomainAccess @@ -2382,20 +2383,20 @@ func (c *WorkLink) RevokeDomainAccessRequest(input *RevokeDomainAccessInput) (re // See the AWS API reference guide for Amazon WorkLink's // API operation RevokeDomainAccess for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/RevokeDomainAccess @@ -2475,20 +2476,20 @@ func (c *WorkLink) SignOutUserRequest(input *SignOutUserInput) (req *request.Req // See the AWS API reference guide for Amazon WorkLink's // API operation SignOutUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/SignOutUser @@ -2567,20 +2568,20 @@ func (c *WorkLink) UpdateAuditStreamConfigurationRequest(input *UpdateAuditStrea // See the AWS API reference guide for Amazon WorkLink's // API operation UpdateAuditStreamConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateAuditStreamConfiguration @@ -2659,20 +2660,20 @@ func (c *WorkLink) UpdateCompanyNetworkConfigurationRequest(input *UpdateCompany // See the AWS API reference guide for Amazon WorkLink's // API operation UpdateCompanyNetworkConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateCompanyNetworkConfiguration @@ -2751,20 +2752,20 @@ func (c *WorkLink) UpdateDevicePolicyConfigurationRequest(input *UpdateDevicePol // See the AWS API reference guide for Amazon WorkLink's // API operation UpdateDevicePolicyConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDevicePolicyConfiguration @@ -2843,20 +2844,20 @@ func (c *WorkLink) UpdateDomainMetadataRequest(input *UpdateDomainMetadataInput) // See the AWS API reference guide for Amazon WorkLink's // API operation UpdateDomainMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateDomainMetadata @@ -2935,20 +2936,20 @@ func (c *WorkLink) UpdateFleetMetadataRequest(input *UpdateFleetMetadataInput) ( // See the AWS API reference guide for Amazon WorkLink's // API operation UpdateFleetMetadata for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateFleetMetadata @@ -3027,20 +3028,20 @@ func (c *WorkLink) UpdateIdentityProviderConfigurationRequest(input *UpdateIdent // See the AWS API reference guide for Amazon WorkLink's // API operation UpdateIdentityProviderConfiguration for usage and error information. // -// Returned Error Codes: -// * ErrCodeUnauthorizedException "UnauthorizedException" +// Returned Error Types: +// * UnauthorizedException // You are not authorized to perform this action. // -// * ErrCodeInternalServerErrorException "InternalServerErrorException" +// * InternalServerErrorException // The service is temporarily unavailable. // -// * ErrCodeInvalidRequestException "InvalidRequestException" +// * InvalidRequestException // The request is not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The requested resource was not found. // -// * ErrCodeTooManyRequestsException "TooManyRequestsException" +// * TooManyRequestsException // The number of requests exceeds the limit. // // See also, https://docs.aws.amazon.com/goto/WebAPI/worklink-2018-09-25/UpdateIdentityProviderConfiguration @@ -4644,6 +4645,118 @@ func (s *FleetSummary) SetLastUpdatedTime(v time.Time) *FleetSummary { return s } +// The service is temporarily unavailable. +type InternalServerErrorException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InternalServerErrorException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InternalServerErrorException) GoString() string { + return s.String() +} + +func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error { + return &InternalServerErrorException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InternalServerErrorException) Code() string { + return "InternalServerErrorException" +} + +// Message returns the exception's message. +func (s InternalServerErrorException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InternalServerErrorException) OrigErr() error { + return nil +} + +func (s InternalServerErrorException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InternalServerErrorException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InternalServerErrorException) RequestID() string { + return s.respMetadata.RequestID +} + +// The request is not valid. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type ListDevicesInput struct { _ struct{} `type:"structure"` @@ -5122,6 +5235,118 @@ func (s *ListWebsiteCertificateAuthoritiesOutput) SetWebsiteCertificateAuthoriti return s } +// The resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The requested resource was not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + type RestoreDomainAccessInput struct { _ struct{} `type:"structure"` @@ -5338,6 +5563,118 @@ func (s SignOutUserOutput) GoString() string { return s.String() } +// The number of requests exceeds the limit. +type TooManyRequestsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s TooManyRequestsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s TooManyRequestsException) GoString() string { + return s.String() +} + +func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { + return &TooManyRequestsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s TooManyRequestsException) Code() string { + return "TooManyRequestsException" +} + +// Message returns the exception's message. +func (s TooManyRequestsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s TooManyRequestsException) OrigErr() error { + return nil +} + +func (s TooManyRequestsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s TooManyRequestsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s TooManyRequestsException) RequestID() string { + return s.respMetadata.RequestID +} + +// You are not authorized to perform this action. +type UnauthorizedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnauthorizedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnauthorizedException) GoString() string { + return s.String() +} + +func newErrorUnauthorizedException(v protocol.ResponseMetadata) error { + return &UnauthorizedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnauthorizedException) Code() string { + return "UnauthorizedException" +} + +// Message returns the exception's message. +func (s UnauthorizedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnauthorizedException) OrigErr() error { + return nil +} + +func (s UnauthorizedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnauthorizedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnauthorizedException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateAuditStreamConfigurationInput struct { _ struct{} `type:"structure"` diff --git a/service/worklink/errors.go b/service/worklink/errors.go index 2d13a2eba27..862e3e2b462 100644 --- a/service/worklink/errors.go +++ b/service/worklink/errors.go @@ -2,6 +2,10 @@ package worklink +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInternalServerErrorException for service response error code @@ -40,3 +44,12 @@ const ( // You are not authorized to perform this action. ErrCodeUnauthorizedException = "UnauthorizedException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InternalServerErrorException": newErrorInternalServerErrorException, + "InvalidRequestException": newErrorInvalidRequestException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "TooManyRequestsException": newErrorTooManyRequestsException, + "UnauthorizedException": newErrorUnauthorizedException, +} diff --git a/service/worklink/service.go b/service/worklink/service.go index 483294e1478..cafef37dd32 100644 --- a/service/worklink/service.go +++ b/service/worklink/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -77,7 +78,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/workmail/api.go b/service/workmail/api.go index 121d6886d1c..66f8604284f 100644 --- a/service/workmail/api.go +++ b/service/workmail/api.go @@ -3,6 +3,7 @@ package workmail import ( + "fmt" "time" "github.com/aws/aws-sdk-go/aws" @@ -66,23 +67,23 @@ func (c *WorkMail) AssociateDelegateToResourceRequest(input *AssociateDelegateTo // See the AWS API reference guide for Amazon WorkMail's // API operation AssociateDelegateToResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -162,33 +163,33 @@ func (c *WorkMail) AssociateMemberToGroupRequest(input *AssociateMemberToGroupIn // See the AWS API reference guide for Amazon WorkMail's // API operation AssociateMemberToGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/AssociateMemberToGroup @@ -267,35 +268,35 @@ func (c *WorkMail) CreateAliasRequest(input *CreateAliasInput) (req *request.Req // See the AWS API reference guide for Amazon WorkMail's // API operation CreateAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeEmailAddressInUseException "EmailAddressInUseException" +// Returned Error Types: +// * EmailAddressInUseException // The email address that you're trying to assign is already created for a different // user, group, or resource. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" +// * MailDomainNotFoundException // For an email or alias to be created in Amazon WorkMail, the included domain // must be defined in the organization. // -// * ErrCodeMailDomainStateException "MailDomainStateException" +// * MailDomainStateException // After a domain has been added to the organization, it must be verified. The // domain is not yet verified. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -375,31 +376,31 @@ func (c *WorkMail) CreateGroupRequest(input *CreateGroupInput) (req *request.Req // See the AWS API reference guide for Amazon WorkMail's // API operation CreateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeNameAvailabilityException "NameAvailabilityException" +// * NameAvailabilityException // The user, group, or resource name isn't unique in Amazon WorkMail. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeReservedNameException "ReservedNameException" +// * ReservedNameException // This user, group, or resource name is not allowed in Amazon WorkMail. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateGroup @@ -477,28 +478,28 @@ func (c *WorkMail) CreateResourceRequest(input *CreateResourceInput) (req *reque // See the AWS API reference guide for Amazon WorkMail's // API operation CreateResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeNameAvailabilityException "NameAvailabilityException" +// * NameAvailabilityException // The user, group, or resource name isn't unique in Amazon WorkMail. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeReservedNameException "ReservedNameException" +// * ReservedNameException // This user, group, or resource name is not allowed in Amazon WorkMail. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateResource @@ -577,35 +578,35 @@ func (c *WorkMail) CreateUserRequest(input *CreateUserInput) (req *request.Reque // See the AWS API reference guide for Amazon WorkMail's // API operation CreateUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // The supplied password doesn't match the minimum security constraints, such // as length or use of special characters. // -// * ErrCodeNameAvailabilityException "NameAvailabilityException" +// * NameAvailabilityException // The user, group, or resource name isn't unique in Amazon WorkMail. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeReservedNameException "ReservedNameException" +// * ReservedNameException // This user, group, or resource name is not allowed in Amazon WorkMail. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateUser @@ -684,23 +685,23 @@ func (c *WorkMail) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Req // See the AWS API reference guide for Amazon WorkMail's // API operation DeleteAlias for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -780,29 +781,29 @@ func (c *WorkMail) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Req // See the AWS API reference guide for Amazon WorkMail's // API operation DeleteGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteGroup @@ -881,23 +882,23 @@ func (c *WorkMail) DeleteMailboxPermissionsRequest(input *DeleteMailboxPermissio // See the AWS API reference guide for Amazon WorkMail's // API operation DeleteMailboxPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -977,19 +978,19 @@ func (c *WorkMail) DeleteResourceRequest(input *DeleteResourceInput) (req *reque // See the AWS API reference guide for Amazon WorkMail's // API operation DeleteResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityStateException "EntityStateException" +// Returned Error Types: +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -1074,29 +1075,29 @@ func (c *WorkMail) DeleteUserRequest(input *DeleteUserInput) (req *request.Reque // See the AWS API reference guide for Amazon WorkMail's // API operation DeleteUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DeleteUser @@ -1178,23 +1179,23 @@ func (c *WorkMail) DeregisterFromWorkMailRequest(input *DeregisterFromWorkMailIn // See the AWS API reference guide for Amazon WorkMail's // API operation DeregisterFromWorkMail for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -1273,19 +1274,19 @@ func (c *WorkMail) DescribeGroupRequest(input *DescribeGroupInput) (req *request // See the AWS API reference guide for Amazon WorkMail's // API operation DescribeGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -1364,11 +1365,11 @@ func (c *WorkMail) DescribeOrganizationRequest(input *DescribeOrganizationInput) // See the AWS API reference guide for Amazon WorkMail's // API operation DescribeOrganization for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // @@ -1447,19 +1448,19 @@ func (c *WorkMail) DescribeResourceRequest(input *DescribeResourceInput) (req *r // See the AWS API reference guide for Amazon WorkMail's // API operation DescribeResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -1538,19 +1539,19 @@ func (c *WorkMail) DescribeUserRequest(input *DescribeUserInput) (req *request.R // See the AWS API reference guide for Amazon WorkMail's // API operation DescribeUser for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -1630,23 +1631,23 @@ func (c *WorkMail) DisassociateDelegateFromResourceRequest(input *DisassociateDe // See the AWS API reference guide for Amazon WorkMail's // API operation DisassociateDelegateFromResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -1726,33 +1727,33 @@ func (c *WorkMail) DisassociateMemberFromGroupRequest(input *DisassociateMemberF // See the AWS API reference guide for Amazon WorkMail's // API operation DisassociateMemberFromGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DisassociateMemberFromGroup @@ -1830,16 +1831,16 @@ func (c *WorkMail) GetMailboxDetailsRequest(input *GetMailboxDetailsInput) (req // See the AWS API reference guide for Amazon WorkMail's // API operation GetMailboxDetails for usage and error information. // -// Returned Error Codes: -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// Returned Error Types: +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // @@ -1924,23 +1925,23 @@ func (c *WorkMail) ListAliasesRequest(input *ListAliasesInput) (req *request.Req // See the AWS API reference guide for Amazon WorkMail's // API operation ListAliases for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -2078,23 +2079,23 @@ func (c *WorkMail) ListGroupMembersRequest(input *ListGroupMembersInput) (req *r // See the AWS API reference guide for Amazon WorkMail's // API operation ListGroupMembers for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -2231,19 +2232,19 @@ func (c *WorkMail) ListGroupsRequest(input *ListGroupsInput) (req *request.Reque // See the AWS API reference guide for Amazon WorkMail's // API operation ListGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -2381,19 +2382,19 @@ func (c *WorkMail) ListMailboxPermissionsRequest(input *ListMailboxPermissionsIn // See the AWS API reference guide for Amazon WorkMail's // API operation ListMailboxPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -2530,8 +2531,8 @@ func (c *WorkMail) ListOrganizationsRequest(input *ListOrganizationsInput) (req // See the AWS API reference guide for Amazon WorkMail's // API operation ListOrganizations for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ListOrganizations @@ -2668,23 +2669,23 @@ func (c *WorkMail) ListResourceDelegatesRequest(input *ListResourceDelegatesInpu // See the AWS API reference guide for Amazon WorkMail's // API operation ListResourceDelegates for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -2821,15 +2822,15 @@ func (c *WorkMail) ListResourcesRequest(input *ListResourcesInput) (req *request // See the AWS API reference guide for Amazon WorkMail's // API operation ListResources for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -2966,15 +2967,15 @@ func (c *WorkMail) ListUsersRequest(input *ListUsersInput) (req *request.Request // See the AWS API reference guide for Amazon WorkMail's // API operation ListUsers for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -3107,23 +3108,23 @@ func (c *WorkMail) PutMailboxPermissionsRequest(input *PutMailboxPermissionsInpu // See the AWS API reference guide for Amazon WorkMail's // API operation PutMailboxPermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// Returned Error Types: +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -3211,44 +3212,44 @@ func (c *WorkMail) RegisterToWorkMailRequest(input *RegisterToWorkMailInput) (re // See the AWS API reference guide for Amazon WorkMail's // API operation RegisterToWorkMail for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEmailAddressInUseException "EmailAddressInUseException" +// * EmailAddressInUseException // The email address that you're trying to assign is already created for a different // user, group, or resource. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeEntityAlreadyRegisteredException "EntityAlreadyRegisteredException" +// * EntityAlreadyRegisteredException // The user, group, or resource that you're trying to register is already registered. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" +// * MailDomainNotFoundException // For an email or alias to be created in Amazon WorkMail, the included domain // must be defined in the organization. // -// * ErrCodeMailDomainStateException "MailDomainStateException" +// * MailDomainStateException // After a domain has been added to the organization, it must be verified. The // domain is not yet verified. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -3328,37 +3329,37 @@ func (c *WorkMail) ResetPasswordRequest(input *ResetPasswordInput) (req *request // See the AWS API reference guide for Amazon WorkMail's // API operation ResetPassword for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeInvalidPasswordException "InvalidPasswordException" +// * InvalidPasswordException // The supplied password doesn't match the minimum security constraints, such // as length or use of special characters. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/ResetPassword @@ -3437,23 +3438,23 @@ func (c *WorkMail) UpdateMailboxQuotaRequest(input *UpdateMailboxQuotaInput) (re // See the AWS API reference guide for Amazon WorkMail's // API operation UpdateMailboxQuota for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterException "InvalidParameterException" +// Returned Error Types: +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // @@ -3536,48 +3537,48 @@ func (c *WorkMail) UpdatePrimaryEmailAddressRequest(input *UpdatePrimaryEmailAdd // See the AWS API reference guide for Amazon WorkMail's // API operation UpdatePrimaryEmailAddress for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryServiceAuthenticationFailedException "DirectoryServiceAuthenticationFailedException" +// Returned Error Types: +// * DirectoryServiceAuthenticationFailedException // The directory service doesn't recognize the credentials supplied by WorkMail. // -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEmailAddressInUseException "EmailAddressInUseException" +// * EmailAddressInUseException // The email address that you're trying to assign is already created for a different // user, group, or resource. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" +// * MailDomainNotFoundException // For an email or alias to be created in Amazon WorkMail, the included domain // must be defined in the organization. // -// * ErrCodeMailDomainStateException "MailDomainStateException" +// * MailDomainStateException // After a domain has been added to the organization, it must be verified. The // domain is not yet verified. // -// * ErrCodeInvalidParameterException "InvalidParameterException" +// * InvalidParameterException // One or more of the input parameters don't match the service's restrictions. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // -// * ErrCodeUnsupportedOperationException "UnsupportedOperationException" +// * UnsupportedOperationException // You can't perform a write operation against a read-only directory. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/UpdatePrimaryEmailAddress @@ -3658,43 +3659,43 @@ func (c *WorkMail) UpdateResourceRequest(input *UpdateResourceInput) (req *reque // See the AWS API reference guide for Amazon WorkMail's // API operation UpdateResource for usage and error information. // -// Returned Error Codes: -// * ErrCodeDirectoryUnavailableException "DirectoryUnavailableException" +// Returned Error Types: +// * DirectoryUnavailableException // The directory on which you are trying to perform operations isn't available. // -// * ErrCodeEntityNotFoundException "EntityNotFoundException" +// * EntityNotFoundException // The identifier supplied for the user, group, or resource does not exist in // your organization. // -// * ErrCodeEntityStateException "EntityStateException" +// * EntityStateException // You are performing an operation on a user, group, or resource that isn't // in the expected state, such as trying to delete an active user. // -// * ErrCodeInvalidConfigurationException "InvalidConfigurationException" +// * InvalidConfigurationException // The configuration for a resource isn't valid. A resource must either be able // to auto-respond to requests or have at least one delegate associated that // can do so on its behalf. // -// * ErrCodeEmailAddressInUseException "EmailAddressInUseException" +// * EmailAddressInUseException // The email address that you're trying to assign is already created for a different // user, group, or resource. // -// * ErrCodeMailDomainNotFoundException "MailDomainNotFoundException" +// * MailDomainNotFoundException // For an email or alias to be created in Amazon WorkMail, the included domain // must be defined in the organization. // -// * ErrCodeMailDomainStateException "MailDomainStateException" +// * MailDomainStateException // After a domain has been added to the organization, it must be verified. The // domain is not yet verified. // -// * ErrCodeNameAvailabilityException "NameAvailabilityException" +// * NameAvailabilityException // The user, group, or resource name isn't unique in Amazon WorkMail. // -// * ErrCodeOrganizationNotFoundException "OrganizationNotFoundException" +// * OrganizationNotFoundException // An operation received a valid organization identifier that either doesn't // belong or exist in the system. // -// * ErrCodeOrganizationStateException "OrganizationStateException" +// * OrganizationStateException // The organization must have a valid state (Active or Synchronizing) to perform // certain operations on the organization or its members. // @@ -5330,6 +5331,118 @@ func (s *DescribeUserOutput) SetUserRole(v string) *DescribeUserOutput { return s } +// The directory service doesn't recognize the credentials supplied by WorkMail. +type DirectoryServiceAuthenticationFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DirectoryServiceAuthenticationFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryServiceAuthenticationFailedException) GoString() string { + return s.String() +} + +func newErrorDirectoryServiceAuthenticationFailedException(v protocol.ResponseMetadata) error { + return &DirectoryServiceAuthenticationFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryServiceAuthenticationFailedException) Code() string { + return "DirectoryServiceAuthenticationFailedException" +} + +// Message returns the exception's message. +func (s DirectoryServiceAuthenticationFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryServiceAuthenticationFailedException) OrigErr() error { + return nil +} + +func (s DirectoryServiceAuthenticationFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryServiceAuthenticationFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryServiceAuthenticationFailedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The directory on which you are trying to perform operations isn't available. +type DirectoryUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s DirectoryUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s DirectoryUnavailableException) GoString() string { + return s.String() +} + +func newErrorDirectoryUnavailableException(v protocol.ResponseMetadata) error { + return &DirectoryUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s DirectoryUnavailableException) Code() string { + return "DirectoryUnavailableException" +} + +// Message returns the exception's message. +func (s DirectoryUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s DirectoryUnavailableException) OrigErr() error { + return nil +} + +func (s DirectoryUnavailableException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s DirectoryUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s DirectoryUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type DisassociateDelegateFromResourceInput struct { _ struct{} `type:"structure"` @@ -5500,6 +5613,233 @@ func (s DisassociateMemberFromGroupOutput) GoString() string { return s.String() } +// The email address that you're trying to assign is already created for a different +// user, group, or resource. +type EmailAddressInUseException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EmailAddressInUseException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EmailAddressInUseException) GoString() string { + return s.String() +} + +func newErrorEmailAddressInUseException(v protocol.ResponseMetadata) error { + return &EmailAddressInUseException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EmailAddressInUseException) Code() string { + return "EmailAddressInUseException" +} + +// Message returns the exception's message. +func (s EmailAddressInUseException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EmailAddressInUseException) OrigErr() error { + return nil +} + +func (s EmailAddressInUseException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EmailAddressInUseException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EmailAddressInUseException) RequestID() string { + return s.respMetadata.RequestID +} + +// The user, group, or resource that you're trying to register is already registered. +type EntityAlreadyRegisteredException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EntityAlreadyRegisteredException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityAlreadyRegisteredException) GoString() string { + return s.String() +} + +func newErrorEntityAlreadyRegisteredException(v protocol.ResponseMetadata) error { + return &EntityAlreadyRegisteredException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityAlreadyRegisteredException) Code() string { + return "EntityAlreadyRegisteredException" +} + +// Message returns the exception's message. +func (s EntityAlreadyRegisteredException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityAlreadyRegisteredException) OrigErr() error { + return nil +} + +func (s EntityAlreadyRegisteredException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityAlreadyRegisteredException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityAlreadyRegisteredException) RequestID() string { + return s.respMetadata.RequestID +} + +// The identifier supplied for the user, group, or resource does not exist in +// your organization. +type EntityNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EntityNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityNotFoundException) GoString() string { + return s.String() +} + +func newErrorEntityNotFoundException(v protocol.ResponseMetadata) error { + return &EntityNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityNotFoundException) Code() string { + return "EntityNotFoundException" +} + +// Message returns the exception's message. +func (s EntityNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityNotFoundException) OrigErr() error { + return nil +} + +func (s EntityNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// You are performing an operation on a user, group, or resource that isn't +// in the expected state, such as trying to delete an active user. +type EntityStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s EntityStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s EntityStateException) GoString() string { + return s.String() +} + +func newErrorEntityStateException(v protocol.ResponseMetadata) error { + return &EntityStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s EntityStateException) Code() string { + return "EntityStateException" +} + +// Message returns the exception's message. +func (s EntityStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s EntityStateException) OrigErr() error { + return nil +} + +func (s EntityStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s EntityStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s EntityStateException) RequestID() string { + return s.respMetadata.RequestID +} + type GetMailboxDetailsInput struct { _ struct{} `type:"structure"` @@ -5657,6 +5997,177 @@ func (s *Group) SetState(v string) *Group { return s } +// The configuration for a resource isn't valid. A resource must either be able +// to auto-respond to requests or have at least one delegate associated that +// can do so on its behalf. +type InvalidConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidConfigurationException) GoString() string { + return s.String() +} + +func newErrorInvalidConfigurationException(v protocol.ResponseMetadata) error { + return &InvalidConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidConfigurationException) Code() string { + return "InvalidConfigurationException" +} + +// Message returns the exception's message. +func (s InvalidConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidConfigurationException) OrigErr() error { + return nil +} + +func (s InvalidConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// One or more of the input parameters don't match the service's restrictions. +type InvalidParameterException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterException(v protocol.ResponseMetadata) error { + return &InvalidParameterException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterException) Code() string { + return "InvalidParameterException" +} + +// Message returns the exception's message. +func (s InvalidParameterException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterException) OrigErr() error { + return nil +} + +func (s InvalidParameterException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterException) RequestID() string { + return s.respMetadata.RequestID +} + +// The supplied password doesn't match the minimum security constraints, such +// as length or use of special characters. +type InvalidPasswordException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidPasswordException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidPasswordException) GoString() string { + return s.String() +} + +func newErrorInvalidPasswordException(v protocol.ResponseMetadata) error { + return &InvalidPasswordException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidPasswordException) Code() string { + return "InvalidPasswordException" +} + +// Message returns the exception's message. +func (s InvalidPasswordException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidPasswordException) OrigErr() error { + return nil +} + +func (s InvalidPasswordException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidPasswordException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidPasswordException) RequestID() string { + return s.respMetadata.RequestID +} + type ListAliasesInput struct { _ struct{} `type:"structure"` @@ -6483,6 +6994,120 @@ func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { return s } +// For an email or alias to be created in Amazon WorkMail, the included domain +// must be defined in the organization. +type MailDomainNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MailDomainNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MailDomainNotFoundException) GoString() string { + return s.String() +} + +func newErrorMailDomainNotFoundException(v protocol.ResponseMetadata) error { + return &MailDomainNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MailDomainNotFoundException) Code() string { + return "MailDomainNotFoundException" +} + +// Message returns the exception's message. +func (s MailDomainNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MailDomainNotFoundException) OrigErr() error { + return nil +} + +func (s MailDomainNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MailDomainNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MailDomainNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// After a domain has been added to the organization, it must be verified. The +// domain is not yet verified. +type MailDomainStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s MailDomainStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s MailDomainStateException) GoString() string { + return s.String() +} + +func newErrorMailDomainStateException(v protocol.ResponseMetadata) error { + return &MailDomainStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s MailDomainStateException) Code() string { + return "MailDomainStateException" +} + +// Message returns the exception's message. +func (s MailDomainStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s MailDomainStateException) OrigErr() error { + return nil +} + +func (s MailDomainStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s MailDomainStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s MailDomainStateException) RequestID() string { + return s.respMetadata.RequestID +} + // The representation of a user or group. type Member struct { _ struct{} `type:"structure"` @@ -6552,6 +7177,176 @@ func (s *Member) SetType(v string) *Member { return s } +// The user, group, or resource name isn't unique in Amazon WorkMail. +type NameAvailabilityException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s NameAvailabilityException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s NameAvailabilityException) GoString() string { + return s.String() +} + +func newErrorNameAvailabilityException(v protocol.ResponseMetadata) error { + return &NameAvailabilityException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s NameAvailabilityException) Code() string { + return "NameAvailabilityException" +} + +// Message returns the exception's message. +func (s NameAvailabilityException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s NameAvailabilityException) OrigErr() error { + return nil +} + +func (s NameAvailabilityException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s NameAvailabilityException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s NameAvailabilityException) RequestID() string { + return s.respMetadata.RequestID +} + +// An operation received a valid organization identifier that either doesn't +// belong or exist in the system. +type OrganizationNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OrganizationNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationNotFoundException) GoString() string { + return s.String() +} + +func newErrorOrganizationNotFoundException(v protocol.ResponseMetadata) error { + return &OrganizationNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationNotFoundException) Code() string { + return "OrganizationNotFoundException" +} + +// Message returns the exception's message. +func (s OrganizationNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationNotFoundException) OrigErr() error { + return nil +} + +func (s OrganizationNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The organization must have a valid state (Active or Synchronizing) to perform +// certain operations on the organization or its members. +type OrganizationStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s OrganizationStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OrganizationStateException) GoString() string { + return s.String() +} + +func newErrorOrganizationStateException(v protocol.ResponseMetadata) error { + return &OrganizationStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OrganizationStateException) Code() string { + return "OrganizationStateException" +} + +// Message returns the exception's message. +func (s OrganizationStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OrganizationStateException) OrigErr() error { + return nil +} + +func (s OrganizationStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OrganizationStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OrganizationStateException) RequestID() string { + return s.respMetadata.RequestID +} + // The representation of an organization. type OrganizationSummary struct { _ struct{} `type:"structure"` @@ -6854,6 +7649,62 @@ func (s RegisterToWorkMailOutput) GoString() string { return s.String() } +// This user, group, or resource name is not allowed in Amazon WorkMail. +type ReservedNameException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ReservedNameException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ReservedNameException) GoString() string { + return s.String() +} + +func newErrorReservedNameException(v protocol.ResponseMetadata) error { + return &ReservedNameException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ReservedNameException) Code() string { + return "ReservedNameException" +} + +// Message returns the exception's message. +func (s ReservedNameException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ReservedNameException) OrigErr() error { + return nil +} + +func (s ReservedNameException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ReservedNameException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ReservedNameException) RequestID() string { + return s.respMetadata.RequestID +} + type ResetPasswordInput struct { _ struct{} `type:"structure"` @@ -7016,6 +7867,62 @@ func (s *Resource) SetType(v string) *Resource { return s } +// You can't perform a write operation against a read-only directory. +type UnsupportedOperationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedOperationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedOperationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedOperationException(v protocol.ResponseMetadata) error { + return &UnsupportedOperationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedOperationException) Code() string { + return "UnsupportedOperationException" +} + +// Message returns the exception's message. +func (s UnsupportedOperationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedOperationException) OrigErr() error { + return nil +} + +func (s UnsupportedOperationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedOperationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedOperationException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateMailboxQuotaInput struct { _ struct{} `type:"structure"` diff --git a/service/workmail/errors.go b/service/workmail/errors.go index 13eba3ee4ec..56f4bff4693 100644 --- a/service/workmail/errors.go +++ b/service/workmail/errors.go @@ -2,6 +2,10 @@ package workmail +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeDirectoryServiceAuthenticationFailedException for service response error code @@ -110,3 +114,22 @@ const ( // You can't perform a write operation against a read-only directory. ErrCodeUnsupportedOperationException = "UnsupportedOperationException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "DirectoryServiceAuthenticationFailedException": newErrorDirectoryServiceAuthenticationFailedException, + "DirectoryUnavailableException": newErrorDirectoryUnavailableException, + "EmailAddressInUseException": newErrorEmailAddressInUseException, + "EntityAlreadyRegisteredException": newErrorEntityAlreadyRegisteredException, + "EntityNotFoundException": newErrorEntityNotFoundException, + "EntityStateException": newErrorEntityStateException, + "InvalidConfigurationException": newErrorInvalidConfigurationException, + "InvalidParameterException": newErrorInvalidParameterException, + "InvalidPasswordException": newErrorInvalidPasswordException, + "MailDomainNotFoundException": newErrorMailDomainNotFoundException, + "MailDomainStateException": newErrorMailDomainStateException, + "NameAvailabilityException": newErrorNameAvailabilityException, + "OrganizationNotFoundException": newErrorOrganizationNotFoundException, + "OrganizationStateException": newErrorOrganizationStateException, + "ReservedNameException": newErrorReservedNameException, + "UnsupportedOperationException": newErrorUnsupportedOperationException, +} diff --git a/service/workmail/service.go b/service/workmail/service.go index 5d46a54812f..f814d622253 100644 --- a/service/workmail/service.go +++ b/service/workmail/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/workmailmessageflow/api.go b/service/workmailmessageflow/api.go index 20dd2490b7e..8a9b4298274 100644 --- a/service/workmailmessageflow/api.go +++ b/service/workmailmessageflow/api.go @@ -3,11 +3,13 @@ package workmailmessageflow import ( + "fmt" "io" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/aws/request" + "github.com/aws/aws-sdk-go/private/protocol" ) const opGetRawMessageContent = "GetRawMessageContent" @@ -63,8 +65,8 @@ func (c *WorkMailMessageFlow) GetRawMessageContentRequest(input *GetRawMessageCo // See the AWS API reference guide for Amazon WorkMail Message Flow's // API operation GetRawMessageContent for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The requested email message is not found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workmailmessageflow-2019-05-01/GetRawMessageContent @@ -154,3 +156,59 @@ func (s *GetRawMessageContentOutput) SetMessageContent(v io.ReadCloser) *GetRawM s.MessageContent = v return s } + +// The requested email message is not found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} diff --git a/service/workmailmessageflow/errors.go b/service/workmailmessageflow/errors.go index bfbb3a7922d..3b8e9406d50 100644 --- a/service/workmailmessageflow/errors.go +++ b/service/workmailmessageflow/errors.go @@ -2,6 +2,10 @@ package workmailmessageflow +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeResourceNotFoundException for service response error code @@ -10,3 +14,7 @@ const ( // The requested email message is not found. ErrCodeResourceNotFoundException = "ResourceNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "ResourceNotFoundException": newErrorResourceNotFoundException, +} diff --git a/service/workmailmessageflow/service.go b/service/workmailmessageflow/service.go index afa88a59e98..a0c35301b3a 100644 --- a/service/workmailmessageflow/service.go +++ b/service/workmailmessageflow/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/workspaces/api.go b/service/workspaces/api.go index f60b075058b..bd8bbbcde43 100644 --- a/service/workspaces/api.go +++ b/service/workspaces/api.go @@ -67,23 +67,23 @@ func (c *WorkSpaces) AssociateIpGroupsRequest(input *AssociateIpGroupsInput) (re // See the AWS API reference guide for Amazon WorkSpaces's // API operation AssociateIpGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // This operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/AssociateIpGroups @@ -165,20 +165,20 @@ func (c *WorkSpaces) AuthorizeIpRulesRequest(input *AuthorizeIpRulesInput) (req // See the AWS API reference guide for Amazon WorkSpaces's // API operation AuthorizeIpRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/AuthorizeIpRules @@ -256,26 +256,26 @@ func (c *WorkSpaces) CopyWorkspaceImageRequest(input *CopyWorkspaceImageInput) ( // See the AWS API reference guide for Amazon WorkSpaces's // API operation CopyWorkspaceImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Returned Error Types: +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // This operation is not supported. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CopyWorkspaceImage @@ -365,20 +365,20 @@ func (c *WorkSpaces) CreateIpGroupRequest(input *CreateIpGroupInput) (req *reque // See the AWS API reference guide for Amazon WorkSpaces's // API operation CreateIpGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceCreationFailedException "ResourceCreationFailedException" +// * ResourceCreationFailedException // The resource could not be created. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateIpGroup @@ -457,14 +457,14 @@ func (c *WorkSpaces) CreateTagsRequest(input *CreateTagsInput) (req *request.Req // See the AWS API reference guide for Amazon WorkSpaces's // API operation CreateTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Your resource limits have been exceeded. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateTags @@ -544,11 +544,11 @@ func (c *WorkSpaces) CreateWorkspacesRequest(input *CreateWorkspacesInput) (req // See the AWS API reference guide for Amazon WorkSpaces's // API operation CreateWorkspaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Returned Error Types: +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaces @@ -629,17 +629,17 @@ func (c *WorkSpaces) DeleteIpGroupRequest(input *DeleteIpGroupInput) (req *reque // See the AWS API reference guide for Amazon WorkSpaces's // API operation DeleteIpGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeResourceAssociatedException "ResourceAssociatedException" +// * ResourceAssociatedException // The resource is associated with a directory. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteIpGroup @@ -718,11 +718,11 @@ func (c *WorkSpaces) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Req // See the AWS API reference guide for Amazon WorkSpaces's // API operation DeleteTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteTags @@ -803,14 +803,14 @@ func (c *WorkSpaces) DeleteWorkspaceImageRequest(input *DeleteWorkspaceImageInpu // See the AWS API reference guide for Amazon WorkSpaces's // API operation DeleteWorkspaceImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceAssociatedException "ResourceAssociatedException" +// Returned Error Types: +// * ResourceAssociatedException // The resource is associated with a directory. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteWorkspaceImage @@ -891,20 +891,20 @@ func (c *WorkSpaces) DeregisterWorkspaceDirectoryRequest(input *DeregisterWorksp // See the AWS API reference guide for Amazon WorkSpaces's // API operation DeregisterWorkspaceDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // This operation is not supported. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeregisterWorkspaceDirectory @@ -983,8 +983,8 @@ func (c *WorkSpaces) DescribeAccountRequest(input *DescribeAccountInput) (req *r // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeAccount @@ -1063,8 +1063,8 @@ func (c *WorkSpaces) DescribeAccountModificationsRequest(input *DescribeAccountM // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeAccountModifications for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeAccountModifications @@ -1142,14 +1142,14 @@ func (c *WorkSpaces) DescribeClientPropertiesRequest(input *DescribeClientProper // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeClientProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeClientProperties @@ -1227,11 +1227,11 @@ func (c *WorkSpaces) DescribeIpGroupsRequest(input *DescribeIpGroupsInput) (req // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeIpGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeIpGroups @@ -1309,8 +1309,8 @@ func (c *WorkSpaces) DescribeTagsRequest(input *DescribeTagsInput) (req *request // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeTags for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeTags @@ -1396,8 +1396,8 @@ func (c *WorkSpaces) DescribeWorkspaceBundlesRequest(input *DescribeWorkspaceBun // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeWorkspaceBundles for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceBundles @@ -1533,8 +1533,8 @@ func (c *WorkSpaces) DescribeWorkspaceDirectoriesRequest(input *DescribeWorkspac // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeWorkspaceDirectories for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceDirectories @@ -1665,8 +1665,8 @@ func (c *WorkSpaces) DescribeWorkspaceImagesRequest(input *DescribeWorkspaceImag // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeWorkspaceImages for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImages @@ -1744,14 +1744,14 @@ func (c *WorkSpaces) DescribeWorkspaceSnapshotsRequest(input *DescribeWorkspaceS // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeWorkspaceSnapshots for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceSnapshots @@ -1838,11 +1838,11 @@ func (c *WorkSpaces) DescribeWorkspacesRequest(input *DescribeWorkspacesInput) ( // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeWorkspaces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaces @@ -1972,8 +1972,8 @@ func (c *WorkSpaces) DescribeWorkspacesConnectionStatusRequest(input *DescribeWo // See the AWS API reference guide for Amazon WorkSpaces's // API operation DescribeWorkspacesConnectionStatus for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspacesConnectionStatus @@ -2052,17 +2052,17 @@ func (c *WorkSpaces) DisassociateIpGroupsRequest(input *DisassociateIpGroupsInpu // See the AWS API reference guide for Amazon WorkSpaces's // API operation DisassociateIpGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DisassociateIpGroups @@ -2142,23 +2142,23 @@ func (c *WorkSpaces) ImportWorkspaceImageRequest(input *ImportWorkspaceImageInpu // See the AWS API reference guide for Amazon WorkSpaces's // API operation ImportWorkspaceImage for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// Returned Error Types: +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeResourceAlreadyExistsException "ResourceAlreadyExistsException" +// * ResourceAlreadyExistsException // The specified resource already exists. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // This operation is not supported. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ImportWorkspaceImage @@ -2243,11 +2243,11 @@ func (c *WorkSpaces) ListAvailableManagementCidrRangesRequest(input *ListAvailab // See the AWS API reference guide for Amazon WorkSpaces's // API operation ListAvailableManagementCidrRanges for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ListAvailableManagementCidrRanges @@ -2327,20 +2327,20 @@ func (c *WorkSpaces) ModifyAccountRequest(input *ModifyAccountInput) (req *reque // See the AWS API reference guide for Amazon WorkSpaces's // API operation ModifyAccount for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyAccount @@ -2419,14 +2419,14 @@ func (c *WorkSpaces) ModifyClientPropertiesRequest(input *ModifyClientProperties // See the AWS API reference guide for Amazon WorkSpaces's // API operation ModifyClientProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyClientProperties @@ -2507,14 +2507,14 @@ func (c *WorkSpaces) ModifySelfservicePermissionsRequest(input *ModifySelfservic // See the AWS API reference guide for Amazon WorkSpaces's // API operation ModifySelfservicePermissions for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifySelfservicePermissions @@ -2594,11 +2594,11 @@ func (c *WorkSpaces) ModifyWorkspaceAccessPropertiesRequest(input *ModifyWorkspa // See the AWS API reference guide for Amazon WorkSpaces's // API operation ModifyWorkspaceAccessProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// Returned Error Types: +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceAccessProperties @@ -2677,14 +2677,14 @@ func (c *WorkSpaces) ModifyWorkspaceCreationPropertiesRequest(input *ModifyWorks // See the AWS API reference guide for Amazon WorkSpaces's // API operation ModifyWorkspaceCreationProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeAccessDeniedException "AccessDeniedException" +// Returned Error Types: +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceCreationProperties @@ -2763,29 +2763,29 @@ func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspaceProp // See the AWS API reference guide for Amazon WorkSpaces's // API operation ModifyWorkspaceProperties for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeOperationInProgressException "OperationInProgressException" +// * OperationInProgressException // The properties of this WorkSpace are currently being modified. Try again // in a moment. // -// * ErrCodeUnsupportedWorkspaceConfigurationException "UnsupportedWorkspaceConfigurationException" +// * UnsupportedWorkspaceConfigurationException // The configuration of this WorkSpace is not supported for this operation. // For more information, see Required Configuration and Service Components for // WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/required-service-components.html). // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeResourceUnavailableException "ResourceUnavailableException" +// * ResourceUnavailableException // The specified resource is not available. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceProperties @@ -2870,14 +2870,14 @@ func (c *WorkSpaces) ModifyWorkspaceStateRequest(input *ModifyWorkspaceStateInpu // See the AWS API reference guide for Amazon WorkSpaces's // API operation ModifyWorkspaceState for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceState @@ -3120,35 +3120,35 @@ func (c *WorkSpaces) RegisterWorkspaceDirectoryRequest(input *RegisterWorkspaceD // See the AWS API reference guide for Amazon WorkSpaces's // API operation RegisterWorkspaceDirectory for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // -// * ErrCodeWorkspacesDefaultRoleNotFoundException "WorkspacesDefaultRoleNotFoundException" +// * WorkspacesDefaultRoleNotFoundException // The workspaces_DefaultRole role could not be found. If this is the first // time you are registering a directory, you will need to create the workspaces_DefaultRole // role before you can register a directory. For more information, see Creating // the workspaces_DefaultRole Role (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role). // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeUnsupportedNetworkConfigurationException "UnsupportedNetworkConfigurationException" +// * UnsupportedNetworkConfigurationException // The configuration of this network is not supported for this operation, or // your network configuration conflicts with the Amazon WorkSpaces management // network IP range. For more information, see Configure a VPC for Amazon WorkSpaces // (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html). // -// * ErrCodeOperationNotSupportedException "OperationNotSupportedException" +// * OperationNotSupportedException // This operation is not supported. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RegisterWorkspaceDirectory @@ -3235,14 +3235,14 @@ func (c *WorkSpaces) RestoreWorkspaceRequest(input *RestoreWorkspaceInput) (req // See the AWS API reference guide for Amazon WorkSpaces's // API operation RestoreWorkspace for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RestoreWorkspace @@ -3321,17 +3321,17 @@ func (c *WorkSpaces) RevokeIpRulesRequest(input *RevokeIpRulesInput) (req *reque // See the AWS API reference guide for Amazon WorkSpaces's // API operation RevokeIpRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RevokeIpRules @@ -3648,20 +3648,20 @@ func (c *WorkSpaces) UpdateRulesOfIpGroupRequest(input *UpdateRulesOfIpGroupInpu // See the AWS API reference guide for Amazon WorkSpaces's // API operation UpdateRulesOfIpGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidParameterValuesException "InvalidParameterValuesException" +// Returned Error Types: +// * InvalidParameterValuesException // One or more parameter values are not valid. // -// * ErrCodeResourceNotFoundException "ResourceNotFoundException" +// * ResourceNotFoundException // The resource could not be found. // -// * ErrCodeResourceLimitExceededException "ResourceLimitExceededException" +// * ResourceLimitExceededException // Your resource limits have been exceeded. // -// * ErrCodeInvalidResourceStateException "InvalidResourceStateException" +// * InvalidResourceStateException // The state of the resource is not valid for this operation. // -// * ErrCodeAccessDeniedException "AccessDeniedException" +// * AccessDeniedException // The user is not authorized to access a resource. // // See also, https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateRulesOfIpGroup @@ -3686,6 +3686,62 @@ func (c *WorkSpaces) UpdateRulesOfIpGroupWithContext(ctx aws.Context, input *Upd return out, req.Send() } +// The user is not authorized to access a resource. +type AccessDeniedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s AccessDeniedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s AccessDeniedException) GoString() string { + return s.String() +} + +func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { + return &AccessDeniedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s AccessDeniedException) Code() string { + return "AccessDeniedException" +} + +// Message returns the exception's message. +func (s AccessDeniedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s AccessDeniedException) OrigErr() error { + return nil +} + +func (s AccessDeniedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s AccessDeniedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s AccessDeniedException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes a modification to the configuration of Bring Your Own License (BYOL) // for the specified account. type AccountModification struct { @@ -5887,6 +5943,119 @@ func (s *ImportWorkspaceImageOutput) SetImageId(v string) *ImportWorkspaceImageO return s } +// One or more parameter values are not valid. +type InvalidParameterValuesException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception error message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidParameterValuesException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidParameterValuesException) GoString() string { + return s.String() +} + +func newErrorInvalidParameterValuesException(v protocol.ResponseMetadata) error { + return &InvalidParameterValuesException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidParameterValuesException) Code() string { + return "InvalidParameterValuesException" +} + +// Message returns the exception's message. +func (s InvalidParameterValuesException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidParameterValuesException) OrigErr() error { + return nil +} + +func (s InvalidParameterValuesException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidParameterValuesException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidParameterValuesException) RequestID() string { + return s.respMetadata.RequestID +} + +// The state of the resource is not valid for this operation. +type InvalidResourceStateException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s InvalidResourceStateException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidResourceStateException) GoString() string { + return s.String() +} + +func newErrorInvalidResourceStateException(v protocol.ResponseMetadata) error { + return &InvalidResourceStateException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidResourceStateException) Code() string { + return "InvalidResourceStateException" +} + +// Message returns the exception's message. +func (s InvalidResourceStateException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidResourceStateException) OrigErr() error { + return nil +} + +func (s InvalidResourceStateException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidResourceStateException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidResourceStateException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes an IP access control group. type IpGroup struct { _ struct{} `type:"structure"` @@ -6590,6 +6759,119 @@ func (s *OperatingSystem) SetType(v string) *OperatingSystem { return s } +// The properties of this WorkSpace are currently being modified. Try again +// in a moment. +type OperationInProgressException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OperationInProgressException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationInProgressException) GoString() string { + return s.String() +} + +func newErrorOperationInProgressException(v protocol.ResponseMetadata) error { + return &OperationInProgressException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationInProgressException) Code() string { + return "OperationInProgressException" +} + +// Message returns the exception's message. +func (s OperationInProgressException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationInProgressException) OrigErr() error { + return nil +} + +func (s OperationInProgressException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationInProgressException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationInProgressException) RequestID() string { + return s.respMetadata.RequestID +} + +// This operation is not supported. +type OperationNotSupportedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s OperationNotSupportedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s OperationNotSupportedException) GoString() string { + return s.String() +} + +func newErrorOperationNotSupportedException(v protocol.ResponseMetadata) error { + return &OperationNotSupportedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s OperationNotSupportedException) Code() string { + return "OperationNotSupportedException" +} + +// Message returns the exception's message. +func (s OperationNotSupportedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s OperationNotSupportedException) OrigErr() error { + return nil +} + +func (s OperationNotSupportedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s OperationNotSupportedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s OperationNotSupportedException) RequestID() string { + return s.respMetadata.RequestID +} + // Describes the information used to reboot a WorkSpace. type RebootRequest struct { _ struct{} `type:"structure"` @@ -6947,6 +7229,351 @@ func (s RegisterWorkspaceDirectoryOutput) GoString() string { return s.String() } +// The specified resource already exists. +type ResourceAlreadyExistsException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceAlreadyExistsException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAlreadyExistsException) GoString() string { + return s.String() +} + +func newErrorResourceAlreadyExistsException(v protocol.ResponseMetadata) error { + return &ResourceAlreadyExistsException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAlreadyExistsException) Code() string { + return "ResourceAlreadyExistsException" +} + +// Message returns the exception's message. +func (s ResourceAlreadyExistsException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAlreadyExistsException) OrigErr() error { + return nil +} + +func (s ResourceAlreadyExistsException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAlreadyExistsException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAlreadyExistsException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource is associated with a directory. +type ResourceAssociatedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceAssociatedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceAssociatedException) GoString() string { + return s.String() +} + +func newErrorResourceAssociatedException(v protocol.ResponseMetadata) error { + return &ResourceAssociatedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceAssociatedException) Code() string { + return "ResourceAssociatedException" +} + +// Message returns the exception's message. +func (s ResourceAssociatedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceAssociatedException) OrigErr() error { + return nil +} + +func (s ResourceAssociatedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceAssociatedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceAssociatedException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource could not be created. +type ResourceCreationFailedException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceCreationFailedException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceCreationFailedException) GoString() string { + return s.String() +} + +func newErrorResourceCreationFailedException(v protocol.ResponseMetadata) error { + return &ResourceCreationFailedException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceCreationFailedException) Code() string { + return "ResourceCreationFailedException" +} + +// Message returns the exception's message. +func (s ResourceCreationFailedException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceCreationFailedException) OrigErr() error { + return nil +} + +func (s ResourceCreationFailedException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceCreationFailedException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceCreationFailedException) RequestID() string { + return s.respMetadata.RequestID +} + +// Your resource limits have been exceeded. +type ResourceLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception error message. + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s ResourceLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceLimitExceededException) GoString() string { + return s.String() +} + +func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { + return &ResourceLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceLimitExceededException) Code() string { + return "ResourceLimitExceededException" +} + +// Message returns the exception's message. +func (s ResourceLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceLimitExceededException) OrigErr() error { + return nil +} + +func (s ResourceLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + +// The resource could not be found. +type ResourceNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The resource could not be found. + Message_ *string `locationName:"message" type:"string"` + + // The ID of the resource that could not be found. + ResourceId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceNotFoundException) GoString() string { + return s.String() +} + +func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { + return &ResourceNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceNotFoundException) Code() string { + return "ResourceNotFoundException" +} + +// Message returns the exception's message. +func (s ResourceNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceNotFoundException) OrigErr() error { + return nil +} + +func (s ResourceNotFoundException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + +// The specified resource is not available. +type ResourceUnavailableException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + // The exception error message. + Message_ *string `locationName:"message" type:"string"` + + // The identifier of the resource that is not available. + ResourceId *string `min:"1" type:"string"` +} + +// String returns the string representation +func (s ResourceUnavailableException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ResourceUnavailableException) GoString() string { + return s.String() +} + +func newErrorResourceUnavailableException(v protocol.ResponseMetadata) error { + return &ResourceUnavailableException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ResourceUnavailableException) Code() string { + return "ResourceUnavailableException" +} + +// Message returns the exception's message. +func (s ResourceUnavailableException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ResourceUnavailableException) OrigErr() error { + return nil +} + +func (s ResourceUnavailableException) Error() string { + return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ResourceUnavailableException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ResourceUnavailableException) RequestID() string { + return s.respMetadata.RequestID +} + type RestoreWorkspaceInput struct { _ struct{} `type:"structure"` @@ -7517,6 +8144,123 @@ func (s *TerminateWorkspacesOutput) SetFailedRequests(v []*FailedWorkspaceChange return s } +// The configuration of this network is not supported for this operation, or +// your network configuration conflicts with the Amazon WorkSpaces management +// network IP range. For more information, see Configure a VPC for Amazon WorkSpaces +// (https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-vpc.html). +type UnsupportedNetworkConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedNetworkConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedNetworkConfigurationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedNetworkConfigurationException(v protocol.ResponseMetadata) error { + return &UnsupportedNetworkConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedNetworkConfigurationException) Code() string { + return "UnsupportedNetworkConfigurationException" +} + +// Message returns the exception's message. +func (s UnsupportedNetworkConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedNetworkConfigurationException) OrigErr() error { + return nil +} + +func (s UnsupportedNetworkConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedNetworkConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedNetworkConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + +// The configuration of this WorkSpace is not supported for this operation. +// For more information, see Required Configuration and Service Components for +// WorkSpaces (https://docs.aws.amazon.com/workspaces/latest/adminguide/required-service-components.html). +type UnsupportedWorkspaceConfigurationException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s UnsupportedWorkspaceConfigurationException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s UnsupportedWorkspaceConfigurationException) GoString() string { + return s.String() +} + +func newErrorUnsupportedWorkspaceConfigurationException(v protocol.ResponseMetadata) error { + return &UnsupportedWorkspaceConfigurationException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s UnsupportedWorkspaceConfigurationException) Code() string { + return "UnsupportedWorkspaceConfigurationException" +} + +// Message returns the exception's message. +func (s UnsupportedWorkspaceConfigurationException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s UnsupportedWorkspaceConfigurationException) OrigErr() error { + return nil +} + +func (s UnsupportedWorkspaceConfigurationException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s UnsupportedWorkspaceConfigurationException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s UnsupportedWorkspaceConfigurationException) RequestID() string { + return s.respMetadata.RequestID +} + type UpdateRulesOfIpGroupInput struct { _ struct{} `type:"structure"` @@ -8512,6 +9256,65 @@ func (s *WorkspaceRequest) SetWorkspaceProperties(v *WorkspaceProperties) *Works return s } +// The workspaces_DefaultRole role could not be found. If this is the first +// time you are registering a directory, you will need to create the workspaces_DefaultRole +// role before you can register a directory. For more information, see Creating +// the workspaces_DefaultRole Role (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role). +type WorkspacesDefaultRoleNotFoundException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"message" type:"string"` +} + +// String returns the string representation +func (s WorkspacesDefaultRoleNotFoundException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s WorkspacesDefaultRoleNotFoundException) GoString() string { + return s.String() +} + +func newErrorWorkspacesDefaultRoleNotFoundException(v protocol.ResponseMetadata) error { + return &WorkspacesDefaultRoleNotFoundException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s WorkspacesDefaultRoleNotFoundException) Code() string { + return "WorkspacesDefaultRoleNotFoundException" +} + +// Message returns the exception's message. +func (s WorkspacesDefaultRoleNotFoundException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s WorkspacesDefaultRoleNotFoundException) OrigErr() error { + return nil +} + +func (s WorkspacesDefaultRoleNotFoundException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s WorkspacesDefaultRoleNotFoundException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s WorkspacesDefaultRoleNotFoundException) RequestID() string { + return s.respMetadata.RequestID +} + const ( // AccessPropertyValueAllow is a AccessPropertyValue enum value AccessPropertyValueAllow = "ALLOW" diff --git a/service/workspaces/errors.go b/service/workspaces/errors.go index 770e7980bb3..536f297ed8c 100644 --- a/service/workspaces/errors.go +++ b/service/workspaces/errors.go @@ -2,6 +2,10 @@ package workspaces +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeAccessDeniedException for service response error code @@ -97,3 +101,20 @@ const ( // the workspaces_DefaultRole Role (https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-access-control.html#create-default-role). ErrCodeWorkspacesDefaultRoleNotFoundException = "WorkspacesDefaultRoleNotFoundException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "AccessDeniedException": newErrorAccessDeniedException, + "InvalidParameterValuesException": newErrorInvalidParameterValuesException, + "InvalidResourceStateException": newErrorInvalidResourceStateException, + "OperationInProgressException": newErrorOperationInProgressException, + "OperationNotSupportedException": newErrorOperationNotSupportedException, + "ResourceAlreadyExistsException": newErrorResourceAlreadyExistsException, + "ResourceAssociatedException": newErrorResourceAssociatedException, + "ResourceCreationFailedException": newErrorResourceCreationFailedException, + "ResourceLimitExceededException": newErrorResourceLimitExceededException, + "ResourceNotFoundException": newErrorResourceNotFoundException, + "ResourceUnavailableException": newErrorResourceUnavailableException, + "UnsupportedNetworkConfigurationException": newErrorUnsupportedNetworkConfigurationException, + "UnsupportedWorkspaceConfigurationException": newErrorUnsupportedWorkspaceConfigurationException, + "WorkspacesDefaultRoleNotFoundException": newErrorWorkspacesDefaultRoleNotFoundException, +} diff --git a/service/workspaces/service.go b/service/workspaces/service.go index 9d016472dc4..e9700bd8865 100644 --- a/service/workspaces/service.go +++ b/service/workspaces/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/jsonrpc" ) @@ -76,7 +77,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(jsonrpc.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil { diff --git a/service/xray/api.go b/service/xray/api.go index 0c935e786fe..cdd6fd1f926 100644 --- a/service/xray/api.go +++ b/service/xray/api.go @@ -74,11 +74,11 @@ func (c *XRay) BatchGetTracesRequest(input *BatchGetTracesInput) (req *request.R // See the AWS API reference guide for AWS X-Ray's // API operation BatchGetTraces for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/BatchGetTraces @@ -208,11 +208,11 @@ func (c *XRay) CreateGroupRequest(input *CreateGroupInput) (req *request.Request // See the AWS API reference guide for AWS X-Ray's // API operation CreateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateGroup @@ -296,14 +296,14 @@ func (c *XRay) CreateSamplingRuleRequest(input *CreateSamplingRuleInput) (req *r // See the AWS API reference guide for AWS X-Ray's // API operation CreateSamplingRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // -// * ErrCodeRuleLimitExceededException "RuleLimitExceededException" +// * RuleLimitExceededException // You have reached the maximum number of sampling rules. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/CreateSamplingRule @@ -382,11 +382,11 @@ func (c *XRay) DeleteGroupRequest(input *DeleteGroupInput) (req *request.Request // See the AWS API reference guide for AWS X-Ray's // API operation DeleteGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteGroup @@ -464,11 +464,11 @@ func (c *XRay) DeleteSamplingRuleRequest(input *DeleteSamplingRuleInput) (req *r // See the AWS API reference guide for AWS X-Ray's // API operation DeleteSamplingRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/DeleteSamplingRule @@ -546,11 +546,11 @@ func (c *XRay) GetEncryptionConfigRequest(input *GetEncryptionConfigInput) (req // See the AWS API reference guide for AWS X-Ray's // API operation GetEncryptionConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetEncryptionConfig @@ -628,11 +628,11 @@ func (c *XRay) GetGroupRequest(input *GetGroupInput) (req *request.Request, outp // See the AWS API reference guide for AWS X-Ray's // API operation GetGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroup @@ -716,11 +716,11 @@ func (c *XRay) GetGroupsRequest(input *GetGroupsInput) (req *request.Request, ou // See the AWS API reference guide for AWS X-Ray's // API operation GetGroups for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetGroups @@ -856,11 +856,11 @@ func (c *XRay) GetSamplingRulesRequest(input *GetSamplingRulesInput) (req *reque // See the AWS API reference guide for AWS X-Ray's // API operation GetSamplingRules for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingRules @@ -996,11 +996,11 @@ func (c *XRay) GetSamplingStatisticSummariesRequest(input *GetSamplingStatisticS // See the AWS API reference guide for AWS X-Ray's // API operation GetSamplingStatisticSummaries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingStatisticSummaries @@ -1130,11 +1130,11 @@ func (c *XRay) GetSamplingTargetsRequest(input *GetSamplingTargetsInput) (req *r // See the AWS API reference guide for AWS X-Ray's // API operation GetSamplingTargets for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetSamplingTargets @@ -1223,11 +1223,11 @@ func (c *XRay) GetServiceGraphRequest(input *GetServiceGraphInput) (req *request // See the AWS API reference guide for AWS X-Ray's // API operation GetServiceGraph for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetServiceGraph @@ -1363,11 +1363,11 @@ func (c *XRay) GetTimeSeriesServiceStatisticsRequest(input *GetTimeSeriesService // See the AWS API reference guide for AWS X-Ray's // API operation GetTimeSeriesServiceStatistics for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTimeSeriesServiceStatistics @@ -1503,11 +1503,11 @@ func (c *XRay) GetTraceGraphRequest(input *GetTraceGraphInput) (req *request.Req // See the AWS API reference guide for AWS X-Ray's // API operation GetTraceGraph for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceGraph @@ -1659,11 +1659,11 @@ func (c *XRay) GetTraceSummariesRequest(input *GetTraceSummariesInput) (req *req // See the AWS API reference guide for AWS X-Ray's // API operation GetTraceSummaries for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/GetTraceSummaries @@ -1793,11 +1793,11 @@ func (c *XRay) PutEncryptionConfigRequest(input *PutEncryptionConfigInput) (req // See the AWS API reference guide for AWS X-Ray's // API operation PutEncryptionConfig for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutEncryptionConfig @@ -1876,11 +1876,11 @@ func (c *XRay) PutTelemetryRecordsRequest(input *PutTelemetryRecordsInput) (req // See the AWS API reference guide for AWS X-Ray's // API operation PutTelemetryRecords for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTelemetryRecords @@ -2003,11 +2003,11 @@ func (c *XRay) PutTraceSegmentsRequest(input *PutTraceSegmentsInput) (req *reque // See the AWS API reference guide for AWS X-Ray's // API operation PutTraceSegments for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/PutTraceSegments @@ -2085,11 +2085,11 @@ func (c *XRay) UpdateGroupRequest(input *UpdateGroupInput) (req *request.Request // See the AWS API reference guide for AWS X-Ray's // API operation UpdateGroup for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateGroup @@ -2167,11 +2167,11 @@ func (c *XRay) UpdateSamplingRuleRequest(input *UpdateSamplingRuleInput) (req *r // See the AWS API reference guide for AWS X-Ray's // API operation UpdateSamplingRule for usage and error information. // -// Returned Error Codes: -// * ErrCodeInvalidRequestException "InvalidRequestException" +// Returned Error Types: +// * InvalidRequestException // The request is missing required parameters or has invalid parameters. // -// * ErrCodeThrottledException "ThrottledException" +// * ThrottledException // The request exceeds the maximum number of requests per second. // // See also, https://docs.aws.amazon.com/goto/WebAPI/xray-2016-04-12/UpdateSamplingRule @@ -4352,6 +4352,62 @@ func (s *InstanceIdDetail) SetId(v string) *InstanceIdDetail { return s } +// The request is missing required parameters or has invalid parameters. +type InvalidRequestException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s InvalidRequestException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s InvalidRequestException) GoString() string { + return s.String() +} + +func newErrorInvalidRequestException(v protocol.ResponseMetadata) error { + return &InvalidRequestException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s InvalidRequestException) Code() string { + return "InvalidRequestException" +} + +// Message returns the exception's message. +func (s InvalidRequestException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s InvalidRequestException) OrigErr() error { + return nil +} + +func (s InvalidRequestException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s InvalidRequestException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s InvalidRequestException) RequestID() string { + return s.respMetadata.RequestID +} + type PutEncryptionConfigInput struct { _ struct{} `type:"structure"` @@ -4776,6 +4832,62 @@ func (s *RootCauseException) SetName(v string) *RootCauseException { return s } +// You have reached the maximum number of sampling rules. +type RuleLimitExceededException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s RuleLimitExceededException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s RuleLimitExceededException) GoString() string { + return s.String() +} + +func newErrorRuleLimitExceededException(v protocol.ResponseMetadata) error { + return &RuleLimitExceededException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s RuleLimitExceededException) Code() string { + return "RuleLimitExceededException" +} + +// Message returns the exception's message. +func (s RuleLimitExceededException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s RuleLimitExceededException) OrigErr() error { + return nil +} + +func (s RuleLimitExceededException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s RuleLimitExceededException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s RuleLimitExceededException) RequestID() string { + return s.respMetadata.RequestID +} + // A sampling rule that services use to decide whether to instrument a request. // Rule fields can match properties of the service, or properties of a request. // The service can ignore rules that don't match its properties. @@ -5804,6 +5916,62 @@ func (s *TelemetryRecord) SetTimestamp(v time.Time) *TelemetryRecord { return s } +// The request exceeds the maximum number of requests per second. +type ThrottledException struct { + _ struct{} `type:"structure"` + respMetadata protocol.ResponseMetadata + + Message_ *string `locationName:"Message" type:"string"` +} + +// String returns the string representation +func (s ThrottledException) String() string { + return awsutil.Prettify(s) +} + +// GoString returns the string representation +func (s ThrottledException) GoString() string { + return s.String() +} + +func newErrorThrottledException(v protocol.ResponseMetadata) error { + return &ThrottledException{ + respMetadata: v, + } +} + +// Code returns the exception type name. +func (s ThrottledException) Code() string { + return "ThrottledException" +} + +// Message returns the exception's message. +func (s ThrottledException) Message() string { + if s.Message_ != nil { + return *s.Message_ + } + return "" +} + +// OrigErr always returns nil, satisfies awserr.Error interface. +func (s ThrottledException) OrigErr() error { + return nil +} + +func (s ThrottledException) Error() string { + return fmt.Sprintf("%s: %s", s.Code(), s.Message()) +} + +// Status code returns the HTTP status code for the request's response error. +func (s ThrottledException) StatusCode() int { + return s.respMetadata.StatusCode +} + +// RequestID returns the service's response RequestID for request. +func (s ThrottledException) RequestID() string { + return s.respMetadata.RequestID +} + // A list of TimeSeriesStatistic structures. type TimeSeriesServiceStatistics struct { _ struct{} `type:"structure"` diff --git a/service/xray/errors.go b/service/xray/errors.go index 7888dd20464..459870ffc23 100644 --- a/service/xray/errors.go +++ b/service/xray/errors.go @@ -2,6 +2,10 @@ package xray +import ( + "github.com/aws/aws-sdk-go/private/protocol" +) + const ( // ErrCodeInvalidRequestException for service response error code @@ -22,3 +26,9 @@ const ( // The request exceeds the maximum number of requests per second. ErrCodeThrottledException = "ThrottledException" ) + +var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{ + "InvalidRequestException": newErrorInvalidRequestException, + "RuleLimitExceededException": newErrorRuleLimitExceededException, + "ThrottledException": newErrorThrottledException, +} diff --git a/service/xray/service.go b/service/xray/service.go index 3abf7b7eda2..134114cdfb7 100644 --- a/service/xray/service.go +++ b/service/xray/service.go @@ -8,6 +8,7 @@ import ( "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" + "github.com/aws/aws-sdk-go/private/protocol" "github.com/aws/aws-sdk-go/private/protocol/restjson" ) @@ -74,7 +75,9 @@ func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, svc.Handlers.Build.PushBackNamed(restjson.BuildHandler) svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler) svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler) - svc.Handlers.UnmarshalError.PushBackNamed(restjson.UnmarshalErrorHandler) + svc.Handlers.UnmarshalError.PushBackNamed( + protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(), + ) // Run custom client initialization if present if initClient != nil {